bisecting fixing commit since cbfa1702aaf69b2311ea1b35e04f113c48368c67 building syzkaller on 5abc3f1ab298244473b613c289f1536e366fcf04 testing commit cbfa1702aaf69b2311ea1b35e04f113c48368c67 with gcc (GCC) 8.4.1 20210217 kernel signature: c0f1be6c1afeac7a2a0f604df8bfb98f6267be1e8906184765878d798645b9f2 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: 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: KASAN: use-after-free Read in diFree run #8: crashed: KASAN: use-after-free Read in diFree run #9: crashed: KASAN: use-after-free Read in diFree run #10: crashed: KASAN: use-after-free Read in diFree run #11: crashed: KASAN: use-after-free Read in diFree run #12: crashed: general protection fault in diFree run #13: crashed: general protection fault in diFree run #14: crashed: general protection fault in diFree run #15: crashed: general protection fault in diFree run #16: crashed: general protection fault in diFree run #17: crashed: KASAN: use-after-free Read in diFree run #18: crashed: general protection fault in diFree run #19: crashed: KASAN: use-after-free Read in diFree testing current HEAD 670d6552eda8ff0c5f396d3d6f0174237917c66c testing commit 670d6552eda8ff0c5f396d3d6f0174237917c66c with gcc (GCC) 8.4.1 20210217 kernel signature: 2b7d5b440478e2ead31ad7e7adaeb6c7f4122da599e65d7789deae67b02a477b run #0: crashed: KASAN: use-after-free Read 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: general protection fault in diFree run #6: crashed: KASAN: use-after-free Read in diFree run #7: crashed: general protection fault in diFree run #8: crashed: general protection fault in diFree run #9: crashed: general protection fault in diFree revisions tested: 2, total time: 21m41.262697033s (build: 15m0.684008681s, test: 6m17.925060511s) the crash still happens on HEAD commit msg: Linux 4.14.227 crash: general protection fault in diFree ERROR: (device loop4): xtSearch: XT_GETPAGE: xtree page corrupt kasan: CONFIG_KASAN_INLINE enabled kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access 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: 1 PID: 7920 Comm: syz-executor.1 Not tainted 4.14.227-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881f457e480 task.stack: ffff8881c5350000 RIP: 0010:diFree+0x1b5/0x32a0 fs/jfs/jfs_imap.c:892 RSP: 0018:ffff8881c53577a0 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 1ffff110393e3705 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c9f1b4a8 RBP: ffff8881c5357a50 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000028 R11: ffff8881f457e480 R12: ffff8881d9c722c0 R13: 0000000000000000 R14: ffff8881c5357a28 R15: ffff8881c9f1b528 FS: 00007f7d9c326700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f747865f028 CR3: 00000001d8227003 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:555 iput_final fs/inode.c:1524 [inline] iput fs/inode.c:1551 [inline] iput+0x3ac/0x810 fs/inode.c:1536 diFreeSpecial fs/jfs/jfs_imap.c:569 [inline] diFreeSpecial+0x5d/0x80 fs/jfs/jfs_imap.c:561 jfs_mount+0x295/0x340 fs/jfs/jfs_mount.c:202 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/0x270 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:0x466baa RSP: 002b:00007f7d9c325fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000466baa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f7d9c326000 RBP: 00007f7d9c326040 R08: 00007f7d9c326040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f7d9c326000 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: ffff8881c53577a0 general protection fault: 0000 [#2] PREEMPT SMP KASAN Modules linked in: ERROR: (device loop0): xtSearch: XT_GETPAGE: xtree page corrupt CPU: 1 PID: 7913 Comm: syz-executor.2 Tainted: G D 4.14.227-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881d50ee040 task.stack: ffff8881c4d30000 RIP: 0010:diFree+0x1b5/0x32a0 fs/jfs/jfs_imap.c:892 RSP: 0018:ffff8881c4d377a0 EFLAGS: 00010247 RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 1ffff110393e9925 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c9f4c5a8 RBP: ffff8881c4d37a50 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000028 R11: ffff8881d50ee040 R12: ffff8881d9c72180 R13: 0000000000000000 R14: ffff8881c4d37a28 R15: ffff8881c9f4c628 FS: 00007fd5a3791700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f689c0340e8 CR3: 00000001d5580006 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:555 iput_final fs/inode.c:1524 [inline] iput fs/inode.c:1551 [inline] iput+0x3ac/0x810 fs/inode.c:1536 diFreeSpecial fs/jfs/jfs_imap.c:569 [inline] diFreeSpecial+0x5d/0x80 fs/jfs/jfs_imap.c:561 jfs_mount+0x295/0x340 fs/jfs/jfs_mount.c:202 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/0x270 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:0x466baa RSP: 002b:00007fd5a3790fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000466baa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd5a3791000 RBP: 00007fd5a3791040 R08: 00007fd5a3791040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 00007fd5a3791000 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: ffff8881c4d377a0 ---[ end trace 788c7dc3a1cb5126 ]---