syzbot


KASAN: slab-out-of-bounds Read in hci_le_meta_evt (2)

Status: upstream: reported C repro on 2021/05/14 20:19
Reported-by: syzbot+9247eb9ed460108a8883@syzkaller.appspotmail.com
First crash: 565d, last: 7d17h

Fix bisection: failed (bisect log)
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: slab-out-of-bounds Read in hci_le_meta_evt C done 15 730d 850d 1/1 fixed on 2020/12/30 13:33
upstream KASAN: slab-out-of-bounds Read in hci_le_meta_evt (2) C inconclusive 2 395d 395d 22/24 fixed on 2022/03/08 16:11
linux-4.19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt C done 12 711d 852d 1/1 fixed on 2021/01/18 14:01
upstream KASAN: slab-out-of-bounds Read in hci_le_meta_evt C error error 45 728d 849d 21/24 fixed on 2021/03/10 01:49

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
Bluetooth: Unknown advertising packet type: 0xff00
Bluetooth: hci0: advertising data len corrected
==================================================================
BUG: KASAN: slab-out-of-bounds in hci_le_ext_adv_report_evt net/bluetooth/hci_event.c:5472 [inline]
BUG: KASAN: slab-out-of-bounds in hci_le_meta_evt+0x383e/0x3f20 net/bluetooth/hci_event.c:5714
Read of size 1 at addr ffff8880a5ff1f04 by task kworker/u5:2/8096

CPU: 1 PID: 8096 Comm: kworker/u5:2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: hci0 hci_rx_work
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
 kasan_report mm/kasan/report.c:412 [inline]
 __asan_report_load1_noabort+0x88/0x90 mm/kasan/report.c:430
 hci_le_ext_adv_report_evt net/bluetooth/hci_event.c:5472 [inline]
 hci_le_meta_evt+0x383e/0x3f20 net/bluetooth/hci_event.c:5714
 hci_event_packet+0x34ad/0x7e20 net/bluetooth/hci_event.c:5959
 hci_rx_work+0x4ad/0xc70 net/bluetooth/hci_core.c:4380
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Allocated by task 8090:
 __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 6132:
 __cache_free mm/slab.c:3503 [inline]
 kfree+0xcc/0x210 mm/slab.c:3822
 kernfs_fop_release+0x120/0x190 fs/kernfs/file.c:783
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

The buggy address belongs to the object at ffff8880a5ff1d00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 4 bytes to the right of
 512-byte region [ffff8880a5ff1d00, ffff8880a5ff1f00)
The buggy address belongs to the page:
page:ffffea000297fc40 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea0002d17dc8 ffffea000297fc08 ffff88813bff0940
raw: 0000000000000000 ffff8880a5ff1080 0000000100000006 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880a5ff1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880a5ff1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8880a5ff1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                   ^
 ffff8880a5ff1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880a5ff2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (135):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2022/10/03 23:22 linux-4.19.y 3f8a27f9e27b feb56351 .config log report syz C KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/25 04:00 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config log report syz C KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/08/12 03:44 linux-4.19.y 3f8a27f9e27b 21724cb2 .config log report syz C KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2021/05/14 20:19 linux-4.19.y 3c8c23092588 8bdd5343 .config log report syz C KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/23 04:39 linux-4.19.y 3f8a27f9e27b 9da37ae8 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/13 14:42 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/11 02:42 linux-4.19.y 3f8a27f9e27b 3ead01ad .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/06 19:26 linux-4.19.y 3f8a27f9e27b 6d752409 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/06 11:12 linux-4.19.y 3f8a27f9e27b 6d752409 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/03 22:14 linux-4.19.y 3f8a27f9e27b 6d752409 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/03 06:46 linux-4.19.y 3f8a27f9e27b 7a2ebf95 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/02 00:32 linux-4.19.y 3f8a27f9e27b 08977f5d .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/02 00:32 linux-4.19.y 3f8a27f9e27b 08977f5d .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/30 19:29 linux-4.19.y 3f8a27f9e27b 2a71366b .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/30 09:13 linux-4.19.y 3f8a27f9e27b 2a71366b .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/29 03:30 linux-4.19.y 3f8a27f9e27b 899d812a .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/28 03:59 linux-4.19.y 3f8a27f9e27b 5c716ff6 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/27 06:25 linux-4.19.y 3f8a27f9e27b 86777b7f .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/26 15:02 linux-4.19.y 3f8a27f9e27b 2159e4d2 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/25 16:44 linux-4.19.y 3f8a27f9e27b 45645420 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/25 16:44 linux-4.19.y 3f8a27f9e27b 45645420 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/22 20:12 linux-4.19.y 3f8a27f9e27b c0b80a55 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/20 14:20 linux-4.19.y 3f8a27f9e27b b31320fc .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/19 17:59 linux-4.19.y 3f8a27f9e27b b31320fc .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/17 01:07 linux-4.19.y 3f8a27f9e27b 67cb024c .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/14 18:20 linux-4.19.y 3f8a27f9e27b 4954e4b2 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/14 01:09 linux-4.19.y 3f8a27f9e27b 4954e4b2 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/13 22:26 linux-4.19.y 3f8a27f9e27b adf90437 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/13 17:33 linux-4.19.y 3f8a27f9e27b adf90437 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/09 00:36 linux-4.19.y 3f8a27f9e27b aea5da89 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/07 23:48 linux-4.19.y 3f8a27f9e27b 79a59635 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/05 16:55 linux-4.19.y 3f8a27f9e27b 267e3bb1 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/10/03 23:31 linux-4.19.y 3f8a27f9e27b feb56351 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/29 18:22 linux-4.19.y 3f8a27f9e27b 45fd7169 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/29 17:17 linux-4.19.y 3f8a27f9e27b 45fd7169 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/27 21:41 linux-4.19.y 3f8a27f9e27b 10323ddf .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/27 04:04 linux-4.19.y 3f8a27f9e27b d59ba983 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/26 14:13 linux-4.19.y 3f8a27f9e27b d59ba983 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/25 04:18 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/25 03:37 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/24 00:51 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/23 16:37 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/22 06:35 linux-4.19.y 3f8a27f9e27b 60af5050 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/21 04:26 linux-4.19.y 3f8a27f9e27b c4b8ccfd .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/17 21:26 linux-4.19.y 3f8a27f9e27b dd9a85ff .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/13 17:18 linux-4.19.y 3f8a27f9e27b a08652b0 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/13 14:48 linux-4.19.y 3f8a27f9e27b a08652b0 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/13 14:38 linux-4.19.y 3f8a27f9e27b a08652b0 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/12 22:10 linux-4.19.y 3f8a27f9e27b f371ed7e .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/12 22:10 linux-4.19.y 3f8a27f9e27b f371ed7e .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/11 03:58 linux-4.19.y 3f8a27f9e27b 356d8217 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/11 03:29 linux-4.19.y 3f8a27f9e27b 356d8217 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/09/11 03:28 linux-4.19.y 3f8a27f9e27b 356d8217 .config log report info KASAN: slab-out-of-bounds Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/21 10:11 linux-4.19.y 3f8a27f9e27b 5bb70014 .config log report info KASAN: use-after-free Read in hci_le_meta_evt
ci2-linux-4-19 2022/11/11 21:58 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config log report info KASAN: use-after-free Read in hci_le_meta_evt
* Struck through repros no longer work on HEAD.