gfs2: fsid=syz:syz.0: original: ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: original: do_vfs_ioctl+0x1c07/0x2e50 fs/ioctl.c:841 gfs2: fsid=syz:syz.0: pid: 5116 gfs2: fsid=syz:syz.0: lock type: 2 req lock state : 3 gfs2: fsid=syz:syz.0: new: do_page_mkwrite+0x19b/0x480 mm/memory.c:3142 gfs2: fsid=syz:syz.0: pid: 5116 gfs2: fsid=syz:syz.0: lock type: 2 req lock state : 1 gfs2: fsid=syz:syz.0: G: s:EX n:2/24a2 f:yfaqob t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1 gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5116 [syz.0.0] ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5116 [syz.0.0] do_vfs_ioctl+0x1c07/0x2e50 fs/ioctl.c:841 gfs2: fsid=syz:syz.0: I: n:1/9378 t:8 f:0x08 d:0x00000000 s:1 p:1 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1569! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5116 Comm: syz.0.0 Not tainted 6.11.0-rc6-syzkaller-00019-g67784a74e258 #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:add_to_queue fs/gfs2/glock.c:1569 [inline] RIP: 0010:gfs2_glock_nq+0x172a/0x1aa0 fs/gfs2/glock.c:1610 Code: fe 0f b7 4d 00 48 c7 c7 a0 ff 4e 8c 48 8b 74 24 40 89 da e8 b8 f2 d6 07 31 ff 48 8b 74 24 10 ba 01 00 00 00 e8 57 62 ff ff 90 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 7a f9 ff ff 48 89 df e8 RSP: 0018:ffffc90002ebe978 EFLAGS: 00010246 RAX: 0a75dbf89bedd600 RBX: 0000000000000002 RCX: 0a75dbf89bedd600 RDX: ffffc9000b762000 RSI: 000000000000e63d RDI: 000000000000e63e RBP: ffffc90002ebeb22 R08: ffffffff817401bc R09: fffffbfff1cfa0e0 R10: dffffc0000000000 R11: fffffbfff1cfa0e0 R12: ffffc90002ebf8e0 R13: 1ffff920005d7f1f R14: ffffc90002ebf902 R15: ffffc90002ebf8f8 FS: 00007efe9aeb16c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200002e0 CR3: 0000000035640000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_page_mkwrite+0x3bd/0x1890 fs/gfs2/file.c:433 do_page_mkwrite+0x19b/0x480 mm/memory.c:3142 wp_page_shared mm/memory.c:3545 [inline] do_wp_page+0x23d9/0x52f0 mm/memory.c:3695 handle_pte_fault+0x115a/0x6fc0 mm/memory.c:5537 __handle_mm_fault mm/memory.c:5664 [inline] handle_mm_fault+0x1109/0x1bc0 mm/memory.c:5832 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58 Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc90002ebf4f0 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000318 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc90002ebf5a0 RDI: 00000000200002e0 RBP: ffffc90002ebf650 R08: ffffc90002ebf5d7 R09: 1ffff920005d7eba R10: dffffc0000000000 R11: fffff520005d7ebb R12: 0000000000000038 R13: ffffc90002ebf5a0 R14: 00000000200002e0 R15: ffffc90002ebf5a0 copy_user_generic arch/x86/include/asm/uaccess_64.h:110 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:131 [inline] _inline_copy_to_user include/linux/uaccess.h:181 [inline] _copy_to_user+0x86/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:209 [inline] fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:145 iomap_to_fiemap fs/iomap/fiemap.c:37 [inline] iomap_fiemap+0x8e3/0x9b0 fs/iomap/fiemap.c:84 gfs2_fiemap+0x131/0x1a0 fs/gfs2/inode.c:2111 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x1c07/0x2e50 fs/ioctl.c:841 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:893 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:0x7efe9a179eb9 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:00007efe9aeb1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efe9a316058 RCX: 00007efe9a179eb9 RDX: 00000000200002c0 RSI: 00000000c020660b RDI: 0000000000000007 RBP: 00007efe9a1e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007efe9a316058 R15: 00007ffeaa432f28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1569 [inline] RIP: 0010:gfs2_glock_nq+0x172a/0x1aa0 fs/gfs2/glock.c:1610 Code: fe 0f b7 4d 00 48 c7 c7 a0 ff 4e 8c 48 8b 74 24 40 89 da e8 b8 f2 d6 07 31 ff 48 8b 74 24 10 ba 01 00 00 00 e8 57 62 ff ff 90 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 7a f9 ff ff 48 89 df e8 RSP: 0018:ffffc90002ebe978 EFLAGS: 00010246 RAX: 0a75dbf89bedd600 RBX: 0000000000000002 RCX: 0a75dbf89bedd600 RDX: ffffc9000b762000 RSI: 000000000000e63d RDI: 000000000000e63e RBP: ffffc90002ebeb22 R08: ffffffff817401bc R09: fffffbfff1cfa0e0 R10: dffffc0000000000 R11: fffffbfff1cfa0e0 R12: ffffc90002ebf8e0 R13: 1ffff920005d7f1f R14: ffffc90002ebf902 R15: ffffc90002ebf8f8 FS: 00007efe9aeb16c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200002e0 CR3: 0000000035640000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 40 83 f9 08 rex cmp $0x8,%ecx 4: 73 21 jae 0x27 6: 85 c9 test %ecx,%ecx 8: 74 0f je 0x19 a: 8a 06 mov (%rsi),%al c: 88 07 mov %al,(%rdi) e: 48 ff c7 inc %rdi 11: 48 ff c6 inc %rsi 14: 48 ff c9 dec %rcx 17: 75 f1 jne 0xa 19: c3 ret 1a: cc int3 1b: cc int3 1c: cc int3 1d: cc int3 1e: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 25: 00 00 27: 48 8b 06 mov (%rsi),%rax * 2a: 48 89 07 mov %rax,(%rdi) <-- trapping instruction 2d: 48 83 c6 08 add $0x8,%rsi 31: 48 83 c7 08 add $0x8,%rdi 35: 83 e9 08 sub $0x8,%ecx 38: 74 df je 0x19 3a: 83 f9 08 cmp $0x8,%ecx 3d: 73 e8 jae 0x27 3f: eb .byte 0xeb