ci2 starts bisection 2025-02-04 23:56:28.14703629 +0000 UTC m=+11075.081041050 bisecting fixing commit since d2bafcf224f3911b183113b2fcb536c9e90684a3 building syzkaller on d7d323527f8e6073ec1da024a08c26f50626254f ensuring issue is reproducible on original commit d2bafcf224f3911b183113b2fcb536c9e90684a3 testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: abe1dcd7073ba94b9c37f644026f7f609073e8dd5c09ebbca26caee64f2e2017 run #0: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #1: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #2: crashed: KASAN: out-of-bounds Read in ext4_inlinedir_to_tree run #3: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #4: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #5: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #6: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #7: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #8: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #9: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #10: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #11: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #12: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #13: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #14: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #15: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #16: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #17: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #18: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree run #19: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c325495bfbc66b218f8a9ab599974829e5ec4e0a6bb8724d9cdc3796e8037175 all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=4055 full=8129 leaves diff=2118 split chunks (needed=false): <2118> split chunk #0 of len 2118 into 5 parts testing without sub-chunk 1/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f950998d4c9752033dd3ed6c4185023f04d829fda65a7d2e2a88637e6d533b2e all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2b812c3652345b852e0a7d82b006eec9ef701ada60b5adc5850d5fc7aacdc4e4 all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9222276598288560415da37461fb67eb71755c5f8f03fb2c76b5441decdb11f8 all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7a4bb984a57b3a7d801886995fd688a08a35aff5c8c738a04e999d370eeb85da all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit d2bafcf224f3911b183113b2fcb536c9e90684a3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8f6b59d1d945ee3e98787973c8338e661f024225cb8da0efe4d84f305f21b60a all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] the chunk can be dropped disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD 5c8c229261f14159b54b9a32f12e5fa89d88b905 testing commit 5c8c229261f14159b54b9a32f12e5fa89d88b905 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 56ff9f92dedcd73d6ebf30030cfa61d94f50ab0bdf12f3d7649177017fcd3c5a all runs: crashed: KASAN: use-after-free Read in ext4_inlinedir_to_tree representative crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 2h18m15.051441096s (build: 1h10m3.297971151s, test: 1h2m24.085878717s) crash still not fixed or there were kernel test errors commit msg: Merge tag 'kthreads-fixes-2025-02-04' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks crash: KASAN: use-after-free Read in ext4_inlinedir_to_tree EXT4-fs error (device loop0): htree_dirblock_to_tree:1112: inode #2: block 21: comm syz-executor: bad entry in directory: directory entry overrun - offset=1004, inode=0, rec_len=1000, size=1024 fake=0 ================================================================== BUG: KASAN: use-after-free in ext4_read_inline_data fs/ext4/inline.c:209 [inline] BUG: KASAN: use-after-free in ext4_inlinedir_to_tree+0x47e/0x1010 fs/ext4/inline.c:1366 Read of size 324 at addr ffff888125c84c05 by task syz-executor/1956 CPU: 1 UID: 0 PID: 1956 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x108/0x280 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ext4_read_inline_data fs/ext4/inline.c:209 [inline] ext4_inlinedir_to_tree+0x47e/0x1010 fs/ext4/inline.c:1366 ext4_htree_fill_tree+0x4db/0x1240 fs/ext4/namei.c:1211 ext4_dx_readdir fs/ext4/dir.c:598 [inline] ext4_readdir+0x253c/0x2fb0 fs/ext4/dir.c:143 iterate_dir+0x18e/0x490 fs/readdir.c:108 __do_sys_getdents64 fs/readdir.c:403 [inline] __se_sys_getdents64+0x1b3/0x400 fs/readdir.c:389 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3074a2c013 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 52 43 f8 ff 66 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7 d8 RSP: 002b:00007fffeccdac28 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555583a86520 RCX: 00007f3074a2c013 RDX: 0000000000008000 RSI: 0000555583a86520 RDI: 0000000000000006 RBP: 0000555583a864f4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000016 R14: 0000555583a864f0 R15: 00007fffeccddfc0 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x7fcba690f pfn:0x125c84 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000 raw: 00000007fcba690f 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 1428, tgid 1428 (syz-executor), ts 60027093392, free_ts 60696133352 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x108/0x120 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x3b4a/0x3d80 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x256/0x650 mm/page_alloc.c:4739 alloc_pages_mpol+0x14d/0x3b0 mm/mempolicy.c:2270 folio_alloc_mpol_noprof mm/mempolicy.c:2289 [inline] vma_alloc_folio_noprof+0x2b9/0x430 mm/mempolicy.c:2324 folio_prealloc+0x23/0xf0 alloc_anon_folio mm/memory.c:4822 [inline] do_anonymous_page mm/memory.c:4879 [inline] do_pte_missing mm/memory.c:4045 [inline] handle_pte_fault mm/memory.c:5889 [inline] __handle_mm_fault mm/memory.c:6032 [inline] handle_mm_fault+0x183a/0x3230 mm/memory.c:6201 do_user_addr_fault arch/x86/mm/fault.c:1337 [inline] handle_page_fault arch/x86/mm/fault.c:1480 [inline] exc_page_fault+0x3fa/0x780 arch/x86/mm/fault.c:1538 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 page last free pid 1428 tgid 1428 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_folios+0xb24/0x1340 mm/page_alloc.c:2707 folios_put_refs+0x409/0x510 mm/swap.c:994 free_pages_and_swap_cache+0x275/0x4d0 mm/swap_state.c:331 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:389 [inline] tlb_flush_mmu+0x2ad/0x4e0 mm/mmu_gather.c:396 tlb_finish_mmu+0xb6/0x1c0 mm/mmu_gather.c:488 vms_clear_ptes+0x3d2/0x4e0 mm/vma.c:1144 vms_complete_munmap_vmas+0x1ab/0x6e0 mm/vma.c:1186 do_vmi_align_munmap+0x590/0x6a0 mm/vma.c:1445 do_vmi_munmap+0x1b6/0x210 mm/vma.c:1493 __vm_munmap+0x257/0x430 mm/vma.c:2951 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x5b/0x70 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x170 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888125c84b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888125c84b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888125c84c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888125c84c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888125c84d00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================