ci2 starts bisection 2024-10-24 04:06:53.765212287 +0000 UTC m=+105987.749664988 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 [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: 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], 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 [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: 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 [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: 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 [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: 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 [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: 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: 133e6d191268a37335f6cbc08ef6e50119314ee3372569ede99b19e1d1f4be0d 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing current HEAD 74cdd62cb4706515b454ce5bacb73b566c1d1bcf testing commit 74cdd62cb4706515b454ce5bacb73b566c1d1bcf gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0b78a0431536c074ab0134d99e415e4a1638807896607775b63b848f28ecf2e6 run #0: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #1: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #2: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #3: crashed: KASAN: out-of-bounds Read in __ext4_check_dir_entry run #4: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #5: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #6: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #7: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #8: crashed: KASAN: use-after-free Read in __ext4_check_dir_entry run #9: 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: 1h39m28.741164187s (build: 41m8.212159176s, test: 56m8.916641466s) crash still not fixed or there were kernel test errors commit msg: Linux 5.15.169 crash: KASAN: use-after-free Read in __ext4_check_dir_entry 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 ffff888120205003 by task syz-executor.3/4246 CPU: 0 PID: 4246 Comm: syz-executor.3 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:0x7f5a1b45fee9 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:00007f5a1afe20c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f5a1b596fa0 RCX: 00007f5a1b45fee9 RDX: 0000000000000010 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007f5a1b4ac47f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f5a1b596fa0 R15: 00007ffc709c6a38 Allocated by task 3899: 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 anon_vma_chain_alloc mm/rmap.c:138 [inline] __anon_vma_prepare+0x45/0x4d0 mm/rmap.c:192 anon_vma_prepare include/linux/rmap.h:152 [inline] do_cow_fault mm/memory.c:4267 [inline] do_fault mm/memory.c:4381 [inline] handle_pte_fault mm/memory.c:4637 [inline] __handle_mm_fault+0x18c8/0x1ec0 mm/memory.c:4772 handle_mm_fault+0x1c0/0x5a0 mm/memory.c:4870 do_user_addr_fault+0x293/0xc80 arch/x86/mm/fault.c:1357 handle_page_fault arch/x86/mm/fault.c:1445 [inline] exc_page_fault+0x5a/0xb0 arch/x86/mm/fault.c:1501 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 Freed by task 3899: 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 anon_vma_chain_free mm/rmap.c:143 [inline] unlink_anon_vmas+0x149/0x770 mm/rmap.c:417 free_pgtables+0x131/0x2b0 mm/memory.c:426 exit_mmap+0x17a/0x4e0 mm/mmap.c:3187 __mmput kernel/fork.c:1126 [inline] mmput+0x90/0x390 kernel/fork.c:1147 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 The buggy address belongs to the object at ffff888120205000 which belongs to the cache anon_vma_chain of size 80 The buggy address is located 3 bytes inside of 80-byte region [ffff888120205000, ffff888120205050) The buggy address belongs to the page: page:ffffea0004808140 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x120205 memcg:ffff888114163c01 flags: 0x200000000000200(slab|node=0|zone=2) raw: 0200000000000200 ffffea00046e2c40 0000001700000013 ffff88810012f140 raw: 0000000000000000 0000000000240024 00000001ffffffff ffff888114163c01 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 697, ts 26604975958, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x166f/0x2910 mm/page_alloc.c:4159 __alloc_pages+0x2b3/0x590 mm/page_alloc.c:5423 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 anon_vma_chain_alloc mm/rmap.c:138 [inline] __anon_vma_prepare+0x45/0x4d0 mm/rmap.c:192 anon_vma_prepare include/linux/rmap.h:152 [inline] do_anonymous_page mm/memory.c:3823 [inline] handle_pte_fault mm/memory.c:4635 [inline] __handle_mm_fault+0x1976/0x1ec0 mm/memory.c:4772 handle_mm_fault+0x1c0/0x5a0 mm/memory.c:4870 do_user_addr_fault+0x293/0xc80 arch/x86/mm/fault.c:1357 handle_page_fault arch/x86/mm/fault.c:1445 [inline] exc_page_fault+0x5a/0xb0 arch/x86/mm/fault.c:1501 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 page_owner free stack trace missing Memory state around the buggy address: ffff888120204f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888120204f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888120205000: fa fb fb fb fb fb fb fb fb fb fc fc fc fc fa fb ^ ffff888120205080: fb fb fb fb fb fb fb fb fc fc fc fc fa fb fb fb ffff888120205100: fb fb fb fb fb fb fc fc fc fc fa fb fb fb fb fb ==================================================================