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=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 C5C71C433B4 for ; Wed, 12 May 2021 12:12:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 6B80461370 for ; Wed, 12 May 2021 12:12:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B80461370 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc: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=F5ZQ+r+BQ5zsvfNpqdukHnx0kVK2FLr2R7/zNAN+k4M=; b=GceO8Oj4wgTyF4nqxsqQ42oNt qa6ByKappPBCuuQkHGlCgetgJIXMG/Ih/Qnkefn3YoOhm/hXF6jQtKa3XCjThJJEeNX+X2YvNTStV y0v5GnAKr5zZV12wgrZgr/SDPa1iMVf/94bagwJHuaLRF3vpY8+IvVJC0LJVIyS6fpPZLrQAvFWCW /RvPy93ReiQrHT3F0tvGCT3n0EPJUHVLVFgB7Of5Q6I3acZyzEmcSvhIHo76Mhw0I4qKvVk7dVD6+ 0BTPnWCaxPDoPF0D1WoKdrQC+IGn/JS7qSCNDd/s4BfN17KS4rqVkg2MnSOL0tI2v8tj2tARgxBYg wpzaD7Msw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgnhN-002gt4-M5; Wed, 12 May 2021 12:10:45 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgnhL-002gsk-7v for linux-arm-kernel@desiato.infradead.org; Wed, 12 May 2021 12:10:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=j5MI9G2E38YMp/APmTXFTGAt6N5m68cz4wur3N6mxbo=; b=rvWbIiRR5mvRcp0KmNWkrVIg/U yknkpeE6AyBegcZsHhdKMKeEXjWf3oq7+NecdOdylfvmQIUjQsu5o72PPT1g49GXS5FhoGNuR/J6w Cs4uzLCGDc0foNoEi9rX7MPqgUBPRSWQrDlEq+zS1bT7/k+aenRB0rV4QrnkExwSQ2JXnYL5SW2Qa aufnKCxFB6SWOtlpYA+J2JkrE9apEJBM+hsg7zuaxoAT3TPjZME8e7rM6Ofw5AjtAF+aO6/BaVlgY zIKf0tshWiu07t5SF2FNIadbtM/cW0PhiiOjrCz4h5yfHAiaZ3iJO1GXJEkR6XBlWhv0zu6qGlcqw Oxm9/x4Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgnhI-00AKXl-Fs for linux-arm-kernel@lists.infradead.org; Wed, 12 May 2021 12:10:41 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A21E613FC; Wed, 12 May 2021 12:10:38 +0000 (UTC) Date: Wed, 12 May 2021 13:10:35 +0100 From: Catalin Marinas To: Peter Collingbourne Cc: Andrey Konovalov , Alexander Potapenko , Vincenzo Frascino , Andrew Morton , Evgenii Stepanov , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/3] kasan: use separate (un)poison implementation for integrated init Message-ID: <20210512121035.GD14638@arm.com> References: <441e1c22990205618e1bbff216e0bb83e3b13bae.1620777151.git.pcc@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <441e1c22990205618e1bbff216e0bb83e3b13bae.1620777151.git.pcc@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210512_051040_588969_F27D4066 X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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, May 11, 2021 at 04:54:24PM -0700, Peter Collingbourne wrote: > diff --git a/include/linux/kasan.h b/include/linux/kasan.h > index b1678a61e6a7..e35fa301d3db 100644 > --- a/include/linux/kasan.h > +++ b/include/linux/kasan.h [...] > @@ -113,8 +113,30 @@ static inline bool kasan_has_integrated_init(void) > return false; > } > > +static __always_inline void kasan_alloc_pages(struct page *page, > + unsigned int order, gfp_t flags) > +{ > + /* Only available for integrated init. */ > + BUG(); > +} > + > +static __always_inline void kasan_free_pages(struct page *page, > + unsigned int order) > +{ > + /* Only available for integrated init. */ > + BUG(); > +} Would these two work as BUILD_BUG()? -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel