ci2 starts bisection 2024-10-07 10:37:51.970877389 +0000 UTC m=+330759.551727900 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: f9f1dfa2846cbdce1463a7b6fc97cfb698ce29eae47ff35d2f70c1ee83efcc05 run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #3: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #4: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #7: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #8: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #10: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #11: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #12: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #13: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #14: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #15: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #16: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #17: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #18: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #19: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], 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: 9e209c4c371ef42262f02c4234e4ddc0b1392eb765751d0e324f435a3cd7250d run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #3: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #8: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #9: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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=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 [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: 91ce5410d1e54241becfd864118adff6bd3123d5a3b7548a9f5a03625c5d93a0 run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #4: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #7: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #8: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #9: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/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 kernel signature: 017804dd8cf98e9f299b235ef8b1b247073a465e9fd22f08a05a2da1fe497527 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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: 37ceac82a65b042b3a73cecdb2b54fece8554679a52b7f4e82f66fd0615d11b7 run #0: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #1: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #2: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #3: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_xattr_delete_inode run #5: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #6: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #7: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #8: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode run #9: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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 424f92bcbe8fa613ada7aec5ebe4ef434d5e50e4 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 630028e1f18e5a07a05cca8afd956e45a5a63b7494a7adbd67fccc2002fabbc4 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/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 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD 80dd36dca275e2f317e108ddafbb77c70cbc2829 testing commit 80dd36dca275e2f317e108ddafbb77c70cbc2829 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: da041b73feb51c285597705e19b9cb7b8e9a308a228caf8bae9dc357c575f1e8 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h2m46.993482137s (build: 28m41.831683739s, test: 31m51.115110104s) crash still not fixed or there were kernel test errors commit msg: Revert "net: stmmac: Enable mac_managed_pm phylink config" crash: KASAN: use-after-free Read in ext4_xattr_delete_inode ================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xe4e/0xe80 fs/ext4/xattr.c:2910 Read of size 4 at addr ffff88811b199000 by task syz-executor.0/458 CPU: 0 PID: 458 Comm: syz-executor.0 Not tainted 5.15.165-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 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_xattr_delete_inode+0xe4e/0xe80 fs/ext4/xattr.c:2910 ext4_evict_inode+0x8a0/0x1700 fs/ext4/inode.c:300 evict+0x2ab/0x610 fs/inode.c:587 iput_final fs/inode.c:1705 [inline] iput.part.0+0x334/0x640 fs/inode.c:1731 iput+0x3f/0x50 fs/inode.c:1721 d_delete_notify include/linux/fsnotify.h:278 [inline] vfs_rmdir.part.0+0x370/0x460 fs/namei.c:4162 vfs_rmdir fs/namei.c:4135 [inline] do_rmdir+0x2e8/0x3f0 fs/namei.c:4210 __do_sys_unlinkat fs/namei.c:4390 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __x64_sys_unlinkat+0xad/0xe0 fs/namei.c:4384 x64_sys_call+0x2c1/0x990 arch/x86/include/generated/asm/syscalls_64.h:264 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:0x7fb1d57d36c7 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 07 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:00007ffd1ce8f508 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007fb1d57d36c7 RDX: 0000000000000200 RSI: 00007ffd1ce906b0 RDI: 00000000ffffff9c RBP: 00007fb1d581f336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffd1ce906b0 R13: 00007fb1d581f336 R14: 000000000000cb75 R15: 0000000000000007 Allocated by task 427: 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:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] ____kasan_kmalloc mm/kasan/common.c:471 [inline] __kasan_kmalloc+0xae/0xe0 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc+0x2d5/0x4e0 mm/slub.c:4427 __kmalloc_node include/linux/slab.h:469 [inline] kmalloc_node include/linux/slab.h:626 [inline] kvmalloc_node+0xee/0x240 mm/util.c:628 kvmalloc include/linux/mm.h:851 [inline] simple_xattr_alloc+0x2c/0x80 fs/xattr.c:987 shmem_initxattrs+0x12f/0x1d0 mm/shmem.c:3188 security_inode_init_security+0x18f/0x2d0 security/security.c:1115 shmem_mknod+0x9e/0x1a0 mm/shmem.c:2860 shmem_create+0x1b/0x20 mm/shmem.c:2918 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x2767/0x4180 fs/namei.c:3739 do_filp_open+0x1ab/0x3f0 fs/namei.c:3769 do_sys_openat2+0x135/0x8f0 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x124/0x200 fs/open.c:1261 x64_sys_call+0x2eb/0x990 arch/x86/include/generated/asm/syscalls_64.h:258 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 Freed by task 427: 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:365 [inline] ____kasan_slab_free mm/kasan/common.c:327 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x94/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3519 [inline] kfree+0xc2/0x260 mm/slub.c:4579 kvfree+0x25/0x30 mm/util.c:664 simple_xattrs_free include/linux/xattr.h:112 [inline] shmem_evict_inode+0x145/0xa00 mm/shmem.c:1167 evict+0x2ab/0x610 fs/inode.c:587 iput_final fs/inode.c:1705 [inline] iput.part.0+0x334/0x640 fs/inode.c:1731 iput+0x3f/0x50 fs/inode.c:1721 dentry_unlink_inode+0x28a/0x400 fs/dcache.c:380 __dentry_kill+0x326/0x610 fs/dcache.c:586 dentry_kill fs/dcache.c:712 [inline] dput+0x308/0x8c0 fs/dcache.c:893 do_renameat2+0x598/0xa50 fs/namei.c:4987 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x7d/0xa0 fs/namei.c:5029 x64_sys_call+0x744/0x990 arch/x86/include/generated/asm/syscalls_64.h:83 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 The buggy address belongs to the object at ffff88811b199000 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88811b199000, ffff88811b199040) The buggy address belongs to the page: page:ffffea00046c6640 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b199 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100042780 raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 427, ts 52110994185, free_ts 52070351266 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] alloc_slab_page mm/slub.c:1793 [inline] allocate_slab+0x39d/0x530 mm/slub.c:1932 new_slab mm/slub.c:1995 [inline] ___slab_alloc.constprop.0+0x3ca/0x890 mm/slub.c:3028 __slab_alloc.constprop.0+0x42/0x80 mm/slub.c:3115 slab_alloc_node mm/slub.c:3206 [inline] slab_alloc mm/slub.c:3248 [inline] __kmalloc+0x49f/0x4e0 mm/slub.c:4423 __kmalloc_node include/linux/slab.h:469 [inline] kmalloc_node include/linux/slab.h:626 [inline] kvmalloc_node+0xee/0x240 mm/util.c:628 kvmalloc include/linux/mm.h:851 [inline] simple_xattr_alloc fs/xattr.c:987 [inline] simple_xattr_set+0x76/0x660 fs/xattr.c:1051 shmem_xattr_handler_set+0x2f/0x40 mm/shmem.c:3230 __vfs_setxattr+0xe9/0x140 fs/xattr.c:182 __vfs_setxattr_noperm+0xf1/0x580 fs/xattr.c:216 __vfs_setxattr_locked+0x163/0x200 fs/xattr.c:277 vfs_setxattr+0x141/0x320 fs/xattr.c:303 do_setxattr+0x198/0x260 fs/xattr.c:588 setxattr+0x11d/0x140 fs/xattr.c:611 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:5855 __vunmap+0x4b2/0x7b0 mm/vmalloc.c:2652 free_work+0x51/0x70 mm/vmalloc.c:96 process_one_work+0x62c/0xec0 kernel/workqueue.c:2325 worker_thread+0x48e/0xdb0 kernel/workqueue.c:2472 kthread+0x324/0x3e0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88811b198f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811b198f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811b199000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88811b199080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88811b199100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================