Re: [PATCH v3] mac802154: Fix potential RCU dereference issue in mac802154_scan_worker

2024-09-24 Thread Stefan Schmidt
Hello Jiawei Ye. On Tue, 24 Sep 2024 06:58:05 +, 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

Re: [PATCH v3] mac802154: Fix potential RCU dereference issue in mac802154_scan_worker

2024-09-24 Thread Przemek Kitszel
On 9/24/24 08:58, 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 u

[PATCH v3] mac802154: Fix potential RCU dereference issue in mac802154_scan_worker

2024-09-24 Thread Jiawei Ye
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 issu