FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:373 [inline] BUG: KASAN: slab-out-of-bounds in hci_inquiry_result_evt net/bluetooth/hci_event.c:2378 [inline] BUG: KASAN: slab-out-of-bounds in hci_event_packet+0x3dbf/0x858f net/bluetooth/hci_event.c:5759 Read of size 3 at addr ffff88809d458f3f by task kworker/u5:3/7794 CPU: 1 PID: 7995 Comm: syz-executor.0 Not tainted 4.19.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x14 lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1588 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node+0x245/0x3b0 mm/slab.c:3647 __alloc_skb+0x71/0x560 net/core/skbuff.c:193 alloc_skb_fclone include/linux/skbuff.h:1037 [inline] sk_stream_alloc_skb+0xba/0x850 net/ipv4/tcp.c:882 tcp_sendmsg_locked+0xc01/0x2f60 net/ipv4/tcp.c:1310 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1460 inet_sendmsg+0x132/0x5a0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 __sys_sendto+0x21a/0x320 net/socket.c:1787 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45ce69 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fbeb56d3c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000002c380 RCX: 000000000045ce69 RDX: 000000000000fe6a RSI: 00000000200012c0 RDI: 0000000000000003 RBP: 00007fbeb56d3ca0 R08: 0000000000000000 R09: 0000000000000027 R10: 000000000020c49a R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd82c6f42f R14: 00007fbeb56d49c0 R15: 000000000118bf2c CPU: 0 PID: 7794 Comm: kworker/u5:3 Not tainted 4.19.138-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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report+0x8f/0x96 mm/kasan/report.c:412 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:373 [inline] hci_inquiry_result_evt net/bluetooth/hci_event.c:2378 [inline] hci_event_packet+0x3dbf/0x858f net/bluetooth/hci_event.c:5759 hci_rx_work+0x46b/0xa90 net/bluetooth/hci_core.c:4359 process_one_work+0x864/0x1570 kernel/workqueue.c:2155 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x30b/0x410 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 7998: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0xae/0x560 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:180 [inline] vhci_write+0xbd/0x450 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x51b/0x770 fs/read_write.c:487 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3709: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 skb_free_head net/core/skbuff.c:554 [inline] skb_release_data+0x6de/0x920 net/core/skbuff.c:574 skb_release_all net/core/skbuff.c:631 [inline] __kfree_skb net/core/skbuff.c:645 [inline] consume_skb+0x113/0x3d0 net/core/skbuff.c:705 skb_free_datagram+0x16/0xf0 net/core/datagram.c:329 unix_dgram_recvmsg+0x73e/0xe80 net/unix/af_unix.c:2203 sock_recvmsg_nosec net/socket.c:795 [inline] sock_recvmsg net/socket.c:802 [inline] sock_recvmsg+0xca/0x110 net/socket.c:798 ___sys_recvmsg+0x255/0x570 net/socket.c:2277 __sys_recvmsg net/socket.c:2326 [inline] __do_sys_recvmsg net/socket.c:2336 [inline] __se_sys_recvmsg net/socket.c:2333 [inline] __x64_sys_recvmsg+0x12f/0x220 net/socket.c:2333 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809d458d40 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 511 bytes inside of 512-byte region [ffff88809d458d40, ffff88809d458f40) The buggy address belongs to the page: page:ffffea0002751600 count:1 mapcount:0 mapping:ffff88812c39c940 index:0xffff88809d458840 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea000228e488 ffffea0002a1ea88 ffff88812c39c940 raw: ffff88809d458840 ffff88809d4580c0 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809d458e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809d458e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88809d458f00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88809d458f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809d459000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================