================================================================== BUG: KASAN: slab-out-of-bounds in ip_icmp_error+0x52a/0x5a0 net/ipv4/ip_sockglue.c:404 Read of size 1 at addr ffff88809f0217ff by task ksoftirqd/0/9 CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.7.0-rc7-next-20200526-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 ip_icmp_error+0x52a/0x5a0 net/ipv4/ip_sockglue.c:404 tcp_v4_err+0x99e/0x1ce0 net/ipv4/tcp_ipv4.c:576 icmp_socket_deliver+0x1e1/0x360 net/ipv4/icmp.c:803 icmp_unreach+0x33b/0xab0 net/ipv4/icmp.c:920 icmp_rcv+0xee6/0x15f0 net/ipv4/icmp.c:1102 ip_protocol_deliver_rcu+0x57/0x880 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x220/0x360 net/ipv4/ip_input.c:231 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip_local_deliver+0x1c8/0x4e0 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:441 [inline] ip_rcv_finish+0x1da/0x2f0 net/ipv4/ip_input.c:428 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip_rcv+0xd0/0x3c0 net/ipv4/ip_input.c:539 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5268 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5382 process_backlog+0x21e/0x7a0 net/core/dev.c:6214 napi_poll net/core/dev.c:6659 [inline] net_rx_action+0x4e1/0x10d0 net/core/dev.c:6727 __do_softirq+0x268/0x9ee kernel/softirq.c:292 run_ksoftirqd kernel/softirq.c:604 [inline] run_ksoftirqd+0x89/0x100 kernel/softirq.c:596 smpboot_thread_fn+0x653/0x9e0 kernel/smpboot.c:165 kthread+0x3b5/0x4a0 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:350 Allocated by task 1: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc mm/kasan/common.c:494 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:467 kmem_cache_alloc_trace+0x153/0x7d0 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] usb_hub_create_port_device+0x71/0xd70 drivers/usb/core/port.c:537 hub_configure drivers/usb/core/hub.c:1648 [inline] hub_probe.cold+0x1eb0/0x2274 drivers/usb/core/hub.c:1882 usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:374 really_probe+0x281/0x6d0 drivers/base/dd.c:525 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:873 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xaf1/0x1900 drivers/base/core.c:2662 usb_set_configuration+0xec5/0x1740 drivers/usb/core/message.c:2032 usb_generic_driver_probe+0x9d/0xe0 drivers/usb/core/generic.c:241 usb_probe_device+0xc6/0x1f0 drivers/usb/core/driver.c:272 really_probe+0x281/0x6d0 drivers/base/dd.c:525 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:873 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xaf1/0x1900 drivers/base/core.c:2662 usb_new_device.cold+0x753/0x103d drivers/usb/core/hub.c:2554 register_root_hub drivers/usb/core/hcd.c:1009 [inline] usb_add_hcd.cold+0x1103/0x14aa drivers/usb/core/hcd.c:2793 vhci_hcd_probe+0x16f/0x230 drivers/usb/usbip/vhci_hcd.c:1364 platform_drv_probe+0x87/0x140 drivers/base/platform.c:747 really_probe+0x281/0x6d0 drivers/base/dd.c:525 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x360 drivers/base/dd.c:873 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0xaf1/0x1900 drivers/base/core.c:2662 platform_device_add+0x348/0x6c0 drivers/base/platform.c:597 vhci_hcd_init+0x344/0x488 drivers/usb/usbip/vhci_hcd.c:1534 do_one_initcall+0x10a/0x7b0 init/main.c:1199 do_initcall_level init/main.c:1272 [inline] do_initcalls init/main.c:1288 [inline] do_basic_setup init/main.c:1308 [inline] kernel_init_freeable+0x506/0x5b5 init/main.c:1505 kernel_init+0xd/0x1bb init/main.c:1399 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:350 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88809f021000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 2047 bytes inside of 2048-byte region [ffff88809f021000, ffff88809f021800) The buggy address belongs to the page: page:ffffea00027c0840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00027c2788 ffffea00027c0888 ffff8880aa000e00 raw: 0000000000000000 ffff88809f021000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f021680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809f021700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809f021780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809f021800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809f021880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================