syzbot


INFO: rcu detected stall in sys_socket

Status: auto-obsoleted due to no activity on 2024/11/13 04:32
Reported-by: syzbot+75667e335ec4184236d4@syzkaller.appspotmail.com
First crash: 130d, last: 130d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_socket (4) fs 1 1324d 1324d 0/28 auto-closed as invalid on 2021/07/27 17:27
linux-5.15 INFO: rcu detected stall in sys_socket 1 437d 437d 0/3 auto-obsoleted due to no activity on 2024/01/11 06:48
upstream INFO: rcu detected stall in sys_socket (5) net 2 1162d 1187d 0/28 auto-closed as invalid on 2022/01/06 01:08
upstream INFO: rcu detected stall in sys_socket kernel 11 1835d 1837d 0/28 closed as invalid on 2019/12/04 14:04
linux-4.19 INFO: rcu detected stall in sys_socket 1 966d 966d 0/1 auto-closed as invalid on 2022/08/20 07:08
upstream INFO: rcu detected stall in sys_socket (10) mm C done 73 6h33m 378d 0/28 upstream: reported C repro on 2023/11/30 15:24
upstream INFO: rcu detected stall in sys_socket (6) cgroups mm 2 821d 865d 0/28 auto-obsoleted due to no activity on 2022/12/12 22:48
upstream INFO: rcu detected stall in sys_socket (7) kernel 2 680d 713d 0/28 auto-obsoleted due to no activity on 2023/05/02 14:50
upstream INFO: rcu detected stall in sys_socket (9) kasan mm 2 498d 507d 0/28 closed as invalid on 2023/09/07 14:25
upstream INFO: rcu detected stall in sys_socket (2) kernel 3 1801d 1801d 0/28 closed as invalid on 2020/01/08 05:23
linux-5.15 INFO: rcu detected stall in sys_socket (2) origin:upstream C 6 25d 285d 0/3 upstream: reported C repro on 2024/03/02 17:55
upstream INFO: rcu detected stall in sys_socket (3) kernel 4 1800d 1801d 0/28 closed as invalid on 2020/01/09 08:13
android-5-15 BUG: soft lockup in sys_socket C error 26 97d 246d 0/2 auto-obsoleted due to no activity on 2024/11/29 22:24

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2659 jiffies s: 6437 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4031 Comm: syz.4.118 Not tainted 6.1.103-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__kasan_check_read+0x6/0x10 mm/kasan/shadow.c:31
Code: 41 5e 41 5f 5d c3 48 c7 c7 54 96 b7 8c eb 0a 48 c7 c7 8c 96 b7 8c 4c 89 fe e8 c6 f9 c0 08 31 db eb d7 cc cc 89 f6 48 8b 0c 24 <31> d2 e9 d3 ec ff ff 0f 1f 00 89 f6 48 8b 0c 24 ba 01 00 00 00 e9
RSP: 0018:ffffc90000007018 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000015 RCX: ffffffff816a856f
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90739220
RBP: ffff88801ff46498 R08: dffffc0000000000 R09: fffffbfff20e7245
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801ff46418
R13: ffff88801ff45940 R14: ffff88801ff464b8 R15: 1ffff11003fe8c97
FS:  00007fc4318df6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2c0e2e CR3: 000000007b955000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 __lock_acquire+0xcbf/0x1f80 kernel/locking/lockdep.c:5019
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock_sched include/linux/rcupdate.h:883 [inline]
 pfn_valid include/linux/mmzone.h:1857 [inline]
 __virt_addr_valid+0x19c/0x530 arch/x86/mm/physaddr.c:65
 kasan_addr_to_slab+0x9/0x20 mm/kasan/common.c:35
 __kasan_record_aux_stack+0x11/0xc0 mm/kasan/generic.c:471
 irq_work_queue_on+0x12f/0x290 kernel/irq_work.c:140
 rcu_read_unlock_special+0x3c6/0x540 kernel/rcu/tree_plugin.h:675
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 __perf_event_output kernel/events/core.c:7707 [inline]
 perf_event_output_forward+0x2af/0x330 kernel/events/core.c:7716
 __perf_event_overflow+0x45e/0x640 kernel/events/core.c:9462
 perf_tp_event+0x35a/0xc80 kernel/events/core.c:9995
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9968
 perf_trace_preemptirq_template+0x2d1/0x3d0 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0xd5/0x140 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x24/0x40 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:679
RIP: 0010:rcu_read_unlock_special+0x84/0x540 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 0d 48 8e 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc90000007ac0 EFLAGS: 00000206
RAX: 33065ec9c377e700 RBX: 1ffff92000000f60 RCX: ffffffff91f31103
RDX: dffffc0000000000 RSI: ffffffff8b0c0260 RDI: ffffffff8b5d5de0
RBP: ffffc90000007ba0 R08: ffffffff81b644fc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d32fe00
R13: ffff88801ff45d98 R14: ffffc90000007b00 R15: 1ffff92000000f5c
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 ieee80211_iterate_active_interfaces_atomic+0x153/0x170 net/mac80211/util.c:826
 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1767
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571
 __do_softirq kernel/softirq.c:605 [inline]
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5120
Code: 31 0b 00 48 83 c4 08 4c 89 f7 e8 68 31 00 00 0f 1f 44 00 00 4c 89 f7 e8 2b 3c 50 09 e8 76 23 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc900065af4a8 EFLAGS: 00000286
RAX: 33065ec9c377e700 RBX: ffff888014f48034 RCX: ffffffff91f31103
RDX: dffffc0000000000 RSI: ffffffff8b0c0260 RDI: ffff88801ff46f38
RBP: ffffc900065af4f0 R08: ffffffff81b644fc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801ff45940
R13: 1ffff110173076e3 R14: ffff8880b983a9c0 R15: ffff8880b983b718
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x1447/0x4570 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:preempt_schedule_thunk+0x6/0x18 arch/x86/entry/thunk_64.S:34
Code: 89 f7 e8 cd 89 e1 00 eb b7 66 2e 0f 1f 84 00 00 00 00 00 90 e8 ab 0d 8a 00 48 c7 c0 80 64 00 8b c3 cc cc cc 55 48 89 e5 57 56 <52> 51 50 41 50 41 51 41 52 41 53 e8 ca 29 ad 09 eb 18 55 48 89 e5
RSP: 0018:ffffc900065af840 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff92000cb5f10 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8b0c0260 RDI: 0000000000000001
RBP: ffffc900065af850 R08: ffffffff81b644fc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000cb5f0c R14: ffffc900065af880 R15: 0000000000000246
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock_irqrestore+0x128/0x130 kernel/locking/spinlock.c:194
 __debug_check_no_obj_freed lib/debugobjects.c:987 [inline]
 debug_check_no_obj_freed+0x455/0x4e0 lib/debugobjects.c:1008
 free_pages_prepare mm/page_alloc.c:1450 [inline]
 free_pcp_prepare mm/page_alloc.c:1494 [inline]
 free_unref_page_prepare+0x319/0x1120 mm/page_alloc.c:3362
 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3457
 free_slab mm/slub.c:2031 [inline]
 discard_slab mm/slub.c:2037 [inline]
 __unfreeze_partials+0x1b7/0x210 mm/slub.c:2586
 put_cpu_partial+0x17b/0x250 mm/slub.c:2662
 qlink_free mm/kasan/quarantine.c:168 [inline]
 qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187
 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 __kmem_cache_alloc_node+0x137/0x260 mm/slub.c:3437
 __do_kmalloc_node mm/slab_common.c:954 [inline]
 __kmalloc+0xa1/0x230 mm/slab_common.c:968
 kmalloc include/linux/slab.h:561 [inline]
 sk_prot_alloc+0xe0/0x200 net/core/sock.c:2047
 sk_alloc+0x36/0x350 net/core/sock.c:2100
 packet_create+0x100/0x7b0 net/packet/af_packet.c:3413
 __sock_create+0x488/0x910 net/socket.c:1550
 sock_create net/socket.c:1601 [inline]
 __sys_socket_create net/socket.c:1638 [inline]
 __sys_socket+0x136/0x3a0 net/socket.c:1666
 __do_sys_socket net/socket.c:1679 [inline]
 __se_sys_socket net/socket.c:1677 [inline]
 __x64_sys_socket+0x76/0x80 net/socket.c:1677
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc430b779f9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc4318df048 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fc430d05f80 RCX: 00007fc430b779f9
RDX: 0000000000000300 RSI: 0200000000000002 RDI: 0000000000000011
RBP: 00007fc430be58ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fc430d05f80 R15: 00007fffb9990058
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/05 04:31 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_socket
2024/08/05 03:08 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_socket
* Struck through repros no longer work on HEAD.