usb 6-1: new high-speed USB device number 72 using dummy_hcd usb 6-1: Using ep0 maxpacket: 8 ================================================================== BUG: KASAN: slab-out-of-bounds in usb_get_bos_descriptor+0x8be/0x8fb drivers/usb/core/config.c:976 Write of size 1 at addr ffff88809c20b61c by task kworker/1:2/5294 CPU: 1 PID: 5294 Comm: kworker/1:2 Not tainted 5.1.0-rc3-319004-g43151d6 #6 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xe8/0x16e lib/dump_stack.c:113 print_address_description+0x6c/0x236 mm/kasan/report.c:187 kasan_report.cold+0x1a/0x3c mm/kasan/report.c:317 usb_get_bos_descriptor+0x8be/0x8fb drivers/usb/core/config.c:976 hub_port_init+0x1671/0x2d30 drivers/usb/core/hub.c:4828 hub_port_connect drivers/usb/core/hub.c:5021 [inline] hub_port_connect_change drivers/usb/core/hub.c:5204 [inline] port_event drivers/usb/core/hub.c:5350 [inline] hub_event+0x11b8/0x3b00 drivers/usb/core/hub.c:5432 process_one_work+0x90f/0x1580 kernel/workqueue.c:2269 worker_thread+0x9b/0xe20 kernel/workqueue.c:2415 kthread+0x313/0x420 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 5294: set_track mm/kasan/common.c:87 [inline] __kasan_kmalloc mm/kasan/common.c:497 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:470 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:742 [inline] usb_get_bos_descriptor+0x1e2/0x8fb drivers/usb/core/config.c:955 hub_port_init+0x1671/0x2d30 drivers/usb/core/hub.c:4828 hub_port_connect drivers/usb/core/hub.c:5021 [inline] hub_port_connect_change drivers/usb/core/hub.c:5204 [inline] port_event drivers/usb/core/hub.c:5350 [inline] hub_event+0x11b8/0x3b00 drivers/usb/core/hub.c:5432 process_one_work+0x90f/0x1580 kernel/workqueue.c:2269 worker_thread+0x9b/0xe20 kernel/workqueue.c:2415 kthread+0x313/0x420 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88809c20b618 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 4 bytes inside of 8-byte region [ffff88809c20b618, ffff88809c20b620) The buggy address belongs to the page: page:ffffea00027082c0 count:1 mapcount:0 mapping:ffff88812c3f5c00 index:0x0 flags: 0xfff00000000200(slab) raw: 00fff00000000200 dead000000000100 dead000000000200 ffff88812c3f5c00 raw: 0000000000000000 0000000080aa00aa 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809c20b500: fc fc fb fc fc fb fc fc fc fc fc fb fc fc fb fc ffff88809c20b580: fc fc fc fc fc fc fc fb fc fc fb fc fc fb fc fc >ffff88809c20b600: fb fc fc 01 fc fc fb fc fc fc fc fc fc fc fc fb ^ ffff88809c20b680: fc fc fb fc fc fc fc fc 00 fc fc fb fc fc fc fc ffff88809c20b700: fc fc fc fc fb fc fc fc fc fc fc fc fc fc fc fc ==================================================================