audit: type=1804 audit(1677870680.012:310): pid=16618 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir1801944516/syzkaller.XStWTK/58/bus" dev="sda1" ino=14559 res=1 INFO: task syz-executor.5:12824 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 f2fs_msg: 743 callbacks suppressed F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. netlink: 'syz-executor.5': attribute type 4 has an invalid length. syz-executor.5 D24208 12824 8138 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 netlink: 'syz-executor.5': attribute type 4 has an invalid length. 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] process_measurement+0x926/0x1440 security/integrity/ima/ima_main.c:205 ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391 do_last fs/namei.c:3425 [inline] path_openat+0x7e4/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 netlink: 'syz-executor.5': attribute type 4 has an invalid length. F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. do_sys_open+0x3b3/0x520 fs/open.c:1085 device team0 entered promiscuous mode device team_slave_0 entered promiscuous mode F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 device team_slave_1 entered promiscuous mode kauditd_printk_skb: 59 callbacks suppressed audit: type=1800 audit(1677870682.882:370): pid=16690 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14559 res=0 F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 entry_SYSCALL_64_after_hwframe+0x49/0xbe F2FS-fs (loop5): sanity_check_inode: inode (ino=8) has corrupted i_extra_isize: 36, max: 24 RIP: 0033:0x7f157b3770f9 Code: Bad RIP value. RSP: 002b:00007f15754c8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 IPVS: ftp: loaded support on port[0] = 21 RAX: ffffffffffffffda RBX: 00007f157b497050 RCX: 00007f157b3770f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 audit: type=1800 audit(1677870683.592:371): pid=16691 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.4" name="bus" dev="sda1" ino=14573 res=0 RBP: 00007f157b3d2ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1706998f R14: 00007f15754c8300 R15: 0000000000022000 INFO: task syz-executor.5:12827 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 D25888 12827 8138 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 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_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 f2fs_setattr+0x5b6/0x12b0 fs/f2fs/file.c:852 notify_change+0x70b/0xfc0 fs/attr.c:334 do_truncate+0x134/0x1f0 fs/open.c:63 handle_truncate fs/namei.c:3009 [inline] do_last fs/namei.c:3427 [inline] path_openat+0x2308/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:0x7f157b3770f9 Code: Bad RIP value. RSP: 002b:00007f15754a7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f157b497120 RCX: 00007f157b3770f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007f157b3d2ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd1706998f R14: 00007f15754a7300 R15: 0000000000022000 Showing all locks held in the system: device team0 left promiscuous mode device team_slave_0 left promiscuous mode 4 locks held by kworker/u4:0/7: device team_slave_1 left promiscuous mode #0: 0000000074b907fb ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000d51406fa (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 0000000028f821a7 (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521 #3: 000000007db53584 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #3: 000000007db53584 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 2 locks held by kworker/0:1/14: #0: 00000000331f170a ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 000000008bc2784c ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 1 lock held by khungtaskd/1570: #0: 0000000008982861 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7811: #0: 00000000be8d643c (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by kworker/u4:6/9372: 4 locks held by kworker/u4:7/9484: #0: 00000000c4fe69ba ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000f29c9db8 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 audit: type=1800 audit(1677870684.982:372): pid=16699 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14418 res=0 #2: 00000000575ef635 (&type->s_umount_key#59){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 audit: type=1800 audit(1677870685.022:373): pid=16699 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14418 res=0 #3: 000000005c857458 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 4 locks held by syz-executor.5/12807: 2 locks held by syz-executor.5/12824: #0: 000000006d68021c (sb_writers#19){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000006d68021c (sb_writers#19){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 XFS (loop2): Mounting V4 Filesystem #1: 0000000087ae603f (&sb->s_type->i_mutex_key#25){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000087ae603f (&sb->s_type->i_mutex_key#25){+.+.}, at: process_measurement+0x926/0x1440 security/integrity/ima/ima_main.c:205 3 locks held by syz-executor.5/12827: #0: 000000006d68021c (sb_writers#19){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000006d68021c (sb_writers#19){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 XFS (loop2): Ending clean mount #1: 0000000087ae603f (&sb->s_type->i_mutex_key#25){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 0000000087ae603f (&sb->s_type->i_mutex_key#25){+.+.}, at: do_truncate+0x125/0x1f0 fs/open.c:61 #2: 000000005c857458 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 2 locks held by syz-executor.4/16691: #0: 000000006dbede8c (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #0: 000000006dbede8c (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:598 #1: 00000000b2d23293 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #1: 00000000b2d23293 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667 1 lock held by syz-executor.3/16646: #0: 000000004627e835 (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #0: 000000004627e835 (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:598 2 locks held by syz-executor.3/16674: #0: 00000000a46b3332 (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #0: 00000000a46b3332 (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:598 #1: 00000000b2d23293 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #1: 00000000b2d23293 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667 XFS (loop2): Unmounting Filesystem ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4700 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:159 [inline] RIP: 0010:unwind_next_frame+0x324/0x1400 arch/x86/kernel/unwind_orc.c:422 Code: c2 01 49 81 f9 ba 91 17 8c 0f 83 cc 0a 00 00 89 d7 48 8d 3c 7f 48 8d bc 3f 30 ce 8c 8b 48 81 ff ba 91 17 8c 0f 87 b1 0a 00 00 <48> 8d 3c 85 d4 4b 30 8b 29 ca 4c 89 ce 4c 89 f9 e8 07 f3 ff ff 49 RSP: 0018:ffff88809c5c7618 EFLAGS: 00000293 RAX: 0000000000095250 RBX: 1ffff110138b8ecc RCX: 0000000000095250 RDX: 0000000000095261 RSI: 000000000002efe2 RDI: ffffffff8bc4bc76 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8bc4bc10 R10: ffff88809c5c77a7 R11: 0000000000074071 R12: ffff88809c5c7790 R13: ffff88809c5c777d R14: ffff88809c5c7748 R15: ffffffff83efe2b0 FS: 00007faa484b18c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e40642f2e8 CR3: 000000009c1d7000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44 save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x144/0x3c0 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] kzalloc include/linux/slab.h:709 [inline] kobject_get_path+0xbf/0x240 lib/kobject.c:171 kobject_uevent_env+0x25c/0x1480 lib/kobject_uevent.c:527 kobject_synth_uevent+0x700/0x820 lib/kobject_uevent.c:208 uevent_store+0x21/0x70 drivers/base/core.c:1257 dev_attr_store+0x56/0x80 drivers/base/core.c:966 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:140 kernfs_fop_write+0x2b0/0x470 fs/kernfs/file.c:316 __vfs_write+0xf7/0x770 fs/read_write.c:485 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7faa47323970 Code: 73 01 c3 48 8b 0d 28 d5 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 99 2d 2c 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 7e 9b 01 00 48 89 04 24 RSP: 002b:00007ffd20ed0118 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007faa47323970 RDX: 0000000000000007 RSI: 000055e4064178a0 RDI: 000000000000000e RBP: 000055e4064178a0 R08: 000055e406428f00 R09: 00007faa484b18c0 R10: 000055e406415750 R11: 0000000000000246 R12: 0000000000000007 R13: 0000000000000001 R14: 000055e406428e20 R15: 0000000000000007