__gfs2_unstuff_inode fs/gfs2/bmap.c:107 [inline] gfs2_unstuff_dinode+0x249/0x1240 fs/gfs2/bmap.c:166 gfs2_adjust_quota+0x23f/0x850 fs/gfs2/quota.c:847 do_sync+0x872/0xcb0 fs/gfs2/quota.c:961 gfs2_quota_sync+0x370/0x470 fs/gfs2/quota.c:1357 gfs2_sync_fs+0x4c/0xb0 fs/gfs2/super.c:658 sync_filesystem+0xee/0x230 fs/sync.c:56 generic_shutdown_super+0x6f/0x2c0 fs/super.c:622 kill_block_super+0x44/0x90 fs/super.c:1722 deactivate_locked_super+0xbc/0x130 fs/super.c:474 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1318 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2b7/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7b7659c14a Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7b77439e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffec RBX: 00007f7b77439ee0 RCX: 00007f7b7659c14a RDX: 0000200000037f40 RSI: 0000200000000000 RDI: 00007f7b77439ea0 RBP: 0000200000037f40 R08: 00007f7b77439ee0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f7b77439ea0 R14: 0000000000037fab R15: 00002000000000c0 gfs2: fsid=syz:syz.0: GFS2:adding buf while withdrawn! 0x22ce gfs2: fsid=syz:syz.0: warning: assertion "gfs2_log_is_empty(sdp)" failed - function = gfs2_make_fs_ro, file = fs/gfs2/super.c, line = 564 CPU: 0 UID: 0 PID: 5345 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 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 gfs2_assert_warn_i+0x194/0x2c0 fs/gfs2/util.c:305 gfs2_make_fs_ro+0x30d/0x320 fs/gfs2/super.c:564 gfs2_put_super+0x220/0x860 fs/gfs2/super.c:598 generic_shutdown_super+0x135/0x2c0 fs/super.c:643 kill_block_super+0x44/0x90 fs/super.c:1722 deactivate_locked_super+0xbc/0x130 fs/super.c:474 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1318 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2b7/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7b7659c14a Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7b77439e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffec RBX: 00007f7b77439ee0 RCX: 00007f7b7659c14a RDX: 0000200000037f40 RSI: 0000200000000000 RDI: 00007f7b77439ea0 RBP: 0000200000037f40 R08: 00007f7b77439ee0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f7b77439ea0 R14: 0000000000037fab R15: 00002000000000c0 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 0 UID: 0 PID: 5345 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:gfs2_remove_from_journal+0x3bb/0x6b0 fs/gfs2/meta_io.c:356 Code: 3a 4c 89 e7 e8 06 aa 1a fe eb 30 e8 2f d0 b0 fd 48 8b 6c 24 10 4c 8d 65 2c 4c 89 e0 48 c1 e8 03 49 be 00 00 00 00 00 fc ff df <42> 0f b6 04 30 84 c0 4c 8b 3c 24 0f 85 9d 01 00 00 41 ff 04 24 48 RSP: 0018:ffffc9000e9cf510 EFLAGS: 00010207 RAX: 0000000000000005 RBX: ffff8880473c5828 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: 0000000000000000 R08: ffff888042a68cff R09: 1ffff1100854d19f R10: dffffc0000000000 R11: ffffed100854d1a0 R12: 000000000000002c R13: 0000000000000001 R14: dffffc0000000000 R15: ffff888040aac170 FS: 00007f7b7743a6c0(0000) GS:ffff88808ccea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f39d050cb20 CR3: 0000000012740000 CR4: 0000000000352ef0 Call Trace: gfs2_discard fs/gfs2/aops.c:593 [inline] gfs2_invalidate_folio+0x579/0x750 fs/gfs2/aops.c:627 folio_invalidate mm/truncate.c:140 [inline] truncate_cleanup_folio+0xcb/0x190 mm/truncate.c:160 truncate_inode_pages_range+0x2ce/0xe30 mm/truncate.c:404 gfs2_evict_inode+0x324/0x1050 fs/gfs2/super.c:1426 evict+0x61e/0xb10 fs/inode.c:837 gfs2_put_super+0x355/0x860 fs/gfs2/super.c:617 generic_shutdown_super+0x135/0x2c0 fs/super.c:643 kill_block_super+0x44/0x90 fs/super.c:1722 deactivate_locked_super+0xbc/0x130 fs/super.c:474 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1318 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x2b7/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7b7659c14a Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7b77439e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffec RBX: 00007f7b77439ee0 RCX: 00007f7b7659c14a RDX: 0000200000037f40 RSI: 0000200000000000 RDI: 00007f7b77439ea0 RBP: 0000200000037f40 R08: 00007f7b77439ee0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f7b77439ea0 R14: 0000000000037fab R15: 00002000000000c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:gfs2_remove_from_journal+0x3bb/0x6b0 fs/gfs2/meta_io.c:356 Code: 3a 4c 89 e7 e8 06 aa 1a fe eb 30 e8 2f d0 b0 fd 48 8b 6c 24 10 4c 8d 65 2c 4c 89 e0 48 c1 e8 03 49 be 00 00 00 00 00 fc ff df <42> 0f b6 04 30 84 c0 4c 8b 3c 24 0f 85 9d 01 00 00 41 ff 04 24 48 RSP: 0018:ffffc9000e9cf510 EFLAGS: 00010207 RAX: 0000000000000005 RBX: ffff8880473c5828 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: 0000000000000000 R08: ffff888042a68cff R09: 1ffff1100854d19f R10: dffffc0000000000 R11: ffffed100854d1a0 R12: 000000000000002c R13: 0000000000000001 R14: dffffc0000000000 R15: ffff888040aac170 FS: 00007f7b7743a6c0(0000) GS:ffff88808ccea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f39d050cb20 CR3: 0000000012740000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 3a 4c 89 e7 cmp -0x19(%rcx,%rcx,4),%cl 4: e8 06 aa 1a fe call 0xfe1aaa0f 9: eb 30 jmp 0x3b b: e8 2f d0 b0 fd call 0xfdb0d03f 10: 48 8b 6c 24 10 mov 0x10(%rsp),%rbp 15: 4c 8d 65 2c lea 0x2c(%rbp),%r12 19: 4c 89 e0 mov %r12,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 27: fc ff df * 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 4c 8b 3c 24 mov (%rsp),%r15 35: 0f 85 9d 01 00 00 jne 0x1d8 3b: 41 ff 04 24 incl (%r12) 3f: 48 rex.W