syzbot


BUG: soft lockup in sys_setsockopt

Status: auto-closed as invalid on 2021/08/23 07:10
Reported-by: syzbot+01139a82fdd1e6141f5f@syzkaller.appspotmail.com
First crash: 674d, last: 646d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_setsockopt (3) 4 424d 451d 0/24 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_setsockopt (2) 2 551d 593d 0/24 auto-closed as invalid on 2021/10/27 00:02
upstream INFO: rcu detected stall in sys_setsockopt 1 713d 713d 0/24 auto-closed as invalid on 2021/05/17 17:51

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor.0:14616]
Modules linked in:
irq event stamp: 2226002
hardirqs last  enabled at (2226001): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2226002): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (148724): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (147681): [<ffffffff813926d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (147681): [<ffffffff813926d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 14616 Comm: syz-executor.0 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:123 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:436 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3b5/0xae0 kernel/locking/qspinlock.c:474
Code: 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 41 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 <38> d8 7f 08 84 c0 0f 85 75 05 00 00 0f b6 45 00 84 c0 75 db be 02
RSP: 0018:ffff888098adf628 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff13e3af0
RDX: 0000000000000001 RSI: ffffffff81678675 RDI: 0000000000000286
RBP: ffffffff89f1d780 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000007793
R13: fffffbfff13e3af0 R14: 0000000000000001 R15: ffff8880ba02bd80
FS:  00007ff44608a700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000b6f7650 CR3: 0000000091161000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
 do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
 spin_lock include/linux/spinlock.h:329 [inline]
 __change_page_attr_set_clr+0x18c/0x28b0 arch/x86/mm/pageattr.c:1394
 change_page_attr_set_clr+0x348/0xc60 arch/x86/mm/pageattr.c:1517
 change_page_attr_clear arch/x86/mm/pageattr.c:1560 [inline]
 set_memory_ro+0x78/0xa0 arch/x86/mm/pageattr.c:1789
 bpf_prog_lock_ro include/linux/filter.h:675 [inline]
 bpf_prog_select_runtime+0xb2/0x620 kernel/bpf/core.c:1573
 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1273
 bpf_prepare_filter+0x183/0x370 net/core/filter.c:1321
 __get_filter+0x1d4/0x270 net/core/filter.c:1490
 sk_attach_filter+0x1c/0x170 net/core/filter.c:1505
 sock_setsockopt+0x138d/0x2060 net/core/sock.c:893
 __sys_setsockopt+0x203/0x240 net/socket.c:1897
 __do_sys_setsockopt net/socket.c:1912 [inline]
 __se_sys_setsockopt net/socket.c:1909 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff44608a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000006
RBP: 00000000004bfbb9 R08: 0000000000000010 R09: 0000000000000000
R10: 000000002002eff0 R11: 0000000000000246 R12: 000000000056c008
R13: 00007ffd6fb1b55f R14: 00007ff44608a300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 14620 Comm: syz-executor.3 Not tainted 4.19.188-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:do_raw_spin_unlock+0xe/0x230 kernel/locking/spinlock_debug.c:133
Code: 48 89 df e8 34 5e 4c 00 e9 68 ff ff ff e8 8a 61 4c 00 eb e0 e8 f3 60 4c 00 eb b2 90 48 b8 00 00 00 00 00 fc ff df 41 55 41 54 <55> 48 89 fd 48 83 c7 04 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8
RSP: 0000:ffff8880ba107770 EFLAGS: 00000096
RAX: dffffc0000000000 RBX: 0000000000000086 RCX: 1ffff1101346819a
RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff8880ba124c80
RBP: ffff8880ba124c80 R08: 0000000000000000 R09: 0000000000000005
R10: 0000000000000000 R11: ffffffff8c66305b R12: 0000000000000086
R13: 0000000000000001 R14: ffff8880ba124c80 R15: ffff8880ba124cf0
FS:  00007f034ae3e700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 0000000069086000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:159 [inline]
 _raw_spin_unlock_irqrestore+0x23/0xe0 kernel/locking/spinlock.c:184
 hrtimer_interrupt+0x400/0x9e0 kernel/time/hrtimer.c:1549
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:debug_lockdep_rcu_enabled+0x69/0xe0 kernel/rcu/update.c:253
Code: 8a 48 ba 00 00 00 00 00 fc ff df 48 89 c1 83 e0 07 48 c1 e9 03 83 c0 03 0f b6 14 11 38 d0 7c 04 84 d2 75 64 8b 0d 17 6d f5 08 <85> c9 74 45 65 48 8b 1c 25 80 df 01 00 48 8d bb 84 08 00 00 48 b8
RSP: 0000:ffff8880ba107948 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000004 RSI: 0000000000000002 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: dffffc0000000000 R14: 0000000000000060 R15: ffff8880ba107d98
 ieee80211_rx_h_decrypt net/mac80211/rx.c:1890 [inline]
 ieee80211_rx_handlers+0x3262/0xa630 net/mac80211/rx.c:3595
 ieee80211_invoke_rx_handlers net/mac80211/rx.c:3645 [inline]
 ieee80211_prepare_and_rx_handle+0x23ed/0x6780 net/mac80211/rx.c:4342
 __ieee80211_rx_handle_packet net/mac80211/rx.c:4402 [inline]
 ieee80211_rx_napi+0x108d/0x2470 net/mac80211/rx.c:4591
 ieee80211_rx include/net/mac80211.h:4109 [inline]
 ieee80211_tasklet_handler+0x101/0x160 net/mac80211/main.c:229
 tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:535 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x50 kernel/kcov.c:106
Code: 65 8b 15 3c 81 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83 fa 02 75 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 <48> 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00
RSP: 0000:ffff8880b3c17518 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000c37b000
RDX: 000000000003ffff RSI: ffffffff812aa724 RDI: 0000000000000005
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809c14a000
R13: 000000000009c14a R14: 0000000000000200 R15: 0000000000000001
 static_protections arch/x86/mm/pageattr.c:324 [inline]
 try_preserve_large_page arch/x86/mm/pageattr.c:639 [inline]
 __change_page_attr arch/x86/mm/pageattr.c:1276 [inline]
 __change_page_attr_set_clr+0x1094/0x28b0 arch/x86/mm/pageattr.c:1395
 cpa_process_alias arch/x86/mm/pageattr.c:1348 [inline]
 __change_page_attr_set_clr+0x1ec4/0x28b0 arch/x86/mm/pageattr.c:1402
 change_page_attr_set_clr+0x348/0xc60 arch/x86/mm/pageattr.c:1517
 change_page_attr_clear arch/x86/mm/pageattr.c:1560 [inline]
 set_memory_ro+0x78/0xa0 arch/x86/mm/pageattr.c:1789
 bpf_prog_lock_ro include/linux/filter.h:675 [inline]
 bpf_prog_select_runtime+0xb2/0x620 kernel/bpf/core.c:1573
 bpf_migrate_filter+0x2dc/0x380 net/core/filter.c:1273
 bpf_prepare_filter+0x183/0x370 net/core/filter.c:1321
 __get_filter+0x1d4/0x270 net/core/filter.c:1490
 sk_attach_filter+0x1c/0x170 net/core/filter.c:1505
 sock_setsockopt+0x138d/0x2060 net/core/sock.c:893
 __sys_setsockopt+0x203/0x240 net/socket.c:1897
 __do_sys_setsockopt net/socket.c:1912 [inline]
 __se_sys_setsockopt net/socket.c:1909 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f034ae3e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000006
RBP: 00000000004bfbb9 R08: 0000000000000010 R09: 0000000000000000
R10: 000000002002eff0 R11: 0000000000000246 R12: 000000000056c008
R13: 00007fff5232b9af R14: 00007f034ae3e300 R15: 0000000000022000

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2021/04/25 07:09 linux-4.19.y 2965db2e004c 36c88236 .config console log report info BUG: soft lockup in sys_setsockopt
ci2-linux-4-19 2021/03/31 06:21 linux-4.19.y 2034d6f0838e 6a81331a .config console log report info BUG: soft lockup in sys_setsockopt
ci2-linux-4-19 2021/03/28 09:22 linux-4.19.y 78fec1611cbf a8529b82 .config console log report info BUG: soft lockup in sys_setsockopt
* Struck through repros no longer work on HEAD.