ci2 starts bisection 2025-02-08 15:28:28.210763165 +0000 UTC m=+71945.498235689 bisecting fixing commit since 139a6bb26d9db33a3067b656bc9686f4b22c838c building syzkaller on e9a9a9f23f2a13f697d9d9572d2d4a34369a0068 ensuring issue is reproducible on original commit 139a6bb26d9db33a3067b656bc9686f4b22c838c testing commit 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d0cf7f6564fb325cf180a025ae6400a73792f3c70bee8fb22f600aa72ff73b74 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, 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 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 52d5559c9584eda14465a4f1d0dd95a3fc0bcf711fe9745dfee6cc20bb144785 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=4789 full=6020 leaves diff=243 split chunks (needed=false): <243> split chunk #0 of len 243 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 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6221c3359aa6e16737aa18ff015c1703f8324804bbf4360d45bccf7c37dac767 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, 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 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bc5a8081eec5636f0e32d701518394745c5e6a52e10fb73eeb11cc7317ced2f9 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, 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 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 84bd2d2b492c0b2598dfbe74071ef379b75ca0d2554f99f105b5196676459e29 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, 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 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a439a2fc8273435d13198a2fcdc3cd308c89d8882f238d0b9bea45cdbf5e33b1 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 139a6bb26d9db33a3067b656bc9686f4b22c838c gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 139a6bb26d9db33a3067b656bc9686f4b22c838c: 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 47 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 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD 6686f2996d23ab0b94151843024f466a3a264f34 testing commit 6686f2996d23ab0b94151843024f466a3a264f34 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0dc20bf2948fe333b38404f4a3b2fb807baabf7ae87be93248fc0503199babe2 all runs: crashed: KASAN: use-after-free Write in ext4_insert_dentry representative crash: KASAN: use-after-free Write in ext4_insert_dentry, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h2m54.08883254s (build: 26m4.208060685s, test: 35m9.11985704s) crash still not fixed or there were kernel test errors commit msg: Revert "net: net_namespace: Optimize the code" crash: KASAN: use-after-free Write in ext4_insert_dentry EXT4-fs (loop2): mounted filesystem without journal. Opts: noauto_da_alloc,grpquota,errors=continue,noauto_da_alloc,nolazytime,errors=continue,grpjquota=,errors=remount-ro,nobarrier, ================================================================== BUG: KASAN: use-after-free in ext4_insert_dentry+0x2d8/0x660 fs/ext4/namei.c:2119 Write of size 254 at addr ffff8881211acf10 by task syz.2.15/464 CPU: 1 PID: 464 Comm: syz.2.15 Not tainted 5.10.234-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/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 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 mm/kasan/generic.c:189 memcpy+0x3c/0x60 mm/kasan/shadow.c:66 ext4_insert_dentry+0x2d8/0x660 fs/ext4/namei.c:2119 add_dirent_to_buf+0x289/0x690 fs/ext4/namei.c:2163 make_indexed_dir+0xe05/0x1210 fs/ext4/namei.c:2354 ext4_add_entry+0xd94/0x11f0 fs/ext4/namei.c:2460 __ext4_link+0x337/0x4b0 fs/ext4/namei.c:3647 ext4_link+0x1a1/0x240 fs/ext4/namei.c:3688 vfs_link+0x6b2/0xaa0 fs/namei.c:4213 do_linkat+0x329/0x520 fs/namei.c:4281 __do_sys_link fs/namei.c:4310 [inline] __se_sys_link fs/namei.c:4308 [inline] __x64_sys_link+0x5c/0x80 fs/namei.c:4308 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fe49c5d1919 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:00007fe49c052038 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007fe49c788fa0 RCX: 00007fe49c5d1919 RDX: 0000000000000000 RSI: 0000000020000bc0 RDI: 0000000020000100 RBP: 00007fe49c64497e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe49c788fa0 R15: 00007ffe413ab078 The buggy address belongs to the page: page:ffffea0004846b00 refcount:3 mapcount:0 mapping:ffff888108eaf590 index:0x3f pfn:0x1211ac aops:def_blk_aops ino:0 flags: 0x400000000000202a(referenced|dirty|active|private) raw: 400000000000202a dead000000000100 dead000000000122 ffff888108eaf590 raw: 000000000000003f ffff888121c321f8 00000003ffffffff ffff888125466000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff888125466000 page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x108c48(GFP_NOFS|__GFP_NOFAIL|__GFP_HARDWALL|__GFP_MOVABLE), pid 464, ts 50885037396, free_ts 50490361889 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] __page_cache_alloc include/linux/pagemap.h:290 [inline] pagecache_get_page+0x169/0x6f0 mm/filemap.c:1848 find_or_create_page include/linux/pagemap.h:402 [inline] grow_dev_page fs/buffer.c:976 [inline] grow_buffers fs/buffer.c:1045 [inline] __getblk_slow+0x1ad/0x580 fs/buffer.c:1072 __getblk_gfp+0x3d/0x50 fs/buffer.c:1370 sb_getblk include/linux/buffer_head.h:361 [inline] ext4_getblk+0x1b1/0x5a0 fs/ext4/inode.c:877 ext4_bread+0xc/0x150 fs/ext4/inode.c:922 ext4_append+0x203/0x560 fs/ext4/namei.c:83 make_indexed_dir+0x40b/0x1210 fs/ext4/namei.c:2280 ext4_add_entry+0xd94/0x11f0 fs/ext4/namei.c:2460 __ext4_link+0x337/0x4b0 fs/ext4/namei.c:3647 ext4_link+0x1a1/0x240 fs/ext4/namei.c:3688 vfs_link+0x6b2/0xaa0 fs/namei.c:4213 do_linkat+0x329/0x520 fs/namei.c:4281 __do_sys_link fs/namei.c:4310 [inline] __se_sys_link fs/namei.c:4308 [inline] __x64_sys_link+0x5c/0x80 fs/namei.c:4308 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare+0x1a7/0x230 mm/page_alloc.c:1421 free_unref_page_prepare mm/page_alloc.c:3336 [inline] free_unref_page_list+0x18a/0xae0 mm/page_alloc.c:3443 release_pages+0x374/0xb00 mm/swap.c:1103 free_pages_and_swap_cache+0x180/0x1e0 mm/swap_state.c:356 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:326 exit_mmap+0x296/0x520 mm/mmap.c:3375 __mmput kernel/fork.c:1153 [inline] mmput kernel/fork.c:1176 [inline] mmput+0x99/0x430 kernel/fork.c:1170 exit_mm kernel/exit.c:539 [inline] do_exit+0x86b/0x2330 kernel/exit.c:850 do_group_exit+0xe6/0x290 kernel/exit.c:985 get_signal+0x353/0x1a10 kernel/signal.c:2793 arch_do_signal_or_restart+0x2ad/0x2510 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0xd1/0x120 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x27/0x160 kernel/entry/common.c:274 do_syscall_64+0x3f/0x80 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff8881211acf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881211acf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881211ad000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881211ad080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881211ad100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================