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: 1063d, last: 407d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (5)
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 1229d 1349d 1/1 fixed on 2020/12/30 13:33
upstream KASAN: slab-out-of-bounds Read in hci_le_meta_evt (2) bluetooth C inconclusive 2 894d 894d 20/26 fixed on 2022/03/08 16:11
linux-4.19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt C done 12 1210d 1351d 1/1 fixed on 2021/01/18 14:01
linux-5.15 KASAN: slab-out-of-bounds Read in hci_le_meta_evt origin:lts-only C done 702 8h36m 396d 0/3 upstream: reported C repro on 2023/03/13 06:57
upstream KASAN: slab-out-of-bounds Read in hci_le_meta_evt bluetooth C error error 45 1227d 1348d 19/26 fixed on 2021/03/10 01:49
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2021/11/10 23:00 11m bisect fix linux-4.19.y error job log (0)
2021/10/11 22:28 32m bisect fix linux-4.19.y job log (0) log
2021/09/11 21:59 22m bisect fix linux-4.19.y job log (0) log
2021/08/12 21:29 28m bisect fix linux-4.19.y job log (0) log
2021/07/13 20:59 22m bisect fix linux-4.19.y job log (0) log
2021/06/13 20:22 36m bisect fix linux-4.19.y job log (0) log

Sample crash report:
Bluetooth: hci0: advertising data len corrected
Bluetooth: Unknown advertising packet type: 0xffff
Bluetooth: hci0: advertising data len corrected
Bluetooth: Unknown advertising packet type: 0xffff
==================================================================
BUG: KASAN: slab-out-of-bounds in hci_le_ext_adv_report_evt net/bluetooth/hci_event.c:5476 [inline]
BUG: KASAN: slab-out-of-bounds in hci_le_meta_evt+0x3728/0x3f20 net/bluetooth/hci_event.c:5714
Read of size 1 at addr ffff8880aa1fd293 by task kworker/u5:2/8099

CPU: 1 PID: 8099 Comm: kworker/u5:2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
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:5476 [inline]
 hci_le_meta_evt+0x3728/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 8092:
 __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 4750:
 __cache_free mm/slab.c:3503 [inline]
 kfree+0xcc/0x210 mm/slab.c:3822
 skb_free_head net/core/skbuff.c:563 [inline]
 skb_release_data+0x6de/0x920 net/core/skbuff.c:583
 skb_release_all net/core/skbuff.c:640 [inline]
 __kfree_skb net/core/skbuff.c:654 [inline]
 consume_skb+0x113/0x3d0 net/core/skbuff.c:714
 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
 netlink_unicast+0x4dd/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 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 ffff8880aa1fd080
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 19 bytes to the right of
 512-byte region [ffff8880aa1fd080, ffff8880aa1fd280)
The buggy address belongs to the page:
page:ffffea0002a87f40 count:1 mapcount:0 mapping:ffff88813bff0940 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea00028a5548 ffff88813bff1748 ffff88813bff0940
raw: 0000000000000000 ffff8880aa1fd080 0000000100000006 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880aa1fd180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880aa1fd200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8880aa1fd280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                         ^
 ffff8880aa1fd300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880aa1fd380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (239):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/22 06:47 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/05 09:21 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/10/03 23:22 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/09/25 04:00 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config console log report syz C ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/08/12 03:44 linux-4.19.y 3f8a27f9e27b 21724cb2 .config console log report syz C ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2021/05/14 20:19 linux-4.19.y 3c8c23092588 8bdd5343 .config console log report syz C ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/03/01 22:34 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/28 07:49 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/28 06:15 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/28 04:06 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/24 13:22 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/21 04:51 linux-4.19.y 3f8a27f9e27b 2414209c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/21 02:36 linux-4.19.y 3f8a27f9e27b 2414209c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/21 00:10 linux-4.19.y 3f8a27f9e27b 2414209c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/19 22:18 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/17 15:34 linux-4.19.y 3f8a27f9e27b 3e7039f4 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/13 00:10 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/12 15:45 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/10 01:50 linux-4.19.y 3f8a27f9e27b 07980f9d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/07 21:27 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/05 14:43 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/04 00:51 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/02/03 22:47 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/29 12:19 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/29 12:19 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/26 02:22 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/22 04:57 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/20 13:57 linux-4.19.y 3f8a27f9e27b dd15ff29 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/16 00:34 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/13 21:55 linux-4.19.y 3f8a27f9e27b 529798b0 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/13 19:24 linux-4.19.y 3f8a27f9e27b 529798b0 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/13 17:46 linux-4.19.y 3f8a27f9e27b 529798b0 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/13 01:35 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/08 21:43 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/05 09:00 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/03 14:13 linux-4.19.y 3f8a27f9e27b f0036e18 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/02 13:21 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/01 10:52 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2023/01/01 03:55 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/31 21:49 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/31 18:32 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/31 16:23 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/28 05:13 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/22 21:08 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/18 10:05 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/12 08:08 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/08 20:12 linux-4.19.y 3f8a27f9e27b 1034e5fa .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/08 18:52 linux-4.19.y 3f8a27f9e27b 1034e5fa .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/07 20:03 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/06 20:41 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/06 06:01 linux-4.19.y 3f8a27f9e27b 045cbb84 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/06 03:36 linux-4.19.y 3f8a27f9e27b 045cbb84 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/05 06:06 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/05 05:49 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/01 22:31 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: slab-out-of-bounds Read in hci_le_meta_evt
2022/12/06 23:40 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in hci_le_meta_evt
* Struck through repros no longer work on HEAD.