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 fanotify: failed to encode fid (type=0, len=0, err=-2) gfs2: fsid=syz:syz.0: original: ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: original: do_vfs_ioctl+0x16d0/0x1990 fs/ioctl.c:841 gfs2: fsid=syz:syz.0: pid: 5344 gfs2: fsid=syz:syz.0: lock type: 2 req lock state : 3 gfs2: fsid=syz:syz.0: new: do_page_mkwrite+0x14d/0x310 mm/memory.c:3378 gfs2: fsid=syz:syz.0: pid: 5344 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:5344 [syz.0.0] ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5344 [syz.0.0] do_vfs_ioctl+0x16d0/0x1990 fs/ioctl.c:841 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:1541! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5344 Comm: syz.0.0 Not tainted 6.16.0-rc1-syzkaller-00182-g18531f4d1c8c #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:add_to_queue fs/gfs2/glock.c:1541 [inline] RIP: 0010:gfs2_glock_nq+0x14f5/0x1900 fs/gfs2/glock.c:1582 Code: c7 32 fe 41 0f b7 0e 48 c7 c7 20 56 d0 8b 4c 89 fe 89 da e8 fd 82 36 fd 31 ff 48 8b 74 24 20 ba 01 00 00 00 e8 fc 6c ff ff 90 <0f> 0b 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c 25 ed ff ff 4c 89 f7 e8 RSP: 0018:ffffc9000d3aed98 EFLAGS: 00010246 RAX: 54d2e43cbea0a000 RBX: 0000000000000002 RCX: 54d2e43cbea0a000 RDX: ffffc9000e28a000 RSI: 0000000000004cd8 RDI: 0000000000004cd9 RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa9e4 R12: ffffc9000d3afa02 R13: ffffc9000d3af9f8 R14: ffffc9000d3aef62 R15: ffff8880399c8fd8 FS: 00007fb5abbeb6c0(0000) GS:ffff88808d252000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000001e0 CR3: 000000003f5c4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_page_mkwrite+0x384/0x1910 fs/gfs2/file.c:434 do_page_mkwrite+0x14d/0x310 mm/memory.c:3378 wp_page_shared mm/memory.c:3779 [inline] do_wp_page+0x268d/0x5800 mm/memory.c:3998 handle_pte_fault mm/memory.c:6105 [inline] __handle_mm_fault+0x1144/0x5620 mm/memory.c:6232 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6401 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x33/0x90 arch/x86/lib/copy_user_64.S:61 Code: 73 25 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 e9 3d f7 03 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb RSP: 0018:ffffc9000d3af648 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000000000038 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc9000d3af6e0 RDI: 00002000000001e0 RBP: ffffc9000d3af790 R08: ffffc9000d3af717 R09: 1ffff92001a75ee2 R10: dffffc0000000000 R11: fffff52001a75ee3 R12: 0000200000000218 R13: 00007ffffffff000 R14: ffffc9000d3af6e0 R15: 00002000000001e0 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+0x8a/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] fiemap_fill_next_extent+0x1c0/0x390 fs/ioctl.c:145 iomap_to_fiemap fs/iomap/fiemap.c:37 [inline] iomap_fiemap_iter fs/iomap/fiemap.c:50 [inline] iomap_fiemap+0x273/0x530 fs/iomap/fiemap.c:80 gfs2_fiemap+0x12c/0x190 fs/gfs2/inode.c:2194 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x16d0/0x1990 fs/ioctl.c:841 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:893 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:0x7fb5aad8e929 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:00007fb5abbeb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb5aafb5fa0 RCX: 00007fb5aad8e929 RDX: 00002000000001c0 RSI: 00000000c020660b RDI: 000000000000000d RBP: 00007fb5aae10b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb5aafb5fa0 R15: 00007ffec8992368 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1541 [inline] RIP: 0010:gfs2_glock_nq+0x14f5/0x1900 fs/gfs2/glock.c:1582 Code: c7 32 fe 41 0f b7 0e 48 c7 c7 20 56 d0 8b 4c 89 fe 89 da e8 fd 82 36 fd 31 ff 48 8b 74 24 20 ba 01 00 00 00 e8 fc 6c ff ff 90 <0f> 0b 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c 25 ed ff ff 4c 89 f7 e8 RSP: 0018:ffffc9000d3aed98 EFLAGS: 00010246 RAX: 54d2e43cbea0a000 RBX: 0000000000000002 RCX: 54d2e43cbea0a000 RDX: ffffc9000e28a000 RSI: 0000000000004cd8 RDI: 0000000000004cd9 RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa9e4 R12: ffffc9000d3afa02 R13: ffffc9000d3af9f8 R14: ffffc9000d3aef62 R15: ffff8880399c8fd8 FS: 00007fb5abbeb6c0(0000) GS:ffff88808d252000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000001e0 CR3: 000000003f5c4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 73 25 jae 0x27 2: 85 c9 test %ecx,%ecx 4: 74 0f je 0x15 6: 8a 06 mov (%rsi),%al 8: 88 07 mov %al,(%rdi) a: 48 ff c7 inc %rdi d: 48 ff c6 inc %rsi 10: 48 ff c9 dec %rcx 13: 75 f1 jne 0x6 15: e9 3d f7 03 00 jmp 0x3f757 1a: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 21: 00 00 00 24: 0f 1f 00 nopl (%rax) 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 db je 0x15 3a: 83 f9 08 cmp $0x8,%ecx 3d: 73 e8 jae 0x27 3f: eb .byte 0xeb