syzbot


INFO: rcu detected stall in sock_read_iter

Status: auto-obsoleted due to no activity on 2022/12/05 11:10
Subsystems: net
[Documentation on labels]
First crash: 560d, last: 560d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in sock_read_iter 1 11d 11d 0/2 premoderation: reported on 2024/04/07 09:28

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=8afc/1/0x4000000000000000 softirq=91241/91241 fqs=1
	(detected by 0, t=10504 jiffies, g=108721, q=60 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2956 Comm: syslogd Not tainted 6.0.0-rc6-next-20220923-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:div64_u64 include/linux/math64.h:69 [inline]
RIP: 0010:taprio_set_budget net/sched/sch_taprio.c:541 [inline]
RIP: 0010:advance_sched+0x3ce/0x9a0 net/sched/sch_taprio.c:736
Code: 38 d0 7c 08 84 d2 0f 85 5d 05 00 00 41 8b 44 24 2c 4d 8d 74 24 20 31 d2 be 04 00 00 00 4c 89 f7 48 69 c0 e8 03 00 00 48 f7 f5 <48> 89 c5 e8 ea a8 61 fa 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffffc900001f0db8 EFLAGS: 00000006
RAX: 0000000000000000 RBX: ffff888073bb7340 RCX: ffff88801cf0e72c
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88801cf0e720
RBP: 00000000000c3500 R08: 0000000000000000 R09: ffff888073bb72e7
R10: ffffed100e776e5c R11: 0000000000000001 R12: ffff88801cf0e700
R13: 171b77ef063e0000 R14: ffff88801cf0e720 R15: 171b77ef063e0000
FS:  00007f8b18cf9800(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f44707ad0b0 CR3: 0000000028375000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x690/0xfb0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x17c/0x640 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__unix_dgram_recvmsg+0x607/0xb80 net/unix/af_unix.c:2485
Code: 7d 30 4c 8b 75 28 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 38 05 00 00 8b 45 30 <48> 8d 7d 34 48 89 fa 48 c1 ea 03 89 44 24 38 48 b8 00 00 00 00 00
RSP: 0018:ffffc9000313fac0 EFLAGS: 00000246
RAX: 00000000ffffffff RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffff1100fb88946 RSI: 0000000000000000 RDI: ffff88807dc44a30
RBP: ffff88807dc44a00 R08: 0000000000000001 R09: ffffc9000313fb88
R10: fffff52000627f74 R11: 0000000000000000 R12: ffff88807ede3000
R13: ffff88807ede3528 R14: 0000000000000000 R15: ffffc9000313fb88
 unix_dgram_recvmsg+0xc0/0xe0 net/unix/af_unix.c:2534
 sock_recvmsg_nosec net/socket.c:995 [inline]
 sock_recvmsg net/socket.c:1013 [inline]
 sock_recvmsg net/socket.c:1009 [inline]
 sock_read_iter+0x344/0x470 net/socket.c:1086
 call_read_iter include/linux/fs.h:2184 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x7f6/0x930 fs/read_write.c:470
 ksys_read+0x1e8/0x250 fs/read_write.c:607
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8b18e858fe
Code: c0 e9 e6 fe ff ff 50 48 8d 3d 0e c7 09 00 e8 c9 cf 01 00 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28
RSP: 002b:00007fff5db69248 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f8b18e858fe
RDX: 00000000000000ff RSI: 00005645d77a2950 RDI: 0000000000000000
RBP: 00005645d77a2910 R08: 00007f8b18f15040 R09: 00007f8b18f150c0
R10: 00007f8b18f14fc0 R11: 0000000000000246 R12: 00005645d77a29d3
R13: 00005645d77a2950 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 10501 jiffies! g108721 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:29272 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5194 [inline]
 __schedule+0xbd2/0x55b0 kernel/sched/core.c:6506
 schedule+0xda/0x1b0 kernel/sched/core.c:6582
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1658
 rcu_gp_kthread+0x236/0x360 kernel/rcu/tree.c:1857
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 16215 Comm: kworker/u4:16 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_many_cond+0x4b5/0x1140 kernel/smp.c:987
Code: 52 48 b9 00 00 00 00 00 fc ff df 48 8b 04 24 49 89 c5 83 e0 07 49 c1 ed 03 49 89 c4 49 01 cd 41 83 c4 03 e8 4d e7 0a 00 f3 90 <41> 0f b6 45 00 41 38 c4 7c 08 84 c0 0f 85 73 0a 00 00 8b 43 08 31
RSP: 0018:ffffc90015777948 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8880b9b402c0 RCX: 0000000000000000
RDX: ffff88807e579d40 RSI: ffffffff8171acb3 RDI: 0000000000000005
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000003
R13: ffffed1017368059 R14: 0000000000000001 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2db21000 CR3: 000000000bc8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1155
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1311 [inline]
 text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1499
 text_poke_flush arch/x86/kernel/alternative.c:1669 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:1666 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1676
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x32f/0x410 kernel/jump_label.c:801
 static_key_disable_cpuslocked+0x152/0x1b0 kernel/jump_label.c:207
 static_key_disable+0x16/0x20 kernel/jump_label.c:215
 toggle_allocation_gate mm/kfence/core.c:814 [inline]
 toggle_allocation_gate+0x183/0x390 mm/kfence/core.c:792
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/06 11:05 linux-next aaa11ce2ffc8 131b38ac .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sock_read_iter
* Struck through repros no longer work on HEAD.