syzbot


INFO: rcu detected stall in sys_clone3

Status: upstream: reported on 2024/10/04 11:21
Reported-by: syzbot+13a5f4f7cfe7a74d57b4@syzkaller.appspotmail.com
First crash: 59d, last: 59d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in sys_clone3 (3) 3 10d 68d 0/3 upstream: reported on 2024/09/24 16:11
upstream INFO: rcu detected stall in sys_clone3 kernfs 1 925d 925d 0/28 auto-closed as invalid on 2022/08/20 13:01
upstream INFO: rcu detected stall in sys_clone3 (2) cgroups mm 3 189d 293d 0/28 auto-obsoleted due to no activity on 2024/08/25 02:20
linux-6.1 INFO: rcu detected stall in sys_clone3 1 331d 327d 0/3 auto-obsoleted due to no activity on 2024/04/15 06:45
linux-6.1 INFO: rcu detected stall in sys_clone3 (2) 1 191d 191d 0/3 auto-obsoleted due to no activity on 2024/09/01 21:33

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P3657/1:b..l P3237/1:b..l P5647/1:b..l
	(detected by 1, t=10502 jiffies, g=26237, q=127)
task:syz.0.371       state:R  running task     stack:25656 pid: 5647 ppid:  5396 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777
 irqentry_exit+0x53/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 0c 75 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90002fe73a0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920005fce80 RCX: 1ffff920005fce20
RDX: dffffc0000000000 RSI: ffffffff8a8b3da0 RDI: ffffffff8ad904c0
RBP: ffffc90002fe7500 R08: dffffc0000000000 R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005fce7c
R13: dffffc0000000000 R14: ffffc90002fe7400 R15: 0000000000000246
 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 percpu_ref_put_many include/linux/percpu-refcount.h:317 [inline]
 percpu_ref_put include/linux/percpu-refcount.h:338 [inline]
 obj_cgroup_put+0xe/0xc0 include/linux/memcontrol.h:816
 memcg_slab_free_hook+0x6b/0x200 mm/slab.h:367
 do_slab_free mm/slub.c:3432 [inline]
 ___cache_free+0x67/0x100 mm/slub.c:3506
 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
 ____kasan_kmalloc+0x2f/0xf0 mm/kasan/common.c:479
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 __kmalloc_node+0x199/0x390 mm/slub.c:4455
 kmalloc_node include/linux/slab.h:614 [inline]
 __vmalloc_area_node mm/vmalloc.c:2910 [inline]
 __vmalloc_node_range+0x2e2/0x8c0 mm/vmalloc.c:3029
 alloc_thread_stack_node kernel/fork.c:245 [inline]
 dup_task_struct+0x428/0xb60 kernel/fork.c:898
 copy_process+0x5eb/0x3ef0 kernel/fork.c:2038
 kernel_clone+0x210/0x960 kernel/fork.c:2604
 __do_sys_clone3 kernel/fork.c:2879 [inline]
 __se_sys_clone3+0x3e1/0x430 kernel/fork.c:2863
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ffacb47a029
RSP: 002b:00007ffe8296c078 EFLAGS: 00000206 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007ffacb3fc960 RCX: 00007ffacb47a029
RDX: 00007ffacb3fc960 RSI: 0000000000000058 RDI: 00007ffe8296c0c0
RBP: 00007ffac989d6c0 R08: 00007ffac989d6c0 R09: 00007ffe8296c1a7
R10: 0000000000000008 R11: 0000000000000206 R12: ffffffffffffffa8
R13: 000000000000006e R14: 00007ffe8296c0c0 R15: 00007ffe8296c1a8
 </TASK>
task:dhcpcd          state:R  running task     stack:23544 pid: 3237 ppid:     1 flags:0x00004202
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777
 irqentry_exit+0x53/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 0c 75 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc900031c6c40 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000638d94 RCX: 1ffff92000638d34
RDX: dffffc0000000000 RSI: ffffffff8a8b3da0 RDI: ffffffff8ad904c0
RBP: ffffc900031c6da0 R08: dffffc0000000000 R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000638d90
R13: dffffc0000000000 R14: ffffc900031c6ca0 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 is_bpf_text_address+0x1d/0x260 kernel/bpf/core.c:721
 kernel_text_address kernel/extable.c:151 [inline]
 __kernel_text_address+0x94/0x100 kernel/extable.c:105
 unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
 kasan_slab_free include/linux/kasan.h:230 [inline]
 slab_free_hook mm/slub.c:1705 [inline]
 slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
 slab_free mm/slub.c:3499 [inline]
 kfree+0xf1/0x270 mm/slub.c:4559
 memcg_free_page_obj_cgroups mm/slab.h:255 [inline]
 unaccount_slab_page mm/slab.h:434 [inline]
 __free_slab+0x138/0x370 mm/slub.c:1999
 free_slab mm/slub.c:2015 [inline]
 discard_slab mm/slub.c:2021 [inline]
 __unfreeze_partials+0x1b7/0x210 mm/slub.c:2507
 put_cpu_partial+0x132/0x1a0 mm/slub.c:2587
 do_slab_free mm/slub.c:3487 [inline]
 ___cache_free+0xe3/0x100 mm/slub.c:3506
 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
 ____kasan_kmalloc+0x2f/0xf0 mm/kasan/common.c:479
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 __kmalloc_node_track_caller+0x195/0x390 mm/slub.c:4963
 kmalloc_reserve net/core/skbuff.c:356 [inline]
 __alloc_skb+0x12c/0x590 net/core/skbuff.c:427
 alloc_skb include/linux/skbuff.h:1167 [inline]
 alloc_skb_with_frags+0xa3/0x780 net/core/skbuff.c:6170
 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2530
 unix_dgram_sendmsg+0x6fd/0x2090 net/unix/af_unix.c:1798
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x39b/0x530 net/socket.c:1079
 call_write_iter include/linux/fs.h:2172 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xacd/0xe50 fs/read_write.c:594
 ksys_write+0x1a2/0x2c0 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fcb7ec75bf2
RSP: 002b:00007ffe48ecd988 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000055c9a28b7aa0 RCX: 00007fcb7ec75bf2
RDX: 0000000000000046 RSI: 00007ffe48ecd9a0 RDI: 0000000000000005
RBP: 00007ffe48ecd9a0 R08: 0000000000000008 R09: 0000000000000035
R10: 0000000000000000 R11: 0000000000000246 R12: 000055c983087efc
R13: 00007ffe48ecddd0 R14: 000055c9a29b6870 R15: 0000000000000001
 </TASK>
task:kworker/0:7     state:R  running task     stack:23736 pid: 3657 ppid:     2 flags:0x00004000
Workqueue: wg-kex-wg1 wg_packet_handshake_receive_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777
 irqentry_exit+0x53/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 0c 75 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc900030c7340 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000618e74 RCX: 1ffff92000618e14
RDX: dffffc0000000000 RSI: ffffffff8a8b3da0 RDI: ffffffff8ad904c0
RBP: ffffc900030c7490 R08: dffffc0000000000 R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000618e70
R13: dffffc0000000000 R14: ffffc900030c73a0 R15: 0000000000000246
 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 percpu_ref_put_many include/linux/percpu-refcount.h:317 [inline]
 percpu_ref_put include/linux/percpu-refcount.h:338 [inline]
 obj_cgroup_put+0xe/0xc0 include/linux/memcontrol.h:816
 memcg_slab_free_hook+0x6b/0x200 mm/slab.h:367
 do_slab_free mm/slub.c:3432 [inline]
 ___cache_free+0x67/0x100 mm/slub.c:3506
 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
 ____kasan_kmalloc+0x2f/0xf0 mm/kasan/common.c:479
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 kmem_cache_alloc_trace+0x143/0x290 mm/slub.c:3247
 kmalloc include/linux/slab.h:591 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 keypair_create drivers/net/wireguard/noise.c:100 [inline]
 wg_noise_handshake_begin_session+0xc0/0xb50 drivers/net/wireguard/noise.c:827
 wg_packet_send_handshake_response+0x11c/0x2d0 drivers/net/wireguard/send.c:96
 wg_receive_handshake_packet drivers/net/wireguard/receive.c:161 [inline]
 wg_packet_handshake_receive_worker+0x619/0xe00 drivers/net/wireguard/receive.c:220
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/04 11:20 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_clone3
* Struck through repros no longer work on HEAD.