ci2 starts bisection 2024-09-03 08:11:50.255432057 +0000 UTC m=+40678.577346989 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_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] check whether we can drop unnecessary instrumentation 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: 0f55987e793b4909b497906a01dd5ceb036e03c01bb8e7df2a1e43d8c3a50f1d all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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 [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: 411735744a4a4cd8eff99d589ea084f5864f691891746e441664e485ec1aca33 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/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: 49584add1f871c80ef412a0a049cf93c824d52d8d1f7833aaa666e929220d07d all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD fa93fa65db6e232b5f2226dd86c9f066ec6dfd97 testing commit fa93fa65db6e232b5f2226dd86c9f066ec6dfd97 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4c4fbfbc71a01f894596613715797094c59e8e4a14be2937980471a50808fb46 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h5m31.502910632s (build: 27m48.559485547s, test: 32m31.945814083s) crash still not fixed or there were kernel test errors commit msg: Linux 5.15.165 crash: KASAN: use-after-free Read in ext4_xattr_delete_inode ================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xc73/0xc90 fs/ext4/xattr.c:2910 Read of size 4 at addr ffff88811bcc3000 by task syz-executor/1998 CPU: 0 PID: 1998 Comm: syz-executor Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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_xattr_delete_inode+0xc73/0xc90 fs/ext4/xattr.c:2910 ext4_evict_inode+0x823/0x14e0 fs/ext4/inode.c:299 evict+0x296/0x5d0 fs/inode.c:587 d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir.part.0+0x36a/0x460 fs/namei.c:4162 vfs_rmdir fs/namei.c:4135 [inline] do_rmdir+0x30b/0x3c0 fs/namei.c:4210 __do_sys_unlinkat fs/namei.c:4390 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __x64_sys_unlinkat+0xa4/0xd0 fs/namei.c:4384 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:0x7f6dea5656c7 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 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:00007ffcf39deaa8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f6dea5656c7 RDX: 0000000000000200 RSI: 00007ffcf39dfc50 RDI: 00000000ffffff9c RBP: 00007f6dea5b1336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffcf39dfc50 R13: 00007f6dea5b1336 R14: 000000000000f137 R15: 0000000000000007 The buggy address belongs to the page: page:ffffea00046f30c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11bcc3 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 ffffea0004813808 ffffea0004817748 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x500dc0(GFP_USER|__GFP_ZERO|__GFP_ACCOUNT), pid 1703, ts 57830887332, free_ts 57834681014 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 __pte_alloc_one include/asm-generic/pgalloc.h:63 [inline] pte_alloc_one+0x10/0x160 arch/x86/mm/pgtable.c:33 __do_fault+0x1f8/0x360 mm/memory.c:3892 do_cow_fault mm/memory.c:4263 [inline] do_fault mm/memory.c:4364 [inline] handle_pte_fault mm/memory.c:4621 [inline] __handle_mm_fault+0xf0c/0x1ec0 mm/memory.c:4756 handle_mm_fault+0x1c0/0x5a0 mm/memory.c:4854 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:568 __clear_user+0x20/0x50 arch/x86/lib/usercopy_64.c:24 padzero fs/binfmt_elf.c:141 [inline] load_elf_interp fs/binfmt_elf.c:689 [inline] load_elf_binary+0x3cad/0x3eb0 fs/binfmt_elf.c:1227 search_binary_handler fs/exec.c:1744 [inline] exec_binprm fs/exec.c:1785 [inline] bprm_execve fs/exec.c:1854 [inline] bprm_execve+0x62a/0x1330 fs/exec.c:1816 kernel_execve+0x2dc/0x400 fs/exec.c:2015 call_usermodehelper_exec_async+0x2c1/0x500 kernel/umh.c:112 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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/0x4e0 mm/mmap.c:3188 __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 Memory state around the buggy address: ffff88811bcc2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811bcc2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811bcc3000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811bcc3080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811bcc3100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================