loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: journal 0 mapped with 3 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount syz.0.0: attempt to access beyond end of device loop0: rw=12288, sector=17179869184, nr_sectors = 4 limit=32768 gfs2: fsid=syz:syz.0: fatal: invalid metadata block - bh = 4294967296 (bad magic number), function = gfs2_quota_init, file = fs/gfs2/quota.c, line = 1430 gfs2: fsid=syz:syz.0: about to withdraw this file system gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount. gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0 gfs2: fsid=syz:syz.0: File system withdrawn CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 gfs2_withdraw+0xb30/0x1430 fs/gfs2/util.c:345 gfs2_metatype_check_i fs/gfs2/util.h:126 [inline] gfs2_quota_init+0x10d4/0x1200 fs/gfs2/quota.c:1430 gfs2_make_fs_rw+0x181/0x2b0 fs/gfs2/super.c:149 gfs2_fill_super+0x1a7b/0x20d0 fs/gfs2/ops_fstype.c:1280 get_tree_bdev_flags+0x40b/0x4d0 fs/super.c:1691 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1337 vfs_get_tree+0x8f/0x2b0 fs/super.c:1751 fc_mount fs/namespace.c:1208 [inline] do_new_mount_fc fs/namespace.c:3651 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3727 do_mount fs/namespace.c:4050 [inline] __do_sys_mount fs/namespace.c:4238 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4215 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f94ea59066a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f94eb4c6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f94eb4c6ef0 RCX: 00007f94ea59066a RDX: 000020000001f680 RSI: 00002000000001c0 RDI: 00007f94eb4c6eb0 RBP: 000020000001f680 R08: 00007f94eb4c6ef0 R09: 0000000000000084 R10: 0000000000000084 R11: 0000000000000246 R12: 00002000000001c0 R13: 00007f94eb4c6eb0 R14: 000000000001f77a R15: 0000200000000600 gfs2: fsid=syz:syz.0: can't make FS RW: -5 loop0: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LiuxUDF', timestamp 2022/11/22 14:59 (1000) netlink: 4 bytes leftover after parsing attributes in process `syz.0.0'. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5330 at fs/udf/truncate.c:224 udf_truncate_extents+0xd4c/0xec0 fs/udf/truncate.c:224 Modules linked in: CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:udf_truncate_extents+0xd4c/0xec0 fs/udf/truncate.c:224 Code: 5a 52 0f 48 3b 84 24 80 01 00 00 75 77 44 89 e0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d e9 1b cf 10 08 cc e8 15 5e 80 fe 90 <0f> 0b 90 eb 88 44 89 e9 80 e1 07 38 c1 0f 8c e4 f3 ff ff 4c 89 ef RSP: 0018:ffffc9000d41f940 EFLAGS: 00010283 RAX: ffffffff833f458b RBX: 1ffff1100a214d8e RCX: 0000000000100000 RDX: ffffc9000e0aa000 RSI: 00000000000005cd RDI: 00000000000005ce RBP: ffffc9000d41fb08 R08: ffff888000cfc900 R09: 0000000000000002 R10: 0000000000000001 R11: 0000000000000002 R12: 0000000000000000 R13: 0000000000000000 R14: 000000000000000a R15: 000000000000000a FS: 00007f94eb4c76c0(0000) GS:ffff88808d306000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000003a80 CR3: 00000000423d2000 CR4: 0000000000352ef0 Call Trace: udf_write_failed+0x185/0x1c0 fs/udf/inode.c:178 udf_direct_IO+0x1c6/0x200 fs/udf/inode.c:314 generic_file_direct_write+0x1d8/0x3e0 mm/filemap.c:4176 __generic_file_write_iter+0x11d/0x230 mm/filemap.c:4345 udf_file_write_iter+0x2d5/0x6c0 fs/udf/file.c:111 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c6/0xb30 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f94ea58eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f94eb4c7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f94ea7e5fa0 RCX: 00007f94ea58eec9 RDX: 0000000000000001 RSI: 0000200000003a80 RDI: 000000000000000c RBP: 00007f94ea611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008000c61 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f94ea7e6038 R14: 00007f94ea7e5fa0 R15: 00007ffdb0aec3d8