bisecting fixing commit since cbfa1702aaf69b2311ea1b35e04f113c48368c67 building syzkaller on 5abc3f1ab298244473b613c289f1536e366fcf04 testing commit cbfa1702aaf69b2311ea1b35e04f113c48368c67 with gcc (GCC) 8.1.0 kernel signature: afdb48410fb3a43f2148423ab2c20a2d93e7aa57d015f9c9077b54a596f2c78f run #0: crashed: KASAN: use-after-free Read in diFree run #1: crashed: general protection fault in diFree run #2: crashed: general protection fault in diFree run #3: crashed: KASAN: use-after-free Read in diFree run #4: crashed: general protection fault in diFree run #5: crashed: KASAN: use-after-free Read in diFree run #6: crashed: KASAN: use-after-free Read in diFree run #7: crashed: KASAN: use-after-free Read in diFree run #8: crashed: general protection fault in diFree run #9: crashed: general protection fault in diFree testing current HEAD 87335852c5d9ec629f80bb2257b9a9945962b719 testing commit 87335852c5d9ec629f80bb2257b9a9945962b719 with gcc (GCC) 8.1.0 kernel signature: 5b0741a68f37f837b1ed6c5610e690cf37960f0abb9bd1049463cc92a897cc0c run #0: crashed: general protection fault in diFree run #1: crashed: KASAN: use-after-free Read in diFree run #2: crashed: general protection fault in diFree run #3: crashed: KASAN: use-after-free Read in diFree run #4: crashed: general protection fault in diFree run #5: crashed: KASAN: use-after-free Read in diFree run #6: crashed: KASAN: use-after-free Read in diFree run #7: crashed: KASAN: use-after-free Read in diFree run #8: crashed: general protection fault in diFree run #9: crashed: general protection fault in diFree revisions tested: 2, total time: 24m46.169122336s (build: 18m17.00806082s, test: 5m57.474973409s) the crash still happens on HEAD commit msg: Linux 4.14.209 crash: general protection fault in diFree ERROR: (device loop4): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop2): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop3): xtSearch: XT_GETPAGE: xtree page corrupt 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: 7955 Comm: syz-executor.3 Not tainted 4.14.209-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881d52e4340 task.stack: ffff8881d82c0000 RIP: 0010:diFree+0x1b5/0x32a0 fs/jfs/jfs_imap.c:892 RSP: 0018:ffff8881d82c77a0 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 1ffff11038ff8f45 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c7fc76a8 RBP: ffff8881d82c7a50 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000028 R11: ffff8881d52e4340 R12: ffff8881e7cfad00 R13: 0000000000000000 R14: ffff8881d82c7a28 R15: ffff8881c7fc7728 FS: 00007fd4496bc700(0000) GS:ffff8881f6600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001590004 CR3: 00000001d553e003 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: jfs_evict_inode+0xd1/0x110 fs/jfs/inode.c:164 evict+0x29c/0x590 fs/inode.c:555 iput_final fs/inode.c:1524 [inline] iput+0x3ac/0x810 fs/inode.c:1551 diFreeSpecial+0x5d/0x80 fs/jfs/jfs_imap.c:569 jfs_mount+0x295/0x340 fs/jfs/jfs_mount.c:201 jfs_fill_super+0x524/0xaf0 fs/jfs/super.c:589 mount_bdev+0x26f/0x330 fs/super.c:1134 jfs_do_mount+0x10/0x20 fs/jfs/super.c:703 mount_fs+0x7f/0x269 fs/super.c:1237 vfs_kern_mount.part.9+0x58/0x3c0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0x352/0x2af0 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xb1/0xd0 fs/namespace.c:3072 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x4607ea RSP: 002b:00007fd4496bba88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd4496bbb20 RCX: 00000000004607ea RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd4496bbae0 RBP: 00007fd4496bbae0 R08: 00007fd4496bbb20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 000000002006d200 Code: 4c 8b 68 80 48 8b 85 28 fe ff ff 49 8d 5d 04 48 c1 e8 0c 48 89 da 48 c1 ea 03 48 89 85 30 fe ff ff 48 b8 00 00 00 00 00 fc ff df <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 RIP: diFree+0x1b5/0x32a0 fs/jfs/jfs_imap.c:892 RSP: ffff8881d82c77a0 ---[ end trace 05f1a6485933c0ff ]---