syzbot


INFO: rcu detected stall in sys_lsetxattr (3)

Status: auto-obsoleted due to no activity on 2024/12/08 07:26
Subsystems: fs
[Documentation on labels]
First crash: 128d, last: 128d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in sys_lsetxattr 1 1948d 1948d 0/1 auto-closed as invalid on 2020/01/14 07:33
upstream INFO: rcu detected stall in sys_lsetxattr (2) fs 1 223d 223d 0/28 auto-obsoleted due to no activity on 2024/09/04 03:56
upstream INFO: rcu detected stall in sys_lsetxattr fs C done 2 1002d 1002d 22/28 fixed on 2023/02/24 13:51
android-5-15 BUG: soft lockup in sys_lsetxattr 1 164d 164d 0/2 auto-obsoleted due to no activity on 2024/11/02 14:36

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P11/1:b..l P5836/1:b..l P4676/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=28825, q=639 ncpus=2)
task:udevd           state:R  running task     stack:24208 pid:4676  tgid:4676  ppid:1      flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0xe37/0x5490 kernel/sched/core.c:6529
 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:6708
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock_irqrestore+0x61/0x80 kernel/locking/spinlock.c:194
 sock_def_readable+0x160/0x610 net/core/sock.c:3374
 __netlink_sendskb net/netlink/af_netlink.c:1278 [inline]
 netlink_sendskb net/netlink/af_netlink.c:1284 [inline]
 netlink_unicast+0x6f1/0x7f0 net/netlink/af_netlink.c:1372
 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0xab5/0xc90 net/socket.c:2597
 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651
 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f05a5324a4b
RSP: 002b:00007ffe06382418 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00005600319ab240 RCX: 00007f05a5324a4b
RDX: 0000000000000000 RSI: 00007ffe06382428 RDI: 0000000000000004
RBP: 00005600319d3a00 R08: 0000000000000001 R09: 0000000000000000
R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000000
R13: 00000000000000b3 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
task:udevd           state:R  running task     stack:25520 pid:5836  tgid:5836  ppid:4676   flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0xe37/0x5490 kernel/sched/core.c:6529
 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:6851
 irqentry_exit+0x36/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:set_root+0x243/0x610 fs/namei.c:955
Code: ff df 48 8b 45 a8 48 c1 e8 03 66 83 3c 08 00 0f 85 95 03 00 00 48 b9 00 00 00 00 00 fc ff df 48 8b 75 c8 49 8b 87 88 00 00 00 <49> 8b 97 90 00 00 00 48 89 46 20 48 8b 45 b8 48 89 56 28 48 c1 e8
RSP: 0018:ffffc900032278c8 EFLAGS: 00000246
RAX: ffff88801c6f1520 RBX: 0000000000000006 RCX: dffffc0000000000
RDX: ffff888028aa3c00 RSI: ffffc90003227b00 RDI: 0000000000000005
RBP: ffffc90003227950 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000003 R15: ffff88802eb28200
 nd_jump_root+0x3d5/0x580 fs/namei.c:975
 path_init+0x1098/0x1a90 fs/namei.c:2468
 path_lookupat+0x33/0x770 fs/namei.c:2556
 filename_lookup+0x1e5/0x5b0 fs/namei.c:2595
 user_path_at+0x3a/0x60 fs/namei.c:3002
 path_setxattr+0x126/0x280 fs/xattr.c:653
 __do_sys_lsetxattr fs/xattr.c:683 [inline]
 __se_sys_lsetxattr fs/xattr.c:679 [inline]
 __x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:679
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f05a531fc1a
RSP: 002b:00007ffe06381c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f05a531fc1a
RDX: 00005600319e0cc0 RSI: 00007f05a56da638 RDI: 00005600319e1da0
RBP: 00005600319e0cc0 R08: 0000000000000000 R09: 42ac5d6d5363fb3d
R10: 000000000000001f R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000001 R14: 00005600319e1da0 R15: 00005600319faa60
 </TASK>
task:kworker/u8:0    state:R  running task     stack:24016 pid:11    tgid:11    ppid:2      flags:0x00004000
Workqueue: events_unbound toggle_allocation_gate
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0xe37/0x5490 kernel/sched/core.c:6529
 preempt_schedule_common+0x44/0xc0 kernel/sched/core.c:6708
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 __text_poke+0x618/0xca0 arch/x86/kernel/alternative.c:1960
 text_poke_bp_batch+0x3e0/0x760 arch/x86/kernel/alternative.c:2317
 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:2483 [inline]
 text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2493
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x1d7/0x400 kernel/jump_label.c:900
 static_key_disable_cpuslocked+0x158/0x1c0 kernel/jump_label.c:240
 static_key_disable+0x1a/0x20 kernel/jump_label.c:248
 toggle_allocation_gate mm/kfence/core.c:838 [inline]
 toggle_allocation_gate+0x143/0x250 mm/kfence/core.c:825
 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: rcu_preempt kthread starved for 10538 jiffies! g28825 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:26720 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0xe37/0x5490 kernel/sched/core.c:6529
 __schedule_loop kernel/sched/core.c:6606 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6621
 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2581
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2034
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2236
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.11.0-rc6-syzkaller-00363-g89f5e14d05b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:92 [inline]
RIP: 0010:acpi_safe_halt+0x1a/0x20 drivers/acpi/processor_idle.c:112
Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 65 48 8b 05 48 d3 ec 74 48 8b 00 a8 08 75 0c 66 90 0f 00 2d d8 5d a5 00 fb f4 <fa> c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc900001a7d58 EFLAGS: 00000246
RAX: 0000000000004000 RBX: 0000000000000001 RCX: ffffffff8b16ead9
RDX: 0000000000000001 RSI: ffff888022ed0800 RDI: ffff888022ed0864
RBP: ffff888022ed0864 R08: 0000000000000001 R09: ffffed1017126fd9
R10: ffff8880b8937ecb R11: 0000000000000000 R12: ffff888021fe8000
R13: ffffffff8e961fe0 R14: 0000000000000001 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b332f8ff8 CR3: 000000006f302000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 acpi_idle_enter+0xc5/0x160 drivers/acpi/processor_idle.c:702
 cpuidle_enter_state+0x85/0x500 drivers/cpuidle/cpuidle.c:267
 cpuidle_enter+0x4e/0xa0 drivers/cpuidle/cpuidle.c:388
 cpuidle_idle_call kernel/sched/idle.c:230 [inline]
 do_idle+0x313/0x3f0 kernel/sched/idle.c:326
 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:424
 start_secondary+0x220/0x2b0 arch/x86/kernel/smpboot.c:313
 common_startup_64+0x13e/0x148
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/09 07:22 upstream 89f5e14d05b4 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_lsetxattr
* Struck through repros no longer work on HEAD.