From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f72.google.com (mail-oa1-f72.google.com [209.85.160.72]) (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 39B4A2EF653 for ; Mon, 10 Aug 2026 02:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786329544; cv=none; b=diIZ8ec+wTFxGSqqmuAY9mkWZmv+MyemBmXFeYE7L394lkIxInJtqQIzTtMjZTRhk7HwLvQvAGtPsRLaKMrCWHqM5CnBrwdI8suAu9SqJwvN83dOEDG6sOppjHvVuvMgNPxpllGOHJxw20QQE57r0KUXkMg1twvT3A6ccCC2rn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786329544; c=relaxed/simple; bh=cXf5C5Yom+lUD0Vd1iqQ05LcxsLnE5tFLLSlLFF02F4=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=ge/DRX0AUt75/ieIAwcVpxJGd2nDpyVP31/UtgtSn6hEcigjmbAhkhDd/Ky17W2Qjd/m9ikOM8YhhP+eFH5velpXi1EuO41EUkgDDv7KRX3rJqr2Hze5lVZNp76rNcKJGCz4HyhnrsGKS21T4k84WPQCFEWZKeM7kCQSghTYnVI= 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.160.72 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-oa1-f72.google.com with SMTP id 586e51a60fabf-451acf33124so461183fac.0 for ; Sun, 09 Aug 2026 19:39:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786329542; x=1786934342; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=6+o+mNisu6QZygBUR64VEG7cSc8NzG3mTPOztR8DLQ0=; b=H3MIRufV3NlMQ8tm3UCHXmwVGSfuBkhf+Hf0QHbKAxvcaQXYL5+O9wWIpyT1WZ4CMy bpgSOgvefHu6AYexzEiSw7mJp7W7pC0gwAvjxkFHcXwOZtNOTLzeSA4QEuidkf/twgYD NX1q5KcDmPAqDzFGrtZF3mBr5UqeLVExHsduych1R8A2T5hCVNyb0X3rRtEilGi5sfPs vMbLvb9IIMrBNMKp+xL/Tyu0M+HpHMsdx59bQzzGPwcBn0HsO2GLgAJ9ltwxRIjESb+W CWBFkj5QH5EHy5MpO7m2N0Fv3D/pf0cfkAIBc62m0WkaiwChOsVZAsNrjUJhCmldgYF2 ILhA== X-Forwarded-Encrypted: i=1; AHgh+RpKIEdH+5PzVH7rfkqUqghAms5hNQ/Gv/CoriGQqt5diLDkq6xhP8l5uYieplquAXGxbDNnlI9pu+rPeBA=@vger.kernel.org X-Gm-Message-State: AOJu0YyFehENVl8j61yKTCilj5w6lO/N+3EyHfSyED7SdfE54+fgWJ// m+4jHvRpgnbL1HPdubhgoJwCABwgxKg62a6BKftTzZE1+NuY+Zdmkwug2apugdtfPinJGDUHm1p OC6fzcNXieC9+hptJ9l5zXEHN2dN3iMNavR6Z3DRRjU6owWJB8YXH8GRV0W0= 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:6808:1311:b0:497:c1f1:1511 with SMTP id 5614622812f47-4afae0f5c07mr20585597b6e.16.1786329542145; Sun, 09 Aug 2026 19:39:02 -0700 (PDT) Date: Sun, 09 Aug 2026 19:39:02 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a7939c6.01d0871a.3a0d52.009f.GAE@google.com> Subject: Re: [syzbot] [usb?] memory leak in hidg_bind 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 hidg_bind BUG: memory leak unreferenced object 0xffff888111b4f000 (size 128): comm "syz.0.17", pid 6585, jiffies 4294947509 hex dump (first 32 bytes): 00 f0 b4 11 81 88 ff ff 00 f0 b4 11 81 88 ff ff ................ 30 20 3d 03 81 88 ff ff 00 00 00 00 00 00 00 00 0 =............. backtrace (crc 76e5a94b): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4597 [inline] slab_alloc_node mm/slub.c:4917 [inline] __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] dummy_alloc_request+0x65/0xf0 drivers/usb/gadget/udc/dummy_hcd.c:693 usb_ep_alloc_request+0x2e/0xd0 drivers/usb/gadget/udc/core.c:197 hidg_bind+0x2b/0x490 drivers/usb/gadget/function/f_hid.c:1154 usb_add_function+0xca/0x270 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0x667/0x9b0 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0xed/0x390 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x12f/0x3a0 drivers/base/dd.c:706 __driver_probe_device+0xe9/0x1a0 drivers/base/dd.c:868 driver_probe_device+0x28/0xf0 drivers/base/dd.c:898 __driver_attach drivers/base/dd.c:1292 [inline] __driver_attach+0x10a/0x200 drivers/base/dd.c:1232 bus_for_each_dev+0xb8/0x120 drivers/base/bus.c:383 bus_add_driver+0x122/0x280 drivers/base/bus.c:763 driver_register+0xb1/0x140 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x69/0xe0 drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x153/0x1e0 drivers/usb/gadget/configfs.c:300 BUG: memory leak unreferenced object 0xffff888125862700 (size 128): comm "syz.0.18", pid 6591, jiffies 4294947513 hex dump (first 32 bytes): 00 27 86 25 81 88 ff ff 00 27 86 25 81 88 ff ff .'.%.....'.%.... 30 20 3d 03 81 88 ff ff 00 00 00 00 00 00 00 00 0 =............. backtrace (crc 3911a62a): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4597 [inline] slab_alloc_node mm/slub.c:4917 [inline] __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] dummy_alloc_request+0x65/0xf0 drivers/usb/gadget/udc/dummy_hcd.c:693 usb_ep_alloc_request+0x2e/0xd0 drivers/usb/gadget/udc/core.c:197 hidg_bind+0x2b/0x490 drivers/usb/gadget/function/f_hid.c:1154 usb_add_function+0xca/0x270 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0x667/0x9b0 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0xed/0x390 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x12f/0x3a0 drivers/base/dd.c:706 __driver_probe_device+0xe9/0x1a0 drivers/base/dd.c:868 driver_probe_device+0x28/0xf0 drivers/base/dd.c:898 __driver_attach drivers/base/dd.c:1292 [inline] __driver_attach+0x10a/0x200 drivers/base/dd.c:1232 bus_for_each_dev+0xb8/0x120 drivers/base/bus.c:383 bus_add_driver+0x122/0x280 drivers/base/bus.c:763 driver_register+0xb1/0x140 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x69/0xe0 drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x153/0x1e0 drivers/usb/gadget/configfs.c:300 BUG: memory leak unreferenced object 0xffff888103a65600 (size 128): comm "syz.0.19", pid 6596, jiffies 4294947515 hex dump (first 32 bytes): 00 56 a6 03 81 88 ff ff 00 56 a6 03 81 88 ff ff .V.......V...... 30 20 3d 03 81 88 ff ff 00 00 00 00 00 00 00 00 0 =............. backtrace (crc 1b6d465a): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4597 [inline] slab_alloc_node mm/slub.c:4917 [inline] __kmalloc_cache_noprof+0x356/0x440 mm/slub.c:5485 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] dummy_alloc_request+0x65/0xf0 drivers/usb/gadget/udc/dummy_hcd.c:693 usb_ep_alloc_request+0x2e/0xd0 drivers/usb/gadget/udc/core.c:197 hidg_bind+0x2b/0x490 drivers/usb/gadget/function/f_hid.c:1154 usb_add_function+0xca/0x270 drivers/usb/gadget/composite.c:333 configfs_composite_bind+0x667/0x9b0 drivers/usb/gadget/configfs.c:1802 gadget_bind_driver+0xed/0x390 drivers/usb/gadget/udc/core.c:1662 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x12f/0x3a0 drivers/base/dd.c:706 __driver_probe_device+0xe9/0x1a0 drivers/base/dd.c:868 driver_probe_device+0x28/0xf0 drivers/base/dd.c:898 __driver_attach drivers/base/dd.c:1292 [inline] __driver_attach+0x10a/0x200 drivers/base/dd.c:1232 bus_for_each_dev+0xb8/0x120 drivers/base/bus.c:383 bus_add_driver+0x122/0x280 drivers/base/bus.c:763 driver_register+0xb1/0x140 drivers/base/driver.c:174 usb_gadget_register_driver_owner+0x69/0xe0 drivers/usb/gadget/udc/core.c:1752 gadget_dev_desc_UDC_store+0x153/0x1e0 drivers/usb/gadget/configfs.c:300 connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF Tested on: commit: db2ddb87 Linux 7.2-rc7 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17060079580000 kernel config: https://syzkaller.appspot.com/x/.config?x=6843f8fd2336602d dashboard link: https://syzkaller.appspot.com/bug?extid=60740c6a17a5b5eb1f5a compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 patch: https://syzkaller.appspot.com/x/patch.diff?x=169fa2c6580000