F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT INFO: task syz-executor.5:16725 blocked for more than 140 seconds. F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT Not tainted 4.19.211-syzkaller #0 F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. F2FS-fs (loop5): Inconsistent segment (6) type [1, 0] in SSA and SIT syz-executor.5 D29008 16725 8158 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x44/0x80 kernel/locking/rwsem.c:26 inode_lock_shared include/linux/fs.h:758 [inline] lookup_slow fs/namei.c:1688 [inline] walk_component+0x798/0xda0 fs/namei.c:1811 lookup_last fs/namei.c:2274 [inline] path_lookupat+0x1ff/0x8d0 fs/namei.c:2319 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path include/linux/namei.h:62 [inline] do_mount+0x147/0x2f50 fs/namespace.c:2762 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff3c66fb0a9 Code: Bad RIP value. RSP: 002b:00007ff3c084c168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff3c681b050 RCX: 00007ff3c66fb0a9 RDX: 0000000020000040 RSI: 0000000020000180 RDI: 0000000000000000 RBP: 00007ff3c6756ae9 R08: 0000000020000300 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe0c5acf5f R14: 00007ff3c084c300 R15: 0000000000022000 INFO: task syz-executor.5:16726 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D29552 16726 8158 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x44/0x80 kernel/locking/rwsem.c:26 inode_lock_shared include/linux/fs.h:758 [inline] lookup_slow fs/namei.c:1688 [inline] walk_component+0x798/0xda0 fs/namei.c:1811 lookup_last fs/namei.c:2274 [inline] path_lookupat+0x1ff/0x8d0 fs/namei.c:2319 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path include/linux/namei.h:62 [inline] do_mount+0x147/0x2f50 fs/namespace.c:2762 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff3c66fb0a9 Code: Bad RIP value. RSP: 002b:00007ff3c082b168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff3c681b120 RCX: 00007ff3c66fb0a9 RDX: 0000000020002000 RSI: 00000000200042c0 RDI: 0000000000000000 RBP: 00007ff3c6756ae9 R08: 0000000020000fc0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe0c5acf5f R14: 00007ff3c082b300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1569: #0: 0000000079801956 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7812: #0: 00000000c5cc7ec0 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by agetty/8048: #0: 000000000993c662 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272 #1: 00000000bdd322b0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154 4 locks held by kworker/u4:8/14650: #0: 000000006c9ba31f ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 000000003706e5c9 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 000000002234e564 (&type->s_umount_key#91){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 #3: 00000000d7efbf28 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 3 locks held by syz-executor.5/16636: 1 lock held by syz-executor.5/16725: #0: 000000003bc4c323 (&type->i_mutex_dir_key#18){++++}, at: inode_lock_shared include/linux/fs.h:758 [inline] #0: 000000003bc4c323 (&type->i_mutex_dir_key#18){++++}, at: lookup_slow fs/namei.c:1688 [inline] #0: 000000003bc4c323 (&type->i_mutex_dir_key#18){++++}, at: walk_component+0x798/0xda0 fs/namei.c:1811 1 lock held by syz-executor.5/16726: #0: 000000003bc4c323 (&type->i_mutex_dir_key#18){++++}, at: inode_lock_shared include/linux/fs.h:758 [inline] #0: 000000003bc4c323 (&type->i_mutex_dir_key#18){++++}, at: lookup_slow fs/namei.c:1688 [inline] #0: 000000003bc4c323 (&type->i_mutex_dir_key#18){++++}, at: walk_component+0x798/0xda0 fs/namei.c:1811 2 locks held by syz-executor.4/17977: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/17995: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18004: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18008: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18010: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18019: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18574: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18575: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18576: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18577: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18578: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.4/18579: #0: 000000002234e564 (&type->s_umount_key#91){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 00000000aae4cf9f (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1569 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 16636 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:lock_is_held_type+0x161/0x210 kernel/locking/lockdep.c:3948 Code: f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 6f 48 c7 c0 88 82 f1 89 48 ba 00 00 00 00 00 fc ff df c7 85 84 08 00 00 00 00 00 00 <48> c1 e8 03 80 3c 10 00 75 63 48 83 3d 45 cc a6 08 00 74 2c 48 89 RSP: 0018:ffff8880358375f0 EFLAGS: 00000046 RAX: ffffffff89f18288 RBX: 0000000000000286 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: ffff888039c36b04 RBP: ffff888039c36280 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff88808acf1398 R15: dffffc0000000000 FS: 00007ff3c4c6d700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f695a072000 CR3: 00000000b0107000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: radix_tree_deref_slot include/linux/radix-tree.h:241 [inline] find_get_entry+0x543/0x8a0 mm/filemap.c:1456 pagecache_get_page+0x56/0xd50 mm/filemap.c:1564 find_get_page include/linux/pagemap.h:272 [inline] do_garbage_collect fs/f2fs/gc.c:1081 [inline] f2fs_gc+0x973/0x8c90 fs/f2fs/gc.c:1196 f2fs_balance_fs+0x71a/0xd80 fs/f2fs/segment.c:513 f2fs_mknod+0x3be/0x4f0 fs/f2fs/namei.c:726 vfs_mknod+0x4f6/0x860 fs/namei.c:3721 unix_mknod net/unix/af_unix.c:1019 [inline] unix_bind+0x76a/0xa40 net/unix/af_unix.c:1060 __sys_bind+0x1e9/0x250 net/socket.c:1594 __do_sys_bind net/socket.c:1605 [inline] __se_sys_bind net/socket.c:1603 [inline] __x64_sys_bind+0x6f/0xb0 net/socket.c:1603 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff3c66fb0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff3c4c6d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007ff3c681af80 RCX: 00007ff3c66fb0a9 RDX: 0000000000000056 RSI: 00000000200001c0 RDI: 0000000000000004 RBP: 00007ff3c6756ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe0c5acf5f R14: 00007ff3c4c6d300 R15: 0000000000022000