ci2 starts bisection 2025-02-17 13:55:40.915054058 +0000 UTC m=+18110.005613959 bisecting fixing commit since c61bd26ae81a896c8660150b4e356153da30880a building syzkaller on 3113787fe7a0c96998737e520aa95c303fdd41ef ensuring issue is reproducible on original commit c61bd26ae81a896c8660150b4e356153da30880a testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a2a5b324429d38a599a273497482c0473639e26eaf8e464491581cc40071a84 all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0f55987e793b4909b497906a01dd5ceb036e03c01bb8e7df2a1e43d8c3a50f1d all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, 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=3706 full=7269 leaves diff=1976 split chunks (needed=false): <1976> split chunk #0 of len 1976 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 411735744a4a4cd8eff99d589ea084f5864f691891746e441664e485ec1aca33 all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d6b3a5d1e185549873c5bbfd6de50ae11bc40bda5b11ac1396c541ea5ade7d35 all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 49584add1f871c80ef412a0a049cf93c824d52d8d1f7833aaa666e929220d07d all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, 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 c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: eec1b9bee378a039874ea07f4e7f52b3b8d1a3e2874bbff350053395ca494918 all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9bd460fce464419ef510f90aff9ac50d3535c91daa12aa31895a826a4a09d52b all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, types: [KASAN] the chunk can be dropped disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD c16c81c81336c0912eb3542194f16215c0a40037 testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fcc998739d2512b9aa2ddb1db37790a2aba4f8ed9b8c9c8f33d2fed99a59d84c all runs: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry representative crash: KASAN: use-after-free Read in __ext4_check_dir_entry, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h6m13.38036607s (build: 33m34.466136837s, test: 30m39.106533333s) crash still not fixed or there were kernel test errors commit msg: Linux 5.15.178 crash: KASAN: use-after-free Read in __ext4_check_dir_entry EXT4-fs warning (device loop3): dx_probe:891: inode #2: comm syz-executor.3: dx entry: limit 0 != root limit 124 EXT4-fs warning (device loop3): dx_probe:965: inode #2: comm syz-executor.3: Corrupt directory, running e2fsck is recommended ================================================================== BUG: KASAN: use-after-free in __ext4_check_dir_entry+0x5ee/0x920 fs/ext4/dir.c:85 Read of size 2 at addr ffff88810ee2d003 by task syz-executor.3/4277 CPU: 0 PID: 4277 Comm: syz-executor.3 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x41/0x5e lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x6c/0x309 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:451 __ext4_check_dir_entry+0x5ee/0x920 fs/ext4/dir.c:85 ext4_readdir+0xd2c/0x2780 fs/ext4/dir.c:258 iterate_dir+0x48a/0x6d0 fs/readdir.c:65 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x122/0x220 fs/readdir.c:354 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fbb87068ee9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbb86beb0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fbb8719ffa0 RCX: 00007fbb87068ee9 RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007fbb870b547f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fbb8719ffa0 R15: 00007fff3693bee8 Allocated by task 4196: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x61/0x80 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x211/0x310 mm/slub.c:3233 vm_area_dup+0x73/0x280 kernel/fork.c:358 __split_vma+0x88/0x420 mm/mmap.c:2718 __do_munmap+0xa02/0x10d0 mm/mmap.c:2853 do_munmap mm/mmap.c:2898 [inline] munmap_vma_range mm/mmap.c:602 [inline] __mmap_region mm/mmap.c:1745 [inline] mmap_region+0x1ce/0xfe0 mm/mmap.c:2921 do_mmap+0x5ca/0xd80 mm/mmap.c:1574 vm_mmap_pgoff+0x160/0x200 mm/util.c:551 ksys_mmap_pgoff+0x396/0x570 mm/mmap.c:1623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 4196: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:360 ____kasan_slab_free mm/kasan/common.c:366 [inline] ____kasan_slab_free mm/kasan/common.c:328 [inline] __kasan_slab_free+0xe0/0x110 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook mm/slub.c:1731 [inline] slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x7e/0x450 mm/slub.c:3515 remove_vma mm/mmap.c:187 [inline] remove_vma_list mm/mmap.c:2616 [inline] __do_munmap+0x5bf/0x10d0 mm/mmap.c:2890 do_munmap mm/mmap.c:2898 [inline] munmap_vma_range mm/mmap.c:602 [inline] __mmap_region mm/mmap.c:1745 [inline] mmap_region+0x1ce/0xfe0 mm/mmap.c:2921 do_mmap+0x5ca/0xd80 mm/mmap.c:1574 vm_mmap_pgoff+0x160/0x200 mm/util.c:551 ksys_mmap_pgoff+0x396/0x570 mm/mmap.c:1623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88810ee2d000 which belongs to the cache vm_area_struct of size 192 The buggy address is located 3 bytes inside of 192-byte region [ffff88810ee2d000, ffff88810ee2d0c0) The buggy address belongs to the page: page:ffffea00043b8b40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ee2d memcg:ffff88810a58d401 flags: 0x200000000000200(slab|node=0|zone=2) raw: 0200000000000200 dead000000000100 dead000000000122 ffff88810012fa00 raw: 0000000000000000 0000000000100010 00000001ffffffff ffff88810a58d401 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 577, ts 29352526160, free_ts 29348703202 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1319/0x2e50 mm/page_alloc.c:4192 __alloc_pages+0x2b3/0x590 mm/page_alloc.c:5465 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab+0x2eb/0x430 mm/slub.c:1912 new_slab mm/slub.c:1975 [inline] ___slab_alloc+0xb1c/0xf80 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x2d7/0x310 mm/slub.c:3233 vm_area_alloc+0x17/0xf0 kernel/fork.c:350 __mmap_region mm/mmap.c:1770 [inline] mmap_region+0x763/0xfe0 mm/mmap.c:2921 do_mmap+0x5ca/0xd80 mm/mmap.c:1574 vm_mmap_pgoff+0x160/0x200 mm/util.c:551 ksys_mmap_pgoff+0x91/0x570 mm/mmap.c:1623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare+0x34e/0x730 mm/page_alloc.c:1391 free_unref_page_prepare mm/page_alloc.c:3317 [inline] free_unref_page_list+0x168/0x9a0 mm/page_alloc.c:3433 release_pages+0x9f2/0x1100 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x125/0x6c0 mm/mmu_gather.c:338 exit_mmap+0x185/0x580 mm/mmap.c:3206 __mmput kernel/fork.c:1127 [inline] mmput+0x90/0x390 kernel/fork.c:1148 exit_mm kernel/exit.c:550 [inline] do_exit+0x87f/0x21d0 kernel/exit.c:861 do_group_exit+0xe7/0x290 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:1005 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88810ee2cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810ee2cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88810ee2d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810ee2d080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88810ee2d100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================