Re: [PATCH 1/2] libertas: don't exit from lbs_ibss_join_existing() with RCU read lock held
From: Kalle Valo <hidden>
Date: 2020-01-26 15:14:55
Also in:
lkml, netdev
From: Kalle Valo <hidden>
Date: 2020-01-26 15:14:55
Also in:
lkml, netdev
Nicolai Stange [off-list ref] wrote:
Commit e5e884b42639 ("libertas: Fix two buffer overflows at parsing bss
descriptor") introduced a bounds check on the number of supplied rates to
lbs_ibss_join_existing().
Unfortunately, it introduced a return path from within a RCU read side
critical section without a corresponding rcu_read_unlock(). Fix this.
Fixes: e5e884b42639 ("libertas: Fix two buffer overflows at parsing bss
descriptor")
Signed-off-by: Nicolai Stange <redacted>I'll queue these to v5.5, unless Linus releases the final today and then they will go to v5.6. -- https://patchwork.kernel.org/patch/11331869/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches