diff options
author | Pietro Borrello <borrello@diag.uniroma1.it> | 2023-02-12 22:00:03 +0300 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2023-02-15 20:20:56 +0300 |
commit | 4ab3a086d10eeec1424f2e8a968827a6336203df (patch) | |
tree | 748e3e98df2c98c9d24c05cc3384bd4fa2b55c93 /tools/perf/scripts/python/stackcollapse.py | |
parent | 315c537068a13f0b5681d33dd045a912f4bece6f (diff) | |
download | linux-4ab3a086d10eeec1424f2e8a968827a6336203df.tar.xz |
HID: asus: use spinlock to safely schedule workers
Use spinlocks to deal with workers introducing a wrapper
asus_schedule_work(), and several spinlock checks.
Otherwise, asus_kbd_backlight_set() may schedule led->work after the
structure has been freed, causing a use-after-free.
Fixes: af22a610bc38 ("HID: asus: support backlight on USB keyboards")
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it>
Link: https://lore.kernel.org/r/20230125-hid-unregister-leds-v4-5-7860c5763c38@diag.uniroma1.it
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions