NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43524096, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43528192, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43532288, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43536384, inode=0, rec_len=0, name_len=0 INFO: task segctord:3853 blocked for more than 140 seconds. NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43540480, inode=0, rec_len=0, name_len=0 Not tainted 4.19.0-syzkaller #0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43544576, inode=0, rec_len=0, name_len=0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43548672, inode=0, rec_len=0, name_len=0 segctord D15024 3853 2 0x80080000 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43552768, inode=0, rec_len=0, name_len=0 Call Trace: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43556864, inode=0, rec_len=0, name_len=0 context_switch kernel/sched/core.c:2825 [inline] __schedule+0x2f4/0x8d0 kernel/sched/core.c:3473 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43560960, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43565056, inode=0, rec_len=0, name_len=0 schedule+0x31/0x90 kernel/sched/core.c:3517 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43569152, inode=0, rec_len=0, name_len=0 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:566 [inline] rwsem_down_write_failed+0x17c/0x2a0 kernel/locking/rwsem-xadd.c:595 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43573248, inode=0, rec_len=0, name_len=0 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43577344, inode=0, rec_len=0, name_len=0 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x3e/0x60 kernel/locking/rwsem.c:72 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43581440, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43585536, inode=0, rec_len=0, name_len=0 nilfs_transaction_lock+0xb2/0x220 fs/nilfs2/segment.c:362 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43589632, inode=0, rec_len=0, name_len=0 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2479 [inline] nilfs_segctor_thread+0x11f/0x380 fs/nilfs2/segment.c:2563 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43593728, inode=0, rec_len=0, name_len=0 kthread+0x11c/0x140 kernel/kthread.c:246 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43597824, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43601920, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43606016, inode=0, rec_len=0, name_len=0 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:413 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43610112, inode=0, rec_len=0, name_len=0 Showing all locks held in the system: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43614208, inode=0, rec_len=0, name_len=0 1 lock held by khungtaskd/561: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43618304, inode=0, rec_len=0, name_len=0 #0: 0000000035ae3848 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43622400, inode=0, rec_len=0, name_len=0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43626496, inode=0, rec_len=0, name_len=0 ( NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43630592, inode=0, rec_len=0, name_len=0 rcu_read_lock NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43634688, inode=0, rec_len=0, name_len=0 ){....}, at: debug_show_all_locks+0x23/0x10d kernel/locking/lockdep.c:4435 2 locks held by getty/1991: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43638784, inode=0, rec_len=0, name_len=0 #0: 000000000f842417 (&tty->ldisc_sem){....}, at: ldsem_down_read+0xe/0x10 drivers/tty/tty_ldsem.c:353 #1: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43642880, inode=0, rec_len=0, name_len=0 000000006c64e968 (&ldata->atomic_read_lock){....}, at: n_tty_read+0xbc/0x860 drivers/tty/n_tty.c:2140 8 locks held by syz-executor.0/3440: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43646976, inode=0, rec_len=0, name_len=0 1 lock held by segctord/3853: #0: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43651072, inode=0, rec_len=0, name_len=0 0000000094f5aae7 (&nilfs->ns_segctor_sem){....}, at: nilfs_transaction_lock+0xb2/0x220 fs/nilfs2/segment.c:362 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43655168, inode=0, rec_len=0, name_len=0 ============================================= NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43659264, inode=0, rec_len=0, name_len=0 NMI backtrace for cpu 0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43663360, inode=0, rec_len=0, name_len=0 CPU: 0 PID: 561 Comm: khungtaskd Not tainted 4.19.0-syzkaller #0 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43667456, inode=0, rec_len=0, name_len=0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43671552, inode=0, rec_len=0, name_len=0 Call Trace: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43675648, inode=0, rec_len=0, name_len=0 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x89/0xba lib/dump_stack.c:113 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43679744, inode=0, rec_len=0, name_len=0 nmi_cpu_backtrace.cold.0+0x14/0x53 lib/nmi_backtrace.c:101 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43683840, inode=0, rec_len=0, name_len=0 nmi_trigger_cpumask_backtrace+0xc5/0xce lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline] watchdog+0x2c7/0x400 kernel/hung_task.c:265 kthread+0x11c/0x140 kernel/kthread.c:246 NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43687936, inode=0, rec_len=0, name_len=0 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:413 Sending NMI from CPU 0 to CPUs 1: NILFS error (device loop0): nilfs_check_page: bad entry in directory #12: rec_len is smaller than minimal - offset=43692032, inode=0, rec_len=0, name_len=0 NMI backtrace for cpu 1 CPU: 1 PID: 3440 Comm: syz-executor.0 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:io_serial_in+0x13/0x20 drivers/tty/serial/8250/8250_port.c:449 Code: 89 e5 d3 e6 48 63 f6 48 03 77 40 8b 06 5d c3 0f 1f 84 00 00 00 00 00 0f b6 8f e1 00 00 00 55 8b 57 38 48 89 e5 d3 e6 01 f2 ec <0f> b6 c0 5d c3 0f 1f 84 00 00 00 00 00 0f b6 8f e1 00 00 00 89 d0 RSP: 0018:ffffc900018efb10 EFLAGS: 00000006 RAX: ffffffff816ede05 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 00000000000003f9 RSI: 0000000000000001 RDI: ffffffff8428f300 RBP: ffffc900018efb10 R08: 0000000000000008 R09: 00000000a665b761 R10: 0000000000000000 R11: ffff880138ab6770 R12: ffffffff838ee540 R13: 00000000000000ab R14: 0000000000000000 R15: ffffffff8428f300 FS: 00007fb595b8e480(0000) GS:ffff88013bb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb595bb7918 CR3: 00000001334c4000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: serial_port_in include/linux/serial_core.h:268 [inline] serial8250_console_write+0xcb/0x2b0 drivers/tty/serial/8250/8250_port.c:3252 univ8250_console_write+0x1c/0x20 drivers/tty/serial/8250/8250_core.c:590 call_console_drivers kernel/printk/printk.c:1724 [inline] console_unlock kernel/printk/printk.c:2405 [inline] console_unlock+0x3d6/0x5a0 kernel/printk/printk.c:2305 vprintk_emit+0x215/0x2a0 kernel/printk/printk.c:1922 vprintk_default+0x1a/0x20 kernel/printk/printk.c:1963 vprintk_func+0x4c/0xc5 kernel/printk/printk_safe.c:398 printk+0x53/0x6a kernel/printk/printk.c:1996 __nilfs_error+0x7f/0x13f fs/nilfs2/super.c:125 nilfs_check_page fs/nilfs2/dir.c:172 [inline] nilfs_get_page.isra.2+0x16c/0x2c0 fs/nilfs2/dir.c:197 nilfs_empty_dir+0x4b/0x180 fs/nilfs2/dir.c:630 nilfs_rmdir+0x5f/0xe0 fs/nilfs2/namei.c:323 vfs_rmdir fs/namei.c:3880 [inline] vfs_rmdir+0x7d/0x150 fs/namei.c:3859 do_rmdir+0x1b6/0x210 fs/namei.c:3941 __do_sys_unlinkat fs/namei.c:4103 [inline] __se_sys_unlinkat+0x2f/0x40 fs/namei.c:4097 __x64_sys_unlinkat+0x15/0x20 fs/namei.c:4097 do_syscall_64+0x69/0x170 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fb5942446c7 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 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:00007ffc0fb4f3a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000064 RCX: 00007fb5942446c7 RDX: 0000000000000200 RSI: 00007ffc0fb50550 RDI: 00000000ffffff9c RBP: 00007fb594290336 R08: 00007fb595ba78fb R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000246 R12: 00007ffc0fb50550 R13: 00007fb594290336 R14: 00007fb595b8e430 R15: 0000000000000008