Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp941763ybl; Thu, 12 Dec 2019 07:18:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwNxVIDTZ00cDReJB3VPYIzQ+1oGKZH7D/fOWePCUlK3GeByEk0Z6H4/87dKS9jIfP1jyDp X-Received: by 2002:a54:4511:: with SMTP id l17mr5388889oil.91.1576163889535; Thu, 12 Dec 2019 07:18:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576163889; cv=none; d=google.com; s=arc-20160816; b=o5RxW5VgX4qXBZYeopCsl/fD7whx8O5LV3mPUtnhVl/rVNz959L6KcE1ZKlCrhu6X2 N8RRkuEy/8mehglFd5KDRkgVConSKpKqbCOxco8d+8IMD2ED9I6fpGB96l5EhfxbOTOp SY9mvXcpNAoXX2P7Yi8EchfuUFIzCzB2MSICkH/L1P2n0oy0UL7MaxnWACWB0o9oSLza ntafpe6299naAVC+3vXNzRBCxaHZoEY+SviGYP10e2nXqBXZKFh3FCM2xqh8VkAWmS3H agCItvYUH0lk4BtUR1hd42oYrm/6G233qvGheywvrRZo2bXn8AVgqUUOy59Tf/eUKazC gp+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2sxbAlXpABK/W64yfjeUTt7MDV8jfwT8E3maFR+CaL8=; b=iNHSSIO0hw9NJAfKmoxXJVGF/QcnAsRrPwQoxYqfKW2fYZVFW6/f+LkKx130Aia/48 BV557i0WUzbJMjdBcPgM6cq4ExZtHq8digltbxMTko9ZEe5Qqw0WhfBrEu4ZVsYSNz1T apXw973u2+g3MGgZkjMJW/v5C/usns9mfpQKLDTL8P4/j3ICh3KjtyybV5I8hutsq7p7 t3synGnIJMRxJC76yOW3Ti5bdWDxsuXKzlCnSHAS2f5zH7l/hBoJUl2H/CkC4+D7jiVb JZfdADDAWwEetJHM4aVYwh7yrGEPEUrWattHcHheJuTfEDHIf3NYDzJDVn7gCjsScPAK 5d7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b="Oy/hnAfK"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si3445658oic.27.2019.12.12.07.17.52; Thu, 12 Dec 2019 07:18:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b="Oy/hnAfK"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbfLLPRM (ORCPT + 99 others); Thu, 12 Dec 2019 10:17:12 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45860 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729262AbfLLPRM (ORCPT ); Thu, 12 Dec 2019 10:17:12 -0500 Received: by mail-pl1-f194.google.com with SMTP id w7so708686plz.12 for ; Thu, 12 Dec 2019 07:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2sxbAlXpABK/W64yfjeUTt7MDV8jfwT8E3maFR+CaL8=; b=Oy/hnAfKot6VhCvK2GN/HZUavI/Bja8s76lKRFwKNBv0WIvnCj5sLr9ZUFoKKK76Dq AkA3a0Gw6AOkyVQzcYvoeV5MXxrSNx2unPqwyUoCbUMuiZl/g4FMJhMs0cyeCQ3Vydo+ KwGV35RCEfpO49yPJJQpSRyKsjHcIIme8tAQQ= 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2sxbAlXpABK/W64yfjeUTt7MDV8jfwT8E3maFR+CaL8=; b=Sa54sM0lahN2UEO9AEoThRVNBeHr3qJTVv8c5d7emtIcZxnXE0pitNcZO2oXI9Atga 5CWRhBDlzN0zhpw+DxuPHuz7tfypH2iqVdy63BMH2nfESEqJK4ULZnd9j5D6odwnQyes egCIJ+NFcH8YCU0ih1lye8POohcU/m2vBbMD13fdYvuT6MRDWX0I/F97N25CRkxE1Ms0 43e/riUd5FsLtX/0O+xeWarsCI+7xSwsHaWn2pdl8N7hwwyuHd8B3oD7IamEl03mISNN 7Fepx1U11Kq1jxHrLWOXCNaAgio8ND6w5HVN7DZOVJLaELM6iVwGxTrvNYA0kzNBkG0R QzSg== X-Gm-Message-State: APjAAAU4eJcRapf0bh0fuvUwbUSSDifHOJRdAjUr0oV6ItcVoiCIUPyU aNXolAeiH2SeXEnuIYjP+ZQYCoF1RAw= X-Received: by 2002:a17:90a:8a98:: with SMTP id x24mr10744727pjn.113.1576163830706; Thu, 12 Dec 2019 07:17:10 -0800 (PST) Received: from localhost (2001-44b8-1113-6700-b116-2689-a4a9-76f8.static.ipv6.internode.on.net. [2001:44b8:1113:6700:b116:2689:a4a9:76f8]) by smtp.gmail.com with ESMTPSA id j125sm7954574pfg.160.2019.12.12.07.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 07:17:09 -0800 (PST) From: Daniel Axtens To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, kasan-dev@googlegroups.com, christophe.leroy@c-s.fr, aneesh.kumar@linux.ibm.com, bsingharora@gmail.com Cc: Daniel Axtens Subject: [PATCH v3 2/3] kasan: Document support on 32-bit powerpc Date: Fri, 13 Dec 2019 02:16:55 +1100 Message-Id: <20191212151656.26151-3-dja@axtens.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191212151656.26151-1-dja@axtens.net> References: <20191212151656.26151-1-dja@axtens.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KASAN is supported on 32-bit powerpc and the docs should reflect this. Suggested-by: Christophe Leroy Reviewed-by: Christophe Leroy Signed-off-by: Daniel Axtens --- Documentation/dev-tools/kasan.rst | 3 ++- Documentation/powerpc/kasan.txt | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Documentation/powerpc/kasan.txt diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index e4d66e7c50de..4af2b5d2c9b4 100644 --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/dev-tools/kasan.rst @@ -22,7 +22,8 @@ global variables yet. Tag-based KASAN is only supported in Clang and requires version 7.0.0 or later. Currently generic KASAN is supported for the x86_64, arm64, xtensa and s390 -architectures, and tag-based KASAN is supported only for arm64. +architectures. It is also supported on 32-bit powerpc kernels. Tag-based KASAN +is supported only on arm64. Usage ----- diff --git a/Documentation/powerpc/kasan.txt b/Documentation/powerpc/kasan.txt new file mode 100644 index 000000000000..a85ce2ff8244 --- /dev/null +++ b/Documentation/powerpc/kasan.txt @@ -0,0 +1,12 @@ +KASAN is supported on powerpc on 32-bit only. + +32 bit support +============== + +KASAN is supported on both hash and nohash MMUs on 32-bit. + +The shadow area sits at the top of the kernel virtual memory space above the +fixmap area and occupies one eighth of the total kernel virtual memory space. + +Instrumentation of the vmalloc area is not currently supported, but modules +are. -- 2.20.1