gfs2: fsid=syz:syz.0: dirty_inode: glock -5 gfs2: fsid=syz:syz.0: G: s:EX n:2/24b2 f:yfaqob t:EX d:EX/0 a:0 v:0 r:2 m:20 p:56 gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5341 [syz.0.0] gfs2_file_write_iter+0x94e/0x1100 fs/gfs2/file.c:1166 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000030: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000180-0x0000000000000187] CPU: 0 UID: 0 PID: 5348 Comm: syz.0.0 Not tainted 6.16.0-syzkaller-09014-gd6084bb815c4 #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:pid_nr include/linux/pid.h:183 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2295 [inline] RIP: 0010:gfs2_dump_glock+0x10fe/0x1c50 fs/gfs2/glock.c:2413 Code: e8 f7 25 2f fe 4c 8b 3b 4d 85 ff 74 33 e8 8a a3 ca fd 49 8d 9f 00 01 00 00 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 fa 06 00 00 48 63 03 48 89 44 24 10 eb 0e RSP: 0018:ffffc9000d367320 EFLAGS: 00010206 RAX: 0000000000000030 RBX: 0000000000000180 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000d367610 R08: 0000000000000000 R09: ffffffff83f4f943 R10: dffffc0000000000 R11: fffffbfff1f415e7 R12: ffffffff83f4f943 R13: ffff888000ff8000 R14: 1ffff110001ff004 R15: 0000000000000080 FS: 00007fafc6e5f6c0(0000) GS:ffff88808d26b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005578381caf70 CR3: 0000000042d3d000 CR4: 0000000000352ef0 Call Trace: gfs2_dirty_inode+0x58e/0x600 fs/gfs2/super.c:500 __mark_inode_dirty+0x2d1/0xdf0 fs/fs-writeback.c:2527 generic_update_time+0xc2/0xd0 fs/inode.c:2063 gfs2_update_time+0x138/0x1f0 fs/gfs2/inode.c:2253 inode_update_time fs/inode.c:2075 [inline] touch_atime+0x2f6/0x6d0 fs/inode.c:2148 file_accessed include/linux/fs.h:2661 [inline] filemap_read+0x1002/0x11a0 mm/filemap.c:2783 gfs2_file_read_iter+0x13b/0xc60 fs/gfs2/file.c:969 new_sync_read fs/read_write.c:491 [inline] vfs_read+0x4d0/0x980 fs/read_write.c:572 ksys_read+0x145/0x250 fs/read_write.c:715 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fafc5f8eb69 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:00007fafc6e5f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fafc61b6160 RCX: 00007fafc5f8eb69 RDX: 00000000000000e1 RSI: 00002000000002c0 RDI: 0000000000000004 RBP: 00007fafc6e5f090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fafc61b6160 R15: 00007ffd484bf988 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_nr include/linux/pid.h:183 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2295 [inline] RIP: 0010:gfs2_dump_glock+0x10fe/0x1c50 fs/gfs2/glock.c:2413 Code: e8 f7 25 2f fe 4c 8b 3b 4d 85 ff 74 33 e8 8a a3 ca fd 49 8d 9f 00 01 00 00 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 fa 06 00 00 48 63 03 48 89 44 24 10 eb 0e RSP: 0018:ffffc9000d367320 EFLAGS: 00010206 RAX: 0000000000000030 RBX: 0000000000000180 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000d367610 R08: 0000000000000000 R09: ffffffff83f4f943 R10: dffffc0000000000 R11: fffffbfff1f415e7 R12: ffffffff83f4f943 R13: ffff888000ff8000 R14: 1ffff110001ff004 R15: 0000000000000080 FS: 00007fafc6e5f6c0(0000) GS:ffff88808d26b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005578381caf70 CR3: 0000000042d3d000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 f7 25 2f fe call 0xfe2f25fc 5: 4c 8b 3b mov (%rbx),%r15 8: 4d 85 ff test %r15,%r15 b: 74 33 je 0x40 d: e8 8a a3 ca fd call 0xfdcaa39c 12: 49 8d 9f 00 01 00 00 lea 0x100(%r15),%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 fa 06 00 00 jne 0x730 36: 48 63 03 movslq (%rbx),%rax 39: 48 89 44 24 10 mov %rax,0x10(%rsp) 3e: eb 0e jmp 0x4e