ci2 starts bisection 2024-09-09 00:16:02.427016655 +0000 UTC m=+205476.090872222 bisecting fixing commit since 1240968f76440c63b615ebded66d5e68ef134834 building syzkaller on b88348e926b1f214763f45a5457bd91aafd36fab ensuring issue is reproducible on original commit 1240968f76440c63b615ebded66d5e68ef134834 testing commit 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0922f95b2afe3172b7082b22a1b7728b85ce8aaeb186261f4e2dbfa1dbc4c5bf run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #1: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #3: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #4: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #5: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #6: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #7: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #8: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #10: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #11: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #12: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #13: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #14: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #15: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #16: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #17: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #18: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #19: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree representative crash: KASAN: slab-out-of-bounds Read in ext4_htree_fill_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 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a9fff0c370ee228d1caa31cb79d88db7aadbdabf4e9f74b70887dffe9acc76ab run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #1: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #2: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #5: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #6: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #9: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree representative crash: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree, 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=4789 full=6019 leaves diff=241 split chunks (needed=false): <241> split chunk #0 of len 241 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 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5223abf8c1ebfe6e398a6308689dbd00bfd5b8ac11a43ad0633c00b02c721bcc run #0: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #1: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #2: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #4: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #5: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #6: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #9: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree representative crash: KASAN: use-after-free Read in ext4_htree_fill_tree, 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 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: adc218a916d51403051a830e62b1c126f830aa13dcb090cc15bac63ca46563c6 run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #2: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #5: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #8: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree representative crash: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 351d3a1fedf92d144fa2ade939aa92599f8b1dd1f4d1b9dc87f6384aa7b48c1d run #0: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #2: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #3: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #5: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #6: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #9: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree representative crash: KASAN: use-after-free Read in ext4_htree_fill_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6f37e620115f68ad467cc5fa41dc9c0204f2e5c1ecf9ab6244ea019090a11938 run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #1: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #2: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #4: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #5: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #8: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #9: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree representative crash: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 1240968f76440c63b615ebded66d5e68ef134834 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 1240968f76440c63b615ebded66d5e68ef134834: net/socket.c:1128: undefined reference to `wext_handle_ioctl' net/socket.c:3397: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:346: undefined reference to `wext_proc_exit' net/core/net-procfs.c:330: undefined reference to `wext_proc_init' minimized to 45 configs; suspects: [HID_ZEROPLUS 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing current HEAD 1c5354a314ea97f0a5371eaa59d5710bf76d8eb6 testing commit 1c5354a314ea97f0a5371eaa59d5710bf76d8eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 87f49f949d6cf858f80edf97a7c264cc0698e99a7ebdff4338fdc6ba331d7dff run #0: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #1: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #2: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #3: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #5: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #7: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #9: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree representative crash: KASAN: use-after-free Read in ext4_htree_fill_tree, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 40m28.269238785s (build: 17m12.220444215s, test: 21m46.586997265s) crash still not fixed or there were kernel test errors commit msg: Merge branch 'android13-5.10' into android13-5.10-lts crash: KASAN: use-after-free Read in ext4_htree_fill_tree ================================================================== BUG: KASAN: use-after-free in ext4_htree_fill_tree+0xb10/0xb80 fs/ext4/namei.c:1220 Read of size 1 at addr ffff88810fde1a67 by task syz-executor/473 CPU: 0 PID: 473 Comm: syz-executor Not tainted 5.10.223-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 ext4_htree_fill_tree+0xb10/0xb80 fs/ext4/namei.c:1220 ext4_dx_readdir fs/ext4/dir.c:598 [inline] ext4_readdir+0x18da/0x33e0 fs/ext4/dir.c:142 iterate_dir+0x407/0x690 fs/readdir.c:65 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64 fs/readdir.c:354 [inline] __x64_sys_getdents64+0x12f/0x230 fs/readdir.c:354 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f795fda9bf3 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 f2 44 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:00007fff15675968 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 000055555699e4e0 RCX: 00007f795fda9bf3 RDX: 0000000000008000 RSI: 000055555699e4e0 RDI: 0000000000000005 RBP: 000055555699e4b4 R08: 0000000000028b61 R09: 0000000000000000 R10: 00007f795fed6ca0 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000010 R14: 000055555699e4b0 R15: 000000000000c3de Allocated by task 473: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook mm/slab.h:583 [inline] slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x15d/0x4f0 mm/slub.c:2960 getname_flags.part.0+0x4d/0x480 fs/namei.c:141 getname_flags+0x7d/0xd0 include/linux/audit.h:320 getname fs/namei.c:212 [inline] user_path_create fs/namei.c:3665 [inline] do_mkdirat+0x9f/0x290 fs/namei.c:3805 __do_sys_mkdirat fs/namei.c:3823 [inline] __se_sys_mkdirat fs/namei.c:3821 [inline] __x64_sys_mkdirat+0x71/0xb0 fs/namei.c:3821 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 473: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:362 [inline] ____kasan_slab_free mm/kasan/common.c:324 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1595 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1621 slab_free mm/slub.c:3203 [inline] kmem_cache_free+0x106/0x440 mm/slub.c:3219 putname+0xab/0xf0 fs/namei.c:262 filename_create+0x1ca/0x410 fs/namei.c:3641 user_path_create fs/namei.c:3665 [inline] do_mkdirat+0xb1/0x290 fs/namei.c:3805 __do_sys_mkdirat fs/namei.c:3823 [inline] __se_sys_mkdirat fs/namei.c:3821 [inline] __x64_sys_mkdirat+0x71/0xb0 fs/namei.c:3821 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88810fde1100 which belongs to the cache names_cache of size 4096 The buggy address is located 2407 bytes inside of 4096-byte region [ffff88810fde1100, ffff88810fde2100) The buggy address belongs to the page: page:ffffea00043f7800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10fde0 head:ffffea00043f7800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea00043f7000 0000000200000002 ffff888100168480 raw: 0000000000000000 0000000000070007 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 101, ts 2876657388, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page mm/page_alloc.c:2462 [inline] get_page_from_freelist+0x1fee/0x2ad0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x23d0 mm/page_alloc.c:5348 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] alloc_slab_page mm/slub.c:1665 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1808 new_slab mm/slub.c:1869 [inline] new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2791 __slab_alloc mm/slub.c:2831 [inline] slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x491/0x4f0 mm/slub.c:2960 getname_flags.part.0+0x4d/0x480 fs/namei.c:141 getname_flags include/linux/audit.h:320 [inline] user_path_at_empty+0x8e/0xf0 fs/namei.c:2740 do_readlinkat+0xbf/0x2b0 fs/stat.c:414 __do_sys_readlink fs/stat.c:447 [inline] __se_sys_readlink fs/stat.c:444 [inline] __x64_sys_readlink+0x73/0xb0 fs/stat.c:444 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page_owner free stack trace missing Memory state around the buggy address: ffff88810fde1900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810fde1980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810fde1a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810fde1a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810fde1b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================