gfs2: fsid=syz:syz.0: fatal assertion failed ------------[ cut here ]------------ kernel BUG at fs/gfs2/quota.c:320! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5333 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:__qd_hold fs/gfs2/quota.c:320 [inline] RIP: 0010:do_qc+0x5c1/0x5e0 fs/gfs2/quota.c:705 Code: 00 00 00 00 00 fc ff df 48 8b 0c 24 80 3c 01 00 74 0a 48 8b 7c 24 10 e8 0d 5e 25 fe 48 8b 44 24 10 48 8b 38 e8 10 34 28 fd 90 <0f> 0b e8 18 24 be fd 48 8b 7c 24 10 e8 fe 33 28 fd 90 0f 0b 66 66 RSP: 0018:ffffc9000d3760e8 EFLAGS: 00010246 RAX: 000000000000002c RBX: 1ffff110086a700e RCX: c98469b9091d0c00 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa650 R12: ffff888043538000 R13: ffff888043538070 R14: ffff888043538090 R15: 0000000000000000 FS: 00007f44610036c0(0000) GS:ffff88808d301000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf78c74cf0 CR3: 000000004efde000 CR4: 0000000000352ef0 Call Trace: gfs2_quota_change+0x394/0x800 fs/gfs2/quota.c:1304 gfs2_alloc_blocks+0x18bc/0x2080 fs/gfs2/rgrp.c:2494 __gfs2_iomap_alloc+0x4b7/0x1a30 fs/gfs2/bmap.c:708 gfs2_iomap_begin_write fs/gfs2/bmap.c:1070 [inline] gfs2_iomap_begin+0xaf0/0x11c0 fs/gfs2/bmap.c:1133 iomap_iter+0x534/0xde0 fs/iomap/iter.c:108 iomap_file_buffered_write+0x207/0x9b0 fs/iomap/buffered-io.c:1070 gfs2_file_buffered_write+0x4ed/0x880 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x94e/0x1100 fs/gfs2/file.c:1166 __kernel_write_iter+0x428/0x910 fs/read_write.c:619 dump_emit_page fs/coredump.c:1298 [inline] dump_user_range+0x8a0/0xc90 fs/coredump.c:1372 elf_core_dump+0x3369/0x3960 fs/binfmt_elf.c:2111 coredump_write+0x116c/0x1900 fs/coredump.c:1049 vfs_coredump+0x1db5/0x2a60 fs/coredump.c:1170 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0xa0/0x790 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:40 [inline] exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] irqentry_exit_to_user_mode+0x7e/0x110 kernel/entry/common.c:73 exc_page_fault+0xab/0x100 arch/x86/mm/fault.c:1535 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x2000000000b2 Code: 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 40 03 00 00 00 20 00 00 RSP: 002b:0000200000000088 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f44603e5fa0 RCX: 00007f446018eec9 RDX: 0000000000000000 RSI: 0000200000000080 RDI: 0000000000004000 RBP: 00007f4460211f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f44603e6038 R14: 00007f44603e5fa0 R15: 00007ffdd3dcfb78 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__qd_hold fs/gfs2/quota.c:320 [inline] RIP: 0010:do_qc+0x5c1/0x5e0 fs/gfs2/quota.c:705 Code: 00 00 00 00 00 fc ff df 48 8b 0c 24 80 3c 01 00 74 0a 48 8b 7c 24 10 e8 0d 5e 25 fe 48 8b 44 24 10 48 8b 38 e8 10 34 28 fd 90 <0f> 0b e8 18 24 be fd 48 8b 7c 24 10 e8 fe 33 28 fd 90 0f 0b 66 66 RSP: 0018:ffffc9000d3760e8 EFLAGS: 00010246 RAX: 000000000000002c RBX: 1ffff110086a700e RCX: c98469b9091d0c00 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa650 R12: ffff888043538000 R13: ffff888043538070 R14: ffff888043538090 R15: 0000000000000000 FS: 00007f44610036c0(0000) GS:ffff88808d301000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf78c74cf0 CR3: 000000004efde000 CR4: 0000000000352ef0