================================================================== BUG: KASAN: slab-out-of-bounds in bacpy include/net/bluetooth/bluetooth.h:238 [inline] BUG: KASAN: slab-out-of-bounds in hci_extended_inquiry_result_evt net/bluetooth/hci_event.c:4281 [inline] BUG: KASAN: slab-out-of-bounds in hci_event_packet+0x9b4/0x1c710 net/bluetooth/hci_event.c:5984 Read of size 6 at addr ffff8880468a9206 by task kworker/u5:0/1620 CPU: 0 PID: 1620 Comm: kworker/u5:0 Not tainted 5.6.0-rc3-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+0x1fb/0x318 lib/dump_stack.c:118 print_address_description+0x74/0x5c0 mm/kasan/report.c:374 __kasan_report+0x149/0x1c0 mm/kasan/report.c:506 kasan_report+0x26/0x50 mm/kasan/common.c:641 check_memory_region_inline mm/kasan/generic.c:182 [inline] check_memory_region+0x2b6/0x2f0 mm/kasan/generic.c:192 memcpy+0x28/0x60 mm/kasan/common.c:127 bacpy include/net/bluetooth/bluetooth.h:238 [inline] hci_extended_inquiry_result_evt net/bluetooth/hci_event.c:4281 [inline] hci_event_packet+0x9b4/0x1c710 net/bluetooth/hci_event.c:5984 hci_rx_work+0x239/0xa60 net/bluetooth/hci_core.c:4557 process_one_work+0x7f5/0x10f0 kernel/workqueue.c:2264 worker_thread+0xbbc/0x1630 kernel/workqueue.c:2410 kthread+0x332/0x350 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 11238: save_stack mm/kasan/common.c:72 [inline] set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc+0x118/0x1c0 mm/kasan/common.c:515 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:529 __do_kmalloc_node mm/slab.c:3616 [inline] __kmalloc_node_track_caller+0x4d/0x60 mm/slab.c:3630 __kmalloc_reserve net/core/skbuff.c:142 [inline] __alloc_skb+0xe8/0x500 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1081 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:341 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:165 [inline] vhci_write+0xba/0x440 drivers/bluetooth/hci_vhci.c:285 call_write_iter include/linux/fs.h:1901 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x5a1/0x740 fs/read_write.c:496 vfs_write+0x270/0x580 fs/read_write.c:558 ksys_write+0x117/0x220 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+0x7b/0x90 fs/read_write.c:620 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10678: save_stack mm/kasan/common.c:72 [inline] set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x12e/0x1e0 mm/kasan/common.c:476 kasan_slab_free+0xe/0x10 mm/kasan/common.c:485 __cache_free mm/slab.c:3426 [inline] kfree+0x10d/0x220 mm/slab.c:3757 tomoyo_find_next_domain+0x1802/0x1cc0 security/tomoyo/domain.c:884 tomoyo_bprm_check_security+0xe3/0x130 security/tomoyo/tomoyo.c:107 security_bprm_check+0x50/0xb0 security/security.c:816 search_binary_handler+0x6a/0x5e0 fs/exec.c:1649 exec_binprm fs/exec.c:1705 [inline] __do_execve_file+0x153b/0x1ca0 fs/exec.c:1825 do_execveat_common fs/exec.c:1871 [inline] do_execve+0x33/0x40 fs/exec.c:1888 call_usermodehelper_exec_async+0x318/0x4c0 kernel/umh.c:112 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff8880468a9000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 6 bytes to the right of 512-byte region [ffff8880468a9000, ffff8880468a9200) The buggy address belongs to the page: page:ffffea00011a2a40 refcount:1 mapcount:0 mapping:ffff8880aa400a80 index:0xffff8880468a9400 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00011a2908 ffffea00011a2bc8 ffff8880aa400a80 raw: ffff8880468a9400 ffff8880468a9000 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880468a9100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880468a9180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880468a9200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880468a9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880468a9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================