Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp117237pxj; Tue, 15 Jun 2021 21:41:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiC61YGdDAaWhF/iFwoxtGzelCWMl+TN0r3xa5cY7RfeR0BxAVfljuLpn79m3ZGrP9PXMw X-Received: by 2002:a17:907:35d1:: with SMTP id ap17mr3273390ejc.79.1623818464083; Tue, 15 Jun 2021 21:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623818464; cv=none; d=google.com; s=arc-20160816; b=D+ozfW/ZR6aMBGhCp0rbpot11YFgn1xheuGRLc+ZY/fGTFlD+1KWpZRlJq1d50UDU+ OVYaUAJFFyWkEB2GPxpcW+0Opj/EzCcS8CcNWFAX15G4Yimae2u5PGU9ppJnhzNMP4U8 YigBrB7pUTyaMzSIUF9ofFf4g0UG2K+/sVAikoZdJ1inI/3sGnp8e35J02acyQd+nOSX xJNNmU56KJB2QX3zruBovyyoC5ul8DQy/x7qvnpxrjRCyI2yjnz4qJJC08FflPxWGBiu 3QUGOSlRah0s7CV3qD+X0CJf4FkzaEJwM3bKpxOhE3N6Ktzp4Zzqt3RvgLtxBk3cexyZ KD6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=5w3M3t3Z4U9itzhliFyQ9k6bBdvkeu8fXdsAtgl3rqo=; b=Uk0NmHJbCGwtmF8s7ooNx0i4hpCIB5vaBopyRkypw4n8rhRf7MiY8QyEK/E61dyn1t jEDG6k6Ime3jws784VzxqFYqe/GCqES+4N797XHgkBiLciUylCFiAvPnzPxwBAK74Pa6 97x+WUHBhoc7+ME4pI0zQe8e2IrmqVKn7WXuYqt9FxKKNDOacyPgW9RMEf/FqLcYXR8r XbOE2dVlT9UV3yQzpOie66ropfPdc65jCY3rVfSH6ZMZaqFN8rsIanxCvF01ZZd7ze3M +47RMtjbrHRgezMJACzVF4VLqrXTdPmdGozqIRntsRdq7hoiKH33wg2J0n+yNLpattii nSkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=BhoZH0Nr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si966536edv.536.2021.06.15.21.40.41; Tue, 15 Jun 2021 21:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=BhoZH0Nr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbhFPElv (ORCPT + 99 others); Wed, 16 Jun 2021 00:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbhFPElu (ORCPT ); Wed, 16 Jun 2021 00:41:50 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C79C061574 for ; Tue, 15 Jun 2021 21:39:44 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id 69so478799plc.5 for ; Tue, 15 Jun 2021 21:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=5w3M3t3Z4U9itzhliFyQ9k6bBdvkeu8fXdsAtgl3rqo=; b=BhoZH0Nr3ZHtpXLjF2kiPY7YRdY/6qIXrextonsCRJ2vn3Ezw0B6jrysimae7W7qYW GJT+ozMHK5wtRIoAwyz/ClsSc9N8NjfRoqLmP+nkRlD07lAlZHdxBXpDjiEXhF1kl+MA k7rvWoYBPTW3FwCCoyeB+RXgdsINqgpyon4BM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=5w3M3t3Z4U9itzhliFyQ9k6bBdvkeu8fXdsAtgl3rqo=; b=ppX9pYJX4aL5wYRSmt27oIL018Yu5jZMTxKEDkLCnIoW9nD4O78vtdpoaPMtM28i3/ 8ytOsqjVeMXN0N9esonT3PcJb2YnOKc/w2Pa3ue4ZztmsfiAbYmcsx3u+v3U3sntnrW+ wAKA9cnvdkL9S6PWk4tpPsqI4210B1sGGd3sEP6r0LNfRpMHhmDp/1iSMAE0h5Autk2A AsW1Y1rbFNPy8+AYIgN6unzC7JE8ihpNloMVvtyUKWdKYeD3bRRulY6BlF8nRb5ebT9h vHMwQt5uRtxvSmTmpJLPYp9djwjfZNcipI9y6IohQmzHsxpPUMLvSM8bedfiKm+/siV4 3cPA== X-Gm-Message-State: AOAM532KYwfACdsJcETpEfXWVyyvbzczoh7/2+hF3HcO8QvCPRkFMeAF bcoCf1RRA9X4tLRgq7Z+fRWCvhJ09ns6yA== X-Received: by 2002:a17:90b:1805:: with SMTP id lw5mr2950044pjb.120.1623818383687; Tue, 15 Jun 2021 21:39:43 -0700 (PDT) Received: from localhost ([203.206.29.204]) by smtp.gmail.com with ESMTPSA id f28sm732424pgb.12.2021.06.15.21.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 21:39:43 -0700 (PDT) From: Daniel Axtens To: Marco Elver Cc: LKML , Linux Memory Management List , linuxppc-dev@lists.ozlabs.org, kasan-dev , Christophe Leroy , aneesh.kumar@linux.ibm.com, Balbir Singh Subject: Re: [PATCH v12 1/6] kasan: allow an architecture to disable inline instrumentation In-Reply-To: References: <20210615014705.2234866-1-dja@axtens.net> <20210615014705.2234866-2-dja@axtens.net> Date: Wed, 16 Jun 2021 14:39:38 +1000 Message-ID: <87im2ev2wl.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marco, @@ -12,6 +12,15 @@ config HAVE_ARCH_KASAN_HW_TAGS >> config HAVE_ARCH_KASAN_VMALLOC >> bool >> >> +# Sometimes an architecture might not be able to support inline instrumentation >> +# but might be able to support outline instrumentation. This option allows an >> +# arch to prevent inline and stack instrumentation from being enabled. > > This comment could be moved into 'help' of this new config option. It could. I did wonder if that made sense given that this is not a user selectable option so I'm not sure if the help will ever be visible, but I see that we do this sort of thing in Kconfig.kcsan and Kconfig.kgdb. I've changed it over. >> +# ppc64 turns on virtual memory late in boot, after calling into generic code >> +# like the device-tree parser, so it uses this in conjuntion with a hook in >> +# outline mode to avoid invalid access early in boot. > > I think the ppc64-related comment isn't necessary and can be moved to > arch/ppc64 somewhere, if there isn't one already. Fair enough. I'll pull it out of this file and look for a good place to put the information in arch/powerpc in a later patch/series. Kind regards, Daniel