syzbot


WARNING: ODEBUG bug in batadv_v_ogm_free

Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+0ef06384b5f39a16ebb9@syzkaller.appspotmail.com
Fix commit: 6f68cd634856 net: batman-adv: fix error handling
First crash: 311d, last: 293d

Cause bisection: introduced by (bisect log) :
commit 9ee11f0fff205b4b3df9750bff5e94f97c71b6a0
Author: Justin Iurman <justin.iurman@uliege.be>
Date: Tue Jul 20 19:42:57 2021 +0000

  ipv6: ioam: Data plane support for Pre-allocated Trace

Crash: WARNING: ODEBUG bug in batadv_nc_mesh_free (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) :
commit 6f68cd634856f8ca93bafd623ba5357e0f648c68
Author: Pavel Skripkin <paskripkin@gmail.com>
Date: Sun Oct 24 13:13:56 2021 +0000

  net: batman-adv: fix error handling

similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING: ODEBUG bug in batadv_v_ogm_free C 96 11h00m 297d 0/1 upstream: reported C repro on 2021/10/22 05:58

Sample crash report:
R13: 00007fff9a991dc0 R14: 00007fff9a991db0 R15: 00007fff9a991d94
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: 0x0
WARNING: CPU: 0 PID: 6856 at lib/debugobjects.c:505 debug_print_object+0x16e/0x250 lib/debugobjects.c:505
Modules linked in:
CPU: 0 PID: 6856 Comm: syz-executor412 Not tainted 5.15.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:debug_print_object+0x16e/0x250 lib/debugobjects.c:505
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 af 00 00 00 48 8b 14 dd 80 3e e4 89 4c 89 ee 48 c7 c7 80 32 e4 89 e8 de 2b 15 05 <0f> 0b 83 05 95 3c 90 09 01 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e c3
RSP: 0018:ffffc900035eee90 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: ffff88801cee0000 RSI: ffffffff815e88a8 RDI: fffff520006bddc4
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815e264e R11: 0000000000000000 R12: ffffffff898de560
R13: ffffffff89e43900 R14: ffffffff81658550 R15: 1ffff920006bdddd
FS:  0000555556c88300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb33ec02d40 CR3: 000000007659d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 debug_object_assert_init lib/debugobjects.c:895 [inline]
 debug_object_assert_init+0x1f4/0x2e0 lib/debugobjects.c:866
 debug_timer_assert_init kernel/time/timer.c:739 [inline]
 debug_assert_init kernel/time/timer.c:784 [inline]
 del_timer+0x6d/0x110 kernel/time/timer.c:1204
 try_to_grab_pending+0x6d/0xd0 kernel/workqueue.c:1270
 __cancel_work_timer+0xa6/0x570 kernel/workqueue.c:3129
 batadv_v_ogm_free+0x1f/0xd0 net/batman-adv/bat_v_ogm.c:1076
 batadv_mesh_free+0x75/0x170 net/batman-adv/main.c:244
 batadv_mesh_init+0x62f/0x710 net/batman-adv/main.c:226
 batadv_softif_init_late+0xad4/0xdd0 net/batman-adv/soft-interface.c:804
 register_netdevice+0x51e/0x1500 net/core/dev.c:10229
 batadv_softif_newlink+0x6e/0x90 net/batman-adv/soft-interface.c:1068
 __rtnl_newlink+0x106d/0x1750 net/core/rtnetlink.c:3458
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3506
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5572
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2510
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1935
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 __sys_sendto+0x21c/0x320 net/socket.c:2036
 __do_sys_sendto net/socket.c:2048 [inline]
 __se_sys_sendto net/socket.c:2044 [inline]
 __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2044
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fb33ebcd469
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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:00007fff9a991d78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fb33ebcd469
RDX: 000000000000ad2a RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007fff9a991da0 R08: 0000000000000000 R09: 4b6ae4f95a5de394
R10: 0000000000007812 R11: 0000000000000246 R12: 0000000000000005
R13: 00007fff9a991dc0 R14: 00007fff9a991db0 R15: 00007fff9a991d94

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/10/18 15:04 upstream cf52ad5ff16c 0c5d9412 .config log report syz C WARNING: ODEBUG bug in batadv_v_ogm_free
ci-upstream-net-this-kasan-gce 2021/10/07 22:44 net 65f280bb65e6 efe0f24d .config log report syz C WARNING: ODEBUG bug in batadv_v_ogm_free
ci-upstream-net-kasan-gce 2021/10/07 21:51 net-next 44cc24b04bed efe0f24d .config log report syz C WARNING: ODEBUG bug in batadv_v_ogm_free
ci-upstream-net-this-kasan-gce 2021/10/25 13:37 net 95a359c95533 4f0000ee .config log report info WARNING: ODEBUG bug in batadv_v_ogm_free
ci-upstream-net-this-kasan-gce 2021/10/24 23:12 net 95a359c95533 282f03fb .config log report info WARNING: ODEBUG bug in batadv_v_ogm_free
ci-upstream-net-kasan-gce 2021/10/07 21:01 net-next 44cc24b04bed efe0f24d .config log report info WARNING: ODEBUG bug in batadv_v_ogm_free