Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3467130pxb; Mon, 4 Apr 2022 17:54:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzspy6iwVDmiD8Z+qmbCvoCrfdlCAc8v/k/R7tEpOh+GF40oSy9apYYnGRkGuw4ZRi6YqhD X-Received: by 2002:a17:902:e743:b0:153:a902:8d8c with SMTP id p3-20020a170902e74300b00153a9028d8cmr769678plf.150.1649120081728; Mon, 04 Apr 2022 17:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120081; cv=none; d=google.com; s=arc-20160816; b=laoikluiIBztMK3Hbc3uC+OyEXJucCi6FZqmeIE+liNzv1jKalqxayK0DfNV0paX3n 3Jr7jj4/AIFjNb+kBsd92GGCMsPBSkMfEhkKYIOT2wWTyfNpVSUq7dDApAiJ9sWIi2bI itFkopcmZ3KdjisKyMjlmLu8sYN81Wda4ec/NEaCd7BPP8OZNHY9Ml0hIC5l7qjyYBem qnnymGLaZqA4w2k7bPuRsR1wDbjU0SBQpkZiMt/6hZtpjq5wcI+RrYchHbQy6hwp/cj3 zFG2yvuKPmD1D8gAxt7OPn7JKqsONd6PY9bFz7NJumEf76pA/YuNZUMGxVxozTamVOSN ebYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eAwv7CFZ3JOlEcNj8j8D2/v921PTmZNLQHl33SWwbZQ=; b=dyXPHcKFYTpsFpH+EwK5m1V/jMiRsL3XCmSFWufY02qvCt7cLD+5BKzHF06mY0KWZO SB5w2K/4mpQi+Pf912IXuOC9gAfJ7SLAP/y0TpCMU1KnloqOO27YCY22o7z0R5f5Ghnx kwMcRF0HRfHMOcd+jVGjisHJq5hqw1W3klYh7FqYcaBLuC8gBbphYlefFPUPn2ymTfkE UviuvwRAz8h0/45uTY1A1+V/oEFIDQSZvrXq8L3n30ta77ZIuzVoaFaYI9iAo42jNYl7 44cf2/ldsTP2HmskwBqar13/qkl9Pf4rzPwNFozmO8BffkoDq7Z4W09ZNN4VGmnuX8TR N/nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=pMdBBCRg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s11-20020a17090302cb00b00153b2d1643dsi7025297plk.69.2022.04.04.17.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:54:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=pMdBBCRg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 308B5111DFB; Mon, 4 Apr 2022 17:01:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381155AbiDDVWc (ORCPT + 99 others); Mon, 4 Apr 2022 17:22:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380353AbiDDTnT (ORCPT ); Mon, 4 Apr 2022 15:43:19 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C90582DD48 for ; Mon, 4 Apr 2022 12:41:22 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-2eb543fe73eso52807697b3.5 for ; Mon, 04 Apr 2022 12:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eAwv7CFZ3JOlEcNj8j8D2/v921PTmZNLQHl33SWwbZQ=; b=pMdBBCRgdJWrkxOB7Vi/srVNde9bJufkX4hVHEeS+pFF8yy6ccmz7kB+1UwHKEIDFa JDg37ysNC2VzPqSfgLQnu7iYkS3/sbzzt9U66P4qidAB+SU4mTF1PntYeWGtGxMrXI94 c7VlnLx3YhtB0XEymV2HzG/wPESttE7jFSEYKhmWuLId0C4CdBpHGprn+S1rZ+skseYr R5O2AESDpF9Nha3NUhigFuCto1zYZ+Q5FUlSL9jPB/joOa9jbDMtEx1Y2YhBi+lkRwGp DyTmqM/Fr5UV5yGB2tMELqq9tO6uUup/Raugo78JKi2NLR+3NMDswAsxgK2+Xfgbv0HL ywZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eAwv7CFZ3JOlEcNj8j8D2/v921PTmZNLQHl33SWwbZQ=; b=owQrgGe4kGwCB8KJk9PRL4LHyawLTf51O75kvAwuYCBoiVuewVfUBCtKgv/doG+ArJ jOi6330RW4lQmRZWv+6Tnt4vBMlShO9Cjr1M1SX+Poom6yjHZQlCeQXxd87D9091kvFK c/15dLVy7vY55RnwLHOlhHPOee/7jlHxABmltzuMQC+NBc82FElKfdXnzo2n4D2PB0l9 xw3CM6Zkiu2QoZZncBM5zCc/Y4Nkj0ZJOrg/qsb3wPaioeJrgzPaYeq+MDP6onZ1C5Nf l+eNNWzWpAmSRAEeiLwMEid1K71hE8YQ6UtnEBmHokoDn5nx/2PjxtIiz8qAqhftVZeG PrwA== X-Gm-Message-State: AOAM530RaeyBH7DU65TZTqAeGldjzsUe24b2Shx0vcSGx2Zb3BjTaj3+ oG5nztnHc0gRzESJp/mhzYsiMH+kWF0Oj3lSb2X6nw== X-Received: by 2002:a81:3a4a:0:b0:2e5:a9e9:f43c with SMTP id h71-20020a813a4a000000b002e5a9e9f43cmr1490010ywa.243.1649101281897; Mon, 04 Apr 2022 12:41:21 -0700 (PDT) MIME-Version: 1.0 References: <20220401201916.1487500-1-samitolvanen@google.com> <20220401201916.1487500-2-samitolvanen@google.com> In-Reply-To: From: Sami Tolvanen Date: Mon, 4 Apr 2022 12:40:46 -0700 Message-ID: Subject: Re: [PATCH 1/3] kbuild: Change CFI_CLANG to depend on __builtin_function_start To: Masahiro Yamada Cc: Kees Cook , Catalin Marinas , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Will Deacon , linux-arm-kernel , Linux Kernel Mailing List , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 2, 2022 at 6:32 AM Masahiro Yamada wrote: > > On Sat, Apr 2, 2022 at 5:19 AM Sami Tolvanen wrote: > > > > Clang 14 added support for the __builtin_function_start() > > built-in function, which allows us to implement function_nocfi() > > without architecture-specific inline assembly. This patch changes > > CONFIG_CFI_CLANG to depend on the built-in and effectively upgrades > > the minimum supported compiler version for CFI to Clang 14. > > From this description, I think the straight-forward change would be: > > depends on CLANG_VERSION >= 120000 > --> > depends on CLANG_VERSION >= 140000 > > Any reason to avoid this? I thought testing for the compiler feature was preferred, but I can certainly just increase the minimum version number here too. Sami