================================================================== BUG: KASAN: use-after-free in memcmp lib/string.c:783 [inline] BUG: KASAN: use-after-free in bcmp+0x210/0x230 lib/string.c:804 Read of size 1 at addr ffff888120e7417a by task kworker/0:2/294 CPU: 0 PID: 294 Comm: kworker/0:2 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348 memcmp lib/string.c:783 [inline] bcmp+0x210/0x230 lib/string.c:804 memcmp include/linux/fortify-string.h:549 [inline] sony_check_add_dev_list drivers/hid/hid-sony.c:2542 [inline] sony_check_add drivers/hid/hid-sony.c:2673 [inline] sony_input_configured+0x62c/0x3830 drivers/hid/hid-sony.c:2752 hidinput_connect+0x2334/0x30d0 drivers/hid/hid-input.c:2351 hid_connect+0x4b0/0x1b40 drivers/hid/hid-core.c:2250 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2363 sony_probe+0x23c/0xcf0 drivers/hid/hid-sony.c:3024 hid_device_probe+0x273/0x410 drivers/hid/hid-core.c:2694 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:638 __driver_probe_device+0x193/0x270 drivers/base/dd.c:807 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:837 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:965 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1037 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1086 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 device_add+0xb0b/0xec0 drivers/base/core.c:3698 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2848 usbhid_probe+0xc12/0xff0 drivers/hid/usbhid/hid-core.c:1443 usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:638 __driver_probe_device+0x193/0x270 drivers/base/dd.c:807 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:837 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:965 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1037 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1086 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 device_add+0xb0b/0xec0 drivers/base/core.c:3698 usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:638 __driver_probe_device+0x193/0x270 drivers/base/dd.c:807 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:837 __device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:965 bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:1037 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1086 bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489 device_add+0xb0b/0xec0 drivers/base/core.c:3698 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684 hub_port_connect drivers/usb/core/hub.c:5594 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 1400: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1322 [inline] nlmsg_new include/net/netlink.h:987 [inline] inet6_rt_notify+0x34d/0x520 net/ipv6/route.c:6226 fib6_add_rt2node net/ipv6/ip6_fib.c:1260 [inline] fib6_add+0x2254/0x3dd0 net/ipv6/ip6_fib.c:1489 __ip6_ins_rt net/ipv6/route.c:1346 [inline] ip6_ins_rt+0xd3/0x130 net/ipv6/route.c:1356 __ipv6_ifa_notify+0x4e4/0xe80 net/ipv6/addrconf.c:6247 ipv6_ifa_notify net/ipv6/addrconf.c:6286 [inline] addrconf_dad_completed+0x192/0xe80 net/ipv6/addrconf.c:4290 addrconf_dad_work+0xc1b/0x14a0 net/ipv6/addrconf.c:-1 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 kvfree_call_rcu+0x8b/0x7a0 kernel/rcu/tree.c:3445 drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1731 unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1769 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175 neigh_sysctl_unregister+0x78/0x90 net/core/neighbour.c:3879 addrconf_sysctl_unregister net/ipv6/addrconf.c:7266 [inline] addrconf_ifdown+0x168b/0x1950 net/ipv6/addrconf.c:3984 addrconf_notify+0x39f/0xe30 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2022 [inline] call_netdevice_notifiers_extack net/core/dev.c:2060 [inline] call_netdevice_notifiers net/core/dev.c:2074 [inline] unregister_netdevice_many+0x104a/0x1910 net/core/dev.c:11006 default_device_exit_batch+0x951/0x9f0 net/core/dev.c:11519 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x630/0xb10 net/core/net_namespace.c:604 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496 kvfree_call_rcu+0x8b/0x7a0 kernel/rcu/tree.c:3445 drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1731 unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1769 unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175 neigh_sysctl_unregister+0x78/0x90 net/core/neighbour.c:3879 devinet_sysctl_unregister net/ipv4/devinet.c:2664 [inline] inetdev_destroy net/ipv4/devinet.c:329 [inline] inetdev_event+0x839/0x10a0 net/ipv4/devinet.c:1615 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2022 [inline] call_netdevice_notifiers_extack net/core/dev.c:2060 [inline] call_netdevice_notifiers net/core/dev.c:2074 [inline] unregister_netdevice_many+0x104a/0x1910 net/core/dev.c:11006 ip_tunnel_delete_nets+0x346/0x390 net/ipv4/ip_tunnel.c:1139 ipip_exit_batch_net+0x22/0x30 net/ipv4/ipip.c:599 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x630/0xb10 net/core/net_namespace.c:604 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888120e74000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 378 bytes inside of 1024-byte region [ffff888120e74000, ffff888120e74400) The buggy address belongs to the physical page: page:ffffea0004839c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888120e77000 pfn:0x120e70 head:ffffea0004839c00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea0004610a08 ffffea0004ed9608 ffff888100043080 raw: ffff888120e77000 000000000010000d 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 312, tgid 312 (kworker/1:3), ts 63879094949, free_ts 63844081991 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1322 [inline] nlmsg_new include/net/netlink.h:987 [inline] __neigh_notify+0x84/0x130 net/core/neighbour.c:3516 neigh_cleanup_and_release+0x2c/0x1a0 net/core/neighbour.c:101 neigh_del net/core/neighbour.c:225 [inline] neigh_remove_one+0x4ae/0x530 net/core/neighbour.c:246 neigh_forced_gc net/core/neighbour.c:279 [inline] neigh_alloc net/core/neighbour.c:485 [inline] ___neigh_create+0x484/0x1db0 net/core/neighbour.c:648 __neigh_create+0x31/0x40 net/core/neighbour.c:737 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page+0x93/0x530 mm/page_alloc.c:3720 free_the_page mm/page_alloc.c:863 [inline] free_compound_page+0x99/0xd0 mm/page_alloc.c:886 destroy_large_folio+0x68/0xa0 mm/page_alloc.c:923 __folio_put_large mm/swap.c:113 [inline] __folio_put+0xd1/0xe0 mm/swap.c:121 folio_put include/linux/mm.h:1442 [inline] put_page include/linux/mm.h:1494 [inline] page_to_skb+0x4e1/0xb50 drivers/net/virtio_net.c:566 receive_mergeable drivers/net/virtio_net.c:1162 [inline] receive_buf+0x478/0x48a0 drivers/net/virtio_net.c:1301 virtnet_receive drivers/net/virtio_net.c:1596 [inline] virtnet_poll+0x5ed/0x1140 drivers/net/virtio_net.c:1717 __napi_poll+0xcd/0x5d0 net/core/dev.c:6645 napi_poll net/core/dev.c:6712 [inline] net_rx_action+0x4a3/0xa90 net/core/dev.c:6826 handle_softirqs+0x1dd/0x5f0 kernel/softirq.c:642 __do_softirq kernel/softirq.c:680 [inline] invoke_softirq kernel/softirq.c:497 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741 common_interrupt+0xbe/0xe0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:682 Memory state around the buggy address: ffff888120e74000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888120e74080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888120e74100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888120e74180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888120e74200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== sony 0003:054C:042F.000B: can't set operational mode: step 2 sony 0003:054C:042F.000B: Failed to set controller into operational mode sony 0003:054C:042F.000B: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.4-1/input0 sony 0003:054C:042F.000B: failed to claim input usb 5-1: USB disconnect, device number 10