gfs2: fsid=syz:syz.0: lock type: 2 req lock state : 1 gfs2: fsid=syz:syz.0: G: s:EX n:2/925 f:yfqob t:EX d:EX/0 a:0 v:0 r:4 m:20 p:2 gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:6367 [syz-executor.2] ioctl_fiemap fs/ioctl.c:220 [inline] gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:6367 [syz-executor.2] do_vfs_ioctl+0x19ea/0x2b40 fs/ioctl.c:811 gfs2: fsid=syz:syz.0: I: n:1/2341 t:8 f:0x08 d:0x00000000 s:33587195 p:1568 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1560! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6367 Comm: syz-executor.2 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:add_to_queue fs/gfs2/glock.c:1560 [inline] RIP: 0010:gfs2_glock_nq+0x1747/0x1ab0 fs/gfs2/glock.c:1604 Code: fe 0f b7 0b 48 c7 c7 c0 2a ae 8b 48 8b 74 24 20 44 89 f2 e8 fb d7 5a 07 31 ff 48 8b 74 24 08 ba 01 00 00 00 e8 ca 63 ff ff 90 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 42 f8 ff ff 48 89 df e8 RSP: 0018:ffffc90016b86b18 EFLAGS: 00010246 RAX: 27519b4e6f859f00 RBX: ffffc90016b86cc2 RCX: 27519b4e6f859f00 RDX: ffffc9000bdba000 RSI: 000000000002c637 RDI: 000000000002c638 RBP: 0000000000000000 R08: ffffffff8171889c R09: 1ffff92002d70c24 R10: dffffc0000000000 R11: fffff52002d70c25 R12: ffffc90016b87a02 R13: 1ffff92002d70f3f R14: 0000000000000002 R15: ffffc90016b879f8 FS: 00007f1695c436c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200001e0 CR3: 000000002f91f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_page_mkwrite+0x31e/0x14e0 fs/gfs2/file.c:433 do_page_mkwrite+0x197/0x470 mm/memory.c:2966 wp_page_shared mm/memory.c:3353 [inline] do_wp_page+0x20e3/0x4c80 mm/memory.c:3493 handle_pte_fault mm/memory.c:5160 [inline] __handle_mm_fault+0x26a3/0x72b0 mm/memory.c:5285 handle_mm_fault+0x27e/0x770 mm/memory.c:5450 do_user_addr_fault arch/x86/mm/fault.c:1415 [inline] handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 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 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 df 83 f9 08 73 e8 eb RSP: 0018:ffffc90016b875f0 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000218 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc90016b876a0 RDI: 00000000200001e0 RBP: ffffc90016b87750 R08: ffffc90016b876d7 R09: 1ffff92002d70eda R10: dffffc0000000000 R11: fffff52002d70edb R12: 0000000000000038 R13: ffffc90016b876a0 R14: 00000000200001e0 R15: ffffc90016b876a0 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user+0x86/0xa0 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:191 [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/0x190 fs/gfs2/inode.c:2111 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x19ea/0x2b40 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f1694e7cda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1695c430c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1694fabf80 RCX: 00007f1694e7cda9 RDX: 00000000200001c0 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007f1694ec947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f1694fabf80 R15: 00007ffdf904f138 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1560 [inline] RIP: 0010:gfs2_glock_nq+0x1747/0x1ab0 fs/gfs2/glock.c:1604 Code: fe 0f b7 0b 48 c7 c7 c0 2a ae 8b 48 8b 74 24 20 44 89 f2 e8 fb d7 5a 07 31 ff 48 8b 74 24 08 ba 01 00 00 00 e8 ca 63 ff ff 90 <0f> 0b 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 42 f8 ff ff 48 89 df e8 RSP: 0018:ffffc90016b86b18 EFLAGS: 00010246 RAX: 27519b4e6f859f00 RBX: ffffc90016b86cc2 RCX: 27519b4e6f859f00 RDX: ffffc9000bdba000 RSI: 000000000002c637 RDI: 000000000002c638 RBP: 0000000000000000 R08: ffffffff8171889c R09: 1ffff92002d70c24 R10: dffffc0000000000 R11: fffff52002d70c25 R12: ffffc90016b87a02 R13: 1ffff92002d70f3f R14: 0000000000000002 R15: ffffc90016b879f8 FS: 00007f1695c436c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200001e0 CR3: 000000002f91f000 CR4: 00000000003506f0 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: 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 df je 0x19 3a: 83 f9 08 cmp $0x8,%ecx 3d: 73 e8 jae 0x27 3f: eb .byte 0xeb