bisecting fixing commit since 3c8c23092588a23bf1856a64f58c37f477a413be building syzkaller on 8bdd5343e64460868dd1318257a39f1e7fd89471 testing commit 3c8c23092588a23bf1856a64f58c37f477a413be with gcc (GCC) 8.4.1 20210217 kernel signature: a5dc480d4ff6e2646c048951edc6e42ec4a1bf68580e18a6916c6456bf446cf6 all runs: crashed: KASAN: slab-out-of-bounds Read in hci_le_meta_evt testing current HEAD fcfbdfe9626edd5bf00c732e093eed249ecdbfa1 testing commit fcfbdfe9626edd5bf00c732e093eed249ecdbfa1 with gcc (GCC) 8.4.1 20210217 kernel signature: 3730d992872eb50bf924127588564a2e9189e2e99f4e0b61190ddcfe8f9b98cb all runs: crashed: KASAN: slab-out-of-bounds Read in hci_le_meta_evt revisions tested: 2, total time: 22m46.458359232s (build: 15m35.787903947s, test: 6m46.674317426s) the crash still happens on HEAD commit msg: Linux 4.19.197 crash: KASAN: slab-out-of-bounds Read in hci_le_meta_evt Bluetooth: hci2: Dropping invalid advertising data Bluetooth: hci2: Dropping invalid advertising data Bluetooth: hci1: Dropping invalid advertising data ================================================================== Bluetooth: hci0: Dropping invalid advertising data BUG: KASAN: slab-out-of-bounds in hci_le_adv_report_evt net/bluetooth/hci_event.c:5337 [inline] BUG: KASAN: slab-out-of-bounds in hci_le_meta_evt+0x301c/0x3cd0 net/bluetooth/hci_event.c:5637 Read of size 1 at addr ffff888094d9c796 by task kworker/u5:7/8580 CPU: 1 PID: 8580 Comm: kworker/u5:7 Not tainted 4.19.197-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:77 [inline] dump_stack+0x17c/0x226 lib/dump_stack.c:118 print_address_description.cold.6+0x9/0x211 mm/kasan/report.c:256 Bluetooth: hci1: Dropping invalid advertising data 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:5337 [inline] hci_le_meta_evt+0x301c/0x3cd0 net/bluetooth/hci_event.c:5637 Bluetooth: hci1: Dropping invalid advertising data Bluetooth: hci1: Dropping invalid advertising data Bluetooth: hci3: Dropping invalid advertising data hci_event_packet+0x29fa/0x68e0 net/bluetooth/hci_event.c:5902 Bluetooth: hci3: Dropping invalid advertising data Bluetooth: hci3: Dropping invalid advertising data Bluetooth: hci3: Dropping invalid advertising data 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 Bluetooth: hci3: Dropping invalid advertising data Allocated by task 10212: 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 Bluetooth: hci3: Dropping invalid advertising data Bluetooth: hci5: Dropping invalid advertising data __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 8429: 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 Bluetooth: hci5: Dropping invalid advertising data skb_release_data+0x513/0x760 net/core/skbuff.c:583 skb_release_all+0x3d/0x50 net/core/skbuff.c:640 __kfree_skb+0xd/0x20 net/core/skbuff.c:654 sk_eat_skb include/net/sock.h:2428 [inline] tcp_recvmsg+0x181d/0x2690 net/ipv4/tcp.c:2161 inet_recvmsg+0x111/0x580 net/ipv4/af_inet.c:830 sock_recvmsg_nosec net/socket.c:859 [inline] sock_recvmsg net/socket.c:866 [inline] sock_recvmsg+0xb7/0xf0 net/socket.c:862 sock_read_iter+0x252/0x440 net/socket.c:944 call_read_iter include/linux/fs.h:1815 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x440/0x880 fs/read_write.c:418 vfs_read+0xff/0x300 fs/read_write.c:452 ksys_read+0x103/0x260 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x6e/0xb0 fs/read_write.c:587 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 ffff888094d9c580 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 22 bytes to the right of 512-byte region [ffff888094d9c580, ffff888094d9c780) The buggy address belongs to the page: page:ffffea0002536700 count:1 mapcount:0 mapping:ffff88813bff6940 index:0x0 Bluetooth: hci5: Dropping invalid advertising data flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002d6c4c8 ffffea0002bb2ac8 ffff88813bff6940 raw: 0000000000000000 ffff888094d9c080 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888094d9c680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888094d9c700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888094d9c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc Bluetooth: hci0: Dropping invalid advertising data ^ ffff888094d9c800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888094d9c880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================