From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.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 5FD4636605E for ; Fri, 14 Aug 2026 13:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786714446; cv=none; b=lPN4BXXWLSKWuqZOMhkf2YAaIndNBaZ4kYJwB9ccSyHv6HAAji2/OisbSi5tErnXZWbFDMzgGD1w7XnQq0X4XSSVpiQSAOJz9PbOR0fQWppyUFIuX1PstQlSA4MO7whyt1pfo36YHj1wPIgLJbHlOVbrXEHCTe+UPSQT1912+ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786714446; c=relaxed/simple; bh=Mtql8pDJX9CcOhl/Kfl5Nd4yUZRCjNC0PcrWwQIj6wE=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=IK3hEDFs54P6daW3q6WrEN7VYRZSlD4H7DF6go3BuS+KHcPqjCykkIlIf0fTNhEOpuEVA8SAWSz+clwdsMlaqRRGE+ZVGySrzwqB24xLKpb4PHrTQu68htM+PtYEzbMCNNcVeKtV3e0h35HUNznWTJx7NYllmL5Lv6Jx/E9lSeM= 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.210.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-ot1-f72.google.com with SMTP id 46e09a7af769-7f1ddcd241aso1423917a34.0 for ; Fri, 14 Aug 2026 06:34:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786714443; x=1787319243; 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=QdluqAe8BpOkXNuWXDLEjbgweuHOqH5/D+/cswVqhqY=; b=JAacyrv9MLkz1paSxX337YidvygovM0EEzYTsOx0bocZg1IblatsLcNT9TXT6JkgkM wVOlI1n3mCdnTUyCBbKMHUK0BxOmeCR/Ys+sp2apB8cqUFWcdcKVDhnWAWpLhyzyVFLA Jxuqo3hUhOZZ4mfM0CNTb4bT0RXhpcjk1nW9/BoWdXtgmVuf2x8F3XxS/jN0C2dDwGuj u9P17fITOqC2XTCcwlwMfSEQEP+4dQSjdxkFMgrzvFLMMYT6S7bxQ5JMKuvpwV573bbh kQGZB60dYNQ57m1OCmXRQCb7u4LvpV+iL78uvrwZGBvfUJBrYlTy7qWjOncuE1s+4kCb 7UDA== X-Forwarded-Encrypted: i=1; AHgh+RqGOeLBAJQZAxL9TC0XlZZdAYjZO+u+zE3MD6Kop1ZFT+k1rNLMxXwMrj5HnbkHvuVo5KmFPyMWRsrN2+s=@vger.kernel.org X-Gm-Message-State: AOJu0YzaMOQ8KwZ98jR0QhDLE9i+2BBAOxJL9ta92F6nEHEC63kOzF8T 4vCHXesauuvbvgCmjjIc/qaSvvxrgKXqOPjQCyrQtthz/O0X6e3rYhbUeWlo32YnWJ9gHZ/6myq QEgoYEjAYW6zDVIcMHzdOE8xwH5+o8MyzHXKcZBdjdYxiPBzPjrK6l6csU+8= 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:6820:1507:b0:6b0:dfa2:8315 with SMTP id 006d021491bc7-6b0dfa28817mr1881900eaf.13.1786714443070; Fri, 14 Aug 2026 06:34:03 -0700 (PDT) Date: Fri, 14 Aug 2026 06:34:03 -0700 In-Reply-To: <38211959-05fa-4136-92e6-fde6d4adb029@yandex.ru> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a7f194b.432fbecc.3db7aa.00bd.GAE@google.com> Subject: Re: [syzbot] [usb?] memory leak in gadget_bind (2) From: syzbot To: dmantipov@yandex.ru, 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 device_set_deferred_probe_reason BUG: memory leak unreferenced object 0xffff888127cacec0 (size 64): comm "syz.0.66", pid 7033, jiffies 4294952202 hex dump (first 32 bytes): 67 61 64 67 65 74 3a 20 44 65 76 69 63 65 20 6e gadget: Device n 6f 74 20 72 65 61 64 79 20 74 6f 20 70 72 6f 62 ot ready to prob backtrace (crc 2d586e63): 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] __do_kmalloc_node mm/slub.c:5333 [inline] __kmalloc_node_track_caller_noprof+0x3d3/0x570 mm/slub.c:5471 kvasprintf+0x6e/0xf0 lib/kasprintf.c:25 kasprintf+0x6b/0x90 lib/kasprintf.c:59 device_set_deferred_probe_reason+0x41/0x70 drivers/base/dd.c:235 __dev_probe_failed+0xae/0xc0 drivers/base/core.c:5092 dev_err_probe+0x73/0xa0 drivers/base/core.c:5152 __driver_probe_device+0x185/0x1a0 drivers/base/dd.c:846 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 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:600 [inline] raw_ioctl+0xad7/0x10c0 drivers/usb/gadget/legacy/raw_gadget.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf8/0x610 arch/x86/entry/syscall_64.c:94 connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF Tested on: commit: 2f1baf1f Merge tag 'trace-v7.2-rc7' of git://git.kerne.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=1797fac6580000 kernel config: https://syzkaller.appspot.com/x/.config?x=6843f8fd2336602d dashboard link: https://syzkaller.appspot.com/bug?extid=d83b3c49738aea97c0e5 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=13a08279580000