syzbot


WARNING in init_timer_key

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+105896fac213f26056f9@syzkaller.appspotmail.com
Fix commit: a64b6a25dd9f cfg80211: call cfg80211_leave_ocb when switching away from OCB
First crash: 726d, last: 615d

Cause bisection: introduced by (bisect log) :
commit b9df4fd7e99cb8bfd80c4143f3045d63b1754ad0
Author: Heiner Kallweit <hkallweit1@gmail.com>
Date: Sun Oct 6 16:19:54 2019 +0000

  net: core: change return type of pskb_may_pull to bool

Crash: general protection fault in batadv_iv_ogm_queue_add (log)
Repro: C syz .config
Last patch testing requests:
Created Duration User Patch Repo Result
2021/05/09 15:23 12m ducheng2@gmail.com patch upstream error
2021/05/09 09:14 32m ducheng2@gmail.com patch upstream report log
2021/04/28 04:16 33m ducheng2@gmail.com patch upstream report log
2021/04/28 03:45 13m ducheng2@gmail.com patch upstream report log
2021/04/28 03:16 12m ducheng2@gmail.com patch upstream report log
2021/04/27 15:18 13m ducheng2@gmail.com patch upstream report log
2021/04/27 15:01 0m ducheng2@gmail.com patch upstream error
2021/04/27 10:14 13m ducheng2@gmail.com patch upstream report log
2021/04/27 09:27 12m ducheng2@gmail.com patch upstream report log
2021/04/20 03:11 26m ducheng2@gmail.com upstream report log

Sample crash report:
------------[ cut here ]------------
ODEBUG: init active (active state 0) object type: timer_list hint: 0x0
WARNING: CPU: 1 PID: 8384 at lib/debugobjects.c:508 debug_print_object lib/debugobjects.c:505 [inline]
WARNING: CPU: 1 PID: 8384 at lib/debugobjects.c:508 __debug_object_init+0x9b7/0x17a0 lib/debugobjects.c:588
Modules linked in:
CPU: 0 PID: 8384 Comm: syz-executor600 Not tainted 5.12.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:debug_print_object lib/debugobjects.c:505 [inline]
RIP: 0010:__debug_object_init+0x9b7/0x17a0 lib/debugobjects.c:588
Code: 4c 89 ff e8 ab 30 e4 fd 4d 8b 07 48 c7 c7 60 a5 11 8a 48 c7 c6 80 a3 11 8a 48 89 da 44 89 f1 4c 8b 0c 24 31 c0 e8 e9 3f 6f fd <0f> 0b 4c 8b 64 24 28 ff 05 08 10 dd 09 48 8b 5c 24 60 48 83 c3 18
RSP: 0018:ffffc900015cf6b0 EFLAGS: 00010246
RAX: a449f44c81be7000 RBX: ffffffff8a11a720 RCX: ffff88801cb48000
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900015cf7f0 R08: ffffffff8160abb2 R09: ffffed10173a5fe8
R10: ffffed10173a5fe8 R11: 0000000000000000 R12: ffff888018425c54
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff89b0aa60
FS:  0000000000646300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd715b2ff8 CR3: 0000000018ba1000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 debug_timer_init kernel/time/timer.c:722 [inline]
 debug_init kernel/time/timer.c:770 [inline]
 init_timer_key+0x39/0x110 kernel/time/timer.c:814
 ieee80211_ibss_setup_sdata+0x3c/0x170 net/mac80211/ibss.c:1734
 ieee80211_setup_sdata+0x642/0xc40 net/mac80211/iface.c:1550
 ieee80211_runtime_change_iftype net/mac80211/iface.c:1656 [inline]
 ieee80211_if_change_type+0x499/0x8c0 net/mac80211/iface.c:1678
 ieee80211_change_iface+0x29/0x200 net/mac80211/cfg.c:157
 rdev_change_virtual_intf net/wireless/rdev-ops.h:69 [inline]
 cfg80211_change_iface+0x676/0xb40 net/wireless/util.c:1067
 nl80211_set_interface+0x497/0x7f0 net/wireless/nl80211.c:3912
 genl_family_rcv_msg_doit net/netlink/genetlink.c:739 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
 genl_rcv_msg+0xe4e/0x1280 net/netlink/genetlink.c:800
 netlink_rcv_skb+0x190/0x3a0 net/netlink/af_netlink.c:2502
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x786/0x940 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x9ae/0xd50 net/netlink/af_netlink.c:1927
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 __sys_sendto+0x438/0x5c0 net/socket.c:1977
 __do_sys_sendto net/socket.c:1989 [inline]
 __se_sys_sendto net/socket.c:1985 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:1985
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x402ce6
Code: 48 c7 c0 ff ff ff ff eb b7 66 2e 0f 1f 84 00 00 00 00 00 90 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 11 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 72 c3 90 55 48 83 ec 30 44 89 4c 24 2c 4c 89
RSP: 002b:00007fffb037ece8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fffb037edc0 RCX: 0000000000402ce6
RDX: 0000000000000024 RSI: 00007fffb037ee10 RDI: 0000000000000005
RBP: 0000000000000001 R08: 00007fffb037ed04 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffb037ee10 R14: 0000000000000005 R15: 0000000000000000

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2021/05/23 13:02 upstream 4d7620341eda e613994b .config console log report syz C
ci-upstream-kasan-gce-smack-root 2021/04/23 12:38 upstream 18a3c5f7abfd e613994b .config console log report syz C
ci-upstream-kasan-gce-smack-root 2021/03/05 13:25 upstream 280d542f6ffa e6b95f32 .config console log report syz C
* Struck through repros no longer work on HEAD.
Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2021/03/24 12:13 upstream 7acac4b3196c e613994b .config console log report syz C WARNING in init_timer_key
ci-upstream-kasan-gce-smack-root 2021/02/02 02:46 upstream 1048ba83fb1c e6b95f32 .config console log report syz C WARNING in init_timer_key
* Struck through repros no longer work on HEAD.