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: 5334 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 04/01/2014 RIP: 0010:__qd_hold fs/gfs2/quota.c:320 [inline] RIP: 0010:do_qc+0x5c1/0x5e0 fs/gfs2/quota.c:706 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 1d 3c 0e fe 48 8b 44 24 10 48 8b 38 e8 d0 6c 07 fd 90 <0f> 0b e8 b8 6a a2 fd 48 8b 7c 24 10 e8 be 6c 07 fd 90 0f 0b 66 66 RSP: 0018:ffffc9000c6cdf88 EFLAGS: 00010246 RAX: 000000000000002c RBX: 1ffff11008f46a8c RCX: eaf3ff7226f47200 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffc9000c6cdd07 R09: 1ffff920018d9ba0 R10: dffffc0000000000 R11: fffff520018d9ba1 R12: ffff888047a353f0 R13: ffff888047a35460 R14: ffff888047a35480 R15: 0000000000000000 FS: 00007fed2e8146c0(0000) GS:ffff88808ca56000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000037bf1000 CR4: 0000000000352ef0 Call Trace: gfs2_quota_change+0x391/0x800 fs/gfs2/quota.c:1305 gfs2_alloc_blocks+0x18ca/0x2090 fs/gfs2/rgrp.c:2494 __gfs2_unstuff_inode fs/gfs2/bmap.c:107 [inline] gfs2_unstuff_dinode+0x249/0x1240 fs/gfs2/bmap.c:166 gfs2_iomap_begin_write fs/gfs2/bmap.c:1059 [inline] gfs2_iomap_begin+0xa6b/0x1320 fs/gfs2/bmap.c:1133 iomap_iter+0x600/0x1020 fs/iomap/iter.c:110 iomap_file_buffered_write+0x252/0xb30 fs/iomap/buffered-io.c:1219 gfs2_file_buffered_write+0x4eb/0x870 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x976/0x1130 fs/gfs2/file.c:1166 __kernel_write_iter+0x41e/0x880 fs/read_write.c:621 __kernel_write+0x106/0x170 fs/read_write.c:641 __dump_emit fs/coredump.c:1221 [inline] dump_emit+0x8e9/0xab0 fs/coredump.c:1259 elf_core_dump+0x2e5d/0x3ad0 fs/binfmt_elf.c:2089 coredump_write+0x1216/0x1910 fs/coredump.c:1050 do_coredump fs/coredump.c:1127 [inline] vfs_coredump+0x36a9/0x4280 fs/coredump.c:1201 get_signal+0x1107/0x1330 kernel/signal.c:3019 arch_do_signal_or_restart+0xbc/0x830 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop kernel/entry/common.c:98 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:270 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:339 [inline] irqentry_exit+0x176/0x620 kernel/entry/common.c:219 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 002b:0000200000000148 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fed2dc15fa0 RCX: 00007fed2d99c799 RDX: 0000000000000000 RSI: 0000200000000140 RDI: 0000000000000080 RBP: 00007fed2da32bd9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 R13: 00007fed2dc16038 R14: 00007fed2dc15fa0 R15: 00007ffccf800ac8 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:706 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 1d 3c 0e fe 48 8b 44 24 10 48 8b 38 e8 d0 6c 07 fd 90 <0f> 0b e8 b8 6a a2 fd 48 8b 7c 24 10 e8 be 6c 07 fd 90 0f 0b 66 66 RSP: 0018:ffffc9000c6cdf88 EFLAGS: 00010246 RAX: 000000000000002c RBX: 1ffff11008f46a8c RCX: eaf3ff7226f47200 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffc9000c6cdd07 R09: 1ffff920018d9ba0 R10: dffffc0000000000 R11: fffff520018d9ba1 R12: ffff888047a353f0 R13: ffff888047a35460 R14: ffff888047a35480 R15: 0000000000000000 FS: 00007fed2e8146c0(0000) GS:ffff88808ca56000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000037bf1000 CR4: 0000000000352ef0