ci2 starts bisection 2025-02-15 19:22:18.559271217 +0000 UTC m=+48521.543452807 bisecting fixing commit since e2b9748880b939d8d99877b72cc4cc42951d49b6 building syzkaller on d3ccff6372e07c6aabd02b5da419aa6492b5f0ad ensuring issue is reproducible on original commit e2b9748880b939d8d99877b72cc4cc42951d49b6 testing commit e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1a45c0a6e8452104a331c16b12fcdf3331d12299f9b1493a7a131439b3ab6c0e all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, 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 e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1632511ab395a165aaa6eb1a46c7db3000d2a9eb39cb2602b90a04cd8c3ca08f all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=5179 full=6548 leaves diff=264 split chunks (needed=false): <264> split chunk #0 of len 264 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7f4b3d85d01a064354d43d5afa9241917d0960b0267a42a06c78fe88a8048161 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d1df03d702f9a2e43d64551cfdd8d271abead3710223afe2e5c238d03bbc46d6 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, 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 e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c6d69066788f60fe89cc6c12d762e597be6e7311e67356a932ac436a22e49117 all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, 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 e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4c9c9f021d07e1c3b28b2c9797e88e6ec824d84ec608fac2c033b9012671cf7f run #0: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #1: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #2: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #3: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #4: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #5: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #6: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #7: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #8: crashed: KASAN: use-after-free Read in ext4_read_inline_dir run #9: crashed: KASAN: use-after-free in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, 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 e2b9748880b939d8d99877b72cc4cc42951d49b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building e2b9748880b939d8d99877b72cc4cc42951d49b6: net/socket.c:1245: undefined reference to `wext_handle_ioctl' net/socket.c:3447: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:329: undefined reference to `wext_proc_init' net/core/net-procfs.c:345: undefined reference to `wext_proc_exit' minimized to 52 configs; suspects: [HID_ZEROPLUS 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_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 V4L2_ASYNC V4L2_FWNODE VIDEO_CAMERA_SENSOR WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_PURELIFI WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_SILABS WLAN_VENDOR_ZYDAS X86_X32_ABI ZEROPLUS_FF] disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing current HEAD ccc915784332a8717d3fef84283c416c0e57d3d6 testing commit ccc915784332a8717d3fef84283c416c0e57d3d6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f8f1afe867a3087468b08979bba8717b9a2204a5c0710e619891aeec5ee6585a all runs: crashed: KASAN: use-after-free Read in ext4_read_inline_dir representative crash: KASAN: use-after-free Read in ext4_read_inline_dir, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 51m37.866992809s (build: 23m17.411769435s, test: 21m1.82504546s) crash still not fixed or there were kernel test errors commit msg: ANDROID: cma: Add restrict_cma_redirect boot parameter crash: KASAN: use-after-free Read in ext4_read_inline_dir ================================================================== 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_dir+0x42f/0xce0 fs/ext4/inline.c:1512 Read of size 68 at addr ffff88812b879d05 by task syz-executor/460 CPU: 1 PID: 460 Comm: syz-executor Not tainted 6.1.124-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x158/0x4e0 mm/kasan/report.c:427 kasan_report+0x13c/0x170 mm/kasan/report.c:531 kasan_check_range+0x294/0x2a0 mm/kasan/generic.c:189 memcpy+0x2d/0x70 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_read_inline_dir+0x42f/0xce0 fs/ext4/inline.c:1512 ext4_readdir+0x278/0x2d40 fs/ext4/dir.c:158 iterate_dir+0x215/0x510 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0x1af/0x3e0 fs/readdir.c:354 __x64_sys_getdents64+0x76/0x80 fs/readdir.c:354 x64_sys_call+0x5ae/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:218 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8f567b8693 Code: c1 66 0f 1f 44 00 00 48 83 c4 08 48 89 ef 5b 5d e9 82 3e 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:00007fffe3ce0638 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00005555561e8520 RCX: 00007f8f567b8693 RDX: 0000000000008000 RSI: 00005555561e8520 RDI: 0000000000000006 RBP: 00005555561e84f4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000293 R12: ffffffffffffffa8 R13: 0000000000000016 R14: 00005555561e84f0 R15: 0000000000000001 The buggy address belongs to the physical page: page:ffffea0004ae1e40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x12b879 flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004ae1e88 ffffea0004ae1e08 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 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 480, tgid 479 (syz.3.19), ts 57444601056, free_ts 58690374481 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2637 [inline] prep_new_page+0x512/0x5e0 mm/page_alloc.c:2644 get_page_from_freelist+0x3b46/0x3bc0 mm/page_alloc.c:4539 __alloc_pages+0x234/0x610 mm/page_alloc.c:5837 __folio_alloc+0x15/0x40 mm/page_alloc.c:5869 __folio_alloc_node include/linux/gfp.h:245 [inline] folio_alloc include/linux/gfp.h:274 [inline] shmem_alloc_folio mm/shmem.c:1597 [inline] shmem_alloc_and_acct_folio+0x49e/0x910 mm/shmem.c:1622 shmem_get_folio_gfp+0xe05/0x1b90 mm/shmem.c:1951 shmem_get_folio mm/shmem.c:2082 [inline] shmem_write_begin+0x136/0x2f0 mm/shmem.c:2567 generic_perform_write+0x30c/0x640 mm/filemap.c:3877 __generic_file_write_iter+0x13b/0x2f0 mm/filemap.c:4006 generic_file_write_iter+0xae/0x290 mm/filemap.c:4038 call_write_iter include/linux/fs.h:2274 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ec/0xd40 fs/read_write.c:584 ksys_write+0x15c/0x240 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x76/0x80 fs/read_write.c:646 x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1545 [inline] free_pcp_prepare mm/page_alloc.c:1619 [inline] free_unref_page_prepare+0x8c6/0x8d0 mm/page_alloc.c:3581 free_unref_page_list+0xf1/0x790 mm/page_alloc.c:3729 release_pages+0xca8/0xd00 mm/swap.c:1043 __pagevec_release+0x66/0xe0 mm/swap.c:1063 pagevec_release include/linux/pagevec.h:71 [inline] folio_batch_release include/linux/pagevec.h:135 [inline] shmem_undo_range+0x4a7/0x1150 mm/shmem.c:951 shmem_truncate_range mm/shmem.c:1067 [inline] shmem_evict_inode+0x34e/0x840 mm/shmem.c:1176 evict+0x486/0x8c0 fs/inode.c:705 iput_final fs/inode.c:1834 [inline] iput+0x4b6/0x4e0 fs/inode.c:1860 dentry_unlink_inode+0x2df/0x3d0 fs/dcache.c:405 __dentry_kill+0x37e/0x5e0 fs/dcache.c:611 dentry_kill+0xc4/0x1f0 dput+0x10a/0x250 fs/dcache.c:918 __fput+0x33b/0x6b0 fs/file_table.c:328 ____fput+0x9/0x10 fs/file_table.c:348 task_work_run+0x208/0x260 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x9b8/0x2460 kernel/exit.c:877 Memory state around the buggy address: ffff88812b879c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812b879c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88812b879d00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88812b879d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88812b879e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop1): ext4_read_inline_dir:1593: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop1): ext4_read_inline_dir:1593: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop1): empty_inline_dir:1877: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs error (device loop1): ext4_read_inline_dir:1593: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop1): ext4_read_inline_dir:1593: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop1): empty_inline_dir:1877: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs error (device loop1): ext4_read_inline_dir:1593: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop1): ext4_read_inline_dir:1593: inode #12: block 5: comm syz-executor: path /0/file0/file0: bad entry in directory: rec_len % 4 != 0 - offset=24, inode=1633771873, rec_len=24929, size=148 fake=0 EXT4-fs error (device loop1): empty_inline_dir:1877: inode #12: block 5: comm syz-executor: bad entry in directory: rec_len % 4 != 0 - offset=4, inode=1633771873, rec_len=24929, size=60 fake=0 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs warning (device loop1): empty_inline_dir:1884: bad inline directory (dir #12) - inode 1633771873, rec_len 24929, name_len 97inline size 60 EXT4-fs (loop1): unmounting filesystem.