From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5C2021ABDC for ; Tue, 25 Nov 2025 14:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764082444; cv=none; b=aHQNi596Z7CaXAPGyHB9/n6bkmHlB3UN5ObqiJ8b6AzS8QPqIsMqpYk5DIeNTIjDpOjzRMMtdoF5UxPb/NHNTD/Vmtc9CabrhVHals8XEsW+yN6e3UeeMMU2a8mqYk4F9hkrAiikjRbSVsTcpKwezMC3Uoc2wSw3SZd/RpgvEY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764082444; c=relaxed/simple; bh=oKdWCTE33Cj4VNYO4/DsztUoC9n1lb444gx7fOqdfE4=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=cICz9KjmjnETHuWICYTV7eg1b/fHcUJZUDImLU0mG0vODeXEfGs5Hwdy46MogZgTkhYl8HYHM7Wh/yazZrn9szoyqqv2JUJ9w4x75HcJ07RacrF1hu1G2ftxduB/t7nq45lfNjhZKJwteBQK02N30lfPhOjiZBcmGFbTXEZ7Zkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f200.google.com with SMTP id e9e14a558f8ab-433689014feso59629165ab.1 for ; Tue, 25 Nov 2025 06:54:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764082442; x=1764687242; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MmtnPq653PSS1vCdY9kb8YQQg7jzKyhL1RmRDiSJYxo=; b=w+e2vlDzxApem64rmITtG0hM+r7HCqI7/ywZhhenu7oiM1PFsIiWTstE8KWMhpZDUF GE8V/LccdKpUir4DypkEn/7Bn7u6sQFI3fD4Yp1lIRFfPs4TfFYsJEoH9aQqOYjrJDzo eNED3yOeViQuOcDbiJGpDdKf0k0ZyD+5XVUSOyakuNp9ckgO5p3OnGIdwt/AMWPPYund qZ6IlbrZoU5AQlhd09oAYHLJsfCiYodA106nLf0gZeGvKukNnIHW5GrpR9iDCpI8d/NV W2Wb0WsUmJilRO5Y8MzFtgOJmiY88aUgireJ8owSHAeqjhjBKkOa2oNgDOO9QMLp7RAb JNvw== X-Forwarded-Encrypted: i=1; AJvYcCXLo9FXFviA+PyUns32k9wjupTdZU9JnVOu5boWmadymZE0sy41SCOt4odmRSv3RXJmb3r8qsBLHmoN3Og=@vger.kernel.org X-Gm-Message-State: AOJu0YwL07ag5XtAAqJXB4RsTwP8tnGFNlJnSJSAFPVKBlOtqXnMJ4+5 Q7WXd7ObMKQ/z7tgGb1la38EKxWCQHt293kFPhFVZ9OpKQaiH0jpIynJ8eIw08FmzeCYUA2nXbE EvwkFpCaDSkQCO3fmR7gBLXpFJsa/VGqQc34ZaNQFRm4Fjx1Nims5BOfz9Zo= X-Google-Smtp-Source: AGHT+IEJU9ot0+IewzPMdVxAFTXL3scblT+trB0efMcw39ihEvX3v0HgX9csj5PMne3Q+dJDahSsjn6cV/WXd2zaR11SQdYmM2Xq Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1fe5:b0:430:aea6:833f with SMTP id e9e14a558f8ab-435b9844662mr124406645ab.8.1764082441991; Tue, 25 Nov 2025 06:54:01 -0800 (PST) Date: Tue, 25 Nov 2025 06:54:01 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6925c309.a70a0220.d98e3.00ac.GAE@google.com> Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in l2cap_sock_new_connection_cb From: syzbot To: eadavis@qq.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in lock_sock_nested kobject: kobject_add_internal failed for hci3:201 with -EEXIST, don't try to register things with the same name in the same directory. Bluetooth: hci3: failed to register connection device Oops: general protection fault, probably for non-canonical address 0xdffffc000000006b: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000358-0x000000000000035f] CPU: 1 UID: 0 PID: 5116 Comm: kworker/u9:1 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: hci3 hci_rx_work RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210 Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 c3 cc cc cc cc cc 66 66 66 66 66 66 2e RSP: 0018:ffffc900106072e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff889d1fbe RCX: 562ba08c8e500400 RDX: 0000000000000000 RSI: ffffffff889d1fbe RDI: 000000000000006b RBP: ffffffff89ca6065 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffffff89ca6020 R12: 0000000000000000 R13: 0000000000000358 R14: 0000000000000358 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888126ef4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555572fa15c8 CR3: 000000000d3a6000 CR4: 00000000003526f0 Call Trace: __kasan_check_byte+0x12/0x40 mm/kasan/common.c:579 kasan_check_byte include/linux/kasan.h:401 [inline] lock_acquire+0x8d/0x360 kernel/locking/lockdep.c:5842 lock_sock_nested+0x3e/0x130 net/core/sock.c:3720 lock_sock include/net/sock.h:1679 [inline] l2cap_sock_ready_cb+0x45/0x140 net/bluetooth/l2cap_sock.c:1680 l2cap_chan_ready net/bluetooth/l2cap_core.c:1264 [inline] l2cap_le_start+0xb0d/0x13b0 net/bluetooth/l2cap_core.c:1376 l2cap_conn_ready net/bluetooth/l2cap_core.c:1629 [inline] l2cap_connect_cfm+0x6be/0x1040 net/bluetooth/l2cap_core.c:7305 hci_connect_cfm+0x95/0x140 include/net/bluetooth/hci_core.h:2107 le_conn_complete_evt+0xfb8/0x1500 net/bluetooth/hci_event.c:5799 hci_le_conn_complete_evt+0x187/0x450 net/bluetooth/hci_event.c:5825 hci_event_func net/bluetooth/hci_event.c:7586 [inline] hci_event_packet+0x78f/0x1200 net/bluetooth/hci_event.c:7643 hci_rx_work+0x46a/0xe80 net/bluetooth/hci_core.c:4099 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:kasan_byte_accessible+0x12/0x30 mm/kasan/generic.c:210 Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 c3 cc cc cc cc cc 66 66 66 66 66 66 2e RSP: 0018:ffffc900106072e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff889d1fbe RCX: 562ba08c8e500400 RDX: 0000000000000000 RSI: ffffffff889d1fbe RDI: 000000000000006b RBP: ffffffff89ca6065 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffffff89ca6020 R12: 0000000000000000 R13: 0000000000000358 R14: 0000000000000358 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888126ef4000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555572fa15c8 CR3: 000000000d3a6000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1) 7: 00 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 0f 1f 40 d6 nopl -0x2a(%rax) 1c: 48 c1 ef 03 shr $0x3,%rdi 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 0f b6 04 07 movzbl (%rdi,%rax,1),%eax <-- trapping instruction 2e: 3c 08 cmp $0x8,%al 30: 0f 92 c0 setb %al 33: c3 ret 34: cc int3 35: cc int3 36: cc int3 37: cc int3 38: cc int3 39: 66 data16 3a: 66 data16 3b: 66 data16 3c: 66 data16 3d: 66 data16 3e: 66 data16 3f: 2e cs Tested on: commit: ac3fd01e Linux 6.18-rc7 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10f578b4580000 kernel config: https://syzkaller.appspot.com/x/.config?x=38a0c4cddc846161 dashboard link: https://syzkaller.appspot.com/bug?extid=cdae834448ec8c3602fe compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 patch: https://syzkaller.appspot.com/x/patch.diff?x=11e46e92580000