ci2 starts bisection 2024-06-26 23:11:29.076975299 +0000 UTC m=+47263.180212185 bisecting fixing commit since 993bed180178156a70afdafe8aaf23a117107352 building syzkaller on 51c4dcff83b0574620c280cc5130ef59cc4a2e32 ensuring issue is reproducible on original commit 993bed180178156a70afdafe8aaf23a117107352 testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6569c84bfa446ae4ed9ca044762ee71008392a63bee03521e3a902cab64b6bba all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 68919d7d1fb7c391be1876b75b90f4c785322fc15574808856d5abc4c52fe3ad all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, 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=6159 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: eb9753c172ddbaba3b2983f049d6bfbfc702d04c0e3fdb5f742b6d9b6a5d60e0 all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5087f6e75f62088b61a263ace8f22c575cc19b1e7cb01240b50f47e601264bf5 all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cd19ce0dfbcffd7faa5e7e40a83166f01964137f5a374f60b287f984bb4a5c95 all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, 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 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ea2a75cf52369afeaa474af181de0fc27f56f2c7a19f1ed4c244b3dbf2d3ff25 all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 993bed180178156a70afdafe8aaf23a117107352 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 993bed180178156a70afdafe8aaf23a117107352: 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing current HEAD 9044d25b8ff5cb55bf57542a8457cd1e4e37646d testing commit 9044d25b8ff5cb55bf57542a8457cd1e4e37646d gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dac9240802131a5dd38089e2eed8df4106105719efe73721761c746b936d9441 all runs: crashed: KASAN: use-after-free Write in virtio_transport_recv_pkt representative crash: KASAN: use-after-free Write in virtio_transport_recv_pkt, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 41m49.877567368s (build: 18m37.94955809s, test: 21m38.239128323s) crash still not fixed or there were kernel test errors commit msg: Revert "net: dev: Convert sa_data to flexible array in struct sockaddr" crash: KASAN: use-after-free Write in virtio_transport_recv_pkt IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready ================================================================== BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:511 [inline] BUG: KASAN: use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] BUG: KASAN: use-after-free in do_raw_spin_lock include/linux/spinlock.h:187 [inline] BUG: KASAN: use-after-free in __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline] BUG: KASAN: use-after-free in _raw_spin_lock_bh+0x78/0x110 kernel/locking/spinlock.c:178 Write of size 4 at addr ffff8881246fff08 by task kworker/1:4/396 CPU: 1 PID: 396 Comm: kworker/1:4 Not tainted 5.15.150-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: vsock-loopback vsock_loopback_work 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 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:511 [inline] queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline] _raw_spin_lock_bh+0x78/0x110 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:368 [inline] virtio_transport_space_update net/vmw_vsock/virtio_transport_common.c:1174 [inline] virtio_transport_recv_pkt+0x391/0x2040 net/vmw_vsock/virtio_transport_common.c:1310 vsock_loopback_work+0x233/0x450 net/vmw_vsock/vsock_loopback.c:137 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:298 Allocated by task 481: 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] kmem_cache_alloc_trace+0xbb/0x490 mm/slub.c:3267 kmalloc include/linux/slab.h:603 [inline] kzalloc include/linux/slab.h:733 [inline] virtio_transport_do_socket_init+0x46/0x320 net/vmw_vsock/virtio_transport_common.c:604 vsock_assign_transport+0x385/0x5b0 net/vmw_vsock/af_vsock.c:496 vsock_connect+0x285/0xba0 net/vmw_vsock/af_vsock.c:1340 __sys_connect_file+0x136/0x190 net/socket.c:1918 __sys_connect+0x101/0x130 net/socket.c:1935 __do_sys_connect net/socket.c:1945 [inline] __se_sys_connect net/socket.c:1942 [inline] __x64_sys_connect+0x6e/0xb0 net/socket.c:1942 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 481: 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 virtio_transport_destruct+0x32/0x40 net/vmw_vsock/virtio_transport_common.c:818 vsock_deassign_transport net/vmw_vsock/af_vsock.c:411 [inline] vsock_assign_transport+0x285/0x5b0 net/vmw_vsock/af_vsock.c:479 vsock_connect+0x285/0xba0 net/vmw_vsock/af_vsock.c:1340 __sys_connect_file+0x136/0x190 net/socket.c:1918 __sys_connect+0x101/0x130 net/socket.c:1935 __do_sys_connect net/socket.c:1945 [inline] __se_sys_connect net/socket.c:1942 [inline] __x64_sys_connect+0x6e/0xb0 net/socket.c:1942 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff8881246fff00 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 8 bytes inside of 96-byte region [ffff8881246fff00, ffff8881246fff60) The buggy address belongs to the page: page:ffffea000491bfc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1246ff flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100042900 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 96, ts 44654439735, free_ts 44565094608 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook mm/page_alloc.c:2604 [inline] prep_new_page+0x1a2/0x310 mm/page_alloc.c:2610 get_page_from_freelist+0x1ce2/0x30a0 mm/page_alloc.c:4484 __alloc_pages+0x2d1/0x2620 mm/page_alloc.c:5776 __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] kmem_cache_alloc_trace+0x456/0x490 mm/slub.c:3265 kmalloc include/linux/slab.h:603 [inline] kzalloc include/linux/slab.h:733 [inline] mmu_notifier_subscriptions_init include/linux/mmu_notifier.h:516 [inline] mm_init+0x4ad/0xc80 kernel/fork.c:1122 dup_mm kernel/fork.c:1518 [inline] copy_mm kernel/fork.c:1573 [inline] copy_process+0x4741/0x7410 kernel/fork.c:2264 kernel_clone+0xc1/0x950 kernel/fork.c:2662 __do_sys_clone+0xc9/0x100 kernel/fork.c:2788 __se_sys_clone kernel/fork.c:2772 [inline] __x64_sys_clone+0xb9/0x140 kernel/fork.c:2772 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1471 [inline] free_pcp_prepare+0x1b6/0x4c0 mm/page_alloc.c:1543 free_unref_page_prepare mm/page_alloc.c:3533 [inline] free_unref_page_list+0x1e3/0xcd0 mm/page_alloc.c:3670 release_pages+0x37f/0xff0 mm/swap.c:1009 free_pages_and_swap_cache+0x5d/0x80 mm/swap_state.c:320 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:338 exit_mmap+0x224/0x890 mm/mmap.c:3218 __mmput+0x70/0x3a0 kernel/fork.c:1179 mmput kernel/fork.c:1202 [inline] mmput+0x35/0xf0 kernel/fork.c:1196 exit_mm kernel/exit.c:552 [inline] do_exit+0x889/0x24b0 kernel/exit.c:865 do_group_exit+0xe6/0x290 kernel/exit.c:1000 get_signal+0x236/0x1db0 kernel/signal.c:2896 arch_do_signal_or_restart+0x2b4/0x21c0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0xff/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff8881246ffe00: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff8881246ffe80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff8881246fff00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff8881246fff80: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff888124700000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================