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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2AEEC0502A for ; Sat, 27 Aug 2022 04:00:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C65B16B0073; Sat, 27 Aug 2022 00:00:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BEDE96B0074; Sat, 27 Aug 2022 00:00:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB4B2940007; Sat, 27 Aug 2022 00:00:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 97C046B0073 for ; Sat, 27 Aug 2022 00:00:11 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 5AF341A086A for ; Sat, 27 Aug 2022 04:00:11 +0000 (UTC) X-FDA: 79844019822.31.6CC4688 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf06.hostedemail.com (Postfix) with ESMTP id AF761180015 for ; Sat, 27 Aug 2022 04:00:10 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A21B0B833B4; Sat, 27 Aug 2022 04:00:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35A2EC433C1; Sat, 27 Aug 2022 04:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1661572807; bh=f6Byd6ChECw5xYH+6Y2y1ZiARHvARqqCPTAE4lA8IIc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WH42edJ2VD3Ojjg8chX+Cg2VHFV1gaB/4K28/BzPpkPRw8aeeF3M26GVWfNIrCF37 52xwpinhWGUBISJY8M7CGFBt4MQlflsw8MwUISTbsV/gAfT3IanZnnQpMTn31QegaE VHPYBQpohuZjp/OaAtGOvl4UOb88I50wPCqk0UHg= Date: Fri, 26 Aug 2022 21:00:05 -0700 From: Andrew Morton To: Alexander Potapenko Cc: Alexander Viro , Alexei Starovoitov , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 11/44] kmsan: add KMSAN runtime core Message-Id: <20220826210005.8e5f3bbef882c35d9c45102e@linux-foundation.org> In-Reply-To: <20220826150807.723137-12-glider@google.com> References: <20220826150807.723137-1-glider@google.com> <20220826150807.723137-12-glider@google.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=WH42edJ2; spf=pass (imf06.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661572811; a=rsa-sha256; cv=none; b=A2i0yiwgRbzwHvP+xh9BViuVMWm3+ROqkiAMqwu2rMNgFEP2EHWZDGgYGcZNed2rlPDF+Z 4I6rtecIjMcTLPhy1s1qFdRAnputdM7XsYX2Jwlp533fZaFih3pwlwLo3DhREfeNVrkknK dAoU6fX/V82Y2ypYlV9o5sAGadAI1Pw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661572810; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/i85bfO59Yp3LlTJbN9mJVhZIA+EpU3oL5sT4GhjDfU=; b=iAqZOx/nRVRaJelrqOdXj8Q2ZYr+hTkMjYcQqQ0gfyhty1UmAy1/w+SbiIioryRiiNIDAT 5GNP07eeTjdYjKIS71T2l6c1dYcpbK9dG6+1IE6sTf2vjseWxBgLz5XSlGvA7V56rTrEXa adW2vOGzBvykrR1KhCgwg6isFnJs6dA= X-Rspam-User: Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=WH42edJ2; spf=pass (imf06.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam07 X-Stat-Signature: i76hqftp5puotmnw388nzta8iodqnn11 X-Rspamd-Queue-Id: AF761180015 X-HE-Tag: 1661572810-149972 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, 26 Aug 2022 17:07:34 +0200 Alexander Potapenko wrote: > > ... > > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -1355,6 +1356,10 @@ struct task_struct { > #endif > #endif > > +#ifdef CONFIG_KMSAN > + struct kmsan_ctx kmsan_ctx; > +#endif > + > #if IS_ENABLED(CONFIG_KUNIT) > struct kunit *kunit_test; > #endif This change causes the arm allnoconfig build to fail. In file included from : ./include/linux/page-flags.h: In function '_compound_head': ./include/linux/page-flags.h:253:44: error: invalid use of undefined type 'const struct page' 253 | unsigned long head = READ_ONCE(page->compound_head); | ^~ ././include/linux/compiler_types.h:335:23: note: in definition of macro '__compiletime_assert' 335 | if (!(condition)) \ | ^~~~~~~~~ [10,000 lines snipped] A simple `make init/do_mounts.o' sets it off. It's Friday night and I got tired of trying to work out why :( I don't think it's kmsan's fault - seems to be somewhere between include/linux/topology.h and its use of arch/arm/include/asm/topology.h. Shudder. arm defconfig is OK. I think I'll pretend I didn't see this and push it out anyway and see if someone else has the patience.