================================================================== BUG: KASAN: slab-out-of-bounds in hci_le_direct_adv_report_evt net/bluetooth/hci_event.c:5880 [inline] BUG: KASAN: slab-out-of-bounds in hci_le_meta_evt+0x3bd6/0x4400 net/bluetooth/hci_event.c:5944 Read of size 1 at addr ffff8880209b420c by task kworker/u5:1/8487 CPU: 1 PID: 8487 Comm: kworker/u5:1 Not tainted 5.10.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci5 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 hci_le_direct_adv_report_evt net/bluetooth/hci_event.c:5880 [inline] hci_le_meta_evt+0x3bd6/0x4400 net/bluetooth/hci_event.c:5944 hci_event_packet+0x5d9/0x7d60 net/bluetooth/hci_event.c:6269 hci_rx_work+0x511/0xd30 net/bluetooth/hci_core.c:4926 process_one_work+0x933/0x15a0 kernel/workqueue.c:2272 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418 kthread+0x3af/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Allocated by task 17294: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:526 [inline] slab_alloc_node mm/slub.c:2891 [inline] __kmalloc_node_track_caller+0x1eb/0x410 mm/slub.c:4495 __kmalloc_reserve net/core/skbuff.c:142 [inline] __alloc_skb+0xae/0x550 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1094 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:389 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:165 [inline] vhci_write+0xbd/0x450 drivers/bluetooth/hci_vhci.c:285 call_write_iter include/linux/fs.h:1887 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x57d/0x700 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8880209b4000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 12 bytes to the right of 512-byte region [ffff8880209b4000, ffff8880209b4200) The buggy address belongs to the page: page:000000005b2d9dc1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x209b4 head:000000005b2d9dc1 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 0000000000000000 0000000100000001 ffff888010041280 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880209b4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880209b4180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880209b4200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880209b4280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880209b4300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================