Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3584087rdh; Thu, 28 Sep 2023 16:57:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQCThcR518cPZETpUl2qcM9hPGnkTlxXp5dQ1HdvzxwO5OMZywO46zjvu9AnSL9tfDt5i4 X-Received: by 2002:a17:902:bd94:b0:1c7:24fa:64c7 with SMTP id q20-20020a170902bd9400b001c724fa64c7mr3555583pls.26.1695945426337; Thu, 28 Sep 2023 16:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695945426; cv=none; d=google.com; s=arc-20160816; b=GLHvYdp56JstNlnhsCTnhjdRHwF/QZxyvEGYRpMF9OChLaaSRfBj7UaGtfbaT9Ct9s mr6wZhE79nfiDjFWX9ImfRPNuMGQLfcmExqe/QTnQfS67PY4DeFFo4KYK70Nua1TiHLH H8P8wKgrZZzHEC7Nu24VtLhoFxdhqjkD78YkKt8tm8lBA42/sjSrMn602sK35Nlpo8zf IkOoTsS2plpintSA0uHsMk2DgEw7yTOoZUGhmf4h5jEchQNZ98sYWHZBCi8jjX2Cc6Wk XwJwpnfTgdrEztPv0SHWtyIP+QQu3nFdW40PxHnnoa+P4+JNt6/8gR7cmtNAqoNqbKAd 6Vnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=XBf/n8oQr3zotF0kuExdKxVGO0tvQwtR7Cs+ipQs5qY=; fh=+qGBH4QRehMM09CbwF3dy83drofTED138zLFDrXcL3w=; b=hfOsqU5tN+rtUbx4cUEZWDqj4T6iNGB3Q84KQXm20x13fHJHqX+Ap7OqEL9murrDNN KLNXuz9p4YesdyjE1cZpn/lMQjqTBnUhp6PA0fmI+skrOhFQj16iY5baBqOFlqxHUdRw G/Q67vsvUBv5bVCMs2PhqEcJNf7+zEWImmhHp56u6sMnHsLsMRGUK4xUTcrfBcC3mZVi zXeE5e0sxPnKjxmRAT3ksk6sEN/+4Utyo66u6j0jk6uwy0OyG+mDehNHGonimW44zYAF WDoQJ/f1LSoYakfwuhMqUN86h+4kk1XBkGUcNMpTqF+dRD4hdrxkIlWbhzWOYBDhY59F pJaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=biOgeE1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id j6-20020a170902da8600b001c727b3640bsi6326496plx.235.2023.09.28.16.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 16:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=biOgeE1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D4D0C807E8A2; Thu, 28 Sep 2023 01:40:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbjI1Iku (ORCPT + 99 others); Thu, 28 Sep 2023 04:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjI1Ikt (ORCPT ); Thu, 28 Sep 2023 04:40:49 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78D67AC for ; Thu, 28 Sep 2023 01:40:44 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-690b7cb71aeso9693427b3a.0 for ; Thu, 28 Sep 2023 01:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695890444; x=1696495244; darn=vger.kernel.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=XBf/n8oQr3zotF0kuExdKxVGO0tvQwtR7Cs+ipQs5qY=; b=biOgeE1QnOHp5ALBE/vgK75C3huo1FypyiD3ssXaYvpYp3oahjV3DUfT9bjK2GFC+6 ppki+6S0JGC9M4C5BiQlm7xEr5w/rM9gMoeCFxVOWs8IcOPr/2ldbBfXLhmCjiwC5Jvu xsTrbGUgtuIS69D2LZe6kE+HwG7605aYf1G+7JoWoWN+EVE/OAzPKfv+Wt6iNqtm/fSk 9Es5CU1RJA6tHjraJ8YcF8iIkJtjoFa6/IdpsZFRvM7sD1gfixx96eMSOjwK3FUpzU8H EjiR9hre4VRunFof+aN0DpqJ8s+sc4spRzurS5S9SYeB7uqLY5sLyX6VtqOqsupxI9Wl a8wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695890444; x=1696495244; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=XBf/n8oQr3zotF0kuExdKxVGO0tvQwtR7Cs+ipQs5qY=; b=fCP2u6/O4HwoaYxd0isszCcOJZAau+cVuGl5WTD9aDJn/LxyRZ/vQbWAhLEOf3d2Li TrXDEWfQloVk172r6IDYWbOjMnEg6E41Dwlx7lxKvYLP6dCnj8bl37RXXmdOakA3JI6Y qObpmwS4Dz0UHbt4QW6aBwmfSAolGtAynwlfdNUp4XJZyjJoYnP0EWQfvQhfnHwYb57g q2er4Gl5iCOGp4pFjRIB/aw3OC/L66Kn3jv1DVXSmV63PjsuT9yTiMZxBgt9NpPE6+ou pz3gQRsT4xV69saEF+TWBxbEhD9Vhve7Bg8PuyokvPDB/KCO8rG5O+nPis6tIsqyy01U nE0A== X-Gm-Message-State: AOJu0Yz6UtgKw1ayMUOTMAIpdErcOukm/J39DnsNfS8tVanEdWoqLXwE EVoZTdPAmRchs4Rs1uUI7skeihuOfMhnxA== X-Received: by 2002:a05:6a00:849:b0:68c:44ed:fb6 with SMTP id q9-20020a056a00084900b0068c44ed0fb6mr1019514pfk.16.1695890443798; Thu, 28 Sep 2023 01:40:43 -0700 (PDT) Received: from [192.168.0.106] ([103.124.138.83]) by smtp.gmail.com with ESMTPSA id o28-20020a637e5c000000b0057cb5a780ebsm10756666pgn.76.2023.09.28.01.40.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Sep 2023 01:40:43 -0700 (PDT) Message-ID: <4f01f302-9d59-4146-b7ff-0478c4bd94b1@gmail.com> Date: Thu, 28 Sep 2023 15:40:31 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Kees Cook , Daniel Micay , Nick Desaulniers , Andrew Morton , freeze0985@gmail.com Cc: Linux Kernel Mailing List , Linux Regressions , Linux Memory Management List From: Bagas Sanjaya Subject: Fwd: kmalloc memory leak over time. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 01:40:58 -0700 (PDT) Hi, I notice a regression report on Bugzilla [1]. Quoting from it: > Since 1st weak of Sept I have been observing memory leak in my system, so after doing a little big of digging I found out that the leak is caused by kmalloc. In Linux 6.5.3 memory leak would increase to nearly 50% of my ram over a period of 6-9 hours. In the Newer Linux 6.5.4 I am yet to observe that much memory leak(Haven't used my laptop for that long till now) but over a period of 3 hours I see 2.2GB reserved and it is not used by any program at all. this is just after 3 hours of usage on Linux 6.5.4. Later, the reporter (Cc'ed) narrowed down the version range, with memory statistics: > 6.4 works fine I down graded to it before linux 6.5.4 was released. no memory leak. > > today i ran my laptop for 6 hours and 40 mins and this memory leak is still happening at same rate. > > total used free shared buff/cache available > Mem: 15Gi 7.2Gi 2.8Gi 797Mi 6.4Gi 8.1Gi > Swap: 0B 0B 0B > Total: 15Gi 7.2Gi 2.8Gi See Bugzilla for the full thread. Anyway, I'm adding this regression to be tracked by regzbot: #regzbot introduced: v6.4..v6.5 https://bugzilla.kernel.org/show_bug.cgi?id=217943 Thanks. [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217943 -- An old man doll... just what I always wanted! - Clara