Thread (4 messages) 4 messages, 3 authors, 2026-09-05

Re: [syzbot] [usb?] [input?] KASAN: slab-use-after-free Read in k90_record_led_work

flat view

From: Oliver Neukum <oneukum@suse.com>
Date: 2026-09-02 12:09:39
Also in: linux-usb, lkml

On 31.08.26 07:46, Jeffin Philip wrote:
I believe there is a patch for this already[1], but it has not been merged
yet. Was written just as the merge window for v7.3 opened, so might have
been the reason for not being merged.

[1]: https://lore.kernel.org/all/20260817072831.139954-1-ccc194101@163.com/ (local)
Looking at this patch the following sequence seems possible:

CPU A				CPU B

enter k90_brightness_set()

if (led->removed) [FALSE]
				Enter k90_cleanup_backlight()
				drvdata->backlight->removed = true; [TOO LATE]
				cancel_work_sync(&drvdata->backlight->work); [NOP]
schedule_work(&led->work); [THIS IS BAD]

Just cancelling the work is not enough.

	Regards
		Oliver
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help