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:23 gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5318 [syz.0.0] gfs2_file_write_iter+0x915/0xff0 fs/gfs2/file.c:1164 Oops: general protection fault, probably for non-canonical address 0xdffffc000000002c: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000160-0x0000000000000167] CPU: 0 UID: 0 PID: 5319 Comm: syz.0.0 Not tainted 6.13.0-syzkaller #0 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:179 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2295 [inline] RIP: 0010:gfs2_dump_glock+0xfba/0x1bb0 fs/gfs2/glock.c:2407 Code: e8 eb fb 1b fe 48 8b 1b 48 85 db 74 2f e8 1e 91 b5 fd 4c 8d a3 e0 00 00 00 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 dc 07 00 00 45 8b 24 24 eb 08 e8 ef 90 b5 RSP: 0018:ffffc9000d45ef80 EFLAGS: 00010202 RAX: 000000000000002c RBX: 0000000000000080 RCX: dffffc0000000000 RDX: ffffc9000ee4b000 RSI: 0000000000001b2f RDI: 0000000000001b30 RBP: ffffc9000d45f270 R08: ffffffff83e9e625 R09: 1ffffffff2855510 R10: dffffc0000000000 R11: fffffbfff2855511 R12: 0000000000000160 R13: ffff8880361c2440 R14: ffff8880361c2460 R15: 1ffff11006c3848c FS: 00007f7c56f316c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbcaa57f866 CR3: 000000000027e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_dirty_inode+0x5a5/0x6b0 fs/gfs2/super.c:512 __mark_inode_dirty+0x2ee/0xe90 fs/fs-writeback.c:2515 generic_update_time+0xad/0xc0 fs/inode.c:2112 gfs2_update_time+0x13a/0x200 fs/gfs2/inode.c:2174 inode_update_time fs/inode.c:2124 [inline] touch_atime+0x27d/0x690 fs/inode.c:2197 file_accessed include/linux/fs.h:2539 [inline] filemap_read+0xd5c/0xf50 mm/filemap.c:2705 gfs2_file_read_iter+0x132/0xc40 fs/gfs2/file.c:968 copy_splice_read+0x663/0xb60 fs/splice.c:365 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x4af/0xc80 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7c56185d29 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:00007f7c56f31038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f7c56376080 RCX: 00007f7c56185d29 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007f7c56201b08 R08: 0000000000000000 R09: 0000000000000000 R10: 000000010000a007 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7c56376080 R15: 00007ffc534836b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_nr include/linux/pid.h:179 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2295 [inline] RIP: 0010:gfs2_dump_glock+0xfba/0x1bb0 fs/gfs2/glock.c:2407 Code: e8 eb fb 1b fe 48 8b 1b 48 85 db 74 2f e8 1e 91 b5 fd 4c 8d a3 e0 00 00 00 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 dc 07 00 00 45 8b 24 24 eb 08 e8 ef 90 b5 RSP: 0018:ffffc9000d45ef80 EFLAGS: 00010202 RAX: 000000000000002c RBX: 0000000000000080 RCX: dffffc0000000000 RDX: ffffc9000ee4b000 RSI: 0000000000001b2f RDI: 0000000000001b30 RBP: ffffc9000d45f270 R08: ffffffff83e9e625 R09: 1ffffffff2855510 R10: dffffc0000000000 R11: fffffbfff2855511 R12: 0000000000000160 R13: ffff8880361c2440 R14: ffff8880361c2460 R15: 1ffff11006c3848c FS: 00007f7c56f316c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d7fba54b90 CR3: 000000000027e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: e8 eb fb 1b fe call 0xfe1bfbf0 5: 48 8b 1b mov (%rbx),%rbx 8: 48 85 db test %rbx,%rbx b: 74 2f je 0x3c d: e8 1e 91 b5 fd call 0xfdb59130 12: 4c 8d a3 e0 00 00 00 lea 0xe0(%rbx),%r12 19: 4c 89 e0 mov %r12,%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 dc 07 00 00 jne 0x812 36: 45 8b 24 24 mov (%r12),%r12d 3a: eb 08 jmp 0x44 3c: e8 .byte 0xe8 3d: ef out %eax,(%dx) 3e: 90 nop 3f: b5 .byte 0xb5