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 3 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: found 1 quota changes gfs2: fsid=syz:syz.0: original: ioctl_fiemap fs/ioctl.c:219 [inline] gfs2: fsid=syz:syz.0: original: do_vfs_ioctl+0x1173/0x1430 fs/ioctl.c:531 gfs2: fsid=syz:syz.0: pid: 5335 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:3488 gfs2: fsid=syz:syz.0: pid: 5335 gfs2: fsid=syz:syz.0: lock type: 2 req lock state : 1 gfs2: fsid=syz:syz.0: G: s:EX n:2/926 f:yfaqo 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:5335 [syz.0.0] ioctl_fiemap fs/ioctl.c:219 [inline] gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:5335 [syz.0.0] do_vfs_ioctl+0x1173/0x1430 fs/ioctl.c:531 gfs2: fsid=syz:syz.0: I: n:1/2342 t:8 f:0x08 d:0x00000000 s:49530 p:1 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1527! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5335 Comm: syz.0.0 Not tainted syzkaller #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:1527 [inline] RIP: 0010:gfs2_glock_nq+0x146e/0x1830 fs/gfs2/glock.c:1568 Code: 2a fe 0f b7 0b 48 c7 c7 c0 63 91 8b 48 8b 74 24 20 89 ea e8 54 89 2c fd 31 ff 48 8b 74 24 18 ba 01 00 00 00 e8 13 6e ff ff 90 <0f> 0b 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c b8 ed ff ff 4c 89 ff e8 RSP: 0018:ffffc9000d446f60 EFLAGS: 00010246 RAX: 3155c55896608700 RBX: ffffc9000d447122 RCX: 3155c55896608700 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1b7a224 R12: 1ffff92001a88f6f R13: ffffc9000d447b78 R14: ffff888051eff4e8 R15: ffffc9000d447b82 FS: 00007f7bc56416c0(0000) GS:ffff88808d97e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000160 CR3: 00000000413ec000 CR4: 0000000000352ef0 Call Trace: gfs2_page_mkwrite+0x384/0x1910 fs/gfs2/file.c:434 do_page_mkwrite+0x14d/0x310 mm/memory.c:3488 wp_page_shared mm/memory.c:3889 [inline] do_wp_page+0x268d/0x5800 mm/memory.c:4108 handle_pte_fault mm/memory.c:6193 [inline] __handle_mm_fault+0x1033/0x5400 mm/memory.c:6318 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6487 do_user_addr_fault+0x764/0x1380 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 4d 0d 04 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:ffffc9000d4477e8 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000000000038 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc9000d447880 RDI: 0000200000000160 RBP: ffffc9000d447930 R08: ffffc9000d4478b7 R09: 1ffff92001a88f16 R10: dffffc0000000000 R11: fffff52001a88f17 R12: 0000200000000198 R13: 00007ffffffff000 R14: ffffc9000d447880 R15: 0000200000000160 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:144 iomap_to_fiemap fs/iomap/fiemap.c:34 [inline] iomap_fiemap+0x476/0x520 fs/iomap/fiemap.c:80 gfs2_fiemap+0x12c/0x190 fs/gfs2/inode.c:2183 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x1173/0x1430 fs/ioctl.c:531 __do_sys_ioctl fs/ioctl.c:595 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:583 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:0x7f7bc478eec9 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:00007f7bc5641038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7bc49e5fa0 RCX: 00007f7bc478eec9 RDX: 0000200000000140 RSI: 00000000c020660b RDI: 0000000000000004 RBP: 00007f7bc4811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7bc49e6038 R14: 00007f7bc49e5fa0 R15: 00007ffeb5eb4d28 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1527 [inline] RIP: 0010:gfs2_glock_nq+0x146e/0x1830 fs/gfs2/glock.c:1568 Code: 2a fe 0f b7 0b 48 c7 c7 c0 63 91 8b 48 8b 74 24 20 89 ea e8 54 89 2c fd 31 ff 48 8b 74 24 18 ba 01 00 00 00 e8 13 6e ff ff 90 <0f> 0b 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c b8 ed ff ff 4c 89 ff e8 RSP: 0018:ffffc9000d446f60 EFLAGS: 00010246 RAX: 3155c55896608700 RBX: ffffc9000d447122 RCX: 3155c55896608700 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1b7a224 R12: 1ffff92001a88f6f R13: ffffc9000d447b78 R14: ffff888051eff4e8 R15: ffffc9000d447b82 FS: 00007f7bc56416c0(0000) GS:ffff88808d97e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000160 CR3: 00000000413ec000 CR4: 0000000000352ef0 ---------------- 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 4d 0d 04 00 jmp 0x40d67 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