syzbot


INFO: task hung in do_renameat2

Status: auto-obsoleted due to no activity on 2023/12/04 15:30
Subsystems: f2fs
[Documentation on labels]
First crash: 545d, last: 511d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in do_renameat2 (2) jfs 184 9d02h 267d 0/28 upstream: reported on 2024/05/06 01:51
linux-5.15 INFO: task hung in do_renameat2 origin:lts-only C done 6 22d 260d 0/3 upstream: reported C repro on 2024/05/13 23:09
linux-6.1 INFO: task hung in do_renameat2 1 364d 364d 0/3 auto-obsoleted due to no activity on 2024/05/09 03:01
linux-6.1 INFO: task hung in do_renameat2 (2) 1 259d 259d 0/3 auto-obsoleted due to no activity on 2024/08/22 17:29

Sample crash report:
INFO: task syz-executor.5:7621 blocked for more than 143 seconds.
      Not tainted 6.5.0-syzkaller-11704-g3f86ed6ec0b3 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:27624 pid:7621  ppid:5074   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x1873/0x48f0 kernel/sched/core.c:6695
 schedule+0xc3/0x180 kernel/sched/core.c:6771
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock_nested include/linux/fs.h:837 [inline]
 lock_rename fs/namei.c:3045 [inline]
 do_renameat2+0x615/0x1660 fs/namei.c:4951
 __do_sys_rename fs/namei.c:5058 [inline]
 __se_sys_rename fs/namei.c:5056 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:5056
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff707c7cae9
RSP: 002b:00007ff708a3e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007ff707d9c050 RCX: 00007ff707c7cae9
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 00000000200003c0
RBP: 00007ff707cc847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007ff707d9c050 R15: 00007ffd47d2e168
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.5.0-syzkaller-11704-g3f86ed6ec0b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xdf5/0xe40 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7679 Comm: syz-executor.3 Not tainted 6.5.0-syzkaller-11704-g3f86ed6ec0b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__sanitizer_cov_trace_pc+0x45/0x60 kernel/kcov.c:212
Code: ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 16 00 00 00 74 2c 8b 91 e0 15 00 00 83 fa 02 75 21 48 8b 91 e8 15 00 00 48 8b 32 <48> 8d 7e 01 8b 89 e4 15 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2
RSP: 0000:ffffc90016276438 EFLAGS: 00000246
RAX: ffffffff813d86e3 RBX: ffffffff8ea976bc RCX: ffff88801d3cbb80
RDX: ffffc9000cc71000 RSI: 000000000003ffff RDI: ffffffff813db1f0
RBP: ffffffff813db1f0 R08: ffffffff813d86a5 R09: 0000000000000000
R10: ffffc90016276580 R11: fffff52002c4ecbc R12: ffffffff8ea976bc
R13: ffffffff8ea976c0 R14: ffffffff813db3ab R15: ffffffff8ea976bc
FS:  00007f317faf46c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7da6977978 CR3: 00000000219d8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __orc_find arch/x86/kernel/unwind_orc.c:99 [inline]
 orc_find arch/x86/kernel/unwind_orc.c:227 [inline]
 unwind_next_frame+0x553/0x29e0 arch/x86/kernel/unwind_orc.c:494
 __unwind_start+0x641/0x7a0 arch/x86/kernel/unwind_orc.c:760
 unwind_start arch/x86/include/asm/unwind.h:64 [inline]
 arch_stack_walk+0xfd/0x1a0 arch/x86/kernel/stacktrace.c:24
 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4f/0x70 mm/kasan/common.c:52
 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:186 [inline]
 slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762
 slab_alloc_node mm/slub.c:3478 [inline]
 slab_alloc mm/slub.c:3486 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3493 [inline]
 kmem_cache_alloc+0x123/0x300 mm/slub.c:3502
 mempool_alloc+0x194/0x580 mm/mempool.c:398
 bio_alloc_bioset+0x26b/0x13f0 block/bio.c:543
 f2fs_grab_read_bio+0x296/0x700 fs/f2fs/data.c:1116
 f2fs_submit_page_read+0xac/0x190 fs/f2fs/data.c:1161
 f2fs_get_read_data_page+0x50e/0x850 fs/f2fs/data.c:1348
 gc_data_segment fs/f2fs/gc.c:1598 [inline]
 do_garbage_collect+0x4818/0x8130 fs/f2fs/gc.c:1766
 f2fs_gc+0xeff/0x3160 fs/f2fs/gc.c:1869
 f2fs_balance_fs+0x549/0x730 fs/f2fs/segment.c:439
 f2fs_create+0x44e/0x530 fs/f2fs/namei.c:389
 lookup_open fs/namei.c:3495 [inline]
 open_last_lookups fs/namei.c:3563 [inline]
 path_openat+0x13e7/0x3180 fs/namei.c:3793
 do_filp_open+0x234/0x490 fs/namei.c:3823
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_openat fs/open.c:1453 [inline]
 __se_sys_openat fs/open.c:1448 [inline]
 __x64_sys_openat+0x247/0x290 fs/open.c:1448
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f317ee7cae9
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:00007f317faf40c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f317ef9bf80 RCX: 00007f317ee7cae9
RDX: 0000000000141842 RSI: 0000000020000100 RDI: ffffffffffffff9c
RBP: 00007f317eec847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f317ef9bf80 R15: 00007ffea8da13e8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/05 15:25 upstream 3f86ed6ec0b3 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in do_renameat2
2023/08/02 06:15 upstream 5d0c230f1de8 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in do_renameat2
* Struck through repros no longer work on HEAD.