================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:347 [inline] BUG: KASAN: slab-out-of-bounds in bacpy include/net/bluetooth/bluetooth.h:233 [inline] BUG: KASAN: slab-out-of-bounds in hci_extended_inquiry_result_evt net/bluetooth/hci_event.c:3840 [inline] BUG: KASAN: slab-out-of-bounds in hci_event_packet+0x8b09/0x9d63 net/bluetooth/hci_event.c:5380 Read of size 6 at addr ffff8880a1225e86 by task kworker/u5:0/1406 CPU: 0 PID: 1406 Comm: kworker/u5:0 Not tainted 4.14.138 #34 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:17 [inline] dump_stack+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:440 memcpy include/linux/string.h:347 [inline] bacpy include/net/bluetooth/bluetooth.h:233 [inline] hci_extended_inquiry_result_evt net/bluetooth/hci_event.c:3840 [inline] hci_event_packet+0x8b09/0x9d63 net/bluetooth/hci_event.c:5380 hci_rx_work+0x3ab/0x900 net/bluetooth/hci_core.c:4237 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 14478: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x51/0x80 mm/slab.c:3696 __kmalloc_reserve.isra.0+0x40/0xe0 net/core/skbuff.c:137 __alloc_skb+0xcf/0x500 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:980 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:336 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:180 [inline] vhci_write+0xb6/0x437 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1777 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x4a7/0x6b0 fs/read_write.c:482 vfs_write+0x198/0x500 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xfd/0x230 fs/read_write.c:582 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 7: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 skb_free_head+0x8b/0xb0 net/core/skbuff.c:554 skb_release_data+0x4af/0x700 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] consume_skb+0xaf/0x340 net/core/skbuff.c:705 sctp_chunk_destroy net/sctp/sm_make_chunk.c:1442 [inline] sctp_chunk_put+0x179/0x270 net/sctp/sm_make_chunk.c:1469 sctp_chunk_free+0x56/0x70 net/sctp/sm_make_chunk.c:1456 sctp_packet_pack net/sctp/output.c:485 [inline] sctp_packet_transmit+0x1141/0x3020 net/sctp/output.c:605 sctp_outq_flush+0xd13/0x31b0 net/sctp/outqueue.c:1187 sctp_outq_uncork+0x60/0x70 net/sctp/outqueue.c:761 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1776 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1179 [inline] sctp_do_sm+0x417/0x4ae0 net/sctp/sm_sideeffect.c:1150 sctp_assoc_bh_rcv+0x2a0/0x5d0 net/sctp/associola.c:1095 sctp_inq_push+0x1c9/0x260 net/sctp/inqueue.c:95 sctp_rcv+0x232f/0x2e50 net/sctp/input.c:267 ip_local_deliver_finish+0x25e/0xad0 net/ipv4/ip_input.c:216 NF_HOOK include/linux/netfilter.h:250 [inline] NF_HOOK include/linux/netfilter.h:244 [inline] ip_local_deliver+0x1c3/0x4a0 net/ipv4/ip_input.c:257 dst_input include/net/dst.h:468 [inline] ip_rcv_finish+0x7be/0x1a50 net/ipv4/ip_input.c:396 NF_HOOK include/linux/netfilter.h:250 [inline] NF_HOOK include/linux/netfilter.h:244 [inline] ip_rcv+0xaa5/0x112b net/ipv4/ip_input.c:493 __netif_receive_skb_core+0x1eae/0x2ca0 net/core/dev.c:4477 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4515 process_backlog+0x21f/0x730 net/core/dev.c:5197 napi_poll net/core/dev.c:5598 [inline] net_rx_action+0x490/0xf80 net/core/dev.c:5664 __do_softirq+0x244/0x9a0 kernel/softirq.c:288 The buggy address belongs to the object at ffff8880a1225c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 6 bytes to the right of 512-byte region [ffff8880a1225c80, ffff8880a1225e80) The buggy address belongs to the page: page:ffffea0002848940 count:1 mapcount:0 mapping:ffff8880a1225000 index:0x0 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff8880a1225000 0000000000000000 0000000100000006 raw: ffffea000238dda0 ffffea0002327aa0 ffff8880aa800940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a1225d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a1225e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a1225e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a1225f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a1225f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================