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

0 views
Skip to first unread message

syzbot

unread,
Apr 7, 2024, 8:26:26 PMApr 7
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9465fef4ae35 Linux 5.15.153
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16b6eda9180000
kernel config: https://syzkaller.appspot.com/x/.config?x=176c746ee3348b33
dashboard link: https://syzkaller.appspot.com/bug?extid=b4da8777e5518ae24a0d
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/2962c02652ce/disk-9465fef4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d0f5a1ce082d/vmlinux-9465fef4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/86b5b1eea636/bzImage-9465fef4.xz

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

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
(detected by 1, t=10502 jiffies, g=12613, q=39)
rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4294957270-4294946768), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g12613 f0x2 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:27000 pid: 15 ppid: 2 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5030 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
schedule+0x11b/0x1f0 kernel/sched/core.c:6459
schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
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: 2962 Comm: udevd Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__rb_erase_augmented include/linux/rbtree_augmented.h:216 [inline]
RIP: 0010:rb_erase+0x157/0xe20 lib/rbtree.c:443
Code: 08 4c 89 f7 e8 aa 51 9e fd 4c 8d 6d 08 48 39 5d 10 4d 0f 44 ee 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 4c 89 ef e8 ff 51 9e fd 4d 89 65 00 4d 85 e4 0f 84 22 08 00
RSP: 0018:ffffc90000007cc8 EFLAGS: 00000046
RAX: 1ffff1101734546a RBX: ffff88807e8c9340 RCX: dffffc0000000000
RDX: 0000000000010001 RSI: ffff8880b9a2a350 RDI: ffff88807e8c9348
RBP: 0000000000000000 R08: ffffffff842c5024 R09: fffffbfff1bc72a6
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff8880b9a2a350 R14: 0000000000000000 R15: 0000000000000001
FS: 00007f12e9d50c80(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb37d5826c6 CR3: 0000000021e62000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
rb_erase_cached include/linux/rbtree.h:126 [inline]
timerqueue_del+0xa8/0xf0 lib/timerqueue.c:57
__remove_hrtimer kernel/time/hrtimer.c:1117 [inline]
__run_hrtimer kernel/time/hrtimer.c:1666 [inline]
__hrtimer_run_queues+0x3e9/0xcf0 kernel/time/hrtimer.c:1750
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
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:__rcu_read_lock+0x3/0xb0 kernel/rcu/tree_plugin.h:397
Code: 44 89 f1 80 e1 07 38 c1 0f 8c 2a fd ff ff 4c 89 f7 e8 91 53 5e 00 e9 1d fd ff ff e8 b7 53 b0 08 0f 1f 80 00 00 00 00 55 41 57 <41> 56 53 49 be 00 00 00 00 00 fc ff df 65 4c 8b 3d 68 ca 96 7e 49
RSP: 0018:ffffc900020d7408 EFLAGS: 00000293
RAX: ffffffff818cd873 RBX: 00007f12e9e7b5f4 RCX: ffff88807de25940
RDX: 0000000000000000 RSI: ffffffff8ad88fa0 RDI: 00007f12e9e7b5f4
RBP: 0000000000007501 R08: ffffc900020d7f58 R09: ffffc900020d7590
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807de25940
R13: ffffffff816dd330 R14: 00007f12e9e7b5f4 R15: 1ffff9200041ae9d
rcu_read_lock include/linux/rcupdate.h:737 [inline]
is_bpf_text_address+0x18/0x260 kernel/bpf/core.c:721
kernel_text_address kernel/extable.c:151 [inline]
__kernel_text_address+0x94/0x100 kernel/extable.c:105
unwind_get_return_address+0x49/0x80 arch/x86/kernel/unwind_orc.c:323
arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kfree+0xf1/0x270 mm/slub.c:4559
tomoyo_realpath_from_path+0x5ad/0x5e0 security/tomoyo/realpath.c:291
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x273/0x6b0 security/tomoyo/file.c:822
security_inode_getattr+0xcf/0x120 security/security.c:1348
vfs_getattr+0x26/0x360 fs/stat.c:157
vfs_statx+0x18f/0x3b0 fs/stat.c:225
vfs_fstatat fs/stat.c:243 [inline]
__do_sys_newfstatat fs/stat.c:411 [inline]
__se_sys_newfstatat fs/stat.c:405 [inline]
__x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405
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:0x7f12e9e7b5f4
Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8
RSP: 002b:00007fff65089fb8 EFLAGS: 00000202 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00005559f29d7640 RCX: 00007f12e9e7b5f4
RDX: 00007fff65089fd0 RSI: 00007f12e9f18130 RDI: 000000000000000d
RBP: 00005559f29e5d50 R08: 0000000000090800 R09: 00005559f29c7520
R10: 0000000000001000 R11: 0000000000000202 R12: 00007fff65089fd0
R13: 00000000000000ff R14: 00005559f0d891c4 R15: 0000000000000000
</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 report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages