================================================================== BUG: KASAN: slab-out-of-bounds in hci_inquiry_result_with_rssi_evt /net/bluetooth/hci_event.c:4072 [inline] BUG: KASAN: slab-out-of-bounds in hci_event_packet+0x9d26/0xa8fb /net/bluetooth/hci_event.c:5952 Read of size 1 at addr ffff8880a8eed480 by task kworker/u5:0/1514 CPU: 1 PID: 1514 Comm: kworker/u5:0 Not tainted 5.2.0+ #90 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+0x172/0x1f0 /lib/dump_stack.c:113 print_address_description.cold+0xd4/0x306 /mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 /mm/kasan/report.c:482 kasan_report+0x12/0x17 /mm/kasan/common.c:612 __asan_report_load1_noabort+0x14/0x20 /mm/kasan/generic_report.c:129 hci_inquiry_result_with_rssi_evt /net/bluetooth/hci_event.c:4072 [inline] hci_event_packet+0x9d26/0xa8fb /net/bluetooth/hci_event.c:5952 hci_rx_work+0x47e/0xae0 /net/bluetooth/hci_core.c:4461 process_one_work+0x9af/0x1740 /kernel/workqueue.c:2269 worker_thread+0x98/0xe40 /kernel/workqueue.c:2415 kthread+0x361/0x430 /kernel/kthread.c:255 ret_from_fork+0x24/0x30 /arch/x86/entry/entry_64.S:352 Allocated by task 3852: save_stack+0x23/0x90 /mm/kasan/common.c:69 set_track /mm/kasan/common.c:77 [inline] __kasan_kmalloc /mm/kasan/common.c:487 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 /mm/kasan/common.c:460 kasan_kmalloc+0x9/0x10 /mm/kasan/common.c:501 __do_kmalloc_node /mm/slab.c:3615 [inline] __kmalloc_node_track_caller+0x4e/0x70 /mm/slab.c:3629 __kmalloc_reserve.isra.0+0x40/0xf0 /net/core/skbuff.c:141 __alloc_skb+0x10b/0x5e0 /net/core/skbuff.c:209 alloc_skb /./include/linux/skbuff.h:1055 [inline] bt_skb_alloc /./include/net/bluetooth/bluetooth.h:339 [inline] vhci_get_user /drivers/bluetooth/hci_vhci.c:165 [inline] vhci_write+0xc4/0x470 /drivers/bluetooth/hci_vhci.c:284 call_write_iter /./include/linux/fs.h:1870 [inline] new_sync_write+0x4d3/0x770 /fs/read_write.c:483 __vfs_write+0xe1/0x110 /fs/read_write.c:496 vfs_write+0x268/0x5d0 /fs/read_write.c:558 ksys_write+0x14f/0x290 /fs/read_write.c:611 __do_sys_write /fs/read_write.c:623 [inline] __se_sys_write /fs/read_write.c:620 [inline] __x64_sys_write+0x73/0xb0 /fs/read_write.c:620 do_syscall_64+0xfd/0x6a0 /arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9: save_stack+0x23/0x90 /mm/kasan/common.c:69 set_track /mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 /mm/kasan/common.c:449 kasan_slab_free+0xe/0x10 /mm/kasan/common.c:457 __cache_free /mm/slab.c:3425 [inline] kfree+0x10a/0x2c0 /mm/slab.c:3756 skb_free_head+0x93/0xb0 /net/core/skbuff.c:591 skb_release_data+0x42d/0x7c0 /net/core/skbuff.c:611 skb_release_all+0x4d/0x60 /net/core/skbuff.c:665 __kfree_skb /net/core/skbuff.c:679 [inline] kfree_skb /net/core/skbuff.c:697 [inline] kfree_skb+0x101/0x3c0 /net/core/skbuff.c:691 __netif_receive_skb_core+0x593/0x3060 /net/core/dev.c:4980 __netif_receive_skb_one_core+0xa8/0x1a0 /net/core/dev.c:4997 __netif_receive_skb+0x2c/0x1d0 /net/core/dev.c:5113 process_backlog+0x206/0x750 /net/core/dev.c:5924 napi_poll /net/core/dev.c:6347 [inline] net_rx_action+0x4d6/0x1030 /net/core/dev.c:6413 __do_softirq+0x262/0x98c /kernel/softirq.c:292 The buggy address belongs to the object at ffff8880a8eed280 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes to the right of 512-byte region [ffff8880a8eed280, ffff8880a8eed480) The buggy address belongs to the page: page:ffffea0002a3bb40 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea000272b5c8 ffffea00021d49c8 ffff8880aa400a80 raw: 0000000000000000 ffff8880a8eed000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a8eed380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a8eed400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a8eed480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a8eed500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a8eed580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================