JFS: discard option not supported on device ERROR: (device loop0): diRead: i_ino != di_number JFS: discard option not supported on device kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 8560 Comm: syz-executor140 Not tainted 4.14.295-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 task: ffff8880af82e000 task.stack: ffff88808fab0000 RIP: 0010:lbmStartIO+0x14a/0x490 fs/jfs/jfs_logmgr.c:2143 RSP: 0018:ffff88808fab7988 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880aa5efe00 RCX: 0000000000000003 RDX: 000000000000001c RSI: 0000000000000000 RDI: 00000000000000e0 RBP: ffff88809b29c1c0 R08: 0000000000000001 R09: ffff88809b29c1c0 R10: ffff88809b29c247 R11: 0000000000000000 R12: ffff8880b3f5a940 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555556f56300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed12e3000 CR3: 00000000a3466000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lbmWrite+0x254/0x380 fs/jfs/jfs_logmgr.c:2092 lmNextPage.isra.0+0x263/0x700 fs/jfs/jfs_logmgr.c:637 lmWriteRecord+0x8b2/0xe30 fs/jfs/jfs_logmgr.c:550 lmLog+0x23f/0xa70 fs/jfs/jfs_logmgr.c:327 logMOUNT fs/jfs/jfs_mount.c:507 [inline] jfs_mount_rw+0x368/0x430 fs/jfs/jfs_mount.c:280 jfs_fill_super+0x78a/0xab0 fs/jfs/super.c:598 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f772c5b31ba RSP: 002b:00007ffed12e2838 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f772c5b31ba RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffed12e2850 RBP: 00007ffed12e2850 R08: 00007ffed12e2890 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000004 R13: 00007ffed12e2890 R14: 000000000000035a R15: 0000000020005270 Code: 48 c1 ea 03 80 3c 02 00 0f 85 06 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 6c 24 20 49 8d bd e0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d5 02 00 00 4d 8b ad e0 00 00 00 4d 39 ee 74 RIP: lbmStartIO+0x14a/0x490 fs/jfs/jfs_logmgr.c:2143 RSP: ffff88808fab7988 ---[ end trace 4a791d829647938e ]--- ---------------- Code disassembly (best guess): 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 06 03 00 00 jne 0x314 e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 4d 8b 6c 24 20 mov 0x20(%r12),%r13 1d: 49 8d bd e0 00 00 00 lea 0xe0(%r13),%rdi 24: 48 89 fa mov %rdi,%rdx 27: 48 c1 ea 03 shr $0x3,%rdx * 2b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2f: 0f 85 d5 02 00 00 jne 0x30a 35: 4d 8b ad e0 00 00 00 mov 0xe0(%r13),%r13 3c: 4d 39 ee cmp %r13,%r14 3f: 74 .byte 0x74