Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2733093rdb; Mon, 12 Feb 2024 15:04:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwqA7vzO+ACjwdIQqegePcYvFGuoWosUJMLCyxyXVZtc18eSUzp4JMu06pMZuN3IDY8o/6r0UhtriZ1FwfpZWEtyUku/VZ+bOvG9zXdw== X-Google-Smtp-Source: AGHT+IHOsttkUM8msqUA4iWkm5528Anj7o/btvXlEp0qO/hUl1YJ0adGqYe/8UgyEi/p9jXN+NtL X-Received: by 2002:a17:902:b211:b0:1d9:a0f2:bc90 with SMTP id t17-20020a170902b21100b001d9a0f2bc90mr970690plr.17.1707779050865; Mon, 12 Feb 2024 15:04:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707779050; cv=pass; d=google.com; s=arc-20160816; b=KMLqPOrDsAtXvM0Pj4nLaFBAKFb/FmfE78rYvubav4mw0gNMfWyVDTiLk1Elz7AKAs Co7lyWSCVN9Y2TJPjNG6EMncZs1DdjwMpsKC1u9QirypsnwLy1bNAsW6ib5ZkfB7c1R+ wcDAhG2Nu8PBBiKBf5q5Wt5idI7pMiIYCaxL1Snx+K6SbtRqAS0QNohX9PJ0dhwSsIi1 6TpsZYy2ugbbNbpQDMH1eI8fHY02zKzM8xZzLnxyqaoga4QWO9NODPTDG+y8RsL5gwOC Ff1ZccDYicEtGh5QbLf6+omX2cSSWxDNggYEhYF2zxF2lMI2RmsfgeSaejkZ7SMsLPZM qnag== 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=FzsjrPnusIaHUIYYiKKdbD1PNR9YsTLIdgA5piLTr48=; fh=qs9ii1IQ68uad9MFPDbSZYiXJzlQUKkuqKVNoBvehqs=; b=DNJuKYmuqunuqQvHMOAqATPVur4CuHEjzUUxOybXV8xe3TSLFAiefsVLmQq2Z1wCRc MKkz0lr2ZeHi6J/SudVE3vkynFZ5yaltpGoAS6KdNXK4AOacRJtBvcfm3f6PTwqRdIYB k1rs/soK17er9/NHpltU2IC39NDRWhutT16rp/0oDHDfzqgrRx6ovMNfx5TIo8+QpPqz chPvpuZBkcaZ8lVtYLDI8iOizKdgFvEPj9NckZ1naLndJ5AsLRq815+M8eEbylZw/Lha Tl6wxzjTKvFSG8ZvmgonXNrvSwNawCmlSprbjUN7ZHvfbGYADuCh5oNhfX6gbbgO4tAk YC9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YNoHMl8H; 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-62514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=2; AJvYcCUblp4196WZDcj6wi1tPHJT/2ObTtqp0XteKty3oP9BZLc11a85+7OW4m+afC66G80Y44H8oQiwWAVRvmCsP35XzWktWUxUHA5S4jNc0Q== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b8-20020a170902d50800b001da105d6a6esi142114plg.523.2024.02.12.15.04.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 15:04:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YNoHMl8H; 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-62514-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62514-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 95D12B2200B for ; Mon, 12 Feb 2024 23:01:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AA174F5F2; Mon, 12 Feb 2024 23:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YNoHMl8H" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 CDAB951013 for ; Mon, 12 Feb 2024 23:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707778883; cv=none; b=mtyNMZKkUWJEGIV5sEY/uMdbA70VErXZk48zdCz2zZNhyVaGj//p8i6aZ+91z2/KBy9FUbTDupSPjN9TuDccPm7i7SDiD0ZT4mBsxJIsG0vDjpptUBJoADO5rkHc7IImvjaLSJkSlmufwu2sq5sL8f2Y+Vsaalo82zTQp1fojMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707778883; c=relaxed/simple; bh=tTpbh5UfZfyy28Rs/Cv2qtnww4MwOrI6Z7e146A9LpI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JeVYs7WV99/bdUwBCceWHjnx6tx4yEe8FaboTVJoMO2foZeRN80oF7LQbFkdCr/c0vlOrRVONCHCWAXyzdBZGV7g99urZkUUjxpcdCK4ACtAjKLusBLHK8bTkrZzzlth6mf24cUgV8YEFLuSOLDttpjnrm/xlAb/4+PzWxKNPDc= 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=YNoHMl8H; arc=none smtp.client-ip=209.85.210.172 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-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e08dd0fa0bso2545014b3a.1 for ; Mon, 12 Feb 2024 15:01:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707778881; x=1708383681; 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=FzsjrPnusIaHUIYYiKKdbD1PNR9YsTLIdgA5piLTr48=; b=YNoHMl8HoMvf8bHoQ14GAwd8t1a5Tz1VLxpRPT9+25A8wfNg6DQhOHiIXVsgyL/7ph kjH+DoMMK4X+8kyCZW60fFI6ixvJZH8IRakeT0/mlh3TVkwU8oJze10u/z6Q/M4cXq8X +bXouy3+5739nJ7PwDQieSRut2Qe8ERkrzO0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707778881; x=1708383681; 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=FzsjrPnusIaHUIYYiKKdbD1PNR9YsTLIdgA5piLTr48=; b=BOqrnZYgHUCBrQs9awuYVIMrQlP+/v8lZAgq3Ibg3U/CoBngJpOmI3LncyGmLMLs6X nPK5o//5GfhLsjhRF/Hh2Zg0c91pvFYKkndHPgKw97NU7fSz13jOiAxjbE13Zwj3aENP mvisvD0w5iQu78WyuvCQB55UKtwUAkrQvjmd4g9QQOUSb/B18TAjarp8eTZeZJ7/BAvY VopL3ZQ7w5RSWhHis94e2t3LjjIl3zIYNhLNslciTxAY0/I2J7iwq9SbPUo9HipWlwtr PR6AyAIUqtmfC4o4T4ZLGEXil1VQF9yFN9cclM8tXfz5rXBr5Uu/C6zgEtO3M+HIxmKP MZVg== X-Forwarded-Encrypted: i=1; AJvYcCVNxQ3gCeu1HSIueT1PZgtUYTeF5SzSqU4/nhROImXQFM59heAaTYPp2WgZPO449D/tQOtsglcrjfNCONl4rUvv/3GK5TSaRBkNWzz0 X-Gm-Message-State: AOJu0YxiQ1VwBJXflAizQMYl8GWCIqzBwkTo7Q/0Z1/Irfnbsfp5R2wi +zW1IY92oEM/GPgl+r+2T1BM6zYMjUg9dlxnyhFjKqXjiXcc1/cu+c5tAUdoLg== X-Received: by 2002:a05:6a00:194c:b0:6e0:6aaf:5e57 with SMTP id s12-20020a056a00194c00b006e06aaf5e57mr1150993pfk.8.1707778881054; Mon, 12 Feb 2024 15:01:21 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVqPDglaouwlesQHnb43T4Isv16NQxb4dXSRTJuJSE5aNgdLn5NkEJGctOyntILaXZQS0mnDZpLVHN+/xwOB9IoAgg9x0u29PK/IhT7vjo91yIRFcPvoSMBYBFTzt+86JDN1jgMokFHBEXgSllBDYGACxIo0zUFX17bzZBEU7NwjPK5esvpkzsm8ibJaJyYxi2UJsA8zbTPNgaMTjZhnLBqFB+AILhOnQMu3xiK9ZU4f7GtCTbRmKaQQgFh0z0TRcxbJff4bi+eT3yTtwdcnSLjIvBdWA0x+ELkk+GqvBo+wxUIMd3R/SyxCqpTCriDuDr9DirngV3+ShKRVfu2nluGcwRSZfrhSjApbK/fCGIR4/LdLALZhVz/s56pny6O3gcmucfFvYV4odX4ckaTFciS8AJBREeUfEUPAnq8fWaB96nB3adrPIkjaAnXVxmnTdxL5X6oM/t8wis1hvXbcOnobKCN9fFEDPgjNVeA+QNqNhdzD3YRnTrs3sRnZeZs0tuUf0LW4+UtqwmVIsYxmql8pL7fOpAREfPaCHgqX0NFpVieKkvY0fMMnu3nRh0xKbfllsY9sjEzjpCwyZQCJ/CKBP9jT9n6AKjiVTNe50JwZj4ZeSvaC/a6uMZ0lhgP0nfkvvI7EFxu+TtZRjrzuIHn6E+fxmBlhHOCFV79XFx8fJc/wu0AHsf2VzlWSUIzFXGqPnNMDjAzpTzvx/l9cNLUx4eRQl6ExPiTPL5iDDwJCxAOJ7ppGA== Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id r19-20020aa78b93000000b006da19433468sm6077507pfd.61.2024.02.12.15.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 15:01:20 -0800 (PST) Date: Mon, 12 Feb 2024 15:01:19 -0800 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, 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, 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, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.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 v3 22/35] mm/slab: enable slab allocation tagging for kmalloc and friends Message-ID: <202402121500.68DFA4A32D@keescook> References: <20240212213922.783301-1-surenb@google.com> <20240212213922.783301-23-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: <20240212213922.783301-23-surenb@google.com> On Mon, Feb 12, 2024 at 01:39:08PM -0800, Suren Baghdasaryan wrote: > Redefine kmalloc, krealloc, kzalloc, kcalloc, etc. to record allocations > and deallocations done by these functions. > > Signed-off-by: Suren Baghdasaryan > Co-developed-by: Kent Overstreet > Signed-off-by: Kent Overstreet I'm not a big fan of the _noprof suffix, but anything else I can think of isn't as descriptive, so: Reviewed-by: Kees Cook -- Kees Cook