syzbot


BUG: soft lockup in sock_setsockopt (2)

Status: auto-closed as invalid on 2020/09/30 02:55
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+534d8731fd97a4072dbb@syzkaller.appspotmail.com
First crash: 1591d, last: 1591d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in sock_setsockopt bpf 1 1788d 1788d 0/28 auto-closed as invalid on 2020/04/16 03:54
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream C 23 13d 235d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-6-1 BUG: soft lockup in sock_setsockopt origin:upstream C 7 16d 235d 0/2 upstream: reported C repro on 2024/03/19 21:39
android-5-10 BUG: soft lockup in sock_setsockopt C error 39 9d09h 235d 0/2 upstream: reported C repro on 2024/03/19 19:29

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz-executor.0:8399]
Modules linked in:
irq event stamp: 14624782
hardirqs last  enabled at (14624781): [<ffffffff88000c42>] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
hardirqs last disabled at (14624782): [<ffffffff87e462cd>] idtentry_enter_cond_rcu+0x1d/0x50 arch/x86/entry/common.c:607
softirqs last  enabled at (1000602): [<ffffffff88200748>] __do_softirq+0x748/0xa60 kernel/softirq.c:319
softirqs last disabled at (1000171): [<ffffffff88000f0f>] asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
CPU: 1 PID: 8399 Comm: syz-executor.0 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x19/0x60 kernel/kcov.c:197
Code: 00 48 8b be b0 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 48 8b 14 25 00 ff 01 00 65 8b 05 90 47 8e 7e a9 00 01 ff 00 48 8b 34 24 <74> 0f f6 c4 01 74 35 8b 82 04 14 00 00 85 c0 74 2b 8b 82 e0 13 00
RSP: 0018:ffffc90006e0f598 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000dc1eb8 RCX: ffffffff8168b745
RDX: ffff88803b2ba200 RSI: ffffffff8168b730 RDI: 0000000000000005
RBP: ffffc90006e0f670 R08: 0000000000000001 R09: ffff8880ae636dc7
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000040
FS:  00007fbf41e8e700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4ca5364f87 CR3: 00000000a83c6000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
 cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
 csd_lock_wait kernel/smp.c:108 [inline]
 smp_call_function_single+0x190/0x4f0 kernel/smp.c:382
 smp_call_function_many_cond+0x1a4/0x990 kernel/smp.c:518
 smp_call_function_many kernel/smp.c:577 [inline]
 smp_call_function kernel/smp.c:599 [inline]
 on_each_cpu+0x4a/0x240 kernel/smp.c:699
 __purge_vmap_area_lazy+0x11e/0x1f20 mm/vmalloc.c:1367
 _vm_unmap_aliases.part.0+0x3cc/0x4d0 mm/vmalloc.c:1800
 _vm_unmap_aliases mm/vmalloc.c:1774 [inline]
 vm_unmap_aliases+0x42/0x50 mm/vmalloc.c:1823
 change_page_attr_set_clr+0x241/0x500 arch/x86/mm/pat/set_memory.c:1732
 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1789 [inline]
 set_memory_ro+0x78/0xa0 arch/x86/mm/pat/set_memory.c:1935
 bpf_jit_binary_lock_ro include/linux/filter.h:815 [inline]
 bpf_int_jit_compile+0xd84/0x110c arch/x86/net/bpf_jit_comp.c:1929
 bpf_prog_select_runtime+0x591/0xb00 kernel/bpf/core.c:1807
 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1264
 bpf_prepare_filter net/core/filter.c:1312 [inline]
 __get_filter+0x357/0x4e0 net/core/filter.c:1481
 sk_attach_filter+0x1c/0x170 net/core/filter.c:1496
 sock_setsockopt+0x1f7b/0x22a0 net/core/sock.c:1080
 __sys_setsockopt+0x41a/0x480 net/socket.c:2123
 __do_sys_setsockopt net/socket.c:2143 [inline]
 __se_sys_setsockopt net/socket.c:2140 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2140
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cb29
Code: Bad RIP value.
RSP: 002b:00007fbf41e8dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000503c60 RCX: 000000000045cb29
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000004
RBP: 000000000078bf00 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000a98 R14: 00000000004cd71b R15: 00007fbf41e8e6d4
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8401 Comm: syz-executor.2 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:196
Code: 48 89 ef 5d e9 01 07 3f 00 5d be 03 00 00 00 e9 a6 b2 23 02 66 0f 1f 44 00 00 48 8b be b0 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 <65> 48 8b 14 25 00 ff 01 00 65 8b 05 90 47 8e 7e a9 00 01 ff 00 48
RSP: 0018:ffffc90000007de0 EFLAGS: 00000002
RAX: 0000000080010002 RBX: 0000000000000001 RCX: ffffffff81640ea3
RDX: 0000000000000001 RSI: ffff88805fe025c0 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8aae584f
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae627740
R13: ffff8880ae627940 R14: ffff888094ccab40 R15: dffffc0000000000
FS:  00007f91e4387700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30e22000 CR3: 000000005c19d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 trace_hrtimer_expire_exit include/trace/events/timer.h:279 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1523 [inline]
 __hrtimer_run_queues+0xb3c/0xfc0 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1097
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 sysvec_apic_timer_interrupt+0xe0/0x120 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x8c/0xe0 kernel/locking/spinlock.c:191
Code: 48 c7 c0 40 e0 b4 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 37 48 83 3d fb a6 cd 01 00 74 22 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 f5 38 68 f9 65 8b 05 5e c5 1a 78
RSP: 0018:ffffc90005bd7d80 EFLAGS: 00000282
RAX: 1ffffffff1369c08 RBX: 0000000000000282 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000282
RBP: ffffffff89bd19a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 1ffff92000b7afbc
R13: 0000000000000000 R14: ffffc90005bd7ed0 R15: ffffffffa102b94c
 do_settimeofday64 kernel/time/timekeeping.c:1254 [inline]
 do_settimeofday64+0x34b/0x4e0 kernel/time/timekeeping.c:1223
 do_sys_settimeofday64 kernel/time/time.c:195 [inline]
 do_sys_settimeofday64+0x1de/0x260 kernel/time/time.c:169
 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline]
 __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline]
 __x64_sys_clock_settime+0x197/0x260 kernel/time/posix-timers.c:1067
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cb29
Code: Bad RIP value.
RSP: 002b:00007f91e4386c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3
RAX: ffffffffffffffda RBX: 00000000004db520 RCX: 000000000045cb29
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000000
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000007b R14: 00000000004c34ac R15: 00007f91e43876d4

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/02 02:54 upstream cd77006e01b3 bed10395 .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.