syzbot


WARNING in static_key_slow_try_dec (3)

Status: fixed on 2023/02/24 13:50
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+b5d82a651b71cd8a75ab@syzkaller.appspotmail.com
Fix commit: 921ebde3c0d2 netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain()
First crash: 602d, last: 439d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in __static_key_slow_dec_cpuslocked (2) kernel C 1 602d 598d 0/26 closed as dup on 2022/09/12 12:42
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 5.19 000/207] 5.19.12-rc1 review 228 (228) 2022/09/29 22:16
[PATCH 5.15 000/148] 5.15.71-rc1 review 156 (156) 2022/09/26 22:48
[PATCH 5.10 000/141] 5.10.146-rc1 review 145 (145) 2022/09/26 15:59
[PATCH net 0/5] netfilter: bugfixes for net 7 (7) 2022/09/21 08:20
[PATCH] netfilter: nf_tables: fix nft_counters_enabled underflow at nf_tables_addchain() 3 (3) 2022/09/15 20:19
[syzbot] WARNING in static_key_slow_try_dec (3) 0 (1) 2022/09/06 10:48
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in static_key_slow_try_dec kernel C done 58 1749d 1753d 12/26 fixed on 2019/08/05 13:45
upstream WARNING in static_key_slow_try_dec (2) kernel C unreliable 5417 919d 987d 20/26 fixed on 2022/03/08 16:11
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/09/12 11:25 18m penguin-kernel@i-love.sakura.ne.jp patch upstream OK log

Sample crash report:
------------[ cut here ]------------
jump label: negative count!
WARNING: CPU: 1 PID: 3629 at kernel/jump_label.c:235 static_key_slow_try_dec+0xca/0xe0 kernel/jump_label.c:235
Modules linked in:
CPU: 1 PID: 3629 Comm: syz-executor307 Not tainted 6.0.0-rc3-syzkaller-00328-g42cf58c272ee #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:static_key_slow_try_dec+0xca/0xe0 kernel/jump_label.c:235
Code: 5d c3 e8 79 16 d9 ff 45 31 ed 5b 44 89 e8 5d 41 5c 41 5d c3 44 89 e5 eb 8e e8 62 16 d9 ff 48 c7 c7 60 b8 f6 89 e8 c3 68 97 07 <0f> 0b eb c5 48 89 df e8 1a 76 25 00 e9 6a ff ff ff 0f 1f 44 00 00
RSP: 0018:ffffc900038af078 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffffff915443a0 RCX: 0000000000000000
RDX: ffff88801dee5880 RSI: ffffffff8161f408 RDI: fffff52000715e01
RBP: 00000000ffffffff R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 00000000ffffffff
R13: ffff888012709601 R14: 0000000000000001 R15: ffff888012709628
FS:  0000555555620300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe1aacdaf8 CR3: 000000001ce9e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __static_key_slow_dec_cpuslocked kernel/jump_label.c:243 [inline]
 __static_key_slow_dec kernel/jump_label.c:255 [inline]
 static_key_slow_dec+0x5c/0xc0 kernel/jump_label.c:270
 nf_tables_chain_destroy+0x250/0x640 net/netfilter/nf_tables_api.c:1880
 nf_tables_addchain.constprop.0+0xc56/0x16e0 net/netfilter/nf_tables_api.c:2329
 nf_tables_newchain+0x16d1/0x1ef0 net/netfilter/nf_tables_api.c:2593
 nfnetlink_rcv_batch+0x1721/0x2600 net/netfilter/nfnetlink.c:517
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:638 [inline]
 nfnetlink_rcv+0x3af/0x420 net/netfilter/nfnetlink.c:656
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:734
 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2482
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2536
 __sys_sendmsg+0xf3/0x1c0 net/socket.c:2565
 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+0x63/0xcd
RIP: 0033:0x7f136a7cf0c9
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:00007ffe1aacdb18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f136a7cf0c9
RDX: 0000000000000000 RSI: 000000002000c2c0 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe1aacdb30
R13: 00000000000f4240 R14: 000000000000b1ac R15: 00007ffe1aacdb24
 </TASK>

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/04 00:32 upstream 42cf58c272ee 28811d0a .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-root WARNING in static_key_slow_try_dec
2022/09/02 11:36 upstream 42e66b1cc3a0 a805568e .config strace log report syz C ci-upstream-kasan-gce WARNING in static_key_slow_try_dec
2022/09/02 11:02 linux-next e47eb90a0a9a a805568e .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in static_key_slow_try_dec
2022/09/08 23:52 upstream 26b1224903b3 f3027468 .config console log report info ci-qemu-upstream-386 WARNING in static_key_slow_try_dec
2023/02/13 04:21 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/12 19:50 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/12 19:37 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/12 14:02 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/12 01:05 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/12 00:48 net-next-old 75da437a2f17 93e26d60 .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/11 07:48 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/11 05:29 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/11 05:24 net-next-old de4287336794 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/10 17:20 net-next-old 025a785ff083 95871dcc .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/10 10:24 net-next-old dc8c41320130 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/10 09:02 net-next-old dc8c41320130 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 21:32 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 20:55 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 19:56 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 19:35 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 19:23 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 19:04 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2023/02/09 18:53 net-next-old 0b34d68049b0 07980f9d .config console log report info ci-upstream-net-kasan-gce WARNING in static_key_slow_try_dec
2022/09/21 05:26 linux-next e47eb90a0a9a c4b8ccfd .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in static_key_slow_try_dec
2022/09/19 23:12 linux-next e47eb90a0a9a dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root WARNING in static_key_slow_try_dec
2022/09/02 10:43 linux-next e47eb90a0a9a a805568e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in static_key_slow_try_dec
* Struck through repros no longer work on HEAD.