syzbot


INFO: rcu detected stall in lock_is_held_type

Status: upstream: reported on 2024/07/17 06:08
Reported-by: syzbot+dfdf67a933ee36a90ece@syzkaller.appspotmail.com
First crash: 92d, last: 92d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in lock_is_held_type (2) kernel 4 1373d 1414d 0/28 auto-closed as invalid on 2021/04/13 14:40
linux-4.19 INFO: rcu detected stall in lock_is_held_type 2 1662d 1738d 0/1 auto-closed as invalid on 2020/07/28 13:19
upstream INFO: rcu detected stall in lock_is_held_type (4) mm 1 584d 584d 0/28 auto-obsoleted due to no activity on 2023/06/11 21:13
linux-4.14 INFO: rcu detected stall in lock_is_held_type 1 1484d 1484d 0/1 auto-closed as invalid on 2021/01/22 12:51
upstream INFO: rcu detected stall in lock_is_held_type tomoyo 2 1728d 1762d 0/28 auto-closed as invalid on 2020/04/23 13:55
upstream INFO: rcu detected stall in lock_is_held_type (3) wireless 1 1174d 1174d 0/28 auto-closed as invalid on 2021/10/29 13:54
linux-4.19 BUG: soft lockup in lock_is_held_type 3 782d 877d 0/1 auto-obsoleted due to no activity on 2022/12/25 06:00
linux-4.19 BUG: soft lockup in lock_is_held_type (2) 1 656d 656d 0/1 upstream: reported on 2022/12/31 04:23
linux-4.14 BUG: soft lockup in lock_is_held_type 1 934d 934d 0/1 auto-closed as invalid on 2022/07/26 21:52

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=a98c/1/0x4000000000000000 softirq=10879/10879 fqs=4
	(detected by 1, t=10506 jiffies, g=11217, q=175 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3002 Comm: udevd Not tainted 6.1.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0xc/0x12
Code: 56 57 41 50 41 51 41 52 41 53 e8 cf 0a 00 00 41 5b 41 5a 41 59 41 58 5f 5e 5a 59 c3 66 90 52 b8 01 00 00 00 31 d2 f0 0f b0 17 <3c> 01 75 02 5a c3 56 0f b6 f0 e8 c5 ff ff ff 5e 5a c3 66 90 55 48
RSP: 0018:ffffc90000007c40 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 1ffff1100305925e RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880182c92e8
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffed100305925e
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100305925f
R13: ffff8880182c92f8 R14: ffff8880182c92f0 R15: ffff8880182c92e8
FS:  00007fb1cfea3c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3190bff8 CR3: 0000000027e64000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:596 [inline]
 queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline]
 do_raw_spin_unlock+0x137/0x8a0 kernel/locking/spinlock_debug.c:141
 __raw_spin_unlock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_unlock+0x1a/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 advance_sched+0x68b/0x970 net/sched/sch_taprio.c:749
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/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:lock_is_held_type+0x144/0x180 kernel/locking/lockdep.c:5710
Code: 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 48 3b 44 24 08 75 3c 89 e8 48 83 c4 10 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 48 c7 c7 40 02 ec 8a e8 b3
RSP: 0018:ffffc900031bfb68 EFLAGS: 00000282
RAX: 0000000000000000 RBX: ffff88807b4a0000 RCX: ffff88807b4a0000
RDX: 0000000000000000 RSI: ffffffff8aec13c0 RDI: ffffffff8b3d47e0
RBP: 0000000000000000 R08: ffffffff81cdd5bc R09: fffff940002c3a81
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: ffff88807b4a0000 R14: 00000000ffffffff R15: ffffffff8d12ad60
 lock_is_held include/linux/lockdep.h:283 [inline]
 __might_resched+0xa1/0x780 kernel/sched/core.c:9904
 __might_fault+0x69/0x110 mm/memory.c:5832
 _copy_to_user+0x26/0x130 lib/usercopy.c:36
 copy_to_user include/linux/uaccess.h:169 [inline]
 readlink_copy fs/namei.c:5088 [inline]
 vfs_readlink+0x1de/0x400 fs/namei.c:5129
 do_readlinkat+0x27f/0x3a0 fs/stat.c:480
 __do_sys_readlink fs/stat.c:501 [inline]
 __se_sys_readlink fs/stat.c:498 [inline]
 __x64_sys_readlink+0x7b/0x90 fs/stat.c:498
 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:0x7fb1cfb17d47
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:00007ffc221a31d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 00007ffc221a31e8 RCX: 00007fb1cfb17d47
RDX: 0000000000000400 RSI: 00007ffc221a31e8 RDI: 00007ffc221a36c8
RBP: 0000000000000400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc221a36c8
R13: 00007ffc221a3638 R14: 000055b762b01910 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 10485 jiffies! g11217 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:25816 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 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: 4590 Comm: syz.0.302 Not tainted 6.1.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fb0/0x3460 kernel/smp.c:998
Code: 2f 44 89 ee 83 e6 01 31 ff e8 2c 43 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 b7 3f 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc90015b77640 EFLAGS: 00000246
RAX: ffffffff817f56bb RBX: 1ffff1101730859d RCX: 0000000000040000
RDX: ffffc90004cca000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90015b77a08 R08: ffffffff817f5684 R09: fffffbfff2093869
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b9842ce8
FS:  00007f08ebd0f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f08eaf58c20 CR3: 000000005dc5e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
 kill_bdev block/bdev.c:75 [inline]
 set_blocksize+0x2cd/0x350 block/bdev.c:152
 sb_set_blocksize+0x45/0xe0 block/bdev.c:161
 ntfs_init_from_boot fs/ntfs3/super.c:854 [inline]
 ntfs_fill_super+0x17fb/0x4410 fs/ntfs3/super.c:935
 get_tree_bdev+0x3fe/0x620 fs/super.c:1355
 vfs_get_tree+0x88/0x270 fs/super.c:1562
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3051
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3579
 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:0x7f08eaf7711a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f08ebd0ee78 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f08ebd0ef00 RCX: 00007f08eaf7711a
RDX: 0000000020000000 RSI: 0000000020000080 RDI: 00007f08ebd0eec0
RBP: 0000000020000000 R08: 00007f08ebd0ef00 R09: 000000000100c040
R10: 000000000100c040 R11: 0000000000000206 R12: 0000000020000080
R13: 00007f08ebd0eec0 R14: 000000000001f789 R15: 000000002001fa80
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/17 06:07 linux-6.1.y cac15753b8ce 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in lock_is_held_type
* Struck through repros no longer work on HEAD.