bisecting fixing commit since 3c8c23092588a23bf1856a64f58c37f477a413be building syzkaller on 8bdd5343e64460868dd1318257a39f1e7fd89471 testing commit 3c8c23092588a23bf1856a64f58c37f477a413be compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 0146ac3c562775c513f2032ff543aecc06f2e96ed66f6d338f5a938a04fa3fed all runs: crashed: KASAN: slab-out-of-bounds Read in hci_le_meta_evt testing current HEAD addba38e7c3bc19036a05c83bcce7878dc644d87 testing commit addba38e7c3bc19036a05c83bcce7878dc644d87 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 8fa267ff60755001ea633f49dc16cdd57085ecd5bf2fdb7a543b309ca60574d6 all runs: crashed: KASAN: slab-out-of-bounds Read in hci_le_meta_evt revisions tested: 2, total time: 28m7.922171751s (build: 20m50.490915455s, test: 6m35.069473835s) the crash still happens on HEAD commit msg: Linux 4.19.203 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: hci5: Dropping invalid advertising data ================================================================== Bluetooth: hci4: 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 Read of size 1 at addr ffff888091a07992 by task kworker/u5:1/8108 CPU: 0 PID: 8108 Comm: kworker/u5:1 Not tainted 4.19.203-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 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 Bluetooth: hci4: Dropping invalid advertising data hci_event_packet+0x29fa/0x68e0 net/bluetooth/hci_event.c:5913 Bluetooth: hci0: 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 Bluetooth: hci0: Dropping invalid advertising data ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 10272: 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 __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 8108: 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: hci3: Dropping invalid advertising data skb_release_data+0x513/0x760 net/core/skbuff.c:583 Bluetooth: hci1: Dropping invalid advertising data skb_release_all+0x3d/0x50 net/core/skbuff.c:640 __kfree_skb net/core/skbuff.c:654 [inline] kfree_skb+0x99/0x280 net/core/skbuff.c:672 __hci_req_sync+0x35a/0x8a0 net/bluetooth/hci_request.c:259 __hci_init net/bluetooth/hci_core.c:867 [inline] hci_dev_do_open+0x34f/0xfb0 net/bluetooth/hci_core.c:1465 hci_power_on+0xf0/0x440 net/bluetooth/hci_core.c:2137 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 Bluetooth: hci1: Dropping invalid advertising data kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff888091a07780 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 18 bytes to the right of 512-byte region [ffff888091a07780, ffff888091a07980) The buggy address belongs to the page: page:ffffea00024681c0 count:1 mapcount:0 mapping:ffff88813bff6940 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002ac1f08 ffffea000247e5c8 ffff88813bff6940 Bluetooth: hci1: Dropping invalid advertising data raw: 0000000000000000 ffff888091a07000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888091a07880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888091a07900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888091a07980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888091a07a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888091a07a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================