syzbot


INFO: rcu detected stall in sys_readlink (3)

Status: auto-obsoleted due to no activity on 2023/08/14 04:05
Subsystems: bpf fs
[Documentation on labels]
First crash: 364d, last: 357d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_readlink (2) kernel 3 482d 541d 0/26 auto-obsoleted due to no activity on 2023/04/24 08:02
linux-5.15 INFO: rcu detected stall in sys_readlink 1 251d 251d 0/3 auto-obsoleted due to no activity on 2023/12/08 09:32
upstream INFO: rcu detected stall in sys_readlink fs 1 745d 745d 0/26 auto-closed as invalid on 2022/07/22 05:22
upstream INFO: rcu detected stall in sys_readlink (4) fs 2 156d 159d 0/26 auto-obsoleted due to no activity on 2024/03/02 18:22
android-5-15 BUG: soft lockup in sys_readlink 1 25d 25d 0/2 premoderation: reported on 2024/04/12 18:32

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=d2cc/1/0x4000000000000000 softirq=29868/29869 fqs=0
rcu: 	(detected by 1, t=10502 jiffies, g=39485, q=105 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4447 Comm: udevd Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:186
Code: 01 c6 48 89 c7 e8 9b 56 cc 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 0f 1f 84 00 00 00 00 00 66 0f 1f 00 55 <41> 57 41 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5
RSP: 0018:ffffc90000007a28 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 000000000000001f RCX: ffffffff816b11d1
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90327260
RBP: df045188a5353ddd R08: dffffc0000000000 R09: fffffbfff2064e79
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807d7d8000
R13: ffff88807d7d8000 R14: 0000000000000001 R15: ffff88807d7d8b10
FS:  00007fa0d8f27c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f57485ad988 CR3: 0000000023d37000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 __lock_acquire+0xf01/0x2000 kernel/locking/lockdep.c:5070
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5691
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 advance_sched+0xae/0xc80 net/sched/sch_taprio.c:929
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:lock_acquire+0x25a/0x520 kernel/locking/lockdep.c:5695
Code: 2b 00 74 08 4c 89 f7 e8 74 36 78 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:ffffc900031cf760 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000639ef8 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8aea9e20 RDI: ffffffff8b383e80
RBP: ffffc900031cf8b0 R08: dffffc0000000000 R09: fffffbfff2064e4d
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000639ef4
R13: dffffc0000000000 R14: ffffc900031cf7c0 R15: 0000000000000246
 rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:327
 rcu_read_lock include/linux/rcupdate.h:773 [inline]
 is_bpf_text_address+0x21/0x270 kernel/bpf/core.c:719
 kernel_text_address+0xa3/0xe0 kernel/extable.c:125
 __kernel_text_address+0xd/0x40 kernel/extable.c:79
 unwind_get_return_address+0x4d/0x90 arch/x86/kernel/unwind_orc.c:341
 arch_stack_walk+0xf7/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4f/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:521
 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
 kasan_slab_free include/linux/kasan.h:162 [inline]
 slab_free_hook mm/slub.c:1781 [inline]
 slab_free_freelist_hook mm/slub.c:1807 [inline]
 slab_free mm/slub.c:3786 [inline]
 kmem_cache_free+0x297/0x520 mm/slub.c:3808
 putname fs/namei.c:273 [inline]
 user_path_at_empty+0x12f/0x180 fs/namei.c:2909
 do_readlinkat+0x118/0x3b0 fs/stat.c:477
 __do_sys_readlink fs/stat.c:510 [inline]
 __se_sys_readlink fs/stat.c:507 [inline]
 __x64_sys_readlink+0x7f/0x90 fs/stat.c:507
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa0d8b17d47
Code: 73 01 c3 48 8b 0d e1 90 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b1 90 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007fff2f6cc248 EFLAGS: 00000202 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa0d8b17d47
RDX: 0000000000000400 RSI: 00007fff2f6cc658 RDI: 00007fff2f6cc258
RBP: 00007fff2f6cca98 R08: 00005601625781fd R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000202 R12: 0000000000000200
R13: 00007fff2f6cc658 R14: 00007fff2f6cc258 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g39485 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=38936
rcu: rcu_preempt kthread starved for 10502 jiffies! g39485 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
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:I stack:25664 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1808
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 9994 Comm: syz-executor.3 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:csd_lock_wait kernel/smp.c:285 [inline]
RIP: 0010:smp_call_function_many_cond+0x14fb/0x1f60 kernel/smp.c:828
Code: 45 8b 34 24 44 89 f6 83 e6 01 31 ff e8 4e 0f 0b 00 41 83 e6 01 49 be 00 00 00 00 00 fc ff df 75 07 e8 89 0b 0b 00 eb 38 f3 90 <42> 0f b6 04 33 84 c0 75 11 41 f7 04 24 01 00 00 00 74 1e e8 6d 0b
RSP: 0018:ffffc9000500f9e0 EFLAGS: 00000246
RAX: ffffffff81805bd3 RBX: 1ffff110173089c5 RCX: 0000000000040000
RDX: ffffc9000cb6f000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000500fbd0 R08: ffffffff81805ba2 R09: fffffbfff1cab7de
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9844e28
R13: ffff8880b993d308 R14: dffffc0000000000 R15: 0000000000000000
FS:  00007f5749266700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 0000000021120000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 clock_was_set+0x779/0x830 kernel/time/hrtimer.c:974
 do_settimeofday64+0x677/0x7e0 kernel/time/timekeeping.c:1345
 __do_sys_clock_settime kernel/time/posix-timers.c:1092 [inline]
 __se_sys_clock_settime kernel/time/posix-timers.c:1080 [inline]
 __x64_sys_clock_settime+0x236/0x270 kernel/time/posix-timers.c:1080
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f574848c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5749266168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3
RAX: ffffffffffffffda RBX: 00007f57485abf80 RCX: 00007f574848c169
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f57484e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf0024fdf R14: 00007f5749266300 R15: 0000000000022000
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/09 16:38 upstream ba0ad6ed89fd 30aa2a7e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_readlink
2023/05/16 03:55 linux-next 715abedee4cd 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_readlink
* Struck through repros no longer work on HEAD.