From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBAC3CE7B10 for ; Thu, 28 Sep 2023 09:39:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3180F6B0196; Thu, 28 Sep 2023 05:39:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2C7BC6B0197; Thu, 28 Sep 2023 05:39:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 18EDC6B0198; Thu, 28 Sep 2023 05:39:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 06BE06B0196 for ; Thu, 28 Sep 2023 05:39:20 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B88D6140393 for ; Thu, 28 Sep 2023 09:39:19 +0000 (UTC) X-FDA: 81285508038.23.E070F44 Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by imf11.hostedemail.com (Postfix) with ESMTP id 10A904000E for ; Thu, 28 Sep 2023 09:39:17 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JBKdKsL9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of freeze0985@gmail.com designates 209.85.221.182 as permitted sender) smtp.mailfrom=freeze0985@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695893958; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=hNiOBccRip+IBWCxXSrbSr/5eIvBshe+mxAKUG3J22E=; b=6EwxZotqmSRkaJWiCOU7p6v6vEEX2FyD/9sdvHcMB4hPBLsWylH9mVqJ+zlW0HfnpqxZPV rk1NMpvz05FENoz+NMZZkfhwL1NjDCnuD1KFVZMU6JZTI9VptRAB1/3zcAQKhQulxTLXkm wingq8/H18Ejja9JbXPOkwntfEPHRfg= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JBKdKsL9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf11.hostedemail.com: domain of freeze0985@gmail.com designates 209.85.221.182 as permitted sender) smtp.mailfrom=freeze0985@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695893958; a=rsa-sha256; cv=none; b=3djI4mCdbrNNpqVsCUrdzpQI+RdR/YRU1w3shWuaD3wIej5cwnuxotYYGP5kCei1NHnEVE 0FIeRiFc3qog4JotcWJyUhwgetpsQIAyS4i+hHWFznDLhoSn7LKkAzwuxTxBAhPXHn5bmv zqw1XdxGq2LlFjDHWxnvdnQRxzmho0w= Received: by mail-vk1-f182.google.com with SMTP id 71dfb90a1353d-495eb6e2b80so4763090e0c.1 for ; Thu, 28 Sep 2023 02:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695893957; x=1696498757; darn=kvack.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hNiOBccRip+IBWCxXSrbSr/5eIvBshe+mxAKUG3J22E=; b=JBKdKsL9SFUPDrRNy4o9hrfHHEi3rYexRxn4EPiUAkuzL9NEA8wN75KtoqM0UMQhA6 ZM/XYHTirFXQF7S4TagR+l5PjKAeOnC0NyBenPiaMG77veON9X+uhqa0BW1JwS+56/Bq ZKdH28LsQGAntYbdD62PG2A3pxv1ffqg3+hoH15EULKaB4a/TM9geV5NOef5AFXT7W2C wtsI7y8o2YMC7VsPqnflzkFUFNMRLCJ8rzNmeJ/XqKAh42AVbNUB56OJvxAnQYiViFmG ZbVkbMr1Y0Ayla8mDAYXE1o912SjPXs2tuurrTaVXxzoQVJnw6erH2hItwYuZ3ahyqxW D9SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695893957; x=1696498757; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hNiOBccRip+IBWCxXSrbSr/5eIvBshe+mxAKUG3J22E=; b=AbsnbXZoS3Zv2QBaJ5r0ady0NmkfAhP29S8AaW2Cr1r5F078nqGSfrgp8PBRGanZtm aPuGUFMiqVT3/1CUVGTSDWG9AW92TWUj0FcD9QMHEcNGJY9uIN2Zls58/uMVqXbUIWaY Y1hsR4XTlowolCxdzXquVHxrjxXYiXUigba598yy0K+WnF4svRd46JzRx/OqwPWIs+6g ZTlvuTpcansqjnHliMG0ghYMFqcssdLIDPkcwiCqs9Li0lJo9q7GFvnHEdirgtLav03T AGUISXNTrCmQ1HRUPfnfp2C5UWmrDaw5tiqWI7XBPJ7h2PyhiHu7mXZ45Kkxvy2APEwP 84mQ== X-Gm-Message-State: AOJu0YxTDhBxPRorOtEj1VMJlZGdvgnSyMP2wq2pL6P78yMtLEHWZ4+u r/UjPuf76s68r6Jq3SHylY4J8x/pmI5bLQOpz3M= X-Google-Smtp-Source: AGHT+IFJuQGWV9FeWwi3LWZF/zkFZrwUEaQgIKuE+H8EThnJnyPlmig5R/ZuphSigeLjWQR3gRMigrQ+V9qdy9q4DtU= X-Received: by 2002:a1f:e246:0:b0:495:bf5b:7e49 with SMTP id z67-20020a1fe246000000b00495bf5b7e49mr400753vkg.13.1695893957072; Thu, 28 Sep 2023 02:39:17 -0700 (PDT) MIME-Version: 1.0 References: <4f01f302-9d59-4146-b7ff-0478c4bd94b1@gmail.com> In-Reply-To: <4f01f302-9d59-4146-b7ff-0478c4bd94b1@gmail.com> From: Victor Fries985 Date: Thu, 28 Sep 2023 15:09:05 +0530 Message-ID: Subject: Re: kmalloc memory leak over time. To: Bagas Sanjaya Cc: Kees Cook , Daniel Micay , Nick Desaulniers , Andrew Morton , Linux Kernel Mailing List , Linux Regressions , Linux Memory Management List Content-Type: multipart/alternative; boundary="000000000000e35a2706066814ed" X-Rspam-User: X-Stat-Signature: hrxauney9c6wkq5ueob1m7hhuq6t9uxm X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 10A904000E X-HE-Tag: 1695893957-422853 X-HE-Meta: U2FsdGVkX1+0CNr2nMdxDh5em4zS9j2TGsPht4yCnurRYW074HiebjYzOjQEkk4EpZbnupM2aONziGnAhCcAOCGucC8Y7/Oz6exIuhRZeWXWx7jbRUE2PoMy/T5iUn4EPCrUBsbmSNVuPyMaNgc4GXRB0HM7XSlbLOhqk5O9GPz1J1LpgbJD7Nd5nLxL0lkJIopbcEy8EYm82Zxz7lzXP4jsIaX9CpJ9Yyy5tjv7NP52HTrtDxLSWdvyRM+AMWTzFPkCC/tc4ASHZJiu53D46NhkYWcTPAXBbTlXYPGzQswPiyNP+2gDFFj8ktJRf28YeYb1ikIdglNvIUN0wAiARc0CQQw30jF6xkOMF3AFuAZvhIgASYUnZNZrzVWnqayk08R3xlTaZpjQ/8C+MvKfDEt3HImvp/tco27fN9djLsqNT5XAu7gRDOa6CO8lucV2Iv2yMLc247VE32xOLALbGkUJOO0KVG2wRH5P2SKVkZBLLG4b9iZyza60tfu8BmvvbzVZWCrt2iJJOs/R7okGe3pRV93joRYn0IZ0Fu0QEEhaAIhJ+fiBFhGaioiAahXfbG8AKAc4aTfUqQnoa7bEDUNYFmPBEOLnkAcOCKpfMWSoAbpQPnu+7U5bJoFLQ32AeMpdZoh8bvUYG9LVDX0n1l4Zo2Ed+GJoSkJ7JWPL6Sc/oQ9chW9zqnDguByCmQxd6MkH/w2QwWLlUElngekoheQsn95byC2KOroxvZ4duZfCjxnIj8Hbanz2Zp1pXCOMI5XeXBIOA5c1FIWmsWU+ypwn8G4h8MxKD3xpQ+bn4SLgk2M4Z5Vi7jpDjTYqkxoZ2JHZIrwPZ1RNT1VTfsP0vFHuTHK4yEXFDrCtIaHr7Yn0tQ4euVTb9VMr5nfk1MJ604VPs5rNg7Cf6esf0q6Bv9a8liOv47pIMkD0D8/fmzNqG6YeywwpFhM15f40dh2IZDMXn5XjAc26MA4UdIY WWJ3aLvX Uti/QMeKZj73qvlfBbgSRToY2J/TsnKuUR8+Rjww8mt1Sd3Ja9lHyP4kBRre5snKs5l0yoOboxJ9f6lkg5ZvRPtp06v4hmDq/0+x+68L2pdzCJIFHvmmsV6N5z+eDSJo7xTqLhdMnDkJAZQ1XpB98a1rbk9TDF1dQB16IehLjQBTVXSD2SWc0uwbj2mmLI1e9srk5WMW9gvlE3b4GSaaejjckye8cxvj64+WGrGZIsfCbG7+oI3hpRgHMTjILsYepdyvOPEZPFkVtoRlAa+9TlxZ4bAA+1bBNA0DEwXjG2kVbLzdUbWSXMnF76vyuZxoVTohR4lFlHwG2D/5Is5SoETkQQkjCH6I1CLa9Ot7AhEcom0jviuW7jLqNSh+XtgXjnxeBd33cIQKaYO5aYhyc4mITp6ih2N53dtMWm9UDq9P1WT6TWPKVeYndTtOGKvwQumMiSPhWYakNgRT1A1u/9yiQbM/26IZm1MG1365LP34IZY8cTHkvJSFPkypA4HJmHvW1JMB8zHB4ept0SsBhgC2N82T0Wnl9g0Vd X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --000000000000e35a2706066814ed Content-Type: text/plain; charset="UTF-8" Hi, the regression started from 6.5.3, i failed to mention it in bugzilla. Original I made ticket on linux-zen, thinking it was their problem. But it turned out to be problem from normal linux itself. On Thu, 28 Sept, 2023, 2:10 pm Bagas Sanjaya, wrote: > 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 > --000000000000e35a2706066814ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, the regression started from 6.5.3, i failed to mentio= n it in bugzilla.

Original I m= ade ticket on linux-zen, thinking it was their problem. But it turned out t= o be problem from normal linux itself.

On Thu, 28 Sept, 2023, 2:10 pm = Bagas Sanjaya, <bagasdotme@gmail= .com> wrote:
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=C2=A0 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.<= br>
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.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0total=C2=A0 =C2= =A0 =C2=A0 =C2=A0 used=C2=A0 =C2=A0 =C2=A0 =C2=A0 free=C2=A0 =C2=A0 =C2=A0 = shared=C2=A0 buff/cache=C2=A0 =C2=A0available
> Mem:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 15Gi=C2=A0 =C2=A0 =C2=A0= =C2=A07.2Gi=C2=A0 =C2=A0 =C2=A0 =C2=A02.8Gi=C2=A0 =C2=A0 =C2=A0 =C2=A0797M= i=C2=A0 =C2=A0 =C2=A0 =C2=A06.4Gi=C2=A0 =C2=A0 =C2=A0 =C2=A08.1Gi
> Swap:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00B=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 0B=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0B
> Total:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 15Gi=C2=A0 =C2=A0 =C2=A0 =C2= =A07.2Gi=C2=A0 =C2=A0 =C2=A0 =C2=A02.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=3D217943

Thanks.

[1]: https://bugzilla.kernel.org/sh= ow_bug.cgi?id=3D217943

--
An old man doll... just what I always wanted! - Clara
--000000000000e35a2706066814ed--