WARNING: ODEBUG bug in vub300_disconnect
Subsystems (2)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: 0a0d1d55dad5 Merge tag 'scftorture.2026.08.18a' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=126be415580000 kernel config: https://syzkaller.appspot.com/x/.config?x=335632b21d0ce540 dashboard link: https://syzkaller.appspot.com/bug?extid=f4a0159ce6802a0a4774 compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b00b3ccadcaf/disk-0a0d1d55.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0e672b557a64/vmlinux-0a0d1d55.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b5c1ac823fac/bzImage-0a0d1d55.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
------------[ cut here ]------------ ODEBUG: free active (active state 0) object: ffff888077279270 object type: timer_list hint: vub300_inactivity_timer_expired+0x0/0x3f0 include/linux/refcount.h:-1 WARNING: lib/debugobjects.c:632 at debug_print_object+0xec/0x230 lib/debugobjects.c:629, CPU#0: kworker/0:1/10 Modules linked in: CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Workqueue: usb_hub_wq hub_event RIP: 0010:debug_print_object+0x18a/0x230 lib/debugobjects.c:629 Code: f8 48 c1 e8 03 80 3c 18 00 74 08 4c 89 ff e8 5d 6f 4f fd 4d 8b 0f 4c 89 ef 48 8b 74 24 08 48 89 ea 44 89 e1 4d 89 f0 ff 34 24 <67> 48 0f b9 3a 48 83 c4 08 ff 05 53 75 92 0b 48 83 c4 10 5b 41 5c RSP: 0018:ffffc900000f7218 EFLAGS: 00010246 RAX: 1ffffffff181ede4 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: ffffffff8c6d6340 RSI: ffffffff8c6d5dc0 RDI: ffffffff9084da30 RBP: ffffffff8c6d6340 R08: ffff888077279270 R09: ffffffff8c0f8280 R10: dffffc0000000000 R11: ffffffff81b32b80 R12: 0000000000000000 R13: ffffffff9084da30 R14: ffff888077279270 R15: ffffffff8c0f6f20 FS: 0000000000000000(0000) GS:ffff888124cf3000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5b6cbceff8 CR3: 000000000eb46000 CR4: 0000000000350ef0 Call Trace: <TASK> __debug_check_no_obj_freed lib/debugobjects.c:1171 [inline] debug_check_no_obj_freed+0x2e3/0x450 lib/debugobjects.c:1201 slab_free_hook mm/slub.c:2609 [inline] slab_free mm/slub.c:6372 [inline] kfree+0x13e/0x640 mm/slub.c:6687 device_release+0xc4/0x1f0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x222/0x550 lib/kobject.c:737 vub300_delete drivers/mmc/host/vub300.c:379 [inline] kref_put include/linux/kref.h:65 [inline] vub300_disconnect+0x280/0x2f0 drivers/mmc/host/vub300.c:2388 usb_unbind_interface+0x295/0x9f0 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:618 [inline] __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x4f5/0x880 drivers/base/dd.c:1372 bus_remove_device+0x444/0x560 drivers/base/bus.c:664 device_del+0x524/0x8f0 drivers/base/core.c:3965 usb_disable_device+0x3d4/0x8d0 drivers/usb/core/message.c:1478 usb_disconnect+0x346/0x9a0 drivers/usb/core/hub.c:2345 hub_port_connect drivers/usb/core/hub.c:5415 [inline] hub_port_connect_change drivers/usb/core/hub.c:5715 [inline] port_event drivers/usb/core/hub.c:5879 [inline] hub_event+0x1bbb/0x4d30 drivers/usb/core/hub.c:5961 process_one_work kernel/workqueue.c:3387 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> ---------------- Code disassembly (best guess): 0: f8 clc 1: 48 c1 e8 03 shr $0x3,%rax 5: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 9: 74 08 je 0x13 b: 4c 89 ff mov %r15,%rdi e: e8 5d 6f 4f fd call 0xfd4f6f70 13: 4d 8b 0f mov (%r15),%r9 16: 4c 89 ef mov %r13,%rdi 19: 48 8b 74 24 08 mov 0x8(%rsp),%rsi 1e: 48 89 ea mov %rbp,%rdx 21: 44 89 e1 mov %r12d,%ecx 24: 4d 89 f0 mov %r14,%r8 27: ff 34 24 push (%rsp) * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 48 83 c4 08 add $0x8,%rsp 33: ff 05 53 75 92 0b incl 0xb927553(%rip) # 0xb92758c 39: 48 83 c4 10 add $0x10,%rsp 3d: 5b pop %rbx 3e: 41 5c pop %r12
---
This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
syzbot
syzbotsyzbot has found a reproducer for the following issue on:
syzbot has found a reproducer for the following issue on:
HEAD commit: 50d05c7c76c9 Merge tag 'landlock-7.3-rc3' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=142f5615580000 kernel config: https://syzkaller.appspot.com/x/.config?x=85bc5cc2fc7394d9 dashboard link: https://syzkaller.appspot.com/bug?extid=f4a0159ce6802a0a4774 compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 userspace arch: i386 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=122f5615580000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-50d05c7c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/303a0ade8f9e/vmlinux-50d05c7c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/70b8ca71442b/bzImage-50d05c7c.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
------------[ cut here ]------------ ODEBUG: free active (active state 0) object: ffff888014529270 object type: timer_list hint: vub300_inactivity_timer_expired+0x0/0x550 drivers/mmc/host/vub300.c:1447 WARNING: lib/debugobjects.c:629 at debug_print_object+0x198/0x2b0 lib/debugobjects.c:629, CPU#1: kworker/1:4/6022 Modules linked in: CPU: 1 UID: 0 PID: 6022 Comm: kworker/1:4 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: usb_hub_wq hub_event RIP: 0010:debug_print_object+0x1a5/0x2b0 lib/debugobjects.c:629 Code: b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 4f 48 8d 3d 88 ce 1d 0c 41 56 48 8b 14 ed 40 3e 62 8c 4c 89 e6 <67> 48 0f b9 3a 58 83 05 e2 00 13 0c 01 48 83 c4 18 5b 5d 41 5c 41 RSP: 0000:ffffc900039d73c8 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffc900039d74b0 RCX: 0000000000000000 RDX: ffffffff8c623d80 RSI: ffffffff8c623920 RDI: ffffffff91505580 RBP: 0000000000000003 R08: ffff888014529270 R09: ffffffff8bf31160 R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8c623920 R13: ffffffff8bf311a0 R14: ffffffff88c79960 R15: ffffc900039d74c8 FS: 0000000000000000(0000) GS:ffff888096a60000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000361bf60 CR3: 000000004fa35000 CR4: 0000000000352ef0 Call Trace: <TASK> __debug_check_no_obj_freed lib/debugobjects.c:1171 [inline] debug_check_no_obj_freed+0x4da/0x630 lib/debugobjects.c:1201 slab_free_hook mm/slub.c:2679 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x3d6/0x6d0 mm/slub.c:6792 device_release+0xd2/0x270 drivers/base/core.c:2640 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1f7/0x640 lib/kobject.c:737 put_device+0x1f/0x30 drivers/base/core.c:3884 vub300_delete drivers/mmc/host/vub300.c:379 [inline] kref_put.constprop.0.isra.0+0x159/0x1d0 include/linux/kref.h:65 vub300_disconnect+0x136/0x170 drivers/mmc/host/vub300.c:2388 usb_unbind_interface+0x1dd/0x9e0 drivers/usb/core/driver.c:461 device_remove drivers/base/dd.c:618 [inline] device_remove+0x12a/0x180 drivers/base/dd.c:610 __device_release_driver drivers/base/dd.c:1349 [inline] device_release_driver_internal+0x44e/0x620 drivers/base/dd.c:1372 bus_remove_device+0x2bc/0x560 drivers/base/bus.c:664 device_del+0x376/0x9b0 drivers/base/core.c:3965 usb_disable_device+0x367/0x810 drivers/usb/core/message.c:1478 usb_disconnect+0x2e2/0x9a0 drivers/usb/core/hub.c:2350 hub_port_connect drivers/usb/core/hub.c:5420 [inline] hub_port_connect_change drivers/usb/core/hub.c:5720 [inline] port_event drivers/usb/core/hub.c:5884 [inline] hub_event+0x1bb1/0x4420 drivers/usb/core/hub.c:5966 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> ---------------- Code disassembly (best guess): 0: b8 00 00 00 00 mov $0x0,%eax 5: 00 fc add %bh,%ah 7: ff lcall (bad) 8: df 48 89 fisttps -0x77(%rax) b: fa cli c: 48 c1 ea 03 shr $0x3,%rdx 10: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 14: 75 4f jne 0x65 16: 48 8d 3d 88 ce 1d 0c lea 0xc1dce88(%rip),%rdi # 0xc1dcea5 1d: 41 56 push %r14 1f: 48 8b 14 ed 40 3e 62 mov -0x739dc1c0(,%rbp,8),%rdx 26: 8c 27: 4c 89 e6 mov %r12,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 58 pop %rax 30: 83 05 e2 00 13 0c 01 addl $0x1,0xc1300e2(%rip) # 0xc130119 37: 48 83 c4 18 add $0x18,%rsp 3b: 5b pop %rbx 3c: 5d pop %rbp 3d: 41 5c pop %r12 3f: 41 rex.B
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
syzbot
syzbotForwarded: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected].
For archival purposes, forwarding an incoming command email to [email protected].
***
Subject: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 50d05c7c76c96b90462f24debacca971d2e86713
drivers/mmc/host/vub300.c +15 -0
@@ -2382,10 +2382,25 @@ static void vub300_disconnect(struct usb_interface *interface) }else {int ifnum =interface_to_InterfaceNumber (interface);usb_set_intfdata (interface,NULL ); +/* +* The inactivity timer holds a reference to the host +* and can be rearmed by work items. Shut it down +* before clearing interface, otherwise its callback +* can drop the timer reference while a concurrent +* work item is rearming the timer, leaving the host +* to be freed while the timer is still active. +*/ +timer_shutdown_sync (&vub300->inactivity_timer);/* prevent more I/O from starting */ vub300->interface =NULL ;mmc_remove_host (mmc);kref_put (&vub300->kref, vub300_delete); +/* +* The timer is shut down, so it will no longer drop +* the reference that was acquired for it in +* vub300_probe(). Drop it here. +*/ +kref_put (&vub300->kref, vub300_delete);pr_info ("USB vub300 remote SDIO host controller[%d]" " now disconnected" , ifnum);return ;
syzbot
syzbotForwarded: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected].
For archival purposes, forwarding an incoming command email to [email protected].
***
Subject: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
drivers/mmc/host/vub300.c +15 -0
@@ -2382,10 +2382,25 @@ static void vub300_disconnect(struct usb_interface *interface) }else {int ifnum =interface_to_InterfaceNumber (interface);usb_set_intfdata (interface,NULL ); +/* +* The inactivity timer holds a reference to the host +* and can be rearmed by work items. Shut it down +* before clearing interface, otherwise its callback +* can drop the timer reference while a concurrent +* work item is rearming the timer, leaving the host +* to be freed while the timer is still active. +*/ +timer_shutdown_sync (&vub300->inactivity_timer);/* prevent more I/O from starting */ vub300->interface =NULL ;mmc_remove_host (mmc);kref_put (&vub300->kref, vub300_delete); +/* +* The timer is shut down, so it will no longer drop +* the reference that was acquired for it in +* vub300_probe(). Drop it here. +*/ +kref_put (&vub300->kref, vub300_delete);pr_info ("USB vub300 remote SDIO host controller[%d]" " now disconnected" , ifnum);return ;
syzbot
syzbotForwarded: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected].
For archival purposes, forwarding an incoming command email to [email protected].
***
Subject: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 50d05c7c76c96b90462f24debacca971d2e86713
drivers/mmc/host/vub300.c +19 -2
@@ -744,7 +744,11 @@ static void vub300_inactivity_timer_expired(struct timer_list *t)struct vub300_mmc_host *vub300 =timer_container_of (vub300, t, inactivity_timer);if (!vub300->interface) { -kref_put (&vub300->kref, vub300_delete); +/* +* The disconnect/error paths have already shut this timer +* down, so it can no longer be rearmed or run. +*/ +return ; }else if (vub300->cmd) {mod_timer (&vub300->inactivity_timer, jiffies +HZ ); }else {
@@ -2327,7 +2331,6 @@ static int vub300_probe(struct usb_interface *interface,INIT_WORK (&vub300->deadwork, vub300_deadwork_thread);kref_init (&vub300->kref);timer_setup (&vub300->sg_transfer_timer, vub300_sg_timed_out,0 ); -kref_get (&vub300->kref);timer_setup (&vub300->inactivity_timer, vub300_inactivity_timer_expired,0 ); vub300->inactivity_timer.expires = jiffies +HZ ;
@@ -2349,6 +2352,13 @@ static int vub300_probe(struct usb_interface *interface,return 0 ; err_stop_io: +/* +* The inactivity timer was armed before mmc_add_host() failed. +* Shut it down before dropping the host reference so that its +* callback can neither run nor be rearmed after the memory +* holding the timer has been freed. +*/ +timer_shutdown_sync (&vub300->inactivity_timer); vub300->interface =NULL ;kref_put (&vub300->kref, vub300_delete);
@@ -2382,6 +2392,13 @@ static void vub300_disconnect(struct usb_interface *interface) }else {int ifnum =interface_to_InterfaceNumber (interface);usb_set_intfdata (interface,NULL ); +/* +* Shut the inactivity timer down before clearing interface. +* Otherwise it can be rearmed (by its own callback or by a +* concurrent path that already checked interface) and later +* fire after the host, which embeds the timer, is freed. +*/ +timer_shutdown_sync (&vub300->inactivity_timer);/* prevent more I/O from starting */ vub300->interface =NULL ;mmc_remove_host (mmc);
Re: Forwarded: [PATCH] WARNING: ODEBUG bug in vub300_disconnect
Quoted 7 lines
For archival purposes, forwarding an incoming command email to [email protected].
***
Subject: [PATCH] WARNING: ODEBUG bug in
vub300_disconnect
Author: [email protected]
Huang, can you correctly fill up your Cc list to avoid wasting minutes and net bandwidth like this one.