From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (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 3A4BDF9D9 for ; Wed, 19 Nov 2025 03:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763524027; cv=none; b=Nr3nDfDD8I8/0wCRP2D5JCOGNiSC/wo48sn1Jr6AFJzn3TIVQwnuBut/ZMesrhzh9e5DKpWuWdjQQI+E/F866JBoSvPfyO4acXQMmGm0QS+SiwiRfLY2ofwz7jdsOZJ44BtTEWOPz4Ggy+LBKZTYGWpNwxypYlGW/QonzCRvYCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763524027; c=relaxed/simple; bh=jmZN26PyVQcPNXdUAu5wfXMXcGAmn1Oed67ZlmB4u6w=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Qkip0xlv0oyj6UcrjiklbaHQ485p+BtkbSstwHHEa7TKFt/NMWCY12FBshsUEseFk5n9jAoMke61sqZ2U7RqudNKGgWN8kqDdmam2kjDQJqqbtnJs5QkK7k5W2OzDl3eCF7rGhOazbgbEtEsviOFYYGC/e6FQXkDw/pXGCpkq88= 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.198 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-f198.google.com with SMTP id e9e14a558f8ab-43373024b5eso65467805ab.1 for ; Tue, 18 Nov 2025 19:47:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763524025; x=1764128825; 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=h5xVXD8ca4wY34ev/KHXqFJzTMB0aLXYWiOgY7ez+JA=; b=Y6tObNAoQPpnD2fp8VHibafQMnAgswtOJDzzW6cCIlt05vdHZ95A1fo9CkWezuMojH ogCTlDL+POa4oa4MIqaGrybM3S8ZkcUbyJDcYUbAdjedulwmt269rDwtzdSh7K5fYBd1 MNDGhTyGzNK7mKH047ZlLiI+iGqt4Tr/v12Z0cd78nhwHx5wQPgSVzrLbqT9oZrEbc5M fG4SnqTi9pBKfWkSuYf81qNoUEzO8BDBLPfuAPFILq0PhNCOTqf1LVXQOB4e0dVUNouL B4ZCe2JJligIXDR8HFsh3QItf5O0RdcdD5YotM/G1YwYDfH1m2oMF/YqgxGcMgcWZaZx gMZA== X-Forwarded-Encrypted: i=1; AJvYcCW4WK57mLSDpYzCve2MlTJ6ptGd7eTvbZTYQ22lmztNyrJx94NkAqld/s+FWvIPtAomulwITe4mN7UzcOg=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+zjBJCDcrWFwrsBaBxpDGRksemdVUff1Z5hVzLfM+pdLI5PLB 8Ksyd3xoTeG2/kwHTQmijtpQys79nuJiYhTnbZSiG2XvdsY4ajrRT0Y2y+S0AhayEWLpTs69XEV 8xD4icXunwoxGdt/y+7PYb3+0IT+DDpp8aJ8/N3DtgrIS9nUGQJwPLxF2xE0= X-Google-Smtp-Source: AGHT+IGaTqd/88OWhw4R/mGQNGqRTYXwoZSXabM0Eg16M5rzSu58FR3pFnpZ7Sxn0FkNFgvKKGhy5LcbVqcZiPdXrP3Mu5i3VxmT 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:156f:b0:434:74a6:4907 with SMTP id e9e14a558f8ab-4348c94e271mr248672435ab.30.1763524025397; Tue, 18 Nov 2025 19:47:05 -0800 (PST) Date: Tue, 18 Nov 2025 19:47:05 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <691d3db9.a70a0220.2ea503.000b.GAE@google.com> Subject: Re: [syzbot] [bluetooth?] [usb?] memory leak in __hci_cmd_sync_sk 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: memory leak in __hci_cmd_sync_sk BUG: memory leak unreferenced object 0xffff8881195a5a00 (size 240): comm "kworker/u9:1", pid 5135, jiffies 4294947360 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 5842d197): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4983 [inline] slab_alloc_node mm/slub.c:5288 [inline] kmem_cache_alloc_node_noprof+0x36f/0x5e0 mm/slub.c:5340 __alloc_skb+0x203/0x240 net/core/skbuff.c:660 alloc_skb include/linux/skbuff.h:1383 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:510 [inline] hci_cmd_sync_alloc+0x30/0x140 net/bluetooth/hci_sync.c:58 hci_cmd_sync_add net/bluetooth/hci_sync.c:99 [inline] __hci_cmd_sync_sk+0x84/0x290 net/bluetooth/hci_sync.c:168 __hci_cmd_sync_ev+0x3e/0x50 net/bluetooth/hci_sync.c:259 send_hci_cmd_sync+0x5e/0xf0 net/bluetooth/mgmt.c:2615 hci_cmd_sync_work+0xd5/0x160 net/bluetooth/hci_sync.c:341 process_one_work+0x26b/0x620 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x2c4/0x4f0 kernel/workqueue.c:3427 kthread+0x15b/0x310 kernel/kthread.c:463 ret_from_fork+0x210/0x240 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff8881099e1e40 (size 704): comm "kworker/u9:1", pid 5135, jiffies 4294947360 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 4e765d9f): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4983 [inline] slab_alloc_node mm/slub.c:5288 [inline] kmem_cache_alloc_node_noprof+0x36f/0x5e0 mm/slub.c:5340 kmalloc_reserve+0xe6/0x180 net/core/skbuff.c:579 __alloc_skb+0xd4/0x240 net/core/skbuff.c:670 alloc_skb include/linux/skbuff.h:1383 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:510 [inline] hci_cmd_sync_alloc+0x30/0x140 net/bluetooth/hci_sync.c:58 hci_cmd_sync_add net/bluetooth/hci_sync.c:99 [inline] __hci_cmd_sync_sk+0x84/0x290 net/bluetooth/hci_sync.c:168 __hci_cmd_sync_ev+0x3e/0x50 net/bluetooth/hci_sync.c:259 send_hci_cmd_sync+0x5e/0xf0 net/bluetooth/mgmt.c:2615 hci_cmd_sync_work+0xd5/0x160 net/bluetooth/hci_sync.c:341 process_one_work+0x26b/0x620 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x2c4/0x4f0 kernel/workqueue.c:3427 kthread+0x15b/0x310 kernel/kthread.c:463 ret_from_fork+0x210/0x240 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff88810c1c2d00 (size 240): comm "kworker/u9:3", pid 6291, jiffies 4294947641 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 310fcca): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4983 [inline] slab_alloc_node mm/slub.c:5288 [inline] kmem_cache_alloc_node_noprof+0x36f/0x5e0 mm/slub.c:5340 __alloc_skb+0x203/0x240 net/core/skbuff.c:660 alloc_skb include/linux/skbuff.h:1383 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:510 [inline] hci_cmd_sync_alloc+0x30/0x140 net/bluetooth/hci_sync.c:58 hci_cmd_sync_add net/bluetooth/hci_sync.c:99 [inline] __hci_cmd_sync_sk+0x84/0x290 net/bluetooth/hci_sync.c:168 __hci_cmd_sync_ev+0x3e/0x50 net/bluetooth/hci_sync.c:259 send_hci_cmd_sync+0x5e/0xf0 net/bluetooth/mgmt.c:2615 hci_cmd_sync_work+0xd5/0x160 net/bluetooth/hci_sync.c:341 process_one_work+0x26b/0x620 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x2c4/0x4f0 kernel/workqueue.c:3427 kthread+0x15b/0x310 kernel/kthread.c:463 ret_from_fork+0x210/0x240 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff888108e61080 (size 704): comm "kworker/u9:3", pid 6291, jiffies 4294947641 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 4e765d9f): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4983 [inline] slab_alloc_node mm/slub.c:5288 [inline] kmem_cache_alloc_node_noprof+0x36f/0x5e0 mm/slub.c:5340 kmalloc_reserve+0xe6/0x180 net/core/skbuff.c:579 __alloc_skb+0xd4/0x240 net/core/skbuff.c:670 alloc_skb include/linux/skbuff.h:1383 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:510 [inline] hci_cmd_sync_alloc+0x30/0x140 net/bluetooth/hci_sync.c:58 hci_cmd_sync_add net/bluetooth/hci_sync.c:99 [inline] __hci_cmd_sync_sk+0x84/0x290 net/bluetooth/hci_sync.c:168 __hci_cmd_sync_ev+0x3e/0x50 net/bluetooth/hci_sync.c:259 send_hci_cmd_sync+0x5e/0xf0 net/bluetooth/mgmt.c:2615 hci_cmd_sync_work+0xd5/0x160 net/bluetooth/hci_sync.c:341 process_one_work+0x26b/0x620 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x2c4/0x4f0 kernel/workqueue.c:3427 kthread+0x15b/0x310 kernel/kthread.c:463 ret_from_fork+0x210/0x240 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff88810c1c2300 (size 240): comm "kworker/u9:3", pid 6291, jiffies 4294947776 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 6674b3fb): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4983 [inline] slab_alloc_node mm/slub.c:5288 [inline] kmem_cache_alloc_node_noprof+0x36f/0x5e0 mm/slub.c:5340 __alloc_skb+0x203/0x240 net/core/skbuff.c:660 alloc_skb include/linux/skbuff.h:1383 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:510 [inline] hci_cmd_sync_alloc+0x30/0x140 net/bluetooth/hci_sync.c:58 hci_cmd_sync_add net/bluetooth/hci_sync.c:99 [inline] __hci_cmd_sync_sk+0x84/0x290 net/bluetooth/hci_sync.c:168 __hci_cmd_sync_ev+0x3e/0x50 net/bluetooth/hci_sync.c:259 send_hci_cmd_sync+0x5e/0xf0 net/bluetooth/mgmt.c:2615 hci_cmd_sync_work+0xd5/0x160 net/bluetooth/hci_sync.c:341 process_one_work+0x26b/0x620 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x2c4/0x4f0 kernel/workqueue.c:3427 kthread+0x15b/0x310 kernel/kthread.c:463 ret_from_fork+0x210/0x240 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF Tested on: commit: 8b690556 Merge tag 'for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15e54e0a580000 kernel config: https://syzkaller.appspot.com/x/.config?x=f30cc590c4f6da44 dashboard link: https://syzkaller.appspot.com/bug?extid=f098d64cc684b8dbaf65 compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=12ede692580000