Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp566988rdh; Thu, 23 Nov 2023 11:38:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQ2FQRHtvq+OQkEsoJLy+0IjOvAlRadjqQ3WXJRqb2J0Q7T+dLMmMfxBUDO/KiHfPbJfQG X-Received: by 2002:a17:902:e74d:b0:1cf:640d:201b with SMTP id p13-20020a170902e74d00b001cf640d201bmr331680plf.47.1700768305150; Thu, 23 Nov 2023 11:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700768305; cv=none; d=google.com; s=arc-20160816; b=A0upHAYO6MJcdVvjQhqVbWBNoawiCiaeF4Z5vQr2uf/cdNX5uhsAXlmlWJYB/8ey3c 2xGC8nTrC1YTasPxADqK9ZfNSbkaC6pwvNbrgKSDa3EqWrXBOvDQbJ1NvzTthYULbrPX najtR27f0IU7nmmswx/vUI9kXkmIvq63q4b5bnXqYiWKlEihUOqcdOoNDmf8oxyHmVIa OYv5ujmMV2Occnwez+SUE1BcYutOpcQy/YizUVPznLSd6X0p4Y0M1PUGbBnoi3NvNSrE 9seGYLIbRAXkPUg9Ol+6XW8XoQGGx+qJOxTya7XOPqXdb+xF//tMlG3vBC/dB/X9LsSl Wrag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=m+A9PJEIs87A1VlXJIAa7rv7twfRr8/F4BoeMDNQkMM=; fh=+HBu8zgHOo6r56Ckngg2A8Ay3IEiv24r8fJqWQKH+rc=; b=EzWZDwCFs0uqdGhmqy20JdwqNW1ZIjcL0fOMX1/QMQ6Id/aYskc2DENxsabw7pzsB8 Y4be8hafioC6G4jSo8rulnMJIpSULfkagPWZ7fpZVTwS0dAgNuXJf6dyBrbM5Iaw8zL/ ZJ7CmXt1uWrRUsrAw+N6hziBgjQniVam5e1vG4vuf+V81wyV1z4R5in2v+gCkMWMBIgZ FRKAAPDkxOck4WCSq16jcN9YTxBiaoyN24gZXGt+WDiY9n5iXOUj+FBuZ/2SeAgY7lFc wzUswxKlJw4bzZAqDfhQVZRrZduAQWtkfVM4kcTNl+AIvN6mHjnPxPUzdXVpwA73tfSO OF5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y17-20020a17090322d100b001cf6a664accsi1749426plg.427.2023.11.23.11.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:38:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C9A8482AD71B; Thu, 23 Nov 2023 11:38:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232006AbjKWTiF (ORCPT + 99 others); Thu, 23 Nov 2023 14:38:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjKWThu (ORCPT ); Thu, 23 Nov 2023 14:37:50 -0500 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04F2B30DD for ; Thu, 23 Nov 2023 11:36:35 -0800 (PST) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-1cc41aed6a5so12918685ad.0 for ; Thu, 23 Nov 2023 11:36:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700768166; x=1701372966; 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=m+A9PJEIs87A1VlXJIAa7rv7twfRr8/F4BoeMDNQkMM=; b=K24Zd4dUwb5F6JW6XXGwKPmF0gLt2AE8DZcKda/3MY8lr13plRuMvHY9kt56jIyO2F kTy61KCb+e/zY1KqurLyK32SCzkAJWmSmyE+7Y1Ql+z8Cb69leizq5lx3h+gt3IvERqm dI6aQt6ZK/oIRjRULk7zaZPaQ+8+UY8ZrYy7w2kLk698eE0Upjtb7AGv+gMFbeB0mEQ8 FazQVQtnnoH6p7hwWkatFD8Q4iYg94RgILlbwosTTRiDup5sYNAYUIHN4EMxE1u8QLmE 90Mt4kuL2SYiDv6aPyRTi+CT4d4/Izl5jNZdkAAUMIbJ9s76aMP/4QMY9c5u8Pv3u9pM ++5Q== X-Gm-Message-State: AOJu0Yx4bssZvVb4v0aMe8na+D+HmcX5AsdpKMDeSABMcX5CnL8u2MVF g1t2TROgAUBLcnusjY0VuBbDhnnRtMkB61Q6Rn9S6hpOrNjTMKs= MIME-Version: 1.0 X-Received: by 2002:a17:902:be12:b0:1cc:4327:8bbc with SMTP id r18-20020a170902be1200b001cc43278bbcmr99528pls.10.1700768165929; Thu, 23 Nov 2023 11:36:05 -0800 (PST) Date: Thu, 23 Nov 2023 11:36:05 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006029f4060ad6f227@google.com> Subject: Re: [syzbot] [usb?] [staging?] memory leak in _r8712_init_xmit_priv (2) From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, yuran.pereira@hotmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:38:22 -0800 (PST) Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: memory leak in _r8712_init_xmit_priv BUG: memory leak unreferenced object 0xffff8881085a3000 (size 4096): comm "kworker/0:5", pid 5051, jiffies 4294944413 (age 8.790s) 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: [] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline] [] slab_post_alloc_hook mm/slab.h:766 [inline] [] slab_alloc_node mm/slub.c:3478 [inline] [] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517 [] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098 [] kmalloc include/linux/slab.h:600 [inline] [] _r8712_init_xmit_priv+0x2c1/0x6f0 drivers/staging/rtl8712/rtl871x_xmit.c:131 [] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:311 [] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386 [] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:396 [] call_driver_probe drivers/base/dd.c:579 [inline] [] really_probe+0x126/0x440 drivers/base/dd.c:658 [] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830 [] __device_attach_driver+0x104/0x160 drivers/base/dd.c:958 [] bus_for_each_drv+0xcd/0x120 drivers/base/bus.c:457 [] __device_attach+0xfa/0x290 drivers/base/dd.c:1030 [] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532 [] device_add+0x9be/0xc90 drivers/base/core.c:3625 [] usb_set_configuration+0x967/0xc70 drivers/usb/core/message.c:2207 [] usb_generic_driver_probe+0x9c/0xf0 drivers/usb/core/generic.c:238 BUG: memory leak unreferenced object 0xffff8881085a5000 (size 4096): comm "kworker/0:5", pid 5051, jiffies 4294944413 (age 8.790s) 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: [] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline] [] slab_post_alloc_hook mm/slab.h:766 [inline] [] slab_alloc_node mm/slub.c:3478 [inline] [] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517 [] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098 [] kmalloc include/linux/slab.h:600 [inline] [] _r8712_init_xmit_priv+0x2c1/0x6f0 drivers/staging/rtl8712/rtl871x_xmit.c:131 [] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:311 [] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386 [] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:396 [] call_driver_probe drivers/base/dd.c:579 [inline] [] really_probe+0x126/0x440 drivers/base/dd.c:658 [] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830 [] __device_attach_driver+0x104/0x160 drivers/base/dd.c:958 [] bus_for_each_drv+0xcd/0x120 drivers/base/bus.c:457 [] __device_attach+0xfa/0x290 drivers/base/dd.c:1030 [] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532 [] device_add+0x9be/0xc90 drivers/base/core.c:3625 [] usb_set_configuration+0x967/0xc70 drivers/usb/core/message.c:2207 [] usb_generic_driver_probe+0x9c/0xf0 drivers/usb/core/generic.c:238 BUG: memory leak unreferenced object 0xffff8881085a7000 (size 4096): comm "kworker/0:5", pid 5051, jiffies 4294944414 (age 8.780s) 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: [] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline] [] slab_post_alloc_hook mm/slab.h:766 [inline] [] slab_alloc_node mm/slub.c:3478 [inline] [] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517 [] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098 [] kmalloc include/linux/slab.h:600 [inline] [] _r8712_init_xmit_priv+0x2c1/0x6f0 drivers/staging/rtl8712/rtl871x_xmit.c:131 [] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:311 [] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386 [] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:396 [] call_driver_probe drivers/base/dd.c:579 [inline] [] really_probe+0x126/0x440 drivers/base/dd.c:658 [] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800 [] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830 [] __device_attach_driver+0x104/0x160 drivers/base/dd.c:958 [] bus_for_each_drv+0xcd/0x120 drivers/base/bus.c:457 [] __device_attach+0xfa/0x290 drivers/base/dd.c:1030 [] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532 [] device_add+0x9be/0xc90 drivers/base/core.c:3625 [] usb_set_configuration+0x967/0xc70 drivers/usb/core/message.c:2207 [] usb_generic_driver_probe+0x9c/0xf0 drivers/usb/core/generic.c:238 Tested on: commit: d3fa86b1 Merge tag 'net-6.7-rc3' of git://git.kernel.o.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master console output: https://syzkaller.appspot.com/x/log.txt?x=142ccff0e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=f1b9d95ada516af dashboard link: https://syzkaller.appspot.com/bug?extid=83763e624cfec6b462cb compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=10f560a4e80000