Re: [syzbot] [input?] [usb?] WARNING: ODEBUG bug in hid_device_remove

Hillf Danton <[email protected]>
Newsgroups gmane.linux.kernel
Message-ID <[email protected]>
> Date: Sat, 15 Aug 2026 01:41:39 -0700	[thread overview]
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    28d012efb432 Add linux-next specific files for 20260812
> git tree:       linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=1613f479580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=5a13c7bc480b5c3f
> dashboard link: https://syzkaller.appspot.com/bug?extid=f8fb5598924c7e645553
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=17bc1c79580000

#syz test 

--- x/drivers/hid/hid-corsair.c
+++ y/drivers/hid/hid-corsair.c
@@ -524,6 +524,7 @@ static void k90_cleanup_backlight(struct
 
 	if (drvdata->backlight) {
 		drvdata->backlight->removed = true;
+		disable_work(&drvdata->backlight->work);
 		cancel_work_sync(&drvdata->backlight->work);
 		led_classdev_unregister(&drvdata->backlight->cdev);
 		kfree(drvdata->backlight->cdev.name);
@@ -540,6 +541,7 @@ static void k90_cleanup_macro_functions(
 		sysfs_remove_group(&dev->dev.kobj, &k90_attr_group);
 
 		k90->record_led.removed = true;
+		disable_work(&k90->record_led.work);
 		cancel_work_sync(&k90->record_led.work);
 		led_classdev_unregister(&k90->record_led.cdev);
 		kfree(k90->record_led.cdev.name);
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.