[v5.15] INFO: rcu detected stall in sys_rename

1 view
Skip to first unread message

syzbot

unread,
Oct 6, 2023, 1:36:00 PM10/6/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1edcec18cfb7 Linux 5.15.134
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1573a9f1680000
kernel config: https://syzkaller.appspot.com/x/.config?x=48b4459c94d40a13
dashboard link: https://syzkaller.appspot.com/bug?extid=58589a24d1983c25e388
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e1026cce7395/disk-1edcec18.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0a562b315d9c/vmlinux-1edcec18.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5a8a2cdde6e6/bzImage-1edcec18.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+58589a...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P14486/1:b..l
(detected by 1, t=10502 jiffies, g=80089, q=95)
task:udevd state:R running task stack:25336 pid:14486 ppid: 2966 flags:0x00004002
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6372
preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6776
irqentry_exit+0x53/0x80 kernel/entry/common.c:426
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__preempt_count_add arch/x86/include/asm/preempt.h:80 [inline]
RIP: 0010:rcu_is_watching+0x5/0xa0 kernel/rcu/tree.c:1121
Code: 41 5e 41 5f 5d c3 e8 2a 73 b1 08 41 f7 c4 00 02 00 00 75 b4 eb b3 e8 0a 73 b1 08 66 2e 0f 1f 84 00 00 00 00 00 41 57 41 56 53 <65> ff 05 2c 8a 97 7e e8 bf 86 b1 08 89 c3 83 f8 08 73 72 49 bf 00
RSP: 0018:ffffc9000503f440 EFLAGS: 00000257
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81627ccc
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8de414a8
RBP: ffffc9000503f5c0 R08: dffffc0000000000 R09: fffffbfff1bc8296
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000a07e94
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
trace_lock_acquire include/trace/events/lock.h:13 [inline]
lock_acquire+0xdd/0x4f0 kernel/locking/lockdep.c:5593
rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269
rcu_read_lock include/linux/rcupdate.h:696 [inline]
find_lock_entries+0x195/0x1030 mm/filemap.c:2091
shmem_undo_range+0x2a3/0x1b50 mm/shmem.c:943
shmem_truncate_range mm/shmem.c:1063 [inline]
shmem_evict_inode+0x21b/0xa00 mm/shmem.c:1145
evict+0x2a4/0x620 fs/inode.c:587
__dentry_kill+0x436/0x650 fs/dcache.c:582
dentry_kill+0xbb/0x290
dput+0x1f1/0x420 fs/dcache.c:888
do_renameat2+0xba4/0x13b0 fs/namei.c:4894
__do_sys_rename fs/namei.c:4938 [inline]
__se_sys_rename fs/namei.c:4936 [inline]
__x64_sys_rename+0x82/0x90 fs/namei.c:4936
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f86542de93b
RSP: 002b:00007ffdc3029438 EFLAGS: 00000202 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00005610bde24101 RCX: 00007f86542de93b
RDX: 00005615de1ce5dc RSI: 00007ffdc3029458 RDI: 00007ffdc3029858
RBP: 00005610bf174e90 R08: 0000000000000006 R09: 912fc75bfbcf7689
R10: 000000000000010f R11: 0000000000000202 R12: 00005610bf17ccc0
R13: 00007ffdc3029458 R14: 00007ffdc3029858 R15: 00005610bde0eec8
</TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10498 jiffies! g80089 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: Possible timer handling issue on cpu=0 timer-softirq=68046
rcu: rcu_preempt kthread starved for 10499 jiffies! g80089 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:26200 pid: 15 ppid: 2 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5026 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6372
schedule+0x11b/0x1f0 kernel/sched/core.c:6455
schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
rcu_gp_fqs_loop+0x2af/0xf70 kernel/rcu/tree.c:1959
rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2132
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
</TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 14705 Comm: syz-executor.3 Not tainted 5.15.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:__preempt_count_add kernel/rcu/tree.c:1118 [inline]
RIP: 0010:rcu_is_watching+0x4/0xa0 kernel/rcu/tree.c:1121
Code: 5d 41 5e 41 5f 5d c3 e8 2a 73 b1 08 41 f7 c4 00 02 00 00 75 b4 eb b3 e8 0a 73 b1 08 66 2e 0f 1f 84 00 00 00 00 00 41 57 41 56 <53> 65 ff 05 2c 8a 97 7e e8 bf 86 b1 08 89 c3 83 f8 08 73 72 49 bf
RSP: 0018:ffffc90000007d28 EFLAGS: 00000002
RAX: 0000000000010002 RBX: 0000000000000001 RCX: ffffffff816f6519
RDX: ffff888022b43b80 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000007e01 R08: ffffffff816f6541 R09: fffffbfff1bc8296
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9a2a200
R13: ffff8880b9a2a300 R14: ffff88801f67fb40 R15: dffffc0000000000
FS: 00007f27680646c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f71b54c4000 CR3: 000000003b9f4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
trace_hrtimer_cancel include/trace/events/timer.h:294 [inline]
debug_deactivate+0x8b/0x1e0 kernel/time/hrtimer.c:482
__run_hrtimer kernel/time/hrtimer.c:1653 [inline]
__hrtimer_run_queues+0x31d/0xcf0 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
__sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:finish_lock_switch+0x91/0x100 kernel/sched/core.c:4781
Code: 45 31 c9 68 97 61 59 81 e8 4c 1a 09 00 48 83 c4 08 4c 89 ff e8 b0 da fe ff 66 90 4c 89 ff e8 a6 76 cc 08 e8 e1 40 2d 00 fb 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 87
RSP: 0018:ffffc90004317998 EFLAGS: 00000286
RAX: 013410459deb4a00 RBX: ffff888016c99df4 RCX: ffffffff913d1003
RDX: dffffc0000000000 RSI: ffffffff8a8b0b60 RDI: ffffffff8ad87980
RBP: ffffc90004317a10 R08: ffffffff8186a2e0 R09: ffffed10173472e1
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff1101734748b R14: ffff8880b9a3a458 R15: ffff8880b9a39700
finish_task_switch+0x134/0x630 kernel/sched/core.c:4898
context_switch kernel/sched/core.c:5029 [inline]
__schedule+0x12cc/0x45b0 kernel/sched/core.c:6372
preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6548
preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6573
preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34
__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
_raw_spin_unlock_irq+0x3c/0x40 kernel/locking/spinlock.c:202
spin_unlock_irq include/linux/spinlock.h:413 [inline]
do_timerfd_settime+0xd1a/0x1000 fs/timerfd.c:521
__do_sys_timerfd_settime fs/timerfd.c:567 [inline]
__se_sys_timerfd_settime fs/timerfd.c:558 [inline]
__x64_sys_timerfd_settime+0x16b/0x220 fs/timerfd.c:558
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f2769b03ae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f27680640c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007f2769c23050 RCX: 00007f2769b03ae9
RDX: 0000000020000440 RSI: 0000000000000003 RDI: 000000000000000a
RBP: 00007f2769b4f47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f2769c23050 R15: 00007ffc808395d8
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jan 14, 2024, 12:35:16 PMJan 14
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages