WARNING: ODEBUG bug in batadv_nc_mesh_free (2)

4 views
Skip to first unread message

syzbot

unread,
Aug 10, 2021, 4:05:23 PM8/10/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5c66974a6304 Linux 4.19.202
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10d27981300000
kernel config: https://syzkaller.appspot.com/x/.config?x=4163258239353ac5
dashboard link: https://syzkaller.appspot.com/bug?extid=7962ad0a9c5436b91894
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7962ad...@syzkaller.appspotmail.com

0 pages cma reserved
Bluetooth: hci0: command 0x0419 tx timeout
Bluetooth: hci5: command 0x0419 tx timeout
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: (null)
WARNING: CPU: 0 PID: 10407 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: 10407 Comm: syz-executor.4 Not tainted 4.19.202-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/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
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 a0 ee b3 88 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bf 00 00 00 48 8b 14 dd a0 ee b3 88 48 c7 c7 c0 e2 b3 88 e8 e0 41 7b 04 <0f> 0b 83 05 f3 f2 af 07 01 48 83 c4 20 5b 5d 41 5c 41 5d c3 48 89
RSP: 0018:ffff8880836fed60 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dfd61 RDI: ffffed10106dfd9e
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c66401b R12: ffffffff89f90a40
R13: ffffffff81531250 R14: ffff88802e6adfc0 R15: 1ffff110106dfdb7
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:1224
__cancel_work_timer+0xa6/0x590 kernel/workqueue.c:2972
batadv_nc_mesh_free+0x41/0x120 net/batman-adv/network-coding.c:1884
batadv_mesh_free+0x7d/0x170 net/batman-adv/main.c:242
batadv_mesh_init+0x5b7/0x690 net/batman-adv/main.c:223
batadv_softif_init_late+0xad7/0xd90 net/batman-adv/soft-interface.c:863
register_netdevice+0x2dc/0x10f0 net/core/dev.c:8660
rtnl_newlink+0x13b5/0x15c0 net/core/rtnetlink.c:3155
rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2457
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911
sock_sendmsg_nosec net/socket.c:651 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:661
__sys_sendto+0x21a/0x320 net/socket.c:1897
__do_sys_sendto net/socket.c:1909 [inline]
__se_sys_sendto net/socket.c:1905 [inline]
__x64_sys_sendto+0xdd/0x1b0 net/socket.c:1905
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x41957c
Code: fa fa ff ff 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 20 fb ff ff 48 8b
RSP: 002b:00007ffc180d6390 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000014a4320 RCX: 000000000041957c
RDX: 000000000000003c RSI: 00000000014a4370 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffc180d63e4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 00000000014a4370 R14: 0000000000000003 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Oct 22, 2021, 2:13:22 AM10/22/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13fd909f300000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=7962ad0a9c5436b91894
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=104339a4b00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1152f2c2b00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7962ad...@syzkaller.appspotmail.com

RBP: 00007fffcbd44460 R08: 0000000000000002 R09: 00007f8122003131
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: (null)
WARNING: CPU: 0 PID: 8090 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: 8090 Comm: syz-executor374 Not tainted 4.19.211-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/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
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 20 f1 b3 88 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bf 00 00 00 48 8b 14 dd 20 f1 b3 88 48 c7 c7 40 e5 b3 88 e8 65 92 7b 04 <0f> 0b 83 05 73 e6 af 07 01 48 83 c4 20 5b 5d 41 5c 41 5d c3 48 89
RSP: 0018:ffff8880a1166c10 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed101422cd74
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: ffffffff8c66501b R12: ffffffff89f90a40
R13: ffffffff815313f0 R14: ffff8880b2659700 R15: 1ffff1101422cd8d
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:1224
__cancel_work_timer+0xa6/0x590 kernel/workqueue.c:2972
batadv_nc_mesh_free+0x41/0x120 net/batman-adv/network-coding.c:1884
batadv_mesh_free+0x7d/0x170 net/batman-adv/main.c:242
batadv_mesh_init+0x5b7/0x690 net/batman-adv/main.c:223
batadv_softif_init_late+0xad7/0xd90 net/batman-adv/soft-interface.c:863
register_netdevice+0x2dc/0x10f0 net/core/dev.c:8660
rtnl_newlink+0x13b5/0x15c0 net/core/rtnetlink.c:3155
rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
sock_sendmsg_nosec net/socket.c:651 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:661
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
__sys_sendmsg net/socket.c:2265 [inline]
__do_sys_sendmsg net/socket.c:2274 [inline]
__se_sys_sendmsg net/socket.c:2272 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f8122249799
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffcbd44458 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f8122249799
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007fffcbd44460 R08: 0000000000000002 R09: 00007f8122003131
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages