F2FS-fs (loop3): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop3): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop3): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop3): Inconsistent segment (6) type [1, 0] in SSA and SIT INFO: task syz-executor.3:15570 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.3 D29712 15570 8164 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_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] do_last fs/namei.c:3324 [inline] path_openat+0x1071/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb924b4e0d9 Code: Bad RIP value. RSP: 002b:00007fb91ec9f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fb924c6e050 RCX: 00007fb924b4e0d9 RDX: 0000000000000000 RSI: 0000000000042542 RDI: 0000000020002000 RBP: 00007fb924ba9ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4536c09f R14: 00007fb91ec9f300 R15: 0000000000022000 INFO: task syz-executor.3:15572 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.3 D29744 15572 8164 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_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write_nested+0x51/0x90 kernel/locking/rwsem.c:194 inode_lock_nested include/linux/fs.h:783 [inline] do_unlinkat+0x27d/0x660 fs/namei.c:4051 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb924b4e0d9 Code: Bad RIP value. RSP: 002b:00007fb91ec7e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb924c6e120 RCX: 00007fb924b4e0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00007fb924ba9ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4536c09f R14: 00007fb91ec7e300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1571: #0: 000000000eb1f948 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7789: #0: 000000008f92b88f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 4 locks held by kworker/u4:7/9359: #0: 00000000a44e07ba ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 0000000038a32e7c ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 #3: 0000000024b109f3 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 5 locks held by syz-executor.3/15482: 2 locks held by syz-executor.3/15570: #0: 000000005052b196 (sb_writers#22){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000005052b196 (sb_writers#22){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000001004d1e6 (&type->i_mutex_dir_key#11){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000001004d1e6 (&type->i_mutex_dir_key#11){++++}, at: do_last fs/namei.c:3324 [inline] #1: 000000001004d1e6 (&type->i_mutex_dir_key#11){++++}, at: path_openat+0x1071/0x2df0 fs/namei.c:3537 2 locks held by syz-executor.3/15572: #0: 000000005052b196 (sb_writers#22){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000005052b196 (sb_writers#22){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000001004d1e6 (&type->i_mutex_dir_key#11/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline] #1: 000000001004d1e6 (&type->i_mutex_dir_key#11/1){+.+.}, at: do_unlinkat+0x27d/0x660 fs/namei.c:4051 2 locks held by syz-executor.1/16364: #0: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.1/16369: #0: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.1/16851: #0: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.1/16853: #0: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.1/16854: #0: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 2 locks held by syz-executor.1/16855: #0: 0000000043a6f1dd (&type->s_umount_key#70){++++}, at: iterate_supers+0xdb/0x290 fs/super.c:631 #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline] #1: 0000000090ec2e17 (&bdi->wb_switch_rwsem){+.+.}, at: sync_inodes_sb+0x180/0x9a0 fs/fs-writeback.c:2457 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1571 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: 15482 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:23 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:67 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0xd/0x50 kernel/kcov.c:101 Code: ff 4c 89 ef e8 04 dd 35 00 e9 23 fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 34 24 65 48 8b 04 25 c0 df 01 00 <65> 8b 15 cc 59 9f 7e 81 e2 00 01 1f 00 75 2b 8b 90 60 13 00 00 83 RSP: 0018:ffff888037e8f2e0 EFLAGS: 00000246 RAX: ffff8880b3b883c0 RBX: 000000000002be80 RCX: 0000000000000000 RDX: 1ffff110167712bf RSI: ffffffff83772075 RDI: ffffffff89f88650 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffed101742455a R10: ffff8880ba122ad3 R11: 0000000000000000 R12: ffffffff89f88280 R13: dffffc0000000000 R14: ffff8880465f0a58 R15: dffffc0000000000 FS: 00007fb9230c0700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f720cd7f000 CR3: 000000009e70c000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: debug_smp_processor_id+0x5/0x20 lib/smp_processor_id.c:56 rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1078 [inline] rcu_lockdep_current_cpu_online+0xb2/0x1b0 kernel/rcu/tree.c:1068 rcu_read_lock_held+0xc3/0x110 kernel/rcu/update.c:285 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_create+0x44d/0x930 fs/f2fs/namei.c:307 lookup_open+0x893/0x1a20 fs/namei.c:3235 do_last fs/namei.c:3327 [inline] path_openat+0x1094/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb924b4e0d9 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:00007fb9230c0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fb924c6df80 RCX: 00007fb924b4e0d9 RDX: 0000000000000000 RSI: 0000000000143142 RDI: 0000000020002000 RBP: 00007fb924ba9ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4536c09f R14: 00007fb9230c0300 R15: 0000000000022000