Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1360708lqd; Thu, 25 Apr 2024 13:08:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbiKwlERf8VLbYo7rcWPxhphQYTcoMpyVdCWV39AIPaXHsolvPanrSeEQML9PZxKDRfonyCeZa3Qh2Jbrsg7pV+ZcL1uUjd6zBO7ZRmg== X-Google-Smtp-Source: AGHT+IHDj7ReXGSi78SfMrhcT7doLrbMOyHqqlgXu75m3PK0gKKXVL9o2wuNvTmXREIPE1ext3B/ X-Received: by 2002:a17:90a:d081:b0:2af:8fb6:348a with SMTP id k1-20020a17090ad08100b002af8fb6348amr623687pju.3.1714075707353; Thu, 25 Apr 2024 13:08:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714075707; cv=pass; d=google.com; s=arc-20160816; b=iKRtZt1wi4ZfJb5aejoSPY2PTHtv+Asge6ZXtE1A+kO1lu7IrnyQPI8DFJr/pNgRp9 3VZxVj4C9/GLzrjDjgIZ7XMYgitS3KTGn4+zOuNnUhSi2Z8F/F7ObQBUZkO6NUdTD6fY s4CdCLyVQdvPM3PUcUhVOHX0gW/8mLk9gC1rVs2Kj2PbKCeC4wGSWHrGO/WkRaMGuEmi VzmfCybwExSm/sLWigWrgtLsfJ12C5oaizwXVhcBPU1qdDci0po3Dd+YhcYQ0nkBNR7S TZ2vGWclhtpBDCkXpxbeMng8ETsxpJxDOFyCIg1TCDNmzouLTgs5ScE6pAtUz2XIvoTx qejQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ekH2ncVU5TU90wC0+JU7SiT8D9UwcwiJNzKzOJmDUPE=; fh=hXy92AKlej0+dbT7gBtV7YR1MxHUkSvLkFHMJyfIy1Y=; b=hLrKvWbG462Y9BhjUUXd4BAKt+flvps6vwkGHeYgSbFerkh4q6TTVMaafQu55Capn2 EiTdGDbYB0kQf6BgJbG60HfezZM56L8MUogsMu8kk3EFTVHGsU7JxoY9pgd9rk44oN1m +0vxtY9CuKxP1qw8dq++HForl6JUqX7YdbqjNe+XwI43DUQlRHRYnkmrcgN242PniUR9 C1ZpA6I+oKgBXKOd0rwOBvpa0rsgub92KxmUT+v5SFQC3D9sva41NuK44VpO5MBXAWD8 JrEBUDPTYmFhKxqgtz40DIU8n6IeDDrrKitR75GL1FByZ8zwVQTVNqWulV6+ZBDvRW59 /G/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hluguHNa; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-159097-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w7-20020a17090a8a0700b002ae3a9b7183si6876626pjn.95.2024.04.25.13.08.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 13:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159097-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hluguHNa; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-159097-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 43114282AF8 for ; Thu, 25 Apr 2024 20:08:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53000153512; Thu, 25 Apr 2024 20:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="hluguHNa" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 82DB8152DF1 for ; Thu, 25 Apr 2024 20:08:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714075694; cv=none; b=h0UhBwaIYH2q2ucOhRq80Pgp/6g95f2vUqsVWmCdt9wBg/2NC/cvAlDMVNZiF0k6qsVVggjnRXl9hl/Z6ZJnTMiH2p+wAyXeUROWPecx/B6mq2PPVUoFujARKwvqDp19U7q8OvJgv/yKopfb3iSNRY1aDiZJEk1wT2jjoWmkMi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714075694; c=relaxed/simple; bh=7ciCYviadDCESvkbbfYYDhcw4dNfYDHt5C6Yzrv1psw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Qqlkein48q7K/jnCHLOe/JZ8yBKefvvq0LMJvq2HBhEraWnASYVS6j9q91fkChuDjfbMzrAi6W6n/TIr8ZihLsOZw8CWu9TZEoE06A5iiOE3p+zFZvf5Lf9nRJzVbwAXopJjz8jHhXZAzAr9w6mnzK0r76zG9QkEDULKzQ5jnQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=hluguHNa; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1e2b137d666so10827235ad.2 for ; Thu, 25 Apr 2024 13:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714075692; x=1714680492; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ekH2ncVU5TU90wC0+JU7SiT8D9UwcwiJNzKzOJmDUPE=; b=hluguHNa3+jkYTvirKPnwbb3PspgFmPQQGCw/CuEWwz+SVTO/L29pZdZUmQO+VxrUs LttNGPjwNt40efzj/jw6YvmYY4yhLWqHnZgQPSytBqfAuRuf5ee4Z4AOFcGQ0lUX1d9a uxlivsYYYN1hCwCwMvshFk6gOFPYelyrJ6FQY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714075692; x=1714680492; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ekH2ncVU5TU90wC0+JU7SiT8D9UwcwiJNzKzOJmDUPE=; b=eBOge8tGu8lH+vV4GXkpAmje4oyEjl0AxefEtfsZ+t7UJeB9iFHke1ovlDBVqx+rLQ se2HCh7EZbKvJA9G/8aw/1zdVnlMHGduxsis9+dS67XXFlDrq7T/CBW3L677mbfsybD+ ZomIKFdN3MBI1EUwMEkm+MlLXOuUdf5wFBYjPimK+tAmues/ZTgutqCpTAuavllRsjHr ICLTI6uR1VUdRZkSViMNtWVHvYIKvZhOX9nBcfTdtczr2xTewH4Af4xnOkkaLYJ3VD7N RkJcxopOZNvjGiDHyHzgdGnv3lWEylfKBQ75jVcUaI4+/6uU7+zBcubLFkHHgZ6cL5VZ dJmQ== X-Forwarded-Encrypted: i=1; AJvYcCXCIEh0GP3PYd5dN0r2tchSHzT4bnRXJsNy44Gf0qWsyX0sYGneLjOhMnRA2cj8mFJ2U7Hsvo9zAIbsq0XT7pBuYlUSe5ySbvSRd/b3 X-Gm-Message-State: AOJu0YyGGQu8MxnYhRhmEE6IZyAMXaPWS0IIaWl8YLUcLjlcYUuOEGaz UnEDEJ3UVpx1Oby57q3nMIz0CmaXvL0/7OAOMKuZidpPzkcK6pPq3f436/rJEg== X-Received: by 2002:a17:902:6548:b0:1e9:519:d464 with SMTP id d8-20020a170902654800b001e90519d464mr560628pln.65.1714075691780; Thu, 25 Apr 2024 13:08:11 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id m6-20020a1709026bc600b001e99ffdbe56sm8266309plt.215.2024.04.25.13.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 13:08:11 -0700 (PDT) Date: Thu, 25 Apr 2024 13:08:10 -0700 From: Kees Cook To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, kent.overstreet@linux.dev, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, penguin-kernel@i-love.sakura.ne.jp, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, jhubbard@nvidia.com, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, ndesaulniers@google.com, vvvvvv@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, songmuchun@bytedance.com, jbaron@akamai.com, aliceryhl@google.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH v6 00/37] Memory allocation profiling Message-ID: <202404251307.FD73DE1@keescook> References: <20240321163705.3067592-1-surenb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240321163705.3067592-1-surenb@google.com> On Thu, Mar 21, 2024 at 09:36:22AM -0700, Suren Baghdasaryan wrote: > Overview: > Low overhead [1] per-callsite memory allocation profiling. Not just for > debug kernels, overhead low enough to be deployed in production. A bit late to actually _running_ this code, but I remain a fan: Tested-by: Kees Cook I have a little tweak patch I'll send out too... -- Kees Cook