ci2 starts bisection 2023-06-12 11:21:27.36749004 +0000 UTC m=+175862.816821888 bisecting fixing commit since cc3c44c9fda264c6d401be04e95449a57c1231c6 building syzkaller on ecca8a243762a781257ba0b65291bca940e13e9c ensuring issue is reproducible on original commit cc3c44c9fda264c6d401be04e95449a57c1231c6 testing commit cc3c44c9fda264c6d401be04e95449a57c1231c6 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8dd61c6ebb217e846fef3a9e581353008f2f0c274d0c5a313d1bc5f2b42ebabb run #0: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #1: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #2: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #3: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #4: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #5: crashed: kernel BUG in clear_inode run #6: crashed: KASAN: slab-use-after-free Read in ntfs_lookup_inode_by_name run #7: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #8: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #9: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #10: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #11: crashed: KASAN: out-of-bounds Read in ntfs_lookup_inode_by_name run #12: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #13: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #14: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #15: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #16: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #17: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #18: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #19: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name testing current HEAD 858fd168a95c5b9669aac8db6c14a9aeab446375 testing commit 858fd168a95c5b9669aac8db6c14a9aeab446375 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 369e8fd603dcb1744888865d7cb485c7db2d8533ea7f5177b2d0629ad065f1fa run #0: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #1: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #2: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #3: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #4: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #5: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #6: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #7: crashed: KASAN: out-of-bounds Read in ntfs_lookup_inode_by_name run #8: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name run #9: crashed: KASAN: use-after-free Read in ntfs_lookup_inode_by_name crash still not fixed/happens on the oldest tested release revisions tested: 2, total time: 46m40.729049068s (build: 39m23.838219482s, test: 6m51.685419434s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Linux 6.4-rc6 crash: KASAN: use-after-free Read in ntfs_lookup_inode_by_name loop0: detected capacity change from 0 to 4096 ntfs: volume version 3.1. ================================================================== BUG: KASAN: use-after-free in sle64_to_cpup fs/ntfs/endian.h:46 [inline] BUG: KASAN: use-after-free in ntfs_lookup_inode_by_name+0xff1/0x2d50 fs/ntfs/dir.c:292 Read of size 8 at addr ffff88806f77555a by task syz-executor.0/5439 CPU: 0 PID: 5439 Comm: syz-executor.0 Not tainted 6.4.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x167/0x220 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 sle64_to_cpup fs/ntfs/endian.h:46 [inline] ntfs_lookup_inode_by_name+0xff1/0x2d50 fs/ntfs/dir.c:292 check_windows_hibernation_status+0x100/0x460 fs/ntfs/super.c:1282 load_system_files+0x2fd3/0x3ff0 fs/ntfs/super.c:1997 ntfs_fill_super+0x14e9/0x28c0 fs/ntfs/super.c:2900 mount_bdev+0x283/0x370 fs/super.c:1380 legacy_get_tree+0xe9/0x170 fs/fs_context.c:610 vfs_get_tree+0x7f/0x220 fs/super.c:1510 do_new_mount+0x1e5/0x930 fs/namespace.c:3039 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x232/0x2c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fac2ae8d69a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fac2bc01f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000001ec6a RCX: 00007fac2ae8d69a RDX: 000000002001ec80 RSI: 000000002001ecc0 RDI: 00007fac2bc01fe0 RBP: 00007fac2bc02020 R08: 00007fac2bc02020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000002001ec80 R13: 000000002001ecc0 R14: 00007fac2bc01fe0 R15: 000000002001ed00 The buggy address belongs to the physical page: page:ffffea0001bddd40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x6f775 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0001bddd88 ffffea0001bddd08 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 5439, tgid 5437 (syz-executor.0), ts 72137155317, free_ts 72191877686 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x321c/0x33a0 mm/page_alloc.c:3502 __alloc_pages+0x255/0x670 mm/page_alloc.c:4768 __folio_alloc+0x13/0x30 mm/page_alloc.c:4800 vma_alloc_folio+0x308/0x680 mm/mempolicy.c:2240 do_anonymous_page mm/memory.c:4085 [inline] do_pte_missing mm/memory.c:3645 [inline] handle_pte_fault mm/memory.c:4947 [inline] __handle_mm_fault mm/memory.c:5089 [inline] handle_mm_fault+0x28ca/0x4260 mm/memory.c:5243 do_user_addr_fault arch/x86/mm/fault.c:1349 [inline] handle_page_fault arch/x86/mm/fault.c:1534 [inline] exc_page_fault+0x274/0x910 arch/x86/mm/fault.c:1590 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2564 free_unref_page_list+0x596/0x830 mm/page_alloc.c:2705 release_pages+0x1a0f/0x1bc0 mm/swap.c:1042 tlb_batch_pages_flush mm/mmu_gather.c:97 [inline] tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu+0xe9/0x1e0 mm/mmu_gather.c:299 tlb_finish_mmu+0xb6/0x1c0 mm/mmu_gather.c:391 unmap_region+0x247/0x2a0 mm/mmap.c:2222 do_vmi_align_munmap+0xe43/0x1470 mm/mmap.c:2473 do_vmi_munmap+0x199/0x1f0 mm/mmap.c:2530 __vm_munmap+0x1ff/0x3d0 mm/mmap.c:2805 __do_sys_munmap mm/mmap.c:2830 [inline] __se_sys_munmap mm/mmap.c:2827 [inline] __x64_sys_munmap+0x64/0x70 mm/mmap.c:2827 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88806f775400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f775480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88806f775500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806f775580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806f775600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================