Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2732338rdb; Mon, 12 Feb 2024 15:02:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrdEXAhHvk+GA6L9eiBfOzIfxr0HdgmEigi+BmczbcOgKz2dnjB0aCJ22XpQF8EPlCVCpWsYAuNYXlR89qx3Wp99QjsQTX58CuzLML0g== X-Google-Smtp-Source: AGHT+IF9FwDFklAhHtDp32vMEBvI4i5sFuMubzzbCllawlTGgPWAvn11rC1GGGQb2PRHMbJlnxlF X-Received: by 2002:a05:6358:63a9:b0:17a:e013:9586 with SMTP id k41-20020a05635863a900b0017ae0139586mr4422791rwh.29.1707778972408; Mon, 12 Feb 2024 15:02:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707778972; cv=pass; d=google.com; s=arc-20160816; b=bPvq+CEea0MX7dbC2kntDD5Iy0v0wHR4vfCK1g+DEkfVn3P/dqO/qVlKHRyrLu6wXW /RV/yo588hn9ogkr5kl6Za7IBpRQlBTZwaYGP2mQQ8wOTx1TM2d6CsB9dRDjl4iexYjq eHsR4nMv+n00T9O4sT1mCscybjDV+hB5qh6oSZi0SEs07RYB2qjGNs2zG8Ds3EICqpxG Zu+hxCaiNneIR1uHTVvNSgW+ZapAyQ+NhEunexARg0wpHK/g1AJlO0P2DxTMcGDaxGEB hY1FEKhtzJv5MltjUW0d7rUey2vocGGacXUtSQxyI9qLHQS1txqYrscP+5/vk0t97g3z cY8A== 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=y6AxC+gFNzLegoAwuSB5/O4MPPTQdLkk2fG8bSEFU8c=; fh=MldhnVCxW26lOuph1p2xrBIkvBYFk0t9p7pwKWFof1Y=; b=MylmEtInyeokcht4aZ/SVfUYQV+6ZlGWwgveqlhLPPcB10AW7ILzZhd3WlbdDGtNTq IhC3sWz9Z2y5Q/bbvhl+3nDxFDLDnu9cc5bRmZflqZdI5yeUV7PtSTeF5mNLeL4WukCZ 4LrxpVjX6RBW7d3+5GUw238NMOD7qx6BA0j5LBilFwXxpL6HPdrUiDZCdmiu4ffudCmJ y7HBDXj63Yip6r0vZxStEkdahAnps0UbL/YofOlYWfOSe3VJZm4dLlGoVpZURWVxT0EQ NDQlVyULzvoDdHL2f2J5ylMoSa3eDT00PdyTpS21bTYxGcUe3SJcC2FAtOq0WzGcpGoq TDMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CSHsxssM; 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-62510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62510-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; AJvYcCU8Co14w/VdmeVt7XUcLp89RX9sEBYHzmDtXR7eeB1GBUD3Il6+h7SJySgkv1c3PPlYrnQp+ZU4WTqkcZuuhKs1CDMqqF7COkuQJrXseg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p25-20020a637f59000000b005dbd9c28c62si886465pgn.539.2024.02.12.15.02.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 15:02:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62510-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=CSHsxssM; 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-62510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62510-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 F06C7B230FB for ; Mon, 12 Feb 2024 23:00:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 213CA4F606; Mon, 12 Feb 2024 23:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="CSHsxssM" Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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 C5FB951005 for ; Mon, 12 Feb 2024 22:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707778801; cv=none; b=kOiogDigRiiLNh7Z39e5FHrmj/pdXGY5z9ZdTEwWQbVOpqyKF0QbXeaTDiWQ1ORrkS3LLwdBveLBfYHBISzxy0ynSSdzMfv7e3jO31qjMZrxdEATun91SWeuWTVlJ/DcaJ/iAswCcUJA0XaHE+t+cWQfTQVwlFSG8xPozGUa9lY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707778801; c=relaxed/simple; bh=aYY2Rs2oW/xk4wvqKVnHjM5RBsMS+W7rJ4ZfUJGebUI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IKn8QrQ0n3w+cbGXodsdlL/Y4RfriGI7RnIM6SlGtnK68IOD3PAmuRZHqTqKrRr/hWaAjGuoCXRNTD9vrZv7SRlTH2vFux6WGlgjehIrxVyOe96gHswWMqxAR707EYdg0wPHTtu/gIeyNO/N1WpXaQptweobaqcd/WZaqZf2/es= 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=CSHsxssM; arc=none smtp.client-ip=209.85.210.45 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-ot1-f45.google.com with SMTP id 46e09a7af769-6e2e44aad03so960379a34.2 for ; Mon, 12 Feb 2024 14:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1707778798; x=1708383598; 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=y6AxC+gFNzLegoAwuSB5/O4MPPTQdLkk2fG8bSEFU8c=; b=CSHsxssMI9FixXVytsmRDJhZdsRn9ZYT//YUZXzZ5VtUokI5Mm5H4M9E1UmXM+xU/8 h7ekOzi+2N41WsdclXz5sk8MpFXC8vJFdXlP0lQKafy0NRF0EF0LEhH6mD8N7Or6Qf2K vEI3BrqIsDFZEo1z3zmJlpZ1K/NC480bTbBYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707778798; x=1708383598; 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=y6AxC+gFNzLegoAwuSB5/O4MPPTQdLkk2fG8bSEFU8c=; b=w8veMaKIuzrnNGTrflqrPJ8oLT5b1+qdP3GIsB9Jfps0c3mYNuCBLp3O1ABJPVxo00 vAx4qaIQq98+43zS985K79YcKyQkbeoAtpp1OhHQ73RekDHzhnsXliVjMuoYh+zeJd2+ APGjZuDAmRRU+liRTnxtrJn3/ENTXLb/IFBL/WG71v/pjh7WW+KQidhvbuXSC4gxC2ZL gUD6b/82MEohzsblAnHzAWjy0Jef9n5BXxcRbR2qusJsmOIsi0hXXS2t7Ti7pchP+qNc xX+Yl+hIA6IZ6u80TP0v1n9WofvCMTxanjNCJe1r+//upuPyi4Xr4IMohT/qUND3WiBu XJxA== X-Forwarded-Encrypted: i=1; AJvYcCUnohiX+ydBHL4Z+50Mfu3oeIDzrbrNU0BVC9x9/r3rMaronL0IaXo75k5F3zjP7IRTfrcXdnUK8LLBkmKurprfY473Z99lVu+jw+vr X-Gm-Message-State: AOJu0Yz6c3HWnzS+fAISTI6MZ+9J5qHY8qQN8SZeKQTUv3rU+A/evNc2 IGfy3B1MfKweHeOyEwMY/lrbGipnWSRj+xiv880V1XMarKv9PSMv+kj37bJwCg== X-Received: by 2002:a05:6358:717:b0:176:3e0d:8a36 with SMTP id e23-20020a056358071700b001763e0d8a36mr7448969rwj.0.1707778797911; Mon, 12 Feb 2024 14:59:57 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUN/x1eVaIcn54RxZcQlNsO+ucIPMk7vlyGVyb87st4NyQ/iZ5l5eTz+mMvz9NX05jSKiZ7ZYO5ITibQUWmRc7IEE5sufBNZd2s8GtAEKSyxpknXaVNC9tmfgDMUJR9NYKVlEe/1LnldNDMUfaVmNHswunnZihDs4P/cvAafcI5W1vrHt8V4+Z+bO/k1ZTsPWxRokFSjfm6oCTiLjrrP4auVfEEOpepy7gb186UC3MH+XFtfPqQzSUY796e3OjPPwec8NsPkF0A20TiWDOFlAk3uNFcDoC4ngIlqIwrH9914N58Ba0PY05+q4yO//boTwxmNncZmfC9Phux3mDRTZQCfx7swsk9ps8J1y15zrHI9KUOqyBvcIYAbwWVl1G1XQbWAs9oo+aZikxTLaedFUex+JS992rESnig9RhrGExdrpNpjrhRHzO9mBxFPQQqkElUlL9icPTY9fTP8M5BjI7ayc7E5RQdtrdxpmMnbkR8a/E+boRmW8Fm3yrvR+qY8h/wetMaTa16l+tuMMMS1qVK3sxFtgyJ9/3irb0qV9n2X12TpuGrerIcNVx8AnddtXhoDct7E0b0iQqPVoR2gEXyAiXrq9UYPhT74rkEeIDU5eBs/d6G4spgU31W5T0LAZetTYBBRZno0gRcQHgKdiQc2H2OD64kIly/FXTx0a3EBYTi9MKcHcNIbKzwz07Las74bFVxmpCmDa9K+RptA9QWEyp3fON09CgBZ+rjTkTikn3L5bdPLA== Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id z16-20020aa78890000000b006dff3ca9e26sm6089537pfe.102.2024.02.12.14.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 14:59:57 -0800 (PST) Date: Mon, 12 Feb 2024 14:59:57 -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 21/35] mm/slab: add allocation accounting into slab allocation and free paths Message-ID: <202402121459.DEFAB0280@keescook> References: <20240212213922.783301-1-surenb@google.com> <20240212213922.783301-22-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-22-surenb@google.com> On Mon, Feb 12, 2024 at 01:39:07PM -0800, Suren Baghdasaryan wrote: > Account slab allocations using codetag reference embedded into slabobj_ext. > > Signed-off-by: Suren Baghdasaryan Reviewed-by: Kees Cook -- Kees Cook