bisecting fixing commit since 3c8c23092588a23bf1856a64f58c37f477a413be building syzkaller on 8bdd5343e64460868dd1318257a39f1e7fd89471 testing commit 3c8c23092588a23bf1856a64f58c37f477a413be compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 7cc4e5d3eb1dea36e7a42543f4fac79f889ae2c3b466a8d48ad48a19c46030d2 all runs: crashed: KASAN: slab-out-of-bounds Read in hci_le_meta_evt testing current HEAD b172b44fcb1771e083aad806fa96f3f60e2ddfac testing commit b172b44fcb1771e083aad806fa96f3f60e2ddfac compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: e457a6a3b75761fc1d5435f6859d0abeca65933c1c5a5143fe146e1465a05370 all runs: crashed: KASAN: slab-out-of-bounds Read in hci_le_meta_evt revisions tested: 2, total time: 22m38.798273328s (build: 15m14.900225847s, test: 6m57.60899827s) the crash still happens on HEAD commit msg: Linux 4.19.206 crash: KASAN: slab-out-of-bounds Read in hci_le_meta_evt Bluetooth: hci3: Dropping invalid advertising data Bluetooth: hci1: Dropping invalid advertising data Bluetooth: hci3: Dropping invalid advertising data Bluetooth: hci1: Dropping invalid advertising data ================================================================== BUG: KASAN: slab-out-of-bounds in hci_le_adv_report_evt net/bluetooth/hci_event.c:5348 [inline] BUG: KASAN: slab-out-of-bounds in hci_le_meta_evt+0x30c1/0x3da0 net/bluetooth/hci_event.c:5648 Bluetooth: hci2: Dropping invalid advertising data Read of size 1 at addr ffff8880a530ff4a by task kworker/u5:1/8085 CPU: 1 PID: 8085 Comm: kworker/u5:1 Not tainted 4.19.206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci1 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:396 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430 hci_le_adv_report_evt net/bluetooth/hci_event.c:5348 [inline] hci_le_meta_evt+0x30c1/0x3da0 net/bluetooth/hci_event.c:5648 hci_event_packet+0x29fa/0x68e0 net/bluetooth/hci_event.c:5913 hci_rx_work+0x385/0xa70 net/bluetooth/hci_core.c:4366 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 10373: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x50/0x70 mm/slab.c:3703 __kmalloc_reserve.isra.9+0x2c/0xc0 net/core/skbuff.c:137 __alloc_skb+0xd7/0x580 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+0xa8/0x3e0 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+0x443/0x890 fs/read_write.c:487 vfs_write+0x150/0x4d0 fs/read_write.c:549 ksys_write+0x103/0x260 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:608 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8454: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x13c/0x220 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 skb_free_head+0x74/0x90 net/core/skbuff.c:563 skb_release_data+0x513/0x760 net/core/skbuff.c:583 skb_release_all+0x3d/0x50 net/core/skbuff.c:640 __kfree_skb net/core/skbuff.c:654 [inline] consume_skb+0x93/0x270 net/core/skbuff.c:714 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x44b/0x660 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x667/0xc60 net/netlink/af_netlink.c:1911 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:661 __sys_sendto+0x1f2/0x2e0 net/socket.c:1899 __do_sys_sendto net/socket.c:1911 [inline] __se_sys_sendto net/socket.c:1907 [inline] __x64_sys_sendto+0xdc/0x1a0 net/socket.c:1907 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a530fd40 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 10 bytes to the right of 512-byte region [ffff8880a530fd40, ffff8880a530ff40) The buggy address belongs to the page: page:ffffea000294c3c0 count:1 mapcount:0 mapping:ffff88813bff6940 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002935d48 ffffea000244c4c8 ffff88813bff6940 raw: 0000000000000000 ffff8880a530f0c0 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a530fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a530fe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a530ff00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8880a530ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a5310000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================