syzbot
BUG: soft lockup in smp_call_function_single
Status: closed as invalid on 2018/09/05 12:51
Subsystems:
bpf
[Documentation on labels]
First crash: 2933d, last: 2878d
Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz-executor2:15937]
Modules linked in:
irq event stamp: 267146
hardirqs last enabled at (267145): [<ffffffff81007bc4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (267146): [<ffffffff81007be0>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (12792): [<ffffffff86e0074d>] __do_softirq+0x74d/0xa74 kernel/softirq.c:318
softirqs last disabled at (12663): [<ffffffff81497676>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (12663): [<ffffffff81497676>] irq_exit+0x1d6/0x210 kernel/softirq.c:412
CPU: 1 PID: 15937 Comm: syz-executor2 Not tainted 4.18.0+ #209
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:write_comp_data+0x0/0x70
Code: fd ff ff 48 8b bd d0 fe ff ff e8 8b fb 3e 00 e9 ad fc ff ff 4c 89 ef e8 de fa 3e 00 e9 76 fc ff ff e8 14 c8 ca ff 90 90 90 90 <55> 65 4c 8b 04 25 40 ee 01 00 65 8b 05 0f 30 85 7e 48 89 e5 a9 00
RSP: 0018:ffff88018d7cef68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: ffff88018d7ceff8 RCX: ffffffff8170845c
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff88018d7cef70 R08: ffff8801cf6706c0 R09: ffffed003b605b90
R10: ffffed003b605b90 R11: ffff8801db02dc87 R12: ffffed0031af9e0c
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001
FS: 00007f4f6a96d700(0000) GS:ffff8801db100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32925000 CR3: 00000001c2ee1000 CR4: 00000000001426e0
Call Trace:
csd_lock_wait kernel/smp.c:108 [inline]
smp_call_function_single+0x43c/0x5c0 kernel/smp.c:302
smp_call_function_many+0x884/0xa40 kernel/smp.c:434
smp_call_function kernel/smp.c:492 [inline]
on_each_cpu+0x46/0x1d0 kernel/smp.c:604
flush_tlb_kernel_range+0x98/0x160 arch/x86/mm/tlb.c:685
__purge_vmap_area_lazy+0x11b/0x280 mm/vmalloc.c:676
vm_unmap_aliases+0x4a1/0x610 mm/vmalloc.c:1108
change_page_attr_set_clr+0x2b4/0x1010 arch/x86/mm/pageattr.c:1474
change_page_attr_clear arch/x86/mm/pageattr.c:1537 [inline]
set_memory_ro+0x7b/0xa0 arch/x86/mm/pageattr.c:1766
bpf_jit_binary_lock_ro include/linux/filter.h:704 [inline]
bpf_int_jit_compile+0xbba/0xe96 arch/x86/net/bpf_jit_comp.c:1168
bpf_prog_select_runtime+0x46d/0x650 kernel/bpf/core.c:1487
bpf_migrate_filter net/core/filter.c:1273 [inline]
bpf_prepare_filter+0xbd6/0x1100 net/core/filter.c:1321
__get_filter+0x1e0/0x280 net/core/filter.c:1490
sk_attach_filter+0x1d/0x90 net/core/filter.c:1505
sock_setsockopt+0x105b/0x2290 net/core/sock.c:892
__sys_setsockopt+0x2f3/0x3b0 net/socket.c:1896
__do_sys_setsockopt net/socket.c:1911 [inline]
__se_sys_setsockopt net/socket.c:1908 [inline]
__x64_sys_setsockopt+0xbe/0x150 net/socket.c:1908
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457089
Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f4f6a96cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f4f6a96d6d4 RCX: 0000000000457089
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000006
RBP: 0000000000930140 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000100 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d4710 R14: 00000000004c8e0f R15: 0000000000000001
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 15951 Comm: syz-executor0 Not tainted 4.18.0+ #209
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:146
Code: 14 dd 28 00 00 00 4d 39 d0 72 1b 49 83 c1 01 4a 89 7c 10 e0 4a 89 74 10 e8 4a 89 54 10 f0 4a 89 4c d8 20 4c 89 08 5d c3 66 90 <55> 65 48 8b 04 25 40 ee 01 00 65 8b 15 9f 2f 85 7e 48 89 e5 81 e2
RSP: 0018:ffff88018967f5c0 EFLAGS: 00000046
RAX: 0000000040000002 RBX: ffff88018c2a81c0 RCX: ffffffff811bdc44
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff88018967f5d8 R08: ffff880190c26000 R09: fffff5200034ee47
R10: fffff5200034ee47 R11: ffffc90001a7723b R12: 0000000000000000
R13: ffff88018c2a81c0 R14: dffffc0000000000 R15: ffff8801db02cc40
FS: 00007f413b5d7700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001b3991000 CR4: 00000000001426f0
Call Trace:
kvm_arch_vcpu_put+0x9b/0x420 arch/x86/kvm/x86.c:3163
kvm_sched_out+0x91/0xb0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3985
__fire_sched_out_preempt_notifiers kernel/sched/core.c:2497 [inline]
fire_sched_out_preempt_notifiers kernel/sched/core.c:2505 [inline]
prepare_task_switch kernel/sched/core.c:2611 [inline]
context_switch kernel/sched/core.c:2790 [inline]
__schedule+0xf1e/0x1df0 kernel/sched/core.c:3473
preempt_schedule_common+0x22/0x60 kernel/sched/core.c:3597
_cond_resched+0x1d/0x30 kernel/sched/core.c:4963
vcpu_run arch/x86/kvm/x86.c:7723 [inline]
kvm_arch_vcpu_ioctl_run+0xdf1/0x16d0 arch/x86/kvm/x86.c:7870
kvm_vcpu_ioctl+0x7b8/0x1280 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2590
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685
ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702
__do_sys_ioctl fs/ioctl.c:709 [inline]
__se_sys_ioctl fs/ioctl.c:707 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457089
Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f413b5d6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f413b5d76d4 RCX: 0000000000457089
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004ceea8 R14: 00000000004c5529 R15: 0000000000000000
* Struck through repros no longer work on HEAD.