audit: type=1804 audit(1675167668.126:100): pid=12424 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir1038942174/syzkaller.wHpkXy/122/file0/bus" dev="loop1" ino=1357 res=1 BTRFS: device fsid 24c7a497-3402-47dd-bef8-82358f5f30e0 devid 1 transid 8 /dev/loop0 ------------[ cut here ]------------ BTRFS info (device loop0): using free space tree WARNING: CPU: 0 PID: 12402 at fs/udf/inode.c:1975 __udf_add_aext.cold+0x11/0x76 fs/udf/inode.c:1975 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 12402 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 panic+0x26a/0x50e kernel/panic.c:186 audit: type=1804 audit(1675167668.246:101): pid=12425 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir1038942174/syzkaller.wHpkXy/122/file0/bus" dev="loop1" ino=1357 res=1 __warn.cold+0x20/0x5a kernel/panic.c:541 report_bug+0x262/0x2b0 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296 BTRFS info (device loop0): has skinny extents invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038 RIP: 0010:__udf_add_aext.cold+0x11/0x76 fs/udf/inode.c:1975 Code: 13 75 fa e8 e7 b1 69 f9 e8 32 75 9f f9 48 c7 c7 60 89 9a 88 e8 52 8b 1d 00 e8 d1 b1 69 f9 48 c7 c7 80 85 9a 88 e8 30 e3 fa ff <0f> 0b e9 bc 1b 76 fa e8 b9 b1 69 f9 48 c7 c7 80 85 9a 88 e8 18 e3 RSP: 0018:ffff8880421e6ed0 EFLAGS: 00010282 RAX: 0000000000000024 RBX: ffff8880421e7220 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff814dff01 RDI: ffffed100843cdcc RBP: ffff8880439fc670 R08: 0000000000000024 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffffffffff68 R14: 0000000000000010 R15: 0000000000000150 udf_add_aext+0x243/0x2e0 fs/udf/inode.c:2037 udf_insert_aext fs/udf/inode.c:2198 [inline] udf_update_extents fs/udf/inode.c:1186 [inline] inode_getblk+0x1984/0x3b30 fs/udf/inode.c:890 udf_get_block+0x1e1/0x650 fs/udf/inode.c:439 __block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 udf_write_begin+0x39/0xa0 fs/udf/inode.c:206 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295 udf_file_write_iter+0x2d4/0x4e0 fs/udf/file.c:169 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 write_pipe_buf+0x153/0x1f0 fs/splice.c:798 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x389/0x800 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] default_file_splice_write+0xd8/0x180 fs/splice.c:810 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x115/0x160 fs/splice.c:1025 splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980 do_splice_direct+0x1a7/0x270 fs/splice.c:1068 do_sendfile+0x550/0xc30 fs/read_write.c:1447 __do_sys_sendfile64 fs/read_write.c:1508 [inline] __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f69f19400c9 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:00007f69efeb2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f69f1a5ff80 RCX: 00007f69f19400c9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f69f199bae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000001000fc4 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd651d851f R14: 00007f69efeb2300 R15: 0000000000022000 Kernel Offset: disabled Rebooting in 86400 seconds..