syzbot


KASAN: null-ptr-deref Write in l2cap_sock_resume_cb

Status: auto-obsoleted due to no activity on 2024/10/29 12:18
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+52115a16e7eac723d587@syzkaller.appspotmail.com
First crash: 144d, last: 144d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] KASAN: null-ptr-deref Write in l2cap_sock_resume_cb 0 (1) 2024/07/24 13:18

Sample crash report:
Bluetooth: hci2: ISO packet for unknown connection handle 0
==================================================================
BUG: KASAN: null-ptr-deref in instrument_atomic_write include/linux/instrumented.h:82 [inline]
BUG: KASAN: null-ptr-deref in clear_bit include/asm-generic/bitops/instrumented-atomic.h:41 [inline]
BUG: KASAN: null-ptr-deref in l2cap_sock_resume_cb+0xd0/0x130 net/bluetooth/l2cap_sock.c:1697
Write of size 8 at addr 0000000000000518 by task kworker/u33:6/5222

CPU: 1 PID: 5222 Comm: kworker/u33:6 Not tainted 6.10.0-syzkaller-11185-g2c9b3512402e #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: hci0 hci_rx_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
 kasan_report+0xd9/0x110 mm/kasan/report.c:601
 check_region_inline mm/kasan/generic.c:183 [inline]
 kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189
 instrument_atomic_write include/linux/instrumented.h:82 [inline]
 clear_bit include/asm-generic/bitops/instrumented-atomic.h:41 [inline]
 l2cap_sock_resume_cb+0xd0/0x130 net/bluetooth/l2cap_sock.c:1697
 l2cap_security_cfm+0x78d/0x11d0 net/bluetooth/l2cap_core.c:7354
 hci_encrypt_cfm+0x194/0x720 include/net/bluetooth/hci_core.h:2041
 hci_encrypt_change_evt+0x554/0x10f0 net/bluetooth/hci_event.c:3649
 hci_event_func net/bluetooth/hci_event.c:7445 [inline]
 hci_event_packet+0x9eb/0x1180 net/bluetooth/hci_event.c:7497
 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029
 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/21 12:17 upstream 2c9b3512402e b88348e9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: null-ptr-deref Write in l2cap_sock_resume_cb
* Struck through repros no longer work on HEAD.