Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1690804lqt; Wed, 20 Mar 2024 11:02:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPJUch9BukQsCHeIMWAnq15sy/ayoQ69i+E4ErC8Pt/GYSqc8SYHH6a29PU8ImHa9HmP3Bwk7y7ZzWA1punjYk2I/tLFX8KVNwgzXw3g== X-Google-Smtp-Source: AGHT+IGbcxnnUe7sJfhkNn74QJz0g9wedvsO+lgnZ+sKCTMP+bL4025OeG5CmXpQ5yEb/F5ItmEZ X-Received: by 2002:a92:d203:0:b0:368:5288:740c with SMTP id y3-20020a92d203000000b003685288740cmr4214647ily.1.1710957754287; Wed, 20 Mar 2024 11:02:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710957754; cv=pass; d=google.com; s=arc-20160816; b=yJ3yifwYH3tD+/u0kPMf2HuWoxader48h9Cx9HSNsd3UdyTQ8ED6m9CNiwXqKwdg/Z om3Lyexz0KEqMyLYQayxEtFo9hrZYuIlR6N2EoHG2dsBWoNA+FpIBTl9BwEGOVvjXCov exaambSMlyJHTRApcQxLGMn3rps4L1p77tQ/9wpOQTlj/PcciM6l23/zuKMq96CDbyg/ jfv2Zo85Wh8byctf2EXggOtCZ9i14BPHnMiDMx+aeIjRIb6PW+Rk8dfJsqjMOHSP2vIj h+4lsMg/ZVRbfJTZIn8bRS3lnGybN2kPtkehaL4vKjd2Rj82e9EKJ98tWlkRXIk3gJff nNSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:content-transfer-encoding:message-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:to:subject:from :date:dkim-signature; bh=0yMZBXcBZkZ/M2EO1/087sLa8IJRDaXBPocFKvglIy8=; fh=rtSMWaPMr0Pg1PrGglSwCgjgHieeRAzH5OE/PvMzR6A=; b=Wq7Ndhpevx/e6kmWe38Ar14SWKR48IyVJSDeQGTwFJNVvhJwGIwS0yaG7dRXcufRIP YOz1B43Pb/sOQx+ErjmnV2SkC3LZlbmEn7aNrV6EqmYqoLrpqwJnTq4isxYg64/4HS5J 6dJtQ0OfBMNQPFuZ6yOOwJBUC+TktSV/bLQ0mmMyGEPKnu5KUoLjVY2gniZVYEKmycVK OfcAqd77DSnePOSPndYNK4n5O0kKQo78KkJWvbGmTBauISMgYCyXg2FBHBJtDFGGHTpk 7Lvpbw90cgn7XJQESK4rreQeWQ3Y5/C7yx1762vvNOTz386nd8p3BGOEWH6vv+EYkAYK 1edg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=E+sKbDfp; arc=pass (i=1 spf=pass spfdomain=yahoo.ca dkim=pass dkdomain=yahoo.ca dmarc=pass fromdomain=yahoo.ca); spf=pass (google.com: domain of linux-kernel+bounces-109267-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b5-20020a056e02048500b00368491bbd61si1778216ils.53.2024.03.20.11.02.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 11:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109267-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=E+sKbDfp; arc=pass (i=1 spf=pass spfdomain=yahoo.ca dkim=pass dkdomain=yahoo.ca dmarc=pass fromdomain=yahoo.ca); spf=pass (google.com: domain of linux-kernel+bounces-109267-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1A6F1281611 for ; Wed, 20 Mar 2024 18:02:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 853246A8AF; Wed, 20 Mar 2024 18:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=yahoo.ca header.i=@yahoo.ca header.b="E+sKbDfp" Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (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 196C76A327 for ; Wed, 20 Mar 2024 18:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=98.137.65.205 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710957747; cv=none; b=qRf614vwAImX/0EeyxSq4VQvTYDOeRGVwYlwBtZAln9CiOw1IjDjHPT6Eff3VtuJ2NoXlN+jsR/ZTYdKs8yDg4hVb+Tp401wU/4J6LrqlIGCp0J4OoSpJeeY/w5nOKSKrpPZ+8kDQmDxOLAV132w+CTpbtZKr38xfJ8Ep3QCOGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710957747; c=relaxed/simple; bh=bgVYqzWvfpqE6jxKb66SRmkeso/7iWyCQu7GKuwJRro=; h=Date:From:Subject:To:MIME-Version:Message-Id:Content-Type: References; b=JRii1myzCbO+5adO7eTQk9MxZyOOiNQH3ECd2sRWfoZYmLcFiuemo+HGmtX7huovYmpGIZwXxYuueH60FNddceTgvImIW0fzhtGzXBeIA2Ni+vkWrbo63JxBPOVMR1GsXev+2JUDxZldI8RLpnS4VBe91UaWiYVtVfZbFkaHleQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.ca; spf=pass smtp.mailfrom=yahoo.ca; dkim=pass (2048-bit key) header.d=yahoo.ca header.i=@yahoo.ca header.b=E+sKbDfp; arc=none smtp.client-ip=98.137.65.205 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=yahoo.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yahoo.ca DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1710957745; bh=0yMZBXcBZkZ/M2EO1/087sLa8IJRDaXBPocFKvglIy8=; h=Date:From:Subject:To:References:From:Subject:Reply-To; b=E+sKbDfpSzY9vUSq++bzAKxnbNEK1+devjZQh/VqxkBYxc1Rhlo+2y4KQt/LWjfWyqwwXBaWwX8To9b+MLwptIrTma5/9A5Zt85wlXAhs29K0fekU5hvb6urXg+ZuMu+mLhU4QcsMfxlOTXFXJ6aDuSBemdy8acvXtoquOeJYcrZPCx22liBIVSB48K9hKJ0XavrvxLpw8TR5h3JDK18J/TznK5XOQRJoQtXKinKrX8jRJW0mTswXMxoBaMWHQTPc05T3K6XGyI9EsnrjvFU8aw1jr0sYN/bTBvKBJhxfED2Vg3xTC3Mi+z+jXNm/uULcM+b4mNRSu7vzpVSO20WFg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710957745; bh=uedLumy/n1TyR6muam0lqLNvS08Kl1kfB7eD6vG4EnS=; h=X-Sonic-MF:Date:From:Subject:To:From:Subject; b=XWiu/Bx90GpC08zAexDyqFSp3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cQldfP_7QuiPnMBlqZosbGzVmPahLX4jkfj3E37Rfa58cOBPSgE0AK_In5zcv1Cbtg lY1yL5vqWYkKa83WYmcphgXZ.Untq2NesO2gXtH53_MQi31qKwOvRGpnHD413JFx5kODJowVjsSi Dft4J1kCzbJYGDssuVS1_B6iVsmXbolqmOgoidk5qy2y20jZvTJWCwoMpkF7Eph1P657rcGM2LB. wQ9CRYd5LT847zOlFMjDBW6.yeknIRThXlwLYT3MiluloCytnBkqGH0t7c.4LuXhIrpwqgqRjoui Wzv5AST7gjYHZjYj_pPjI75kfIcYJHviwXtDJv7BVUwfZ2UG24pT0r4kBPhBIaz5SBIUCTEdUFN3 AjBTsUI4ZmRRG7MeMkL.oXpdb4iOBnRrHB3c_mD9OdW9VJOXigTkDpYylDrZKMR5iGkzbeq.7dQV jji1gEPjz.vqmBB0- X-Sonic-MF: X-Sonic-ID: bf0f5cf1-488c-43ce-b4fb-1c44294e8624 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Wed, 20 Mar 2024 18:02:25 +0000 Received: by hermes--production-bf1-7d6dbd57c9-hwf7b (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8148c9f88f5021eb0a73e4f9f7a97599; Wed, 20 Mar 2024 17:01:46 +0000 (UTC) Date: Wed, 20 Mar 2024 13:01:22 -0400 From: "Alex Xu (Hello71)" Subject: Regression: SUnreclaim leak: snd_ctl_ioctl? To: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <1710953751.8yx03664pf.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable References: <1710953751.8yx03664pf.none.ref@localhost> X-Mailer: WebService/1.1.22129 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Hi all, In the last few days of running torvalds master kernel, I found that=20 SUnreclaim memory seems to increase indefinitely. slabinfo -r kmalloc-2k=20 says: Slabcache: kmalloc-2k Aliases: 0 Order : 3 Objects: 1272941 Sizes (bytes) Slabs Debug Memory ------------------------------------------------------------------------ Object : 2048 Total : 264991 Sanity Checks : On Total: 8683225088 SlabObj: 6144 Full : 264972 Redzoning : On Used : 2606983168 SlabSiz: 32768 Partial: 19 Poisoning : On Loss : 6076241920 Loss : 4096 CpuSlab: 0 Tracking : On Lalig: 5213966336 Align : 2048 Objects: 5 Tracing : Off Lpadd: 542701568 kmalloc-2k has no kmem_cache operations kmalloc-2k: Kernel object allocation ----------------------------------------------------------------------- 1272283 snd_ctl_ioctl+0x45f/0x6d0 waste=3D1048361192/824 age=3D6141/183854/= 366927 pid=3D687-33984 cpus=3D0-1,3-8,10 memdup_user+0x21/0x70 snd_ctl_ioctl+0x45f/0x6d0 __x64_sys_ioctl+0x85/0xa0 do_syscall_64+0x3d/0xf0 entry_SYSCALL_64_after_hwframe+0x46/0x4e 189 acpi_add_single_object+0x38/0x710 waste=3D119448/632 age=3D368130/3= 68134/368138 pid=3D1 cpus=3D0 [ ... ] kmalloc-2k: Kernel object freeing ------------------------------------------------------------------------ 633587 age=3D4295305473 pid=3D0 cpus=3D0 382872 rcu_core+0x284/0x540 age=3D4513/194630/361523 pid=3D0-21201 cpus=3D= 0-11 rcu_core+0x284/0x540 __do_softirq+0xad/0x1de 247690 amdgpu_dm_atomic_commit_tail+0x1721/0x3740 age=3D6157/199198/366963= pid=3D163-19507 cpus=3D0-11 amdgpu_dm_atomic_commit_tail+0x1721/0x3740 commit_tail+0x8a/0x120 process_one_work+0x12b/0x250 worker_thread+0x2d9/0x3f0 kthread+0xac/0xe0 ret_from_fork+0x28/0x40 ret_from_fork_asm+0x11/0x20 2794 __sk_destruct+0x17a/0x1b0 age=3D994/147194/368001 pid=3D0-19414 cpu= s=3D0-11 [ ... ] So, if I understand correctly, some memory copied from userspace for=20 snd_ctl_ioctl is not freed correctly. The PIDs were pipewire,=20 wireplumber, and pipewire-pulse, so I restarted those but it didn't=20 resolve the issue. Let me know what other information is needed. Thanks, Alex.