Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1021436rdb; Fri, 19 Jan 2024 06:04:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnhlfYpg9h7B7dU9JXVQkCtP7yObydyD0+iNqLGWRvJAoXkwHcrycU+DTQY0xlDFM/iRFF X-Received: by 2002:a05:620a:424c:b0:783:8058:6193 with SMTP id w12-20020a05620a424c00b0078380586193mr1394129qko.61.1705673057072; Fri, 19 Jan 2024 06:04:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705673057; cv=pass; d=google.com; s=arc-20160816; b=Bh5i1t7c6xnzp+FkTiO8H74T1IDLJQXmyF6D9lOlUYBhxzjPeD+INeSr2JGPGpii7G cxDZZFWVtZmu4JvDsN9HZMeh9EawDx3E30VhX2lpr/FQgAcDXy3ZaK7Q6LFM/XTFI9C2 dXhfHKvk118u/lr+09jNyttjUtR5fgcNzID6vbv4psc8zgoVBpyTWw7/0Eygxbgm9SxI wklkV1k6XVf6DYPs4ON92zhz9pF7Hc2LvBjLDNhuQsVPN6E2uL/vtzG/TnTa+9T5CVtJ aQm6OjJ0uYeO1L3MPaVPbT9d6b+CCV7EwBDOp3FMgZWdl724MGshvJ7fN9kwgbyIwGMc 7qPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=TW0BQflZb9OrkxepL06+BYefBoiex7o4KUY8X0N476s=; fh=u5SAjXD3HZyVHBu1fpkRFmmXAHa2TeFPtCzDarkV3RI=; b=eqVu/DSHCu2H8eXQnNmPasSteA2tHG2A/MLuiOr7V/G/br9PNnLkLQC61YMFAkJyAI lfBm72BUVnw3rkPXvdrhHW4OoShv4XKQKsmFLl5K76WDcxyc8syTyq3CKc0joGqN+SWs heHgK2mG05AQGdiUT//ZlqYe5SB2KGKE42zUxI75TDehpl3jwJvLBkpc900vezAHiXBs um6vRI5tNW+EfsuLBvPwolgG3GwbfiJ7GUmiYFUGjv/B70R1yaX3SZAMv+u4qQNJOLse jgRTko3nUtuip5SNjy6iXrduJIQr59rsXVtaF4iqJpV+zQ4ot2f7Gtl8VHpW8keIDiC1 jikw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-31233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o18-20020a05620a0d5200b0078335ccc0e8si16181022qkl.670.2024.01.19.06.04.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 06:04:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-31233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C2C771C22720 for ; Fri, 19 Jan 2024 14:04:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E0E8537F4; Fri, 19 Jan 2024 14:04:08 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (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 7D4C951C4A for ; Fri, 19 Jan 2024 14:04:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705673047; cv=none; b=F1V0J7FXJxOVPSiRBkBJDIrvLZL1BgUiWsYgTsuHg1i+VCsAgR9yTkB8sSW6i3AuXnxX1Y/XyuwfpUgeaTixMxYPc+6iKXV/7IcUuuFpayeFnKA13L3FBBvPjxAsbW+nk7gU2mTirvgAo0GhWEkps5GfIPJWXPPB+Oe6xDGd7NM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705673047; c=relaxed/simple; bh=G0UMP9/RdniRLz2gJ2RxTiChVaG0soseS21lHcPQp3s=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Jvh+DkAhTl2QzZaOrFUeMyLp2ypVVPGDIgE/6vfKSePKZiipZT0Ad4dhWgHlTTJfFwOcQpPKNdO0umFb5R4cHhKKkTQVlwi2dILCfpLGI2viALaPC/sbyTKqckyzdTADA90x6jeyO4RrT2ntPzLmQxMqu/Bdc0PJDd3G7/XExRM= 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.69 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-io1-f69.google.com with SMTP id ca18e2360f4ac-7b7f98e777cso79433939f.3 for ; Fri, 19 Jan 2024 06:04:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705673045; x=1706277845; 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=TW0BQflZb9OrkxepL06+BYefBoiex7o4KUY8X0N476s=; b=v75ECgqauH4B6bxAAT8As6GcW1QCACp8PSyuHg/V+zwBgoEb6Pxb/6Zj+PbP/sEMNS SV5FnZ5gNiEYXVkOdq/lxANVUei7T/mrIF5Kv3ncHu1074aA7H8iyebetGdov/aTAqwm wRWTF8pRYRDcSnQBp4+r5fcCv5p/BB8pqpOCeoZ3eEG3sjnRv2TTT0PmX2MBkrj7odRX Ffo/UP/Ul/gHKrY+ymdymtOrXKdO3va2f9h6earaMKCZvy6lfE2zWnzpNKT+3Fq3m6oZ IL32JYJ8EOg6E7XK/ocB+URoGc6tc02D1Hq93vSYuVehgsjMBRrMb9hGei1GqTcAo4s2 gupA== X-Gm-Message-State: AOJu0YxYsTObOY/Xf+rhoHz4RD7r/WspnS3QntanfyJWVtF0hhDkXSk8 T6GrnYhM7X2ITDwt14T9EWuyxafql5TX3yOtAyKVtklxT5GxHd1FQD2uSyfURgLt9Lo9IM7HKcL BiifhfWx/lRbG81PY19jcyT7l0SWrxdC1qM9lGwwqEjw+gd20Q3PBTXvX9Q== 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:6638:2108:b0:46e:6732:763f with SMTP id n8-20020a056638210800b0046e6732763fmr110104jaj.0.1705673044337; Fri, 19 Jan 2024 06:04:04 -0800 (PST) Date: Fri, 19 Jan 2024 06:04:04 -0800 In-Reply-To: <20240119132214.3095-1-n.zhandarovich@fintech.ru> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e92c8f060f4cf392@google.com> Subject: Re: [syzbot] [staging?] [usb?] memory leak in _r8712_init_xmit_priv (2) From: syzbot To: linux-kernel@vger.kernel.org, n.zhandarovich@fintech.ru, 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 corrupted BUG: memory leak unreferenced object 0xffff888109b12000 (size 4096): comm "kworker/1:1", pid 28, jiffies 4294944675 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 0): [] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline] [] slab_post_alloc_hook mm/slub.c:3817 [inline] [] slab_alloc_node mm/slub.c:3860 [inline] [] kmalloc_trace+0x283/0x330 mm/slub.c:4007 [] kmalloc include/linux/slab.h:590 [inline] [] _r8712_init_xmit_priv+0x2b2/0x6e0 drivers/staging/rtl8712/rtl871x_xmit.c:130 [] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:310 [] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386 [] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:399 [] 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+0x7f/0xd0 drivers/usb/core/generic.c:254 [] usb_probe_device+0x79/0x180 drivers/usb/core/driver.c:294 BUG: memory leak unreferenced object 0xffff888109b17000 (size 4096): comm "kworker/1:1", pid 28, jiffies 4294944675 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 0): [] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline] [] slab_post_alloc_hook mm/slub.c:3817 [inline] [] slab_alloc_node mm/slub.c:3860 [inline] [] kmalloc_trace+0x283/0x330 mm/slub.c:4007 [] kmalloc include/linux/slab.h:590 [inline] [] _r8712_init_xmit_priv+0x2b2/0x6e0 drivers/staging/rtl8712/rtl871x_xmit.c:130 [] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:310 [] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386 [] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:399 [] 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+0x7f/0xd0 drivers/usb/core/generic.c:254 [] usb_probe_device+0x79/0x180 drivers/usb/core/driver.c:294 BUG: memory leak unreferenced object 0xffff888109b15000 (size 4096): comm "kworker/1:1", pid 28, jiffies 4294944675 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 0): [] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline] [] slab_post_alloc_hook mm/slub.c:3817 [inline] [] slab_alloc_node mm/slub.c:3860 [inline] [] kmalloc_trace+0x283/0x330 mm/slub.c:4007 [] kmalloc include/linux/slab.h:590 [inline] [] _r8712_init_xmit_priv+0x2b2/0x6e0 drivers/staging/rtl8712/rtl871x_xmit.c:130 [] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:310 [] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386 [] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:399 [] 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+0x7f/0xd0 drivers/usb/core/generic.c:254 [] usb_probe_device+0x79/0x180 drivers/usb/core/driver.c:294 Tested on: commit: 9d1694dc Merge tag 'for-6.8/block-2024-01-18' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17b61b63e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=447c03a4f5a8d571 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 Note: no patches were applied.