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 X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27BC8C43461 for ; Thu, 17 Sep 2020 09:38:25 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CAD162076D for ; Thu, 17 Sep 2020 09:38:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vUnpO5Hg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CAD162076D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:Message-ID:In-Reply-To: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nhXMfTjDKf/x8hI5RqhFnlcjYWq3rrBsC3ojjH8mJL8=; b=vUnpO5HgKNZkAELiNKbej8CXE V2qFOotpH+DMJO5V7ukEWz3xqDzu9MuiUHmV/pZf1IiN4u/TS8H7CLEURsvhB641znF85TyRiEzz0 sHonpR0SjBl1Vxkz/NouE2tzWk2rWpid2KU8RwrtrcgyVHwC5P661FCUtT837Y0esrsfGLKXDAKbd 7LqfvVNkv524WnJ/2c6MWTtpRXkKb2TXRTwJXTUuB2YqDDtWi1OtyOSGMBqK6a7rEuzKFckNqeX8F YcKUNznnKh+634+VnH9TmcFtKA6LiuBufP25EYmQOJdqNDXFAaA8V1L3KSiorb92cadSue4lPAYL6 djrJOnkgQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqLu-0002vg-E1; Thu, 17 Sep 2020 09:37:18 +0000 Received: from gentwo.org ([3.19.106.255]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIqLp-0002rm-BW for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 09:37:15 +0000 Received: by gentwo.org (Postfix, from userid 1002) id DED1F3F0AC; Thu, 17 Sep 2020 09:37:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id DBB563F0AB; Thu, 17 Sep 2020 09:37:10 +0000 (UTC) Date: Thu, 17 Sep 2020 09:37:10 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Marco Elver Subject: Re: [PATCH v2 04/10] mm, kfence: insert KFENCE hooks for SLAB In-Reply-To: <20200915132046.3332537-5-elver@google.com> Message-ID: References: <20200915132046.3332537-1-elver@google.com> <20200915132046.3332537-5-elver@google.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200917_053713_456816_6DD41741 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, linux-doc@vger.kernel.org, peterz@infradead.org, catalin.marinas@arm.com, dave.hansen@linux.intel.com, linux-mm@kvack.org, edumazet@google.com, glider@google.com, hpa@zytor.com, will@kernel.org, corbet@lwn.net, x86@kernel.org, kasan-dev@googlegroups.com, mingo@redhat.com, vbabka@suse.cz, rientjes@google.com, aryabinin@virtuozzo.com, keescook@chromium.org, paulmck@kernel.org, jannh@google.com, andreyknvl@google.com, bp@alien8.de, luto@kernel.org, Jonathan.Cameron@huawei.com, tglx@linutronix.de, iamjoonsoo.kim@lge.com, dvyukov@google.com, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, penberg@kernel.org, cai@lca.pw, akpm@linux-foundation.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 15 Sep 2020, Marco Elver wrote: > @@ -3206,7 +3207,7 @@ static void *____cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, > } > > static __always_inline void * > -slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, > +slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, size_t orig_size, > unsigned long caller) > { The size of the object is available via a field in kmem_cache. And a pointer to the current kmem_cache is already passed to the function. Why is there a need to add an additional parameter? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel