audit: type=1804 audit(1677248639.232:8531): pid=13544 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir4271546716/syzkaller.LMRivN/568/file0/bus" dev="loop1" ino=18 res=1 audit: type=1804 audit(1677248639.232:8532): pid=13544 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir4271546716/syzkaller.LMRivN/568/file0/bus" dev="loop1" ino=18 res=1 ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2794! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 13555 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:ext4_writepages+0x2d31/0x37f0 fs/ext4/inode.c:2794 Code: 00 fc ff df 44 89 64 24 18 48 c1 ea 03 80 3c 02 00 0f 84 25 da ff ff 48 8b 3c 24 e8 89 2d b8 ff e9 17 da ff ff e8 8f 50 82 ff <0f> 0b 4c 8b b4 24 20 01 00 00 e8 80 50 82 ff 0f b6 ac 24 50 02 00 RSP: 0000:ffff88809c9574b8 EFLAGS: 00010293 RAX: ffff8880b34f8240 RBX: 0000000000000001 RCX: ffffffff81e03070 RDX: 0000000000000000 RSI: ffffffff81e034e1 RDI: 0000000000000007 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff88808fe4a5b0 R15: 0000000000000000 FS: 00007f88c1214700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f891888fd78 CR3: 000000009e506000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_writepages+0xe5/0x290 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446 ext4_alloc_da_blocks+0x207/0x360 fs/ext4/inode.c:3273 ext4_release_file+0x1ed/0x340 fs/ext4/file.c:89 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f88c2cc30f9 Code: Bad RIP value. RSP: 002b:00007f88c1214168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: fffffffffffffffc RBX: 00007f88c2de3050 RCX: 00007f88c2cc30f9 RDX: 0000000000000001 RSI: 0000000020004200 RDI: 000000000000000b RBP: 00007f88c2d1eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdba233e9f R14: 00007f88c1214300 R15: 0000000000022000 Modules linked in: audit: type=1804 audit(1677248639.232:8533): pid=13544 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir4271546716/syzkaller.LMRivN/568/file0/bus" dev="loop1" ino=18 res=1 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 audit: type=1804 audit(1677248639.232:8534): pid=13544 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir4271546716/syzkaller.LMRivN/568/file0/bus" dev="loop1" ino=18 res=1 CPU: 1 PID: 13638 Comm: syz-executor.3 Tainted: G D 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0xf lib/fault-inject.c:149 ---[ end trace 27adae79047adeaa ]--- __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0x10 mm/slab_common.c:1590 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x2ab/0x3c0 mm/slab.c:3736 RIP: 0010:ext4_writepages+0x2d31/0x37f0 fs/ext4/inode.c:2794 kmalloc include/linux/slab.h:520 [inline] __do_sys_memfd_create mm/memfd.c:295 [inline] __se_sys_memfd_create+0xf8/0x440 mm/memfd.c:268 Code: 00 fc ff df 44 89 64 24 18 48 c1 ea 03 80 3c 02 00 0f 84 25 da ff ff 48 8b 3c 24 e8 89 2d b8 ff e9 17 da ff ff e8 8f 50 82 ff <0f> 0b 4c 8b b4 24 20 01 00 00 e8 80 50 82 ff 0f b6 ac 24 50 02 00 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 RSP: 0000:ffff88809c9574b8 EFLAGS: 00010293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f89188e40f9 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:00007f8916e55f38 EFLAGS: 00000202 ORIG_RAX: 000000000000013f RAX: ffff8880b34f8240 RBX: 0000000000000001 RCX: ffffffff81e03070 RAX: ffffffffffffffda RBX: 000000000000077d RCX: 00007f89188e40f9 RDX: 00007f8916e55fdc RSI: 0000000000000000 RDI: 00007f891893ee81 RBP: 000000000000077d R08: 00007f8916e55e20 R09: ffffffffffffffff R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000780 R13: 00007f8916e55fdc R14: 00007f8916e55fe0 R15: 00000000200007c0 RDX: 0000000000000000 RSI: ffffffff81e034e1 RDI: 0000000000000007 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff88808fe4a5b0 R15: 0000000000000000 FS: 00007f88c1214700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000009e506000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400