ci2 starts bisection 2024-09-03 05:10:27.285243322 +0000 UTC m=+29795.607158244 bisecting fixing commit since 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 building syzkaller on 34889ee3b09e7b4d381828377aa6173bfcc36cc7 ensuring issue is reproducible on original commit 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 testing commit 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c6f7f8d680062f4c9f4b2855a026a55fcec36703901e9d88d296255206360ae4 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c31d4f8e0aa679264b21fc4206faa5775ce1f37b57dbeea41f9c4c4b8c6fd1a2 run #0: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #1: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #2: crashed: KASAN: out-of-bounds Read in ext4_read_inline_data run #3: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #4: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #5: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #6: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #7: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #8: crashed: KASAN: use-after-free Read in ext4_read_inline_data run #9: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed kconfig minimization: base=4920 full=6160 leaves diff=242 split chunks (needed=false): <242> split chunk #0 of len 242 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e76d2615d682a67c0856089dcf91220e4454fb1e7da7413d7e4dc5333552083c all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5579d92782335e379a9826c442c8c44913d98744309533066b2cb1b6fb2b51af all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, 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 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1068793445795553978b0402ee3ed303b8556a75c912ac720884a803f6e38297 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, 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 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 523e31fae83382c59340cf28011cb5c2e7a54babff0bf7f903a901ad08759776 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4: net/socket.c:1191: undefined reference to `wext_handle_ioctl' net/socket.c:3385: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:343: undefined reference to `wext_proc_exit' net/core/net-procfs.c:327: undefined reference to `wext_proc_init' minimized to 46 configs; suspects: [HID_ZEROPLUS USB_NET_GL620A USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD 38761ec9fc9edec1a3c79db87fb6daeb05901432 testing commit 38761ec9fc9edec1a3c79db87fb6daeb05901432 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 092802ce7647b3fa1eb76bbcac3ecd4ad1c039e77c1b38bde4386d7bdb6c91d4 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_data representative crash: KASAN: use-after-free Read in ext4_read_inline_data, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 38m42.798464159s (build: 15m50.895932053s, test: 21m12.753805688s) crash still not fixed or there were kernel test errors commit msg: ANDROID: update .xml for change to struct clk_core crash: KASAN: use-after-free Read in ext4_read_inline_data ================================================================== BUG: KASAN: use-after-free in ext4_read_inline_data fs/ext4/inline.c:210 [inline] BUG: KASAN: use-after-free in ext4_read_inline_data+0x1f3/0x2d0 fs/ext4/inline.c:178 Read of size 68 at addr ffff88811d7dd0cf by task syz-executor.1/496 CPU: 1 PID: 496 Comm: syz-executor.1 Not tainted 5.15.157-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+0x38/0x49 lib/dump_stack.c:106 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:444 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 memcpy+0x24/0x60 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_read_inline_data+0x1f3/0x2d0 fs/ext4/inline.c:178 ext4_convert_inline_data_nolock+0x100/0xc40 fs/ext4/inline.c:1237 ext4_try_add_inline_entry+0x418/0x870 fs/ext4/inline.c:1363 ext4_add_entry+0x7f1/0x11f0 fs/ext4/namei.c:2409 ext4_mkdir+0x392/0x890 fs/ext4/namei.c:3032 vfs_mkdir+0x1d5/0x430 fs/namei.c:4065 do_mkdirat+0x152/0x2c0 fs/namei.c:4090 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __x64_sys_mkdirat+0xf4/0x140 fs/namei.c:4103 x64_sys_call+0x2e4/0x990 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f737020b9e7 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 02 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:00007f736fd6def8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f736fd6df80 RCX: 00007f737020b9e7 RDX: 00000000000001ff RSI: 0000000020000580 RDI: 00000000ffffff9c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000580 R13: 00007f736fd6df40 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea000475f740 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x11d7dd flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea000475f788 ffffea000475f708 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 0x100dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), pid 484, ts 47305882943, free_ts 47336562588 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2605 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2611 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4485 __alloc_pages+0x2d5/0x2620 mm/page_alloc.c:5779 __alloc_pages_node include/linux/gfp.h:591 [inline] alloc_pages_node include/linux/gfp.h:605 [inline] alloc_pages include/linux/gfp.h:618 [inline] wp_page_copy+0x337/0x16f0 mm/memory.c:3186 do_wp_page+0x1fe/0x11f0 mm/memory.c:3531 handle_pte_fault+0xa7c/0x23d0 mm/memory.c:4892 __handle_mm_fault+0x4ea/0x1480 mm/memory.c:5167 do_handle_mm_fault+0x33b/0x690 mm/memory.c:5293 do_user_addr_fault+0x73d/0x1160 arch/x86/mm/fault.c:1356 handle_page_fault arch/x86/mm/fault.c:1540 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1596 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare+0x1b6/0x4c0 mm/page_alloc.c:1544 free_unref_page_prepare mm/page_alloc.c:3534 [inline] free_unref_page_list+0x1e3/0xcd0 mm/page_alloc.c:3671 release_pages+0x37f/0xff0 mm/swap.c:1009 free_pages_and_swap_cache+0x5d/0x80 mm/swap_state.c:320 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+0x129/0x790 mm/mmu_gather.c:338 unmap_region+0x2cd/0x3d0 mm/mmap.c:2691 __do_munmap+0x481/0x10f0 mm/mmap.c:2925 __vm_munmap+0x117/0x240 mm/mmap.c:2948 __do_sys_munmap mm/mmap.c:2974 [inline] __se_sys_munmap mm/mmap.c:2970 [inline] __x64_sys_munmap+0x62/0x80 mm/mmap.c:2970 x64_sys_call+0x935/0x990 arch/x86/include/generated/asm/syscalls_64.h:12 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88811d7dcf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811d7dd000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88811d7dd080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811d7dd100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811d7dd180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop1): ext4_check_all_de:655: inode #12: block 5: comm syz-executor.1: bad entry in directory: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0, size=124 fake=0