f2fs_msg: 1920 callbacks suppressed F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 INFO: task kworker/u4:4:613 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. kworker/u4:4 D26048 613 2 0x80000000 Workqueue: writeback wb_workfn (flush-7:4) Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619 __mutex_lock_common kernel/locking/mutex.c:1016 [inline] __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 f2fs_write_inode+0x500/0x600 fs/f2fs/inode.c:630 F2FS-fs (loop4): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 write_inode fs/fs-writeback.c:1244 [inline] __writeback_single_inode+0x733/0x11d0 fs/fs-writeback.c:1442 writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647 __writeback_inodes_wb+0xc6/0x280 fs/fs-writeback.c:1716 wb_writeback+0x841/0xcc0 fs/fs-writeback.c:1822 wb_check_old_data_flush fs/fs-writeback.c:1924 [inline] wb_do_writeback fs/fs-writeback.c:1977 [inline] wb_workfn+0x8ba/0x1250 fs/fs-writeback.c:2006 audit: type=1804 audit(1676745587.502:3650): pid=8636 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir1088169565/syzkaller.MyGHSX/546/bus" dev="sda1" ino=14865 res=1 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 audit: type=1804 audit(1676745587.532:3651): pid=8638 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir1088169565/syzkaller.MyGHSX/546/bus" dev="sda1" ino=14865 res=1 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 audit: type=1804 audit(1676745587.812:3652): pid=8583 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir4110167518/syzkaller.mE5OSq/592/file0/bus" dev="loop0" ino=10 res=1 Showing all locks held in the system: 3 locks held by kworker/u4:0/7: 4 locks held by kworker/u4:4/613: #0: 000000000737214b ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000029472c5 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 0000000067979b8b (&type->s_umount_key#50){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 audit: type=1804 audit(1676745588.052:3653): pid=8591 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1739868697/syzkaller.wXK9sc/46/bus" dev="sda1" ino=13884 res=1 #3: 00000000233c117f (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 1 lock held by khungtaskd/1568: audit: type=1804 audit(1676745588.092:3654): pid=8600 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir991803198/syzkaller.ODL4Qw/380/file0/bus" dev="loop1" ino=10 res=1 #0: 000000000367eb18 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by systemd-udevd/4695: #0: 0000000014e79993 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 0000000014e79993 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 validate_nla: 1 callbacks suppressed netlink: 'syz-executor.5': attribute type 6 has an invalid length. 1 lock held by in:imklog/7798: #0: 00000000b5b73d13 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 1 lock held by syz-executor.1/8160: #0: 0000000008d45f11 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: 0000000008d45f11 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667 audit: type=1804 audit(1676745588.352:3655): pid=8631 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir2228592014/syzkaller.3UgKUX/1190/file0/bus" dev="loop2" ino=10 res=1 1 lock held by syz-executor.0/10800: #0: 0000000008d45f11 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #0: 0000000008d45f11 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667 3 locks held by syz-executor.4/4651: 2 locks held by kworker/0:2/4736: #0: 000000001bbae1fd ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000887d1a21 ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 6 locks held by syz-executor.2/8631: 1 lock held by syz-executor.5/8655: #0: 000000001f38dc3c (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #0: 000000001f38dc3c (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:598 audit: type=1804 audit(1676745588.492:3656): pid=8591 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir1739868697/syzkaller.wXK9sc/46/bus" dev="sda1" ino=13884 res=1 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1568 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4690 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:lock_acquire+0xa/0x3c0 kernel/locking/lockdep.c:3897 Code: 9f fd ff ff 48 c7 c7 40 f7 36 8d e8 40 0f 4d 00 e9 e3 fc ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df <41> 57 45 89 c7 41 56 41 89 ce 41 55 41 89 d5 41 54 41 89 f4 55 48 RSP: 0018:ffff8880a0d57d28 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff88823b843380 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88813be79b18 RBP: ffff88813be79b00 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: ffff88813be79b00 R13: ffffea0001471808 R14: ffffe8ffffc02d80 R15: ffff88823b843380 FS: 00007fbe7f7ad8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00acef000 CR3: 00000000a0c35000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] cache_grow_end+0x46/0x170 mm/slab.c:2737 cache_alloc_refill+0x2f8/0x340 mm/slab.c:3058 ____cache_alloc mm/slab.c:3132 [inline] __do_cache_alloc mm/slab.c:3354 [inline] slab_alloc mm/slab.c:3389 [inline] kmem_cache_alloc+0x346/0x370 mm/slab.c:3557 getname_flags+0xce/0x590 fs/namei.c:140 do_sys_open+0x26c/0x520 fs/open.c:1079 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fbe7ed3c840 Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 RSP: 002b:00007ffd14ae52c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffd14ae55d0 RCX: 00007fbe7ed3c840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055ff5deb88d0 RBP: 000000000000000d R08: 00000000000001e0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 000055ff5deac040 R14: 00007ffd14ae5590 R15: 000055ff5deb86c0 audit: type=1804 audit(1676745588.532:3657): pid=8591 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.4" name="/root/syzkaller-testdir1739868697/syzkaller.wXK9sc/46/bus" dev="sda1" ino=13884 res=1