WARNING in __static_key_slow_dec_cpuslocked

2 views
Skip to first unread message

syzbot

unread,
Sep 23, 2018, 1:14:04 PM9/23/18
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 328c6333ba3d Merge branch 'x86-urgent-for-linus' of git://..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=138311c6400000
kernel config: https://syzkaller.appspot.com/x/.config?x=5fa12be50bca08d8
dashboard link: https://syzkaller.appspot.com/bug?extid=f01fcd546d0fce9bdbca
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
CC: [b...@suse.de jba...@akamai.com jpoi...@redhat.com
linux-...@vger.kernel.org mi...@kernel.org pet...@infradead.org
ros...@goodmis.org]

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

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

x_tables: eb_tables: snat target: only valid in nat table, not nat
------------[ cut here ]------------
jump label: negative count!
WARNING: CPU: 0 PID: 31555 at kernel/jump_label.c:197
__static_key_slow_dec_cpuslocked+0x1e1/0x210 kernel/jump_label.c:196
Kernel panic - not syncing: panic_on_warn set ...

kobject: 'kvm' (000000000fbdd52f): kobject_uevent_env
CPU: 0 PID: 31555 Comm: syz-executor2 Not tainted 4.19.0-rc4+ #250
kobject: 'kvm' (000000000fbdd52f): fill_kobj_path: path
= '/devices/virtual/misc/kvm'
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+0x1c4/0x2b4 lib/dump_stack.c:113
panic+0x238/0x4e7 kernel/panic.c:184
__warn.cold.8+0x163/0x1ba kernel/panic.c:536
report_bug+0x254/0x2d0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:993
RIP: 0010:__static_key_slow_dec_cpuslocked+0x1e1/0x210
kernel/jump_label.c:196
Code: 00 00 00 fc ff df 41 c6 04 04 f8 e8 79 f8 e2 ff 45 85 ed 0f 89 f9 fe
ff ff e8 5b f7 e2 ff 48 c7 c7 00 13 12 88 e8 ef dd ac ff <0f> 0b e9 e1 fe
ff ff 4c 89 e7 e8 10 58 26 00 eb 8f 4c 89 e7 e8 a6
RSP: 0018:ffff8801be7af668 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 1ffff10037cf5ece RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81650cb5 RDI: 0000000000000005
RBP: ffff8801be7af6f8 R08: ffff8801d265c080 R09: ffffed003b584fe8
R10: ffffed003b584fe8 R11: ffff8801dac27f47 R12: 1ffff10037cf5ed2
R13: 00000000ffffffff R14: dffffc0000000000 R15: 0000000000000000
__static_key_slow_dec kernel/jump_label.c:215 [inline]
static_key_slow_dec+0x63/0xa0 kernel/jump_label.c:229
kvm_arch_vcpu_uninit+0x18e/0x1d0 arch/x86/kvm/x86.c:8841
kvm_vcpu_uninit+0x44/0x90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:337
vmx_free_vcpu+0x23a/0x300 arch/x86/kvm/vmx.c:10997
kvm_arch_vcpu_free arch/x86/kvm/x86.c:8457 [inline]
kvm_free_vcpus arch/x86/kvm/x86.c:8909 [inline]
kvm_arch_destroy_vm+0x365/0x7c0 arch/x86/kvm/x86.c:9006
kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:752 [inline]
kvm_put_kvm+0x6c8/0xff0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:773
kvm_vcpu_release+0x7b/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2407
__fput+0x385/0xa30 fs/file_table.c:278
____fput+0x15/0x20 fs/file_table.c:309
task_work_run+0x1e8/0x2a0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x411151
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 19 00 00 c3 48
83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48
89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007ffca22bf710 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000411151
RDX: 0000000000000000 RSI: 0000000000730788 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 00007ffca22bf640 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000099b88 R14: 0000000000000074 R15: badc0ffeebadface
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
syzbot.

Dmitry Vyukov

unread,
May 7, 2019, 5:32:58 AM5/7/19
to syzbot, 'Dmitry Vyukov' via syzkaller-upstream-moderation
#syz upstream
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-upstream-moderation" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-upstream-m...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-upstream-moderation/000000000000db4ef305768cffa1%40google.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages