Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1056651iob; Fri, 13 May 2022 21:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx73EDIZR1FQVr+31nBpaCBA33bfYOHVI59JIOqviVhVIN1HUo3Id/VMwlgn8pR4KDZ4pR7 X-Received: by 2002:a5d:404e:0:b0:20c:ff93:be19 with SMTP id w14-20020a5d404e000000b0020cff93be19mr193391wrp.14.1652502256411; Fri, 13 May 2022 21:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502256; cv=none; d=google.com; s=arc-20160816; b=wP4RZb6o8m42Q+ahZAIsS3Qt/+PYDaxCoVB8dBNoeFmTA7WIqUAGIh9PN+jbCcjLRO s1T4zbJxDIYNZ+dGFjPTEBdiVQh0mzZ0tlVM8aq/a6xUYBwAFqQW4eOIGrYuS6x2281V /gDt8xUMr296i6+AQjQrOkacGgBSpalug6w4e3QtI7jOiNrQNsQbcb63P6X9srWII6WG EXcSU753SB+wKRDfIx8zLRp1W5Egqa8rCFaTVpaXKESzQql0hLxpf564osxP9fN759uZ BcNMgDI9e3r5SB8WqNHnR4XE0RSbtPxjlFZStiDLpKvZ2xj1wwSd4JQ6/fTBA+LULYrG DDPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=7dzNFqFFreuuGTeKc8mtJ6zzQ7MnT/UZgCYnwegkikw=; b=qvuT6RYVrzMiyzOuvLpz6/0WLBlbPdWFGtkvVXH62Swx5stOov/jKQaK81DGqC0VAz WeMX7Q4VSO59IvQMOKq9jqXTcaDWr7ew+e028FqmkBjEbjTUYnT4jg9M2OobCrcNYp4c md40F+WZEgnhff8GiS4uZYWLrvohltnnOaICGyM23EJM3VxXrEwK8cfxYq/C3YxzZPia mLV4vcQ435L5pZpRhsRB+4Mizz/RcmynUac2T1ks+j7gxsmpJBylDWDmH5Szh5EYB8De DNZ40aprW/6aiNsaZ/Xx4noJwpuv/gNgUIyqg6IgIajSjFSmoNe3jdItNfdkZqQpekUm G5yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=n4tHKOJg; 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 i15-20020a5d584f000000b0020c57ea2a2bsi3830148wrf.29.2022.05.13.21.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:24:16 -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=n4tHKOJg; 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 35887357FBC; Fri, 13 May 2022 17:59:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384117AbiEMUWI (ORCPT + 99 others); Fri, 13 May 2022 16:22:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384107AbiEMUWG (ORCPT ); Fri, 13 May 2022 16:22:06 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B49B615400A for ; Fri, 13 May 2022 13:22:04 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id b6-20020a5b0b46000000b006457d921729so8202536ybr.23 for ; Fri, 13 May 2022 13:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=7dzNFqFFreuuGTeKc8mtJ6zzQ7MnT/UZgCYnwegkikw=; b=n4tHKOJgDtPcp400cFfhloKlxJotstNLkDrF4z8JP1rzR6HPjAR9HOs6jJBLmYOB5l 4+Y2KlsHR5sfl8hlG5Y2YO+uXY1XI0e2TXINNjhFpaz3QIuWawMkTRTCBrjaopQyaxLa cBhG2HDKSrXaUfoLLBgPjgOcp482uo/oyH92PRBXhbRR9yF3onu8TOJ/ZGaqiFzX2+MA ZJ5mlRUuYytvGHLeEX/wYO5xCTnb4kuxxKZm18if4rlYDNnia3kdXzS5XA/U0nmH95AC ve41FgmB9bTufogbJdpviDZ/EZU3vVH7ccMM08Dtf8J1ylIz0SSX0V+uQLGdW5GTIavt KFMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=7dzNFqFFreuuGTeKc8mtJ6zzQ7MnT/UZgCYnwegkikw=; b=eOGcgo4YDqv3/hWybdqsE1IqI16o1SYBNtJwN3eaxqSA2S+KiFzMedoGC2bJI95vBi cfQw1cv4PtoUMbRLvY4FgpiIcrv0b5s25s6n29WPDLbTwJUIHMm1XISl8u6VnmmGUv+p 8RxL9AB2Xez8sey/MJnXf9LgQ3g3VpSYRKWM/olJS2IRsM9B0MB5W1seDAJHJNiSKvZf qjog9OezRRAHvV4VsKJ3Nh1k7Mvd7PsfvDDt9PxJ0DXwQvMNxo8HL4BsK/i4xrKZuUWD PyCmSuI4xwAMw1NXrzMC04bmd3S9fqUhC7JY7Zn6M3fbFNqz82PA2GgdBbo9P1Hunj6m pWyQ== X-Gm-Message-State: AOAM533nxYRkbCv5falc3RX2rV7CFk4QZBgxouktiuCUS82lYw1KmTTQ dlok+s3aV8g/uYseUwCiBCJE4s1ZIyMAds2ZfJUJkXH23dJ7pVVZ+XzCFptkD0h1Dl6BI5ErPYf 19yYifehhB98GszJyf5Z6km8G5UZTd/oOaJ8x+EHjt5lWzC+WO9JYUq3cn5XnBMuvCT3JvWVUjn 3q8DEE280nHA== X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:e0:c17e:c2dc:13eb]) (user=samitolvanen job=sendgmr) by 2002:a05:6902:704:b0:649:cadc:bcf0 with SMTP id k4-20020a056902070400b00649cadcbcf0mr6772144ybt.537.1652473323920; Fri, 13 May 2022 13:22:03 -0700 (PDT) Date: Fri, 13 May 2022 13:21:39 -0700 In-Reply-To: <20220513202159.1550547-1-samitolvanen@google.com> Message-Id: <20220513202159.1550547-2-samitolvanen@google.com> Mime-Version: 1.0 References: <20220513202159.1550547-1-samitolvanen@google.com> X-Developer-Key: i=samitolvanen@google.com; a=openpgp; fpr=35CCFB63B283D6D3AEB783944CB5F6848BBC56EE X-Developer-Signature: v=1; a=openpgp-sha256; l=880; h=from:subject; bh=EZLomphfIH08U3z4yVCd/QNb6Zb3C1icGxpk/OdeOrs=; b=owEB7QES/pANAwAKAUy19oSLvFbuAcsmYgBifr3ix9PIgN+KybiMjc7a7S4+3nkZ58mRwAo49nTd DGA2iOSJAbMEAAEKAB0WIQQ1zPtjsoPW0663g5RMtfaEi7xW7gUCYn694gAKCRBMtfaEi7xW7vTLC/ 9hgHRRO5928cbJy0Lj4dyh/HzCmTIsX5aRyNv3FaExai4tXtGIkEc9t07OQsdSHwe+vOQ4GaN0K0Yo Ez6WpASKIqAWw1CeqAT9mb8YffUPQZ15oosx922RKgOBLn7W0GuI+uzyNSW4zK4l0XtGaSzZaCx+bO VwwGaaThKY0gplbHU9YXLsLgqQFHuUD4yvfaAmhmWNeltzIlMqEj5P7eTYsqRATnkmvNGQL5jBJkGw 8MYNAlP6T/iaCDs7BeP0sPlgm3fIItcqzRKbtCg8953xYBCXp7UcapXhQYFZ+1fZ6g0txkD3HYt7bv /gdeVagNoIHK12tbnXliT67mMG/k2TufwaqBB4HbMNE6B51ElwuEdXvLY/cQftfGrkMKDn3/0c4UPI D5vLLZP1Z9I1is5YqP9C/K2jOqD2gPEXFjVPRK21z5UWzZe53fEZM39HScCeOsPT5AHuN9wQXQhzzD LW8o4It0Oany72uLq2n4E1wVX7ylkcng+6S6YFDEngVsM= X-Mailer: git-send-email 2.36.0.550.gb090851708-goog Subject: [RFC PATCH v2 01/21] efi/libstub: Filter out CC_FLAGS_CFI From: Sami Tolvanen To: linux-kernel@vger.kernel.org Cc: Kees Cook , Josh Poimboeuf , Peter Zijlstra , x86@kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev, Sami Tolvanen 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 Explicitly filter out CC_FLAGS_CFI in preparation for the flags being removed from CC_FLAGS_LTO. Signed-off-by: Sami Tolvanen --- drivers/firmware/efi/libstub/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index d0537573501e..234fb2910622 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -39,6 +39,8 @@ KBUILD_CFLAGS := $(cflags-y) -Os -DDISABLE_BRANCH_PROFILING \ # remove SCS flags from all objects in this directory KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) +# disable CFI +KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_CFI), $(KBUILD_CFLAGS)) # disable LTO KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_LTO), $(KBUILD_CFLAGS)) -- 2.36.0.550.gb090851708-goog