bisecting fixing commit since a1b977b49b66c75e6c51a515f6700371ae720217 building syzkaller on d32b0bbf2f8cfe548553c4012e2c0f79040d999f testing commit a1b977b49b66c75e6c51a515f6700371ae720217 with gcc (GCC) 8.1.0 kernel signature: f15b029a95c55db971a16fbdd8181d5341e1130ced31757ac9c48f3303d8cc5a run #0: crashed: general protection fault in diFree run #1: crashed: KASAN: use-after-free Read in diFree run #2: crashed: KASAN: use-after-free Read in diFree run #3: crashed: KASAN: use-after-free Read in diFree run #4: crashed: KASAN: use-after-free Read in diFree run #5: crashed: KASAN: use-after-free Read in diFree run #6: crashed: general protection fault in diFree run #7: crashed: general protection fault in diFree run #8: crashed: KASAN: use-after-free Read in diFree run #9: crashed: general protection fault in diFree testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: affe4b75dbd55b48f287073cc4bfa941f126be4d792b1c346d0f96ac02206f7d run #0: crashed: KASAN: use-after-free Read in diFree run #1: crashed: general protection fault in diFree run #2: crashed: KASAN: use-after-free Read in diFree run #3: crashed: general protection fault in diFree run #4: crashed: KASAN: use-after-free Read 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: general protection fault in diFree run #8: crashed: KASAN: use-after-free Read in diFree run #9: crashed: general protection fault in diFree revisions tested: 2, total time: 29m11.687413549s (build: 22m21.845573862s, test: 6m5.324227062s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: general protection fault in diFree ERROR: (device loop2): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop5): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop0): 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 CPU: 1 PID: 8228 Comm: syz-executor.0 Not tainted 4.19.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:diFree+0x1bd/0x32f0 fs/jfs/jfs_imap.c:886 Code: 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 a3 RSP: 0018:ffff8881c1e67790 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c7b637a8 RBP: ffff8881c1e67a40 R08: ffffed1038f6c717 R09: ffffed1038f6c716 R10: ffffed1038f6c716 R11: ffff8881c7b638b3 R12: ffff8881f3cb8700 R13: 0000000000000000 R14: ffff8881c1e67a18 R15: ffff8881c7b63828 FS: 00007f4ca6f26700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd14a645010 CR3: 00000001d4331004 CR4: 00000000001606e0 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:559 iput_final fs/inode.c:1555 [inline] iput+0x378/0x6b0 fs/inode.c:1581 diFreeSpecial+0x5d/0x80 fs/jfs/jfs_imap.c:563 jfs_mount+0x295/0x340 fs/jfs/jfs_mount.c:201 jfs_fill_super+0x52c/0xb10 fs/jfs/super.c:589 mount_bdev+0x26f/0x330 fs/super.c:1158 jfs_do_mount+0x10/0x20 fs/jfs/super.c:703 mount_fs+0x7f/0x2a2 fs/super.c:1261 vfs_kern_mount.part.11+0x58/0x3d0 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x376/0x2710 fs/namespace.c:2799 ksys_mount+0xba/0xe0 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xb9/0x150 fs/namespace.c:3026 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4608aa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f4ca6f25a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f4ca6f25b20 RCX: 00000000004608aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f4ca6f25ae0 RBP: 00007f4ca6f25ae0 R08: 00007f4ca6f25b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 000000002006d200 Modules linked in: ---[ end trace 5dd31edcd6a4f53a ]--- RIP: 0010:diFree+0x1bd/0x32f0 fs/jfs/jfs_imap.c:886 Code: 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 a3 RSP: 0018:ffff8881c1e67790 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c7b637a8 RBP: ffff8881c1e67a40 R08: ffffed1038f6c717 R09: ffffed1038f6c716 R10: ffffed1038f6c716 R11: ffff8881c7b638b3 R12: ffff8881f3cb8700 R13: 0000000000000000 R14: ffff8881c1e67a18 R15: ffff8881c7b63828 FS: 00007f4ca6f26700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 00000001d4331001 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ERROR: (device loop4): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop1): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop5): xtSearch: XT_GETPAGE: xtree page corrupt ERROR: (device loop3): xtSearch: XT_GETPAGE: xtree page corrupt