HID: bigben: use spinlock to safely schedule workers
Use spinlocks to deal with workers introducing a wrapper bigben_schedule_work(), and several spinlock checks. Otherwise, bigben_set_led() may schedule bigben->worker after the structure has been freed, causing a use-after-free. Fixes: 4eb1b01d ("HID: hid-bigbenff: fix race condition for scheduled work during removal") Signed-off-by:Pietro Borrello <borrello@diag.uniroma1.it> Link: https://lore.kernel.org/r/20230125-hid-unregister-leds-v4-3-7860c5763c38@diag.uniroma1.it Signed-off-by:
Benjamin Tissoires <benjamin.tissoires@redhat.com>
Loading
-
mentioned in commit 9341303e
-
mentioned in commit d696876a
-
mentioned in commit e3e09b58
-
mentioned in commit f53ff575
-
mentioned in commit 3621148a
-
mentioned in commit c5f66eb9
-
mentioned in commit 30561937
-
mentioned in commit 7fd7972f
-
mentioned in commit fae203f6
-
mentioned in commit e08e2704
-
mentioned in commit bdf21ef3
-
mentioned in commit 33152c76
-
mentioned in commit 610cbca4
-
mentioned in commit 74d615f9
-
mentioned in commit e3d8250e
-
mentioned in commit 09d3940e
-
mentioned in commit 95fafb7d
-
mentioned in commit 8bbb656f
-
mentioned in commit e422c244
Please sign in to comment