Re: [PATCH v3] mac802154: Fix potential RCU dereference issue in mac802154_scan_worker
From: Stefan Schmidt
Date: Tue Sep 24 2024 - 06:01:29 EST
Hello Jiawei Ye.
On Tue, 24 Sep 2024 06:58:05 +0000, Jiawei Ye wrote:
> In the `mac802154_scan_worker` function, the `scan_req->type` field was
> accessed after the RCU read-side critical section was unlocked. According
> to RCU usage rules, this is illegal and can lead to unpredictable
> behavior, such as accessing memory that has been updated or causing
> use-after-free issues.
>
> This possible bug was identified using a static analysis tool developed
> by myself, specifically designed to detect RCU-related issues.
>
> [...]
Applied to wpan/wpan.git, thanks!
[1/1] mac802154: Fix potential RCU dereference issue in mac802154_scan_worker
https://git.kernel.org/wpan/wpan/c/bff1709b3980
regards,
Stefan Schmidt