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

2024-09-24 Thread Jiawei Ye
n. The `scan_req_type` is then used after the RCU lock is released, ensuring that the type value is safely accessed without violating RCU rules. Fixes: e2c3e6f53a7a ("mac802154: Handle active scanning") Cc: sta...@vger.kernel.org Signed-off-by: Jiawei Ye Acked-by: Miquel Raynal --- Chan

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

2024-09-20 Thread Jiawei Ye
; variable `scan_req_type` while still within the RCU read-side critical > > section. The `scan_req_type` is then used after the RCU lock is released, > > ensuring that the type value is safely accessed without violating RCU > > rules. > > > > Fixes: e2c3e6f53a7a ("mac802

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

2024-09-19 Thread Jiawei Ye
n. The `scan_req_type` is then used after the RCU lock is released, ensuring that the type value is safely accessed without violating RCU rules. Fixes: e2c3e6f53a7a ("mac802154: Handle active scanning") Signed-off-by: Jiawei Ye --- Changelog: v1->v2: -Repositioned the enum nl802154_scan_

Re: [PATCH] Fix the RCU usage in mac802154_scan_worker

2024-09-19 Thread Jiawei Ye
ting RCU > > rules. > > > > Fixes: e2c3e6f53a7a ("mac802154: Handle active scanning") > > Signed-off-by: Jiawei Ye > > --- > > net/mac802154/scan.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/n

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

2024-09-19 Thread Jiawei Ye
n. The `scan_req_type` is then used after the RCU lock is released, ensuring that the type value is safely accessed without violating RCU rules. Fixes: e2c3e6f53a7a ("mac802154: Handle active scanning") Signed-off-by: Jiawei Ye --- net/mac802154/scan.c | 4 +++- 1 file changed, 3 insertion