usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: New USB device found, idVendor=0b05, idProduct=19b6, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? ================================================================== BUG: KASAN: slab-out-of-bounds in asus_report_fixup+0x489/0xad0 drivers/hid/hid-asus.c:1241 Read of size 1 at addr ffff888114ed5325 by task kworker/0:3/2998 CPU: 0 PID: 2998 Comm: kworker/0:3 Not tainted 6.8.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x280 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 asus_report_fixup+0x489/0xad0 drivers/hid/hid-asus.c:1241 hid_open_report+0x1e3/0x1660 drivers/hid/hid-core.c:1235 hid_parse include/linux/hid.h:1118 [inline] asus_probe+0x6f2/0xa50 drivers/hid/hid-asus.c:1096 __hid_device_probe drivers/hid/hid-core.c:2633 [inline] hid_device_probe+0x269/0x430 drivers/hid/hid-core.c:2670 really_probe+0x2e9/0xa60 drivers/base/dd.c:658 __driver_probe_device+0x138/0x350 drivers/base/dd.c:800 driver_probe_device+0x4b/0x3a0 drivers/base/dd.c:830 __device_attach_driver+0x2d0/0x400 drivers/base/dd.c:958 bus_for_each_drv+0x215/0x280 drivers/base/bus.c:457 __device_attach+0x248/0x430 drivers/base/dd.c:1030 bus_probe_device+0x12e/0x210 drivers/base/bus.c:532 device_add+0x554/0x9b0 drivers/base/core.c:3639 hid_add_device+0x2cf/0x430 drivers/hid/hid-core.c:2816 usbhid_probe+0x984/0xcb0 drivers/hid/usbhid/hid-core.c:1429 usb_probe_interface+0x4a7/0x9b0 drivers/usb/core/driver.c:399 really_probe+0x2e9/0xa60 drivers/base/dd.c:658 __driver_probe_device+0x138/0x350 drivers/base/dd.c:800 driver_probe_device+0x4b/0x3a0 drivers/base/dd.c:830 __device_attach_driver+0x2d0/0x400 drivers/base/dd.c:958 bus_for_each_drv+0x215/0x280 drivers/base/bus.c:457 __device_attach+0x248/0x430 drivers/base/dd.c:1030 bus_probe_device+0x12e/0x210 drivers/base/bus.c:532 device_add+0x554/0x9b0 drivers/base/core.c:3639 usb_set_configuration+0x17f8/0x1dc0 drivers/usb/core/message.c:2207 usb_generic_driver_probe+0x65/0x100 drivers/usb/core/generic.c:254 usb_probe_device+0xd5/0x240 drivers/usb/core/driver.c:294 really_probe+0x2e9/0xa60 drivers/base/dd.c:658 __driver_probe_device+0x138/0x350 drivers/base/dd.c:800 driver_probe_device+0x4b/0x3a0 drivers/base/dd.c:830 __device_attach_driver+0x2d0/0x400 drivers/base/dd.c:958 bus_for_each_drv+0x215/0x280 drivers/base/bus.c:457 __device_attach+0x248/0x430 drivers/base/dd.c:1030 bus_probe_device+0x12e/0x210 drivers/base/bus.c:532 device_add+0x554/0x9b0 drivers/base/core.c:3639 usb_new_device+0xc78/0x17e0 drivers/usb/core/hub.c:2614 hub_port_connect drivers/usb/core/hub.c:5483 [inline] hub_port_connect_change drivers/usb/core/hub.c:5623 [inline] port_event drivers/usb/core/hub.c:5783 [inline] hub_event+0x22f4/0x4190 drivers/usb/core/hub.c:5865 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0x8b6/0x12f0 kernel/workqueue.c:3335 worker_thread+0x869/0xca0 kernel/workqueue.c:3416 kthread+0x268/0x2c0 kernel/kthread.c:388 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 Allocated by task 2998: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:3966 [inline] __kmalloc_node_track_caller+0x22f/0x4b0 mm/slub.c:3986 kmemdup+0x23/0x50 mm/util.c:131 call_hid_bpf_rdesc_fixup include/linux/hid_bpf.h:154 [inline] hid_open_report+0x156/0x1660 drivers/hid/hid-core.c:1230 hid_parse include/linux/hid.h:1118 [inline] asus_probe+0x6f2/0xa50 drivers/hid/hid-asus.c:1096 __hid_device_probe drivers/hid/hid-core.c:2633 [inline] hid_device_probe+0x269/0x430 drivers/hid/hid-core.c:2670 really_probe+0x2e9/0xa60 drivers/base/dd.c:658 __driver_probe_device+0x138/0x350 drivers/base/dd.c:800 driver_probe_device+0x4b/0x3a0 drivers/base/dd.c:830 __device_attach_driver+0x2d0/0x400 drivers/base/dd.c:958 bus_for_each_drv+0x215/0x280 drivers/base/bus.c:457 __device_attach+0x248/0x430 drivers/base/dd.c:1030 bus_probe_device+0x12e/0x210 drivers/base/bus.c:532 device_add+0x554/0x9b0 drivers/base/core.c:3639 hid_add_device+0x2cf/0x430 drivers/hid/hid-core.c:2816 usbhid_probe+0x984/0xcb0 drivers/hid/usbhid/hid-core.c:1429 usb_probe_interface+0x4a7/0x9b0 drivers/usb/core/driver.c:399 really_probe+0x2e9/0xa60 drivers/base/dd.c:658 __driver_probe_device+0x138/0x350 drivers/base/dd.c:800 driver_probe_device+0x4b/0x3a0 drivers/base/dd.c:830 __device_attach_driver+0x2d0/0x400 drivers/base/dd.c:958 bus_for_each_drv+0x215/0x280 drivers/base/bus.c:457 __device_attach+0x248/0x430 drivers/base/dd.c:1030 bus_probe_device+0x12e/0x210 drivers/base/bus.c:532 device_add+0x554/0x9b0 drivers/base/core.c:3639 usb_set_configuration+0x17f8/0x1dc0 drivers/usb/core/message.c:2207 usb_generic_driver_probe+0x65/0x100 drivers/usb/core/generic.c:254 usb_probe_device+0xd5/0x240 drivers/usb/core/driver.c:294 really_probe+0x2e9/0xa60 drivers/base/dd.c:658 __driver_probe_device+0x138/0x350 drivers/base/dd.c:800 driver_probe_device+0x4b/0x3a0 drivers/base/dd.c:830 __device_attach_driver+0x2d0/0x400 drivers/base/dd.c:958 bus_for_each_drv+0x215/0x280 drivers/base/bus.c:457 __device_attach+0x248/0x430 drivers/base/dd.c:1030 bus_probe_device+0x12e/0x210 drivers/base/bus.c:532 device_add+0x554/0x9b0 drivers/base/core.c:3639 usb_new_device+0xc78/0x17e0 drivers/usb/core/hub.c:2614 hub_port_connect drivers/usb/core/hub.c:5483 [inline] hub_port_connect_change drivers/usb/core/hub.c:5623 [inline] port_event drivers/usb/core/hub.c:5783 [inline] hub_event+0x22f4/0x4190 drivers/usb/core/hub.c:5865 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0x8b6/0x12f0 kernel/workqueue.c:3335 worker_thread+0x869/0xca0 kernel/workqueue.c:3416 kthread+0x268/0x2c0 kernel/kthread.c:388 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 The buggy address belongs to the object at ffff888114ed5320 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes to the right of allocated 5-byte region [ffff888114ed5320, ffff888114ed5325) The buggy address belongs to the physical page: page:ffffea000453b540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x114ed5 flags: 0x100000000000800(slab|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000800 ffff888100041280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080800080 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, tgid 1 (swapper/0), ts 5560142432, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x10f/0x130 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0x345c/0x3600 mm/page_alloc.c:3311 __alloc_pages+0x256/0x650 mm/page_alloc.c:4569 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page+0x5f/0x160 mm/slub.c:2175 allocate_slab mm/slub.c:2338 [inline] new_slab+0x70/0x270 mm/slub.c:2391 ___slab_alloc+0xb0d/0x1040 mm/slub.c:3525 __slab_alloc mm/slub.c:3610 [inline] __slab_alloc_node mm/slub.c:3663 [inline] slab_alloc_node mm/slub.c:3835 [inline] kmalloc_trace+0x254/0x3a0 mm/slub.c:3992 kmalloc include/linux/slab.h:628 [inline] kzalloc include/linux/slab.h:749 [inline] add_sysfs_param+0x592/0x880 kernel/params.c:646 kernel_add_sysfs_param+0x81/0xe0 kernel/params.c:817 param_sysfs_builtin+0x149/0x1c0 kernel/params.c:856 param_sysfs_builtin_init+0x22/0x30 kernel/params.c:990 do_one_initcall+0x196/0x4d0 init/main.c:1241 do_initcall_level+0x11e/0x1e0 init/main.c:1303 do_initcalls+0x3e/0x70 init/main.c:1319 kernel_init_freeable+0x365/0x4c0 init/main.c:1550 kernel_init+0x18/0x1a0 init/main.c:1439 page_owner free stack trace missing Memory state around the buggy address: ffff888114ed5200: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff888114ed5280: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc >ffff888114ed5300: fa fc fc fc 05 fc fc fc 05 fc fc fc fa fc fc fc ^ ffff888114ed5380: fa fc fc fc fa fc fc fc 00 fc fc fc 07 fc fc fc ffff888114ed5400: 07 fc fc fc fa fc fc fc 00 fc fc fc 00 fc fc fc ==================================================================