IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready Bluetooth: hci3 SCO packet for unknown connection handle 3450 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 7688 Comm: kworker/u5:2 Not tainted 4.14.191-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci3 hci_rx_work task: ffff8880613381c0 task.stack: ffff888061340000 RIP: 0010:hci_phy_link_complete_evt.isra.0+0x1f3/0x6c0 net/bluetooth/hci_event.c:4360 RSP: 0018:ffff888061347ad0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1100c267158 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010 RBP: ffff88808a8ea980 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000000000 R11: ffff8880613381c0 R12: ffff88805ea299a8 R13: 00000000000000c8 R14: ffff8880a9bf028b R15: ffff88805ea28a50 FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000768000 CR3: 0000000007c6a000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_event_packet+0x2592/0x7c7a net/bluetooth/hci_event.c:5429 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:372 [inline] BUG: KASAN: slab-out-of-bounds in hci_inquiry_result_evt net/bluetooth/hci_event.c:2112 [inline] BUG: KASAN: slab-out-of-bounds in hci_event_packet+0x35fc/0x7c7a net/bluetooth/hci_event.c:5278 Read of size 3 at addr ffff88808fb9473f by task kworker/u5:0/6251 CPU: 0 PID: 6251 Comm: kworker/u5:0 Not tainted 4.14.191-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci2 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 hci_rx_work+0x3e6/0x970 net/bluetooth/hci_core.c:4244 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 kasan_report+0x6f/0x7b mm/kasan/report.c:409 memcpy+0x20/0x50 mm/kasan/kasan.c:302 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 memcpy include/linux/string.h:372 [inline] hci_inquiry_result_evt net/bluetooth/hci_event.c:2112 [inline] hci_event_packet+0x35fc/0x7c7a net/bluetooth/hci_event.c:5278 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Code: fa 48 c1 ea 03 80 hci_rx_work+0x3e6/0x970 net/bluetooth/hci_core.c:4244 3c process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 02 00 0f 85 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 dd 04 kthread+0x30d/0x420 kernel/kthread.c:232 00 00 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 48 8b Allocated by task 6329: 9d save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 40 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3696 08 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0x96/0x510 net/core/skbuff.c:205 00 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+0xb1/0x420 drivers/bluetooth/hci_vhci.c:299 00 call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 48 vfs_write+0x17f/0x4d0 fs/read_write.c:544 b8 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 00 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 00 entry_SYSCALL_64_after_hwframe+0x46/0xbb 00 00 Freed by task 3656: 00 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 fc __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 ff skb_free_head net/core/skbuff.c:554 [inline] skb_release_data+0x5f6/0x820 net/core/skbuff.c:574 df skb_release_all net/core/skbuff.c:631 [inline] __kfree_skb net/core/skbuff.c:645 [inline] consume_skb+0xe0/0x380 net/core/skbuff.c:705 48 netlink_broadcast_filtered+0x2ab/0x9e0 net/netlink/af_netlink.c:1489 8d kobject_uevent_env+0x851/0xcb0 lib/kobject_uevent.c:495 7b kobject_synth_uevent+0x5b6/0x6ca lib/kobject_uevent.c:205 10 uevent_store+0x21/0x60 drivers/base/core.c:1005 48 dev_attr_store+0x56/0x80 drivers/base/core.c:723 89 sysfs_kf_write+0x106/0x160 fs/sysfs/file.c:141 fa kernfs_fop_write+0x289/0x440 fs/kernfs/file.c:316 48 __vfs_write+0xe4/0x630 fs/read_write.c:480 c1 vfs_write+0x17f/0x4d0 fs/read_write.c:544 ea SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 03 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 <80> entry_SYSCALL_64_after_hwframe+0x46/0xbb 3c 02 The buggy address belongs to the object at ffff88808fb94540 which belongs to the cache kmalloc-512 of size 512 00 The buggy address is located 511 bytes inside of 512-byte region [ffff88808fb94540, ffff88808fb94740) 0f The buggy address belongs to the page: 85 page:ffffea00023ee500 count:1 mapcount:0 mapping:ffff88808fb94040 index:0xffff88808fb94a40 a0 04 flags: 0xfffe0000000100(slab) 00 raw: 00fffe0000000100 ffff88808fb94040 ffff88808fb94a40 0000000100000004 00 raw: ffffea00024bbfe0 ffffea00027af020 ffff88812fe52940 0000000000000000 48 page dumped because: kasan: bad access detected b8 00 Memory state around the buggy address: 00 ffff88808fb94600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808fb94680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808fb94700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 ^ fc ffff88808fb94780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ff ffff88808fb94800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb df ================================================================== 48 RIP: hci_phy_link_complete_evt.isra.0+0x1f3/0x6c0 net/bluetooth/hci_event.c:4360 RSP: ffff888061347ad0 ---[ end trace 78a6321841a2fb5e ]---