loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: journal 0 mapped with 1 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: original: ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: original: do_vfs_ioctl+0x1c01/0x2e40 fs/ioctl.c:840 gfs2: fsid=syz:syz.0: pid: 5315 gfs2: fsid=syz:syz.0: lock type: 2 req lock state : 3 gfs2: fsid=syz:syz.0: new: do_page_mkwrite+0x15c/0x350 mm/memory.c:3176 gfs2: fsid=syz:syz.0: pid: 5315 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:10 gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5315 [syz.0.0] ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5315 [syz.0.0] do_vfs_ioctl+0x1c01/0x2e40 fs/ioctl.c:840 gfs2: fsid=syz:syz.0: I: n:1/9378 t:8 f:0x08 d:0x00000000 s:1048820 p:1 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1549! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #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:1549 [inline] RIP: 0010:gfs2_glock_nq+0x172a/0x1aa0 fs/gfs2/glock.c:1590 Code: fe 0f b7 4d 00 48 c7 c7 e0 45 4e 8c 48 8b 74 24 40 89 da e8 e8 84 1c fd 31 ff 48 8b 74 24 10 ba 01 00 00 00 e8 77 60 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:ffffc900019ce938 EFLAGS: 00010246 RAX: d2f852f629e44d00 RBX: 0000000000000002 RCX: d2f852f629e44d00 RDX: ffffc9000e25a000 RSI: 00000000000042ca RDI: 00000000000042cb RBP: ffffc900019ceb02 R08: ffffffff817f0a3c R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: ffffc900019cf8e0 R13: 1ffff92000339f1f R14: ffffc900019cf902 R15: ffffc900019cf8f8 FS: 00007f6d30e826c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000160 CR3: 0000000043cea000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_page_mkwrite+0x37d/0x1a60 fs/gfs2/file.c:433 do_page_mkwrite+0x15c/0x350 mm/memory.c:3176 wp_page_shared mm/memory.c:3577 [inline] do_wp_page+0x23cd/0x49b0 mm/memory.c:3727 handle_pte_fault+0xfa5/0x5ed0 mm/memory.c:5817 __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6112 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/0x8b0 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:ffffc900019cf4e8 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000198 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900019cf5a0 RDI: 0000000020000160 RBP: ffffc900019cf650 R08: ffffc900019cf5d7 R09: 1ffff92000339eba R10: dffffc0000000000 R11: fffff52000339ebb R12: 0000000000000038 R13: 00007ffffffff000 R14: ffffc900019cf5a0 R15: 0000000020000160 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] _inline_copy_to_user include/linux/uaccess.h:197 [inline] _copy_to_user+0x8b/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [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:2112 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x1c01/0x2e40 fs/ioctl.c:840 __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0x80/0x170 fs/ioctl.c:892 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:0x7f6d2ff85d29 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:00007f6d30e82038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6d30175fa0 RCX: 00007f6d2ff85d29 RDX: 0000000020000140 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007f6d30001b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d30175fa0 R15: 00007ffce421b0b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1549 [inline] RIP: 0010:gfs2_glock_nq+0x172a/0x1aa0 fs/gfs2/glock.c:1590 Code: fe 0f b7 4d 00 48 c7 c7 e0 45 4e 8c 48 8b 74 24 40 89 da e8 e8 84 1c fd 31 ff 48 8b 74 24 10 ba 01 00 00 00 e8 77 60 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:ffffc900019ce938 EFLAGS: 00010246 RAX: d2f852f629e44d00 RBX: 0000000000000002 RCX: d2f852f629e44d00 RDX: ffffc9000e25a000 RSI: 00000000000042ca RDI: 00000000000042cb RBP: ffffc900019ceb02 R08: ffffffff817f0a3c R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: ffffc900019cf8e0 R13: 1ffff92000339f1f R14: ffffc900019cf902 R15: ffffc900019cf8f8 FS: 00007f6d30e826c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000160 CR3: 0000000043cea000 CR4: 0000000000352ef0 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