bisecting fixing commit since a1b977b49b66c75e6c51a515f6700371ae720217 building syzkaller on fc7735a27949755327024847e12dcc1b868bcb99 testing commit a1b977b49b66c75e6c51a515f6700371ae720217 with gcc (GCC) 8.1.0 kernel signature: 2952453a1270f03ddb35e709f56e0ec2d1fb231358de82164948c244826c852d all runs: crashed: KASAN: use-after-free Read in ntfs_iget testing current HEAD 31acccdc877486a649a86d37725a15175fcd5ed6 testing commit 31acccdc877486a649a86d37725a15175fcd5ed6 with gcc (GCC) 8.1.0 kernel signature: 46849a02acef8b94d1b329a80e6f9b3b00b20804101b088d8197c653ce86f8f2 all runs: crashed: KASAN: use-after-free Read in ntfs_iget revisions tested: 2, total time: 24m45.519401838s (build: 18m20.151988389s, test: 5m37.622773316s) the crash still happens on HEAD commit msg: Linux 4.19.157 crash: KASAN: use-after-free Read in ntfs_iget wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 ntfs: (device loop3): map_mft_record_page(): Mft record 0x1 is corrupt. Run chkdsk. IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready ================================================================== IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready BUG: KASAN: use-after-free in ntfs_read_locked_inode+0x411a/0x51e0 fs/ntfs/inode.c:670 Read of size 8 at addr ffff888090b5d6cd by task syz-executor.3/8058 CPU: 0 PID: 8058 Comm: syz-executor.3 Not tainted 4.19.157-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x22a lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x307 mm/kasan/report.c:412 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:443 ntfs_read_locked_inode+0x411a/0x51e0 fs/ntfs/inode.c:670 ntfs_iget+0xe6/0x120 fs/ntfs/inode.c:190 load_and_init_attrdef fs/ntfs/super.c:1603 [inline] load_system_files fs/ntfs/super.c:1831 [inline] ntfs_fill_super+0x1ece/0x79d0 fs/ntfs/super.c:2908 mount_bdev+0x26f/0x330 fs/super.c:1158 ntfs_mount+0x10/0x20 fs/ntfs/super.c:3065 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:00007fbbd1b86a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fbbd1b86b20 RCX: 00000000004608aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fbbd1b86ae0 RBP: 00007fbbd1b86ae0 R08: 00007fbbd1b86b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 000000002007dd00 The buggy address belongs to the page: page:ffffea000242d740 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfffe0000000000() raw: 00fffe0000000000 ffffea0002064248 ffffea000242d8c8 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888090b5d580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888090b5d600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888090b5d680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888090b5d700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888090b5d780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== Bluetooth: hci1: command 0x0419 tx timeout wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 Bluetooth: hci0: command 0x0419 tx timeout IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready Bluetooth: hci2: command 0x0419 tx timeout wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 Bluetooth: hci4: command 0x0419 tx timeout Bluetooth: hci3: command 0x0419 tx timeout Bluetooth: hci5: command 0x0419 tx timeout wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50