netlink: 13 bytes leftover after parsing attributes in process `syz-executor.4'. ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:348 [inline] BUG: KASAN: slab-out-of-bounds in bacpy include/net/bluetooth/bluetooth.h:236 [inline] BUG: KASAN: slab-out-of-bounds in hci_extended_inquiry_result_evt net/bluetooth/hci_event.c:4162 [inline] BUG: KASAN: slab-out-of-bounds in hci_event_packet+0x7a85/0x80f9 net/bluetooth/hci_event.c:5844 Read of size 6 at addr ffff88808ef3df46 by task kworker/u5:0/1215 CPU: 0 PID: 1215 Comm: kworker/u5:0 Not tainted 4.19.127-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x222 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 memcpy include/linux/string.h:348 [inline] bacpy include/net/bluetooth/bluetooth.h:236 [inline] hci_extended_inquiry_result_evt net/bluetooth/hci_event.c:4162 [inline] hci_event_packet+0x7a85/0x80f9 net/bluetooth/hci_event.c:5844 hci_rx_work+0x47b/0xab0 net/bluetooth/hci_core.c:4359 process_one_work+0x892/0x1580 kernel/workqueue.c:2155 worker_thread+0x96/0xe20 kernel/workqueue.c:2298 kthread+0x30b/0x410 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 14033: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703 __kmalloc_reserve.isra.0+0x39/0xe0 net/core/skbuff.c:137 __alloc_skb+0xef/0x5b0 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:180 [inline] vhci_write+0xbd/0x450 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x512/0x760 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9: __cache_free mm/slab.c:3503 [inline] kfree+0xce/0x220 mm/slab.c:3822 skb_free_head+0x91/0xb0 net/core/skbuff.c:554 skb_release_data+0x623/0x8e0 net/core/skbuff.c:574 skb_release_all+0x46/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0xe1/0x390 net/core/skbuff.c:663 ip6_mc_input+0x831/0xa88 net/ipv6/ip6_input.c:518 dst_input include/net/dst.h:453 [inline] ip6_rcv_finish+0x1d9/0x2f0 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:289 [inline] ipv6_rcv+0x101/0x400 net/ipv6/ip6_input.c:283 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:4960 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5072 process_backlog+0x235/0x750 net/core/dev.c:5854 napi_poll net/core/dev.c:6277 [inline] net_rx_action+0x498/0xf70 net/core/dev.c:6343 __do_softirq+0x26c/0x93d kernel/softirq.c:292 The buggy address belongs to the object at ffff88808ef3dd40 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 6 bytes to the right of 512-byte region [ffff88808ef3dd40, ffff88808ef3df40) The buggy address belongs to the page: page:ffffea00023bcf40 count:1 mapcount:0 mapping:ffff88812c3dc940 index:0xffff88808ef3d840 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea0002a4e3c8 ffffea00022fa788 ffff88812c3dc940 raw: ffff88808ef3d840 ffff88808ef3d0c0 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808ef3de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808ef3de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808ef3df00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88808ef3df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808ef3e000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================