syzbot


WARNING: ODEBUG bug in put_device

Status: upstream: reported C repro on 2021/12/24 10:28
Reported-by: syzbot+a87f41abd1185cd28329@syzkaller.appspotmail.com
First crash: 398d, last: 149d

Fix bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: ODEBUG bug in put_device syz done error 15 5d19h 902d 0/24 upstream: reported syz repro on 2020/08/07 07:16
linux-4.19 WARNING: ODEBUG bug in put_device C 720 4d16h 934d 0/1 upstream: reported C repro on 2020/07/06 01:29

Sample crash report:
ODEBUG: free active (active state 0) object type: timer_list hint: delayed_work_timer_fn+0x0/0x90 kernel/workqueue.c:3145
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7968 at lib/debugobjects.c:287 debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7968 Comm: syz-executor355 Not tainted 4.14.281-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:debug_print_object.cold+0xa7/0xdb lib/debugobjects.c:287
RSP: 0018:ffff88809d1972d8 EFLAGS: 00010086
RAX: 0000000000000061 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bc600 RDI: ffffed1013a32e51
RBP: ffffffff878b78c0 R08: 0000000000000061 R09: 0000000000000000
R10: 0000000000000000 R11: ffff8880ae0023c0 R12: ffffffff81361490
R13: 0000000000000000 R14: ffff8880b4d19a80 R15: ffff8880b387bb98
 __debug_check_no_obj_freed lib/debugobjects.c:747 [inline]
 debug_check_no_obj_freed+0x3b7/0x680 lib/debugobjects.c:776
 kfree+0xb9/0x250 mm/slab.c:3814
 kvfree+0x45/0x50 mm/util.c:416
 device_release+0x15f/0x1a0 drivers/base/core.c:848
 kobject_cleanup lib/kobject.c:646 [inline]
 kobject_release lib/kobject.c:675 [inline]
 kref_put include/linux/kref.h:70 [inline]
 kobject_put+0x251/0x550 lib/kobject.c:692
 put_device+0x1c/0x30 drivers/base/core.c:2030
 free_netdev+0x26f/0x360 net/core/dev.c:8234
 rtnl_newlink+0x14cd/0x1830 net/core/rtnetlink.c:2746
 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4322
 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2454
 netlink_unicast_kernel net/netlink/af_netlink.c:1296 [inline]
 netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1322
 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1893
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f8004db7509
RSP: 002b:00007ffd7833fbb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8004db7509
RDX: 0000000020040000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 0000000000000003 R08: 000000000000000c R09: 65732f636f72702f
R10: 0000000000000001 R11: 0000000000000246 R12: 00007f8004d7b490
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

======================================================

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-14 2022/06/01 12:30 linux-4.14.y 501eec4f9e13 3666edfe .config console log report syz C WARNING: ODEBUG bug in put_device
ci2-linux-4-14 2021/12/24 10:52 linux-4.14.y 8ee0807eedf3 6caa12e4 .config console log report syz C WARNING: ODEBUG bug in put_device
ci2-linux-4-14 2022/04/27 06:30 linux-4.14.y 15a1c6b6f516 1fa34c1b .config console log report info WARNING: ODEBUG bug in put_device
ci2-linux-4-14 2021/12/24 10:28 linux-4.14.y 8ee0807eedf3 6caa12e4 .config console log report info WARNING: ODEBUG bug in put_device
* Struck through repros no longer work on HEAD.