syzbot


INFO: rcu detected stall in sys_mkdirat

Status: auto-obsoleted due to no activity on 2024/02/15 18:20
Reported-by: syzbot+aa78190da34ab32c63a9@syzkaller.appspotmail.com
First crash: 305d, last: 305d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_mkdirat ext4 net 3 514d 630d 0/27 auto-obsoleted due to no activity on 2023/07/11 04:05
android-5-15 BUG: soft lockup in sys_mkdirat 8 94d 145d 0/2 auto-obsoleted due to no activity on 2024/09/03 20:00

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 ticks this GP) idle=3dd/1/0x4000000000000002 softirq=7858/7858 fqs=0 
	(detected by 1, t=10502 jiffies, g=9461, q=2264)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4240 Comm: syz-executor.2 Not tainted 5.15.137-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:193
Code: 1f 84 00 00 00 00 00 0f 1f 00 53 48 89 fb e8 17 00 00 00 48 8b 3d 18 6f 63 0c 48 89 de 5b e9 57 de 48 00 cc cc cc cc cc cc cc <48> 8b 04 24 65 48 8b 0d 64 4d 82 7e 65 8b 15 65 4d 82 7e f7 c2 00
RSP: 0018:ffffc90000007230 EFLAGS: 00000083
RAX: 0000000000000002 RBX: ffffc900000072e0 RCX: 0000000000000000
RDX: 0000000000000018 RSI: 0000000000000000 RDI: ffffc900000072f8
RBP: ffffc90000007370 R08: dffffc0000000000 R09: ffffc900000072e0
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000e58
R13: dffffc0000000000 R14: 0000000000000008 R15: ffff88801d22c680
FS:  00007f20873b56c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020030000 CR3: 0000000064a00000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:268
 rcu_read_lock include/linux/rcupdate.h:696 [inline]
 __perf_output_begin kernel/events/ring_buffer.c:163 [inline]
 perf_output_begin_forward+0xb0/0xa80 kernel/events/ring_buffer.c:268
 __perf_event_output kernel/events/core.c:7679 [inline]
 perf_event_output_forward+0x1c8/0x310 kernel/events/core.c:7697
 __perf_event_overflow+0x35d/0x530 kernel/events/core.c:9392
 perf_tp_event+0x363/0xc40 kernel/events/core.c:9924
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9898
 perf_trace_preemptirq_template+0x31d/0x430 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0x10e/0x190 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x57/0x80 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:664
RIP: 0010:rcu_read_unlock_special+0x84/0x520 kernel/rcu/tree_plugin.h:671
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 dd ce 96 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc900000079e0 EFLAGS: 00000206
RAX: f2bb4ad1039b2100 RBX: 1ffff92000000f44 RCX: ffffffff8162ea18
RDX: dffffc0000000000 RSI: ffffffff8a8b0be0 RDI: ffffffff8ad87b40
RBP: ffffc90000007ab8 R08: dffffc0000000000 R09: fffffbfff1f79a3f
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8c923000
R13: ffff888025695d98 R14: ffffc90000007a20 R15: 1ffff92000000f40
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:728 [inline]
 hsr_announce+0x2a9/0x300 net/hsr/hsr_device.c:387
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421
 expire_timers kernel/time/timer.c:1466 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1737
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
 __do_softirq+0x3b3/0x93a kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x91/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:kasan_quarantine_put+0x84/0x220 mm/kasan/quarantine.c:234
Code: e8 21 c4 bc ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 0f 85 83 00 00 00 41 f7 c7 00 02 00 00 74 01 fb 31 c0 <48> 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f c3 48 8d 80 40 56 03 00 45
RSP: 0018:ffffc9000475f908 EFLAGS: 00000206
RAX: f2bb4ad1039b2101 RBX: ffff88807374c000 RCX: ffffffff8162ea18
RDX: dffffc0000000000 RSI: ffffffff8a8b0be0 RDI: ffffffff8ad87b40
RBP: ffffc9000475f9a0 R08: dffffc0000000000 R09: fffffbfff1f79a41
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000475f998
R13: ffff888011c42140 R14: 00000000000b3630 R15: 0000000000000286
 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_number_perm+0x225/0x810 security/tomoyo/file.c:723
 tomoyo_path_mkdir+0xe3/0x120 security/tomoyo/tomoyo.c:166
 security_path_mkdir+0xdc/0x130 security/security.c:1155
 do_mkdirat+0x19f/0x520 fs/namei.c:4014
 __do_sys_mkdirat fs/namei.c:4034 [inline]
 __se_sys_mkdirat fs/namei.c:4032 [inline]
 __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4032
 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:0x7f2088e33ae9
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:00007f20873b50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f2088f52f80 RCX: 00007f2088e33ae9
RDX: 00000000000001ff RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00007f2088e7f47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f2088f52f80 R15: 00007ffc2be08c48
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g9461 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=4856
rcu: rcu_preempt kthread starved for 10502 jiffies! g9461 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:27000 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: 4240 Comm: syz-executor.2 Not tainted 5.15.137-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:217 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x4/0x80 kernel/kcov.c:291
Code: 89 f8 89 f6 48 c7 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 c3 0f 1f 00 4c 8b 04 24 <65> 48 8b 0d 84 49 82 7e 65 8b 05 85 49 82 7e a9 00 01 ff 00 74 10
RSP: 0018:ffffc900000074a0 EFLAGS: 00000046
RAX: 1ffff11003a458ee RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000101 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000100 R08: ffffffff81a1bdc6 R09: ffffed1004ad2b29
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000007580
R13: ffff88801d22c680 R14: 0000000000000001 R15: ffff8880b9a34568
FS:  00007f20873b56c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020030000 CR3: 0000000064a00000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 perf_swevent_event+0xa6/0x550 kernel/events/core.c:9494
 perf_tp_event+0x363/0xc40 kernel/events/core.c:9924
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9898
 perf_trace_preemptirq_template+0x31d/0x430 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0x10e/0x190 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x57/0x80 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:664
RIP: 0010:rcu_read_unlock_special+0x84/0x520 kernel/rcu/tree_plugin.h:671
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 dd ce 96 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc900000079e0 EFLAGS: 00000206
RAX: f2bb4ad1039b2100 RBX: 1ffff92000000f44 RCX: ffffffff8162ea18
RDX: dffffc0000000000 RSI: ffffffff8a8b0be0 RDI: ffffffff8ad87b40
RBP: ffffc90000007ab8 R08: dffffc0000000000 R09: fffffbfff1f79a3f
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8c923000
R13: ffff888025695d98 R14: ffffc90000007a20 R15: 1ffff92000000f40
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:728 [inline]
 hsr_announce+0x2a9/0x300 net/hsr/hsr_device.c:387
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421
 expire_timers kernel/time/timer.c:1466 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1737
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
 __do_softirq+0x3b3/0x93a kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x91/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:kasan_quarantine_put+0x84/0x220 mm/kasan/quarantine.c:234
Code: e8 21 c4 bc ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 0f 85 83 00 00 00 41 f7 c7 00 02 00 00 74 01 fb 31 c0 <48> 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f c3 48 8d 80 40 56 03 00 45
RSP: 0018:ffffc9000475f908 EFLAGS: 00000206
RAX: f2bb4ad1039b2101 RBX: ffff88807374c000 RCX: ffffffff8162ea18
RDX: dffffc0000000000 RSI: ffffffff8a8b0be0 RDI: ffffffff8ad87b40
RBP: ffffc9000475f9a0 R08: dffffc0000000000 R09: fffffbfff1f79a41
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000475f998
R13: ffff888011c42140 R14: 00000000000b3630 R15: 0000000000000286
 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_number_perm+0x225/0x810 security/tomoyo/file.c:723
 tomoyo_path_mkdir+0xe3/0x120 security/tomoyo/tomoyo.c:166
 security_path_mkdir+0xdc/0x130 security/security.c:1155
 do_mkdirat+0x19f/0x520 fs/namei.c:4014
 __do_sys_mkdirat fs/namei.c:4034 [inline]
 __se_sys_mkdirat fs/namei.c:4032 [inline]
 __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4032
 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:0x7f2088e33ae9
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:00007f20873b50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f2088f52f80 RCX: 00007f2088e33ae9
RDX: 00000000000001ff RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00007f2088e7f47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f2088f52f80 R15: 00007ffc2be08c48
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/07 18:19 linux-5.15.y 12952a23a5da 83211397 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_mkdirat
* Struck through repros no longer work on HEAD.