ci2 starts bisection 2025-06-27 13:39:28.552791235 +0000 UTC m=+88058.668621989 bisecting fixing commit since 5e1b899f19c3d900664c1ca05c4714c24647d82b building syzkaller on cf25e2c2a28647d60ca5aa9f701d86de5207bc26 ensuring issue is reproducible on original commit 5e1b899f19c3d900664c1ca05c4714c24647d82b testing commit 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fdc2650e24518784f4d09ba8e6a49765dc186e81c1ecbd5d1952dedb8a772942 run #0: crashed: KASAN: use-after-free Read in dx_insert_block run #1: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #2: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #3: crashed: KASAN: use-after-free Read in dx_insert_block run #4: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #5: crashed: KASAN: use-after-free Read in dx_insert_block run #6: crashed: KASAN: use-after-free Read in dx_insert_block run #7: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #8: crashed: KASAN: use-after-free Read in dx_insert_block run #9: crashed: KASAN: use-after-free Read in dx_insert_block run #10: crashed: KASAN: use-after-free Read in dx_insert_block run #11: crashed: KASAN: use-after-free Read in dx_insert_block run #12: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #13: crashed: KASAN: use-after-free Read in dx_insert_block run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK representative crash: KASAN: use-after-free Read in dx_insert_block, 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 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e926eeb067230c4da0d93a71a1e8523f5a52f90dbe7a0f50eabfb932df8f8403 run #0: crashed: KASAN: use-after-free Read in dx_insert_block run #1: crashed: KASAN: use-after-free Read in dx_insert_block run #2: crashed: KASAN: use-after-free Read in dx_insert_block run #3: crashed: KASAN: use-after-free Read in dx_insert_block run #4: crashed: KASAN: use-after-free Read in dx_insert_block run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: use-after-free Read in dx_insert_block, 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=4921 full=6216 leaves diff=255 split chunks (needed=false): <255> split chunk #0 of len 255 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 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4cef084bc04f6a54fa45a2937648443737baa956c8d44e4d51b5fec3922598a4 run #0: crashed: KASAN: use-after-free Read in dx_insert_block run #1: crashed: KASAN: use-after-free Read in dx_insert_block run #2: crashed: KASAN: use-after-free Read in dx_insert_block run #3: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #4: crashed: KASAN: use-after-free Read in dx_insert_block run #5: crashed: KASAN: use-after-free Read in dx_insert_block run #6: OK run #7: OK run #8: OK run #9: crashed: KASAN: use-after-free Read in dx_insert_block representative crash: KASAN: use-after-free Read in dx_insert_block, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d72cd16f10f798c2d69fd8eca469543ce9d54edc359113e200f259a296d42dd0 run #0: crashed: KASAN: use-after-free Read in dx_insert_block run #1: crashed: KASAN: use-after-free Read in dx_insert_block run #2: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #3: crashed: KASAN: use-after-free Read in dx_insert_block run #4: crashed: KASAN: use-after-free Read in ext4_htree_fill_tree run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: use-after-free Read in dx_insert_block, 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 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 504761b957b48147f19f894df87eaae1da7d9a60abf2dc5a5d9dfc3eb16ce017 run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #1: crashed: KASAN: use-after-free Read in dx_insert_block run #2: crashed: KASAN: use-after-free Read in dx_insert_block run #3: crashed: KASAN: use-after-free Read in dx_insert_block run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree run #5: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: slab-out-of-bounds Read in ext4_htree_fill_tree, 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 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a723506e8f15edff95b4c777fbf73a07958283c9cfb43bb0c17c671c43ab38ca run #0: crashed: KASAN: use-after-free Read in dx_insert_block run #1: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #2: crashed: KASAN: use-after-free Read in dx_insert_block run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_htree_store_dirent run #4: crashed: KASAN: use-after-free Read in dx_insert_block run #5: OK run #6: crashed: KASAN: use-after-free Read in dx_insert_block run #7: OK run #8: OK run #9: OK representative crash: KASAN: use-after-free Read in dx_insert_block, 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 5e1b899f19c3d900664c1ca05c4714c24647d82b gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 5e1b899f19c3d900664c1ca05c4714c24647d82b: net/socket.c:1191: undefined reference to `wext_handle_ioctl' net/socket.c:3390: 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 51 configs; suspects: [HID_ZEROPLUS USB_MON USB_NET_CDC_MBIM USB_NET_CDC_SUBSET USB_NET_CDC_SUBSET_ENABLE USB_NET_DM9601 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 USB_XHCI_PCI_RENESAS 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 0d918fa8e88d750d62041e720012efb22d89728e testing commit 0d918fa8e88d750d62041e720012efb22d89728e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 75bf8c87503ed30e828bac7a6f1e7b31494d5f2e91bf0699d65b082863356376 run #0: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #1: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #2: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #3: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #4: crashed: KASAN: slab-out-of-bounds Read in dx_insert_block run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK representative crash: KASAN: slab-out-of-bounds Read in dx_insert_block, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h51m37.724264723s (build: 17m55.516212374s, test: 1h31m30.762164288s) crash still not fixed or there were kernel test errors commit msg: Merge android13-5.15 into android13-5.15-lts crash: KASAN: slab-out-of-bounds Read in dx_insert_block ext4 filesystem being mounted at /0/file1 supports timestamps until 2038-01-19 (0x7fffffff) ================================================================== BUG: KASAN: slab-out-of-bounds in dx_insert_block.isra.0+0xa9/0x150 fs/ext4/namei.c:1387 Read of size 157024 at addr ffff888122d04028 by task syz.5.171/985 CPU: 1 PID: 985 Comm: syz.5.171 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 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 memmove+0x24/0x60 mm/kasan/shadow.c:54 dx_insert_block.isra.0+0xa9/0x150 fs/ext4/namei.c:1387 do_split+0x13f4/0x21c0 fs/ext4/namei.c:2080 make_indexed_dir+0xdf1/0x1250 fs/ext4/namei.c:2392 ext4_add_entry+0xd94/0x11f0 fs/ext4/namei.c:2504 __ext4_link+0x33b/0x4b0 fs/ext4/namei.c:3536 ext4_link+0x1a1/0x240 fs/ext4/namei.c:3577 vfs_link+0x54c/0xa50 fs/namei.c:4557 do_linkat+0x359/0x580 fs/namei.c:4628 __do_sys_link fs/namei.c:4662 [inline] __se_sys_link fs/namei.c:4660 [inline] __x64_sys_link+0x7d/0xa0 fs/namei.c:4660 x64_sys_call+0x728/0x990 arch/x86/include/generated/asm/syscalls_64.h:87 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:0x7fa5d84ea169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa5d7f5c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007fa5d8702fa0 RCX: 00007fa5d84ea169 RDX: 0000000000000000 RSI: 0000200000000bc0 RDI: 0000200000001240 RBP: 00007fa5d856b2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa5d8702fa0 R15: 00007fff7ada9618 The buggy address belongs to the page: page:ffffea00048b4100 refcount:3 mapcount:1 mapping:ffff888108fe2c98 index:0x1 pfn:0x122d04 memcg:ffff888100231140 aops:def_blk_aops ino:700005 flags: 0x400000000032201e(referenced|uptodate|dirty|lru|private|mappedtodisk|unevictable|mlocked|zone=1) raw: 400000000032201e ffff88810023ccc0 ffffea0004823108 ffff888108fe2c98 raw: 0000000000000001 ffff88811edba9d8 0000000300000000 ffff888100231140 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 448, ts 101926389453, free_ts 101827198133 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+0x300/0x2c90 mm/page_alloc.c:5795 __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] __page_cache_alloc include/linux/pagemap.h:305 [inline] page_cache_ra_unbounded+0x2f8/0x720 mm/readahead.c:227 do_page_cache_ra mm/readahead.c:280 [inline] force_page_cache_ra+0x307/0x610 mm/readahead.c:312 page_cache_sync_ra+0x32f/0x440 mm/readahead.c:590 page_cache_sync_readahead include/linux/pagemap.h:831 [inline] filemap_get_pages+0x464/0x11d0 mm/filemap.c:2568 filemap_read+0x301/0xa60 mm/filemap.c:2653 generic_file_read_iter+0x293/0x4a0 mm/filemap.c:2813 blkdev_read_iter+0xfe/0x190 block/fops.c:563 call_read_iter include/linux/fs.h:2206 [inline] new_sync_read+0x353/0x6d0 fs/read_write.c:404 vfs_read+0x34a/0x4b0 fs/read_write.c:485 ksys_read+0x111/0x210 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x6e/0xb0 fs/read_write.c:631 x64_sys_call+0x982/0x990 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0xb0 arch/x86/entry/common.c:80 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+0x84/0x760 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0xd7/0xf0 mm/page_alloc.c:5871 __free_slab+0xdb/0x1c0 mm/slub.c:2020 free_slab mm/slub.c:2035 [inline] discard_slab+0x2b/0x40 mm/slub.c:2041 __unfreeze_partials+0x1e2/0x230 mm/slub.c:2527 put_cpu_partial+0x96/0xb0 mm/slub.c:2607 __slab_free+0x21e/0x4d0 mm/slub.c:3390 do_slab_free mm/slub.c:3509 [inline] ___cache_free+0x1ee/0x230 mm/slub.c:3530 qlink_free mm/kasan/quarantine.c:157 [inline] qlist_free_all+0x6e/0x150 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15f/0x1c0 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0xaa/0xc0 mm/kasan/common.c:443 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook mm/slab.h:550 [inline] slab_alloc_node mm/slub.c:3240 [inline] slab_alloc mm/slub.c:3250 [inline] kmem_cache_alloc_trace+0x17b/0x4e0 mm/slub.c:3267 kmalloc include/linux/slab.h:616 [inline] get_mountpoint+0x114/0x360 fs/namespace.c:747 lock_mount+0xc3/0x2a0 fs/namespace.c:2254 do_new_mount_fc fs/namespace.c:2947 [inline] do_new_mount fs/namespace.c:3012 [inline] path_mount+0x1194/0x1d90 fs/namespace.c:3340 Memory state around the buggy address: ffff888122d04f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888122d05000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888122d05080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 ^ ffff888122d05100: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff888122d05180: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== EXT4-fs error (device loop5): ext4_dx_csum_set:531: inode #2: comm syz.5.171: dir seems corrupt? Run e2fsck -D.