syzbot


WARNING: ODEBUG bug in slave_kobj_release

Status: fixed on 2021/07/08 18:21
Reported-by: syzbot+1511a8ea3aaf5750f2ab@syzkaller.appspotmail.com
Fix commit: f583748c2a4a bonding: init notify_work earlier to avoid uninitialized use
First crash: 1438d, last: 1262d
Fix bisection: fixed by (bisect log) :
commit f583748c2a4a1dc731812ae2c12cadca5c1a88b5
Author: Johannes Berg <johannes.berg@intel.com>
Date: Mon May 17 14:13:35 2021 +0000

  bonding: init notify_work earlier to avoid uninitialized use

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: ODEBUG bug in slave_kobj_release C error 30 991d 1432d 0/1 upstream: reported C repro on 2020/12/19 23:35
upstream WARNING: ODEBUG bug in slave_kobj_release net C inconclusive unreliable 9 1277d 1445d 0/28 auto-obsoleted due to no activity on 2022/09/14 21:27

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffea2daca00
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
kobject_add_internal failed for bonding_slave (error: -12 parent: ipvlan1)
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint:           (null)
WARNING: CPU: 0 PID: 8330 at lib/debugobjects.c:325 debug_print_object+0x160/0x250 lib/debugobjects.c:325
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8330 Comm: syz-executor359 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2fe lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x61 kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:debug_print_object+0x160/0x250 lib/debugobjects.c:325
Code: dd e0 ca b3 88 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bf 00 00 00 48 8b 14 dd e0 ca b3 88 48 c7 c7 00 bf b3 88 e8 fb 80 b8 fd <0f> 0b 83 05 23 b6 a6 07 01 48 83 c4 20 5b 5d 41 5c 41 5d c3 48 89
RSP: 0018:ffff888094466d28 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814fdbb1 RDI: ffffed101288cd97
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c65b01b R12: ffffffff89f90700
R13: ffffffff81554330 R14: ffff8880adf3f338 R15: 1ffff1101288cdb0
 debug_object_assert_init lib/debugobjects.c:694 [inline]
 debug_object_assert_init+0x1f0/0x2e0 lib/debugobjects.c:665
 debug_timer_assert_init kernel/time/timer.c:733 [inline]
 debug_assert_init kernel/time/timer.c:785 [inline]
 del_timer+0x6d/0x100 kernel/time/timer.c:1210
 try_to_grab_pending+0x2b6/0x6f0 kernel/workqueue.c:1223
 __cancel_work_timer+0xa6/0x590 kernel/workqueue.c:2974
 slave_kobj_release+0x48/0xe0 drivers/net/bonding/bond_main.c:1276
 kobject_cleanup lib/kobject.c:662 [inline]
 kobject_release lib/kobject.c:691 [inline]
 kref_put include/linux/kref.h:70 [inline]
 kobject_put+0x28b/0x5d0 lib/kobject.c:708
 bond_alloc_slave drivers/net/bonding/bond_main.c:1321 [inline]
 bond_enslave+0xe53/0x5230 drivers/net/bonding/bond_main.c:1517
 do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321
 do_setlink+0x7ec/0x3540 net/core/rtnetlink.c:2455
 rtnl_setlink+0x243/0x350 net/core/rtnetlink.c:2709
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444679
Code: e8 6c 05 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffea2dac9b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444679
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00007ffea2dac9d0 R08: 0000000000000001 R09: 00000000bb1414ac
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffea2daca00
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/14 01:03 linux-4.19.y 13d2ce42de8c 8f160dd5 .config console log report syz C ci2-linux-4-19
2021/06/08 07:43 linux-4.19.y 1722257b8ece b718257f .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/05/27 15:38 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/05/26 20:54 linux-4.19.y 6b7b0056defc 750ce164 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/05/10 02:22 linux-4.19.y 3c8c23092588 bc5434be .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/05/08 20:36 linux-4.19.y 3c8c23092588 bc5434be .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/05/06 03:35 linux-4.19.y 97a8651cadce 06c27ff5 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/05/02 19:00 linux-4.19.y 97a8651cadce 77e2b668 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/04/20 22:00 linux-4.19.y 2965db2e004c c0ced557 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/04/08 22:15 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/04/07 21:46 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/03/30 06:42 linux-4.19.y 78fec1611cbf 6a81331a .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/03/06 11:48 linux-4.19.y dfb571610ba3 e4b4d570 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/02/24 05:31 linux-4.19.y 2d19be4653f5 fcc6d71b .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/02/03 11:46 linux-4.19.y 811218eceeaa 624dad51 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/01/23 04:31 linux-4.19.y 43d555d83c3f 52e37319 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/01/20 20:28 linux-4.19.y 43d555d83c3f d4f4eca5 .config console log report info ci2-linux-4-19 WARNING: ODEBUG bug in slave_kobj_release
2021/01/15 23:01 linux-4.19.y 675cc038067f 65a7a854 .config console log report info ci2-linux-4-19
2021/01/04 15:10 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2021/01/01 17:44 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2020/12/29 18:54 linux-4.19.y 13d2ce42de8c 80910769 .config console log report info ci2-linux-4-19
2020/12/27 09:39 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info ci2-linux-4-19
2020/12/24 22:13 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report info ci2-linux-4-19
2020/12/24 04:56 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report info ci2-linux-4-19
2020/12/20 18:35 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
2020/12/15 23:21 linux-4.19.y 13d2ce42de8c f213e07e .config console log report info ci2-linux-4-19
2020/12/15 10:41 linux-4.19.y 13d2ce42de8c 97183ed7 .config console log report info ci2-linux-4-19
2020/12/14 00:47 linux-4.19.y 13d2ce42de8c 8f160dd5 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.