Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1464574pxk; Mon, 31 Aug 2020 22:00:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Q3OWQEfs/OFhze/aC6jUXJ1AOpp8e1QQ2DbfWeDCHp7Ss3TAlUdUrWn2FL2AmZ1WBZ/b X-Received: by 2002:a50:fb18:: with SMTP id d24mr190968edq.149.1598936442583; Mon, 31 Aug 2020 22:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598936442; cv=none; d=google.com; s=arc-20160816; b=FCuMxURY1aFJUOQceBjZE8GtpT/WGZjubdNiQ7Le8C+W7QfHLasKPDD4b3AMN3wST2 zK3sS4b+jeIZuFa8kEuQ2QDjN40XrZ9mOOdmVkfU2UuvJDyQ2YEWj2vrGtHKLdlAxKxN tF+HW0BVYNM4aTqD+ljiIp9YLstMgigozoQntX5YlNzLJrJYgbiADkLKmewP1j2ra9Ov D6zwtNyK3ddhoTX57Tznb9hulUnQYsY78aPu3wZ90HTvN3rlVXk7qPxw8yM3fGyg7uRX ghu6CkZOD+bzOOe0j2P+zgsIdg5hgmhrfvrkzj8usnRVXmjuOYDRp0YM/CsIzXX0hUjd tGng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WkMMV5KfqKlAUNBzYZCx8Wlk7RJHSHOVVyqgVoAjcfI=; b=IvBDDya7dIh72JGt4KXjBS6rzGF3HliHXhRtg+jkxxAPhyTh1b2b3/4GuaS4Kwd1On RV+N2xZufT1VtMdt6SqXude+weRhFfh6InA+l5AfYxeGKcb8M48v2PT7d8qm5NlNHxkv iE8ISCeZDzROcAV/vf9NPNxqNl3jCF1GToTN7fVjHrOpXxGOJ8ncppqqCzV04uNlLSbR oaJ9O4ASEE3/NK5UZvh/EhyX6Z02Lszf5iexTfxcBCpWZOg9CV+g1lw5ODjRfDrGO+cu uUwF5jZDfUCda704rCbec+GwEJSAXRi/lQ0bjDm2+lla1J4//pG+rmqr2NMpKdR/w/Vw wj5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=edgvh+aX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si6228077eds.46.2020.08.31.22.00.20; Mon, 31 Aug 2020 22:00:42 -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=@gmail.com header.s=20161025 header.b=edgvh+aX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726117AbgIAE6A (ORCPT + 99 others); Tue, 1 Sep 2020 00:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbgIAE56 (ORCPT ); Tue, 1 Sep 2020 00:57:58 -0400 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C6A7C061290 for ; Mon, 31 Aug 2020 21:57:56 -0700 (PDT) Received: by mail-qv1-xf42.google.com with SMTP id m14so2224766qvt.1 for ; Mon, 31 Aug 2020 21:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WkMMV5KfqKlAUNBzYZCx8Wlk7RJHSHOVVyqgVoAjcfI=; b=edgvh+aXOxwB9ngwCe0vRggHYKm6bej3nmlusDc9EU6i0wiw4po7g2IYU9yeWgJSP0 L53Sh+IEGIodrvvbv9Ddfh5dDaEnNZHYLmlmAG8u8f5MlXYrs+io9S62XMi/+zLc7Z6J 8nMW58eScu3xlBtNEGoq2Vn1Kc84V6grNjfwRA2oiO5hetymzYHDJr/pffb4riKwN3Uz sUnsV76BZOVxLFS00GGYWEX2IJLTUokOANPT/VqgYZRk/Wj2A9MhSn3RDK9sCvMi2SeV wL0WJmG6/lnbH5ZjLuj5NCHsRUxEfUYKGk7h3cksUVdtNhktN7cibrfnf0/aPnWQ2Pbq pXYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WkMMV5KfqKlAUNBzYZCx8Wlk7RJHSHOVVyqgVoAjcfI=; b=rw9aQS7ap9F9rpM1pCeP8KjEZBL7LWxyuV52XXrOduRdqKDWXTKsj+WzgRhWohKpPu 2FsUKXpsS28AtodxZUICB4VH3iZ/ctRZWqXozIyjdIwAhmMGQBhWwL5fnDBLQISfERJi kr+Zo4ip0VlYFnlLlXCN9m+w14e2KQl4UaSFwCt0/7DgAMMKj+aYh9b2kT9/6YXD84tP mURXvg7ahwG4FutlRkuOBkmOn2LepYfZCoKiE5r9d/kkP1TLJJwVVHkZOrM+cQUhtX3v Eho0cWCB8ZEHg3BrxA9vlzrRQPw7MGuiiN5FipUF1Vv6ONJbnJdLni6q+ieZx3YnXdcJ 5KwQ== X-Gm-Message-State: AOAM533jYZV6a0tbX5G8iMfbFTeQq6ta5M4AQKEs3aIfC0dHUacVlYvp f+qLqGeRBzI48LpFK2BPVC0= X-Received: by 2002:a0c:e844:: with SMTP id l4mr193470qvo.154.1598936275487; Mon, 31 Aug 2020 21:57:55 -0700 (PDT) Received: from ubuntu-n2-xlarge-x86 ([2604:1380:45d1:2600::1]) by smtp.gmail.com with ESMTPSA id k185sm237276qkd.94.2020.08.31.21.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 21:57:55 -0700 (PDT) Date: Mon, 31 Aug 2020 21:57:53 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Andrew Morton , Kees Cook , Miguel Ojeda , Sedat Dilek , Marco Elver , Andrey Konovalov , Masahiro Yamada , clang-built-linux@googlegroups.com, Daniel Borkmann , Alexei Starovoitov , Will Deacon , Vincenzo Frascino , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 6/7] kasan: Remove mentions of unsupported Clang versions Message-ID: <20200901045753.GE1561318@ubuntu-n2-xlarge-x86> References: <20200901002326.1137289-1-ndesaulniers@google.com> <20200901002326.1137289-7-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901002326.1137289-7-ndesaulniers@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 31, 2020 at 05:23:25PM -0700, Nick Desaulniers wrote: > From: Marco Elver > > Since the kernel now requires at least Clang 10.0.1, remove any mention > of old Clang versions and simplify the documentation. > > Reviewed-by: Andrey Konovalov > Signed-off-by: Marco Elver > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > Documentation/dev-tools/kasan.rst | 4 ++-- > lib/Kconfig.kasan | 9 ++++----- > 2 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst > index 38fd5681fade..4abc84b1798c 100644 > --- a/Documentation/dev-tools/kasan.rst > +++ b/Documentation/dev-tools/kasan.rst > @@ -13,10 +13,10 @@ KASAN uses compile-time instrumentation to insert validity checks before every > memory access, and therefore requires a compiler version that supports that. > > Generic KASAN is supported in both GCC and Clang. With GCC it requires version > -8.3.0 or later. With Clang it requires version 7.0.0 or later, but detection of > +8.3.0 or later. Any supported Clang version is compatible, but detection of > out-of-bounds accesses for global variables is only supported since Clang 11. > > -Tag-based KASAN is only supported in Clang and requires version 7.0.0 or later. > +Tag-based KASAN is only supported in Clang. > > Currently generic KASAN is supported for the x86_64, arm64, xtensa, s390 and > riscv architectures, and tag-based KASAN is supported only for arm64. > diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan > index 047b53dbfd58..033a5bc67ac4 100644 > --- a/lib/Kconfig.kasan > +++ b/lib/Kconfig.kasan > @@ -54,9 +54,9 @@ config KASAN_GENERIC > Enables generic KASAN mode. > > This mode is supported in both GCC and Clang. With GCC it requires > - version 8.3.0 or later. With Clang it requires version 7.0.0 or > - later, but detection of out-of-bounds accesses for global variables > - is supported only since Clang 11. > + version 8.3.0 or later. Any supported Clang version is compatible, > + but detection of out-of-bounds accesses for global variables is > + supported only since Clang 11. > > This mode consumes about 1/8th of available memory at kernel start > and introduces an overhead of ~x1.5 for the rest of the allocations. > @@ -78,8 +78,7 @@ config KASAN_SW_TAGS > Enables software tag-based KASAN mode. > > This mode requires Top Byte Ignore support by the CPU and therefore > - is only supported for arm64. This mode requires Clang version 7.0.0 > - or later. > + is only supported for arm64. This mode requires Clang. > > This mode consumes about 1/16th of available memory at kernel start > and introduces an overhead of ~20% for the rest of the allocations. > -- > 2.28.0.402.g5ffc5be6b7-goog >