ci2 starts bisection 2024-08-03 21:18:05.149636852 +0000 UTC m=+81243.767169705 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: ef44e99a769a9cf245def3aaf4ef4a25b9b4434e27f7a22690820061fe140d3a 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 [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: c899f170a5790bf71a5b7aaf6a902a33ddd6bb30eccc57cb9687051955442301 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], 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: b56aaceeefdfbebebae783d4a4912bdb459e62c3a81a4be8457162424b03e889 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], 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: 33dbe8e67e618b8e5f20a30facde2c2a4f04fa203f3b9e5390a93770d6985132 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 [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 kernel signature: d5cb4bb3e2b0eb04233495dcbbbc17a31e7cfdc5368041eacc07970f0407a0e4 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], 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: c4b64fe3699cae6302e3422531958912c8a97bd4e881d9650b17b80faa189ab7 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 [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 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 70e1a731d98699d85ada2cbdd4d487e51b2f7441 testing commit 70e1a731d98699d85ada2cbdd4d487e51b2f7441 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c31203f1c6d7cbeb1b82f9ca71762b5e1bf4c5ab3c5c5d73ce4e1942860f6aca 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: 47m1.793509982s (build: 24m12.101033453s, test: 20m56.013879793s) crash still not fixed or there were kernel test errors commit msg: Revert "regmap: Add bulk read/write callbacks into regmap_config" crash: KASAN: use-after-free Write in virtio_transport_recv_pkt ================================================================== 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 ffff888105396408 by task kworker/1:3/303 CPU: 1 PID: 303 Comm: kworker/1:3 Not tainted 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 382: 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 382: 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 ffff888105396400 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 8 bytes inside of 96-byte region [ffff888105396400, ffff888105396460) The buggy address belongs to the page: page:ffffea000414e580 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105396 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea000421fa80 0000000300000003 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 1724075790, free_ts 0 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+0x2d1/0x2620 mm/page_alloc.c:5777 __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] acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline] acpi_ut_evaluate_object+0x65/0x430 drivers/acpi/acpica/uteval.c:50 acpi_rs_get_method_data+0x67/0xc0 drivers/acpi/acpica/rsutils.c:650 acpi_walk_resources drivers/acpi/acpica/rsxface.c:616 [inline] acpi_walk_resources+0xf0/0x180 drivers/acpi/acpica/rsxface.c:594 pnpacpi_parse_allocated_resource+0xb2/0x100 drivers/pnp/pnpacpi/rsparser.c:280 pnpacpi_add_device drivers/pnp/pnpacpi/core.c:258 [inline] pnpacpi_add_device_handler+0x4ba/0x62c drivers/pnp/pnpacpi/core.c:295 acpi_ns_get_device_callback drivers/acpi/acpica/nsxfeval.c:740 [inline] acpi_ns_get_device_callback+0x254/0x440 drivers/acpi/acpica/nsxfeval.c:635 acpi_ns_walk_namespace+0x1c6/0x4c0 drivers/acpi/acpica/nswalk.c:233 acpi_get_devices+0xf6/0x120 drivers/acpi/acpica/nsxfeval.c:805 pnpacpi_init+0x7e/0xd2 drivers/pnp/pnpacpi/core.c:308 page_owner free stack trace missing Memory state around the buggy address: ffff888105396300: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888105396380: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff888105396400: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff888105396480: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff888105396500: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================