syzbot


WARNING in __static_key_slow_dec

Status: fixed on 2021/11/10 00:50
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+30622fb04ddd72a4d167@syzkaller.appspotmail.com
Fix commit: 6d5f1ef83868 bonding: Fix negative jump label count on nested bonding
First crash: 1018d, last: 1013d
Cause bisection: introduced by (bisect log) [merge commit]:
commit 7e89350c901923c48370ae7b922223c6c5a2b7fd
Author: David S. Miller <davem@davemloft.net>
Date: Wed Aug 4 08:53:34 2021 +0000

  Merge branch 'dpaa2-switch-next'

Crash: BUG: sleeping function called from invalid context in lock_sock_nested (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net 0/2] bonding: Fix negative jump count reported by syzbot 4 (4) 2021/09/06 12:24
[syzbot] WARNING in __static_key_slow_dec 2 (3) 2021/09/05 10:08

Sample crash report:
8021q: adding VLAN 0 to HW filter on device bond5
------------[ cut here ]------------
jump label: negative count!
WARNING: CPU: 0 PID: 8606 at kernel/jump_label.c:235 static_key_slow_try_dec kernel/jump_label.c:235 [inline]
WARNING: CPU: 0 PID: 8606 at kernel/jump_label.c:235 __static_key_slow_dec_cpuslocked kernel/jump_label.c:243 [inline]
WARNING: CPU: 0 PID: 8606 at kernel/jump_label.c:235 __static_key_slow_dec+0xfb/0x150 kernel/jump_label.c:255
Modules linked in:
CPU: 0 PID: 8606 Comm: syz-executor165 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:static_key_slow_try_dec kernel/jump_label.c:235 [inline]
RIP: 0010:__static_key_slow_dec_cpuslocked kernel/jump_label.c:243 [inline]
RIP: 0010:__static_key_slow_dec+0xfb/0x150 kernel/jump_label.c:255
Code: c3 40 0f 94 c6 31 ff e8 63 34 d9 ff 84 db 75 1e e8 8a 31 d9 ff eb 24 e8 83 31 d9 ff 48 c7 c7 40 75 59 8a 31 c0 e8 25 8b a4 ff <0f> 0b eb 9f e8 6c 31 d9 ff 4c 89 f7 e8 54 f6 ff ff 48 c7 c7 c0 88
RSP: 0018:ffffc9000215e438 EFLAGS: 00010246
RAX: 5e2d18889f3c9100 RBX: 00000000ffffffff RCX: ffff8880224d3900
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 00000000ffffffff R08: ffffffff8166aff2 R09: ffffed1017383f2c
R10: ffffed1017383f2c R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880356f00b0 R14: ffffffff90d9ec00 R15: 1ffff9200042bc01
FS:  00000000017be300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200001c0 CR3: 0000000036bed000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 bond_xdp_set drivers/net/bonding/bond_main.c:5233 [inline]
 bond_xdp+0x8dd/0xa10 drivers/net/bonding/bond_main.c:5264
 bond_enslave+0x40b7/0x5e20 drivers/net/bonding/bond_main.c:2187
 do_set_master net/core/rtnetlink.c:2521 [inline]
 do_setlink+0xfc3/0x4250 net/core/rtnetlink.c:2726
 __rtnl_newlink net/core/rtnetlink.c:3391 [inline]
 rtnl_newlink+0x16ee/0x1cf0 net/core/rtnetlink.c:3506
 rtnetlink_rcv_msg+0x91c/0xe50 net/core/rtnetlink.c:5572
 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2504
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x7de/0x9b0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x9e7/0xe00 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x5a2/0x900 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x319/0x400 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x440db9
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:00007ffcd41b2788 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000440db9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000f0b5ff R09: 0000000000f0b5ff
R10: 0000000000f0b5ff R11: 0000000000000246 R12: 000000000000bd7b
R13: 00007ffcd41b27b0 R14: 00007ffcd41b27a0 R15: 00007ffcd41b2794

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/01 23:57 upstream 835d31d319d9 7eb7e152 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/07 18:05 upstream 0319b848b155 6ca60148 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/07 16:43 upstream 0319b848b155 6ca60148 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/07 05:59 upstream 0319b848b155 6ca60148 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/06 00:32 upstream 0319b848b155 d236a457 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/05 12:04 upstream 49624efa65ac d236a457 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/05 11:47 upstream 49624efa65ac d236a457 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/04 16:50 upstream f1583cb1be35 d236a457 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/04 11:17 upstream 7cca308cfdc0 d236a457 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/02 23:21 upstream 4ac6d90867a4 15cea0a3 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/02 23:14 upstream 4ac6d90867a4 15cea0a3 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/02 22:23 upstream 4ac6d90867a4 15cea0a3 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 22:35 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 22:33 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 21:22 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 20:53 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 20:34 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 20:29 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
2021/09/01 20:13 upstream 835d31d319d9 7eb7e152 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __static_key_slow_dec
* Struck through repros no longer work on HEAD.