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: 5355 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 ed 75 22 fe 48 8b 44 24 10 48 8b 38 e8 c0 4c 23 fd 90 <0f> 0b e8 58 8f ba fd 48 8b 7c 24 10 e8 ae 4c 23 fd 90 0f 0b 66 66 RSP: 0018:ffffc9000cf65f48 EFLAGS: 00010246 RAX: 000000000000002c RBX: 1ffff1100ad81a0e RCX: 9f80af1a7060a500 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffc9000cf65c67 R09: 1ffff920019ecb8c R10: dffffc0000000000 R11: fffff520019ecb8d R12: ffff888056c0d000 R13: ffff888056c0d070 R14: ffff888056c0d090 R15: 0000000000000000 FS: 00007f590099a6c0(0000) GS:ffff88808d22a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5900979990 CR3: 0000000012656000 CR4: 0000000000352ef0 Call Trace: gfs2_quota_change+0x391/0x800 fs/gfs2/quota.c:1304 gfs2_alloc_blocks+0x18bc/0x2080 fs/gfs2/rgrp.c:2494 __gfs2_unstuff_inode fs/gfs2/bmap.c:107 [inline] gfs2_unstuff_dinode+0x22e/0x1320 fs/gfs2/bmap.c:166 gfs2_iomap_begin_write fs/gfs2/bmap.c:1059 [inline] gfs2_iomap_begin+0x976/0x1170 fs/gfs2/bmap.c:1133 iomap_iter+0x5ef/0xeb0 fs/iomap/iter.c:110 iomap_file_buffered_write+0x23c/0x9c0 fs/iomap/buffered-io.c:1187 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 __kernel_write+0xef/0x150 fs/read_write.c:639 __dump_emit+0x206/0x310 fs/coredump.c:1220 writenote+0x1be/0x2e0 fs/binfmt_elf.c:1434 write_note_info fs/binfmt_elf.c:1946 [inline] elf_core_dump+0x2f17/0x3960 fs/binfmt_elf.c:2098 coredump_write+0x1121/0x18b0 fs/coredump.c:1049 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x3321/0x3e60 fs/coredump.c:1200 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0x9a/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop kernel/entry/common.c:75 [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+0x177/0x660 kernel/entry/common.c:196 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:0x687361680026 Code: Unable to access opcode bytes at 0x68736167fffc. RSP: 002b:0000200000000148 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f58ffde5fa0 RCX: 00007f58ffb8f7c9 RDX: 0000000000000000 RSI: 0000200000000140 RDI: 0000000000000080 RBP: 00007f58ffc13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 R13: 00007f58ffde6038 R14: 00007f58ffde5fa0 R15: 00007fff636b7308 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 ed 75 22 fe 48 8b 44 24 10 48 8b 38 e8 c0 4c 23 fd 90 <0f> 0b e8 58 8f ba fd 48 8b 7c 24 10 e8 ae 4c 23 fd 90 0f 0b 66 66 RSP: 0018:ffffc9000cf65f48 EFLAGS: 00010246 RAX: 000000000000002c RBX: 1ffff1100ad81a0e RCX: 9f80af1a7060a500 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffc9000cf65c67 R09: 1ffff920019ecb8c R10: dffffc0000000000 R11: fffff520019ecb8d R12: ffff888056c0d000 R13: ffff888056c0d070 R14: ffff888056c0d090 R15: 0000000000000000 FS: 00007f590099a6c0(0000) GS:ffff88808d22a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000068736167fffc CR3: 0000000012656000 CR4: 0000000000352ef0