Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp342007rwb; Fri, 18 Nov 2022 02:09:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf7f6ZUTSzFrSg7iGLYjHRD/NjYa1q/WimjFZnTLFry/xzl3yVQ70PNEM9dpWQa3osJhM0Gl X-Received: by 2002:a17:902:a981:b0:188:f0d7:ffbe with SMTP id bh1-20020a170902a98100b00188f0d7ffbemr6763069plb.27.1668766199215; Fri, 18 Nov 2022 02:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668766199; cv=none; d=google.com; s=arc-20160816; b=wW85aU7yMQT5UUxSKqwEt662BhugydqlOx906sBX58a5r+5rAk0juGFv07+3uqqORn USwDFPo1+5wOPhHkPowXnalJKdGybkmo/pnBRe6Pj2gIqDspDRuJmTekXHQ/wDCxoVzD CbSOYra+UBpAE6Tgt06gflY3D66rQ7PwByp2EEsionnkgSAMxxJVw2Th5st1y7JT/hEb qauPMXuPDDk6NOs612O5KD3LIhBG8ORnz9hL/VNs3Nkb2EtSfyHTSg5SX1zbdJseQPa5 OVeNJTFSgqG5B/EqPjYu8cOMEmIGSGPwYcZV/jbtR4vUEtNJryD7VTXjz6HVXtvla7II KXcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+8jFeHfK53thFHUSFDBWh9hINMWFzglzAMyQx5Fn604=; b=RDwCizDayogIOdexDiH+cSs1VFxRW7D8TmE254TGrkpjA8avxx1acEVbhMy6RRB7HK KfyYFa2PduJyMVnw0AwEIKpKwJvqRTqqvIwf7BLMoQ4c6SJiRhawRRaJbxcinDhZlZtq dxWEu0/vdJOynMQuQ5Tj4b6cuJJv2g1VayI2IkJfT+z7oCCym7cTUaislyS6z/DVdBs8 3Gc1ynV4Sx7MYD6yLB/D7hIhxxrML6cqXCDFs/FBhKX/x9f4GSRLnRZCDGYSTEsQTJMK joWva65U3gDFf6GtGl8NAEjZfoCfKm85L+2TuUmocICpqMfBjCzKmuICT7AO/ya4m1o4 WrFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UiAa1e2z; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a17090a468900b001fdb95c743bsi6887222pjf.83.2022.11.18.02.09.39; Fri, 18 Nov 2022 02:09:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UiAa1e2z; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235217AbiKRJwF (ORCPT + 99 others); Fri, 18 Nov 2022 04:52:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232902AbiKRJwE (ORCPT ); Fri, 18 Nov 2022 04:52:04 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7315F2D7 for ; Fri, 18 Nov 2022 01:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+8jFeHfK53thFHUSFDBWh9hINMWFzglzAMyQx5Fn604=; b=UiAa1e2z+A7Oht8yNnwtAZDVxB tgU1GB2uJeLMog/5VKd5aEKsSyZ9cXRDofLwZwAxFIE7jOGi8LCVT8xFq8FV4noTJOBXCGGIa1qpd V9WwBIfIp4H3VwpV1WbGwdvbC2/HdSgAaPhOc7cwXg57lOELX85d8HUI2cVdcFzeNCBXcMKe9cLy5 91pH4YzH6Z6k8wotndDLNPPwJO4uFFsDFilIBz/0vDjoPeUAA/GwZ3SX8H/8bosgrfn3lugRx7V9A VHvgjkcIZmGL0bQue53v0YMYWunvYLO7bmbFD3Tk2jyLs3n8b3XFb6P+3MxyBAPxojPmUOLFU91B1 5nwakhqg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovy2Q-001wM9-Ru; Fri, 18 Nov 2022 09:51:59 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6DFF5300244; Fri, 18 Nov 2022 10:51:58 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4FDE8201A1023; Fri, 18 Nov 2022 10:51:58 +0100 (CET) Date: Fri, 18 Nov 2022 10:51:58 +0100 From: Peter Zijlstra To: Eric Biggers Cc: linux-crypto@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, Sami Tolvanen Subject: Re: [PATCH 0/11] crypto: CFI fixes Message-ID: References: <20221118090220.398819-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221118090220.398819-1-ebiggers@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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-crypto@vger.kernel.org On Fri, Nov 18, 2022 at 01:02:09AM -0800, Eric Biggers wrote: > This series fixes some crashes when CONFIG_CFI_CLANG (Control Flow > Integrity) is enabled, with the new CFI implementation that was merged > in 6.1 and is supported on x86. Some of them were unconditional > crashes, while others depended on whether the compiler optimized out the > indirect calls or not. This series also simplifies some code that was > intended to work around limitations of the old CFI implementation and is > unnecessary for the new CFI implementation. > > Eric Biggers (11): > crypto: x86/aegis128 - fix crash with CFI enabled > crypto: x86/aria - fix crash with CFI enabled > crypto: x86/nhpoly1305 - eliminate unnecessary CFI wrappers > crypto: x86/sha1 - fix possible crash with CFI enabled > crypto: x86/sha256 - fix possible crash with CFI enabled > crypto: x86/sha512 - fix possible crash with CFI enabled > crypto: x86/sm3 - fix possible crash with CFI enabled > crypto: arm64/nhpoly1305 - eliminate unnecessary CFI wrapper > crypto: arm64/sm3 - fix possible crash with CFI enabled > crypto: arm/nhpoly1305 - eliminate unnecessary CFI wrapper > Revert "crypto: shash - avoid comparing pointers to exported functions > under CFI" These all look good. They will hoever conflict with the alignment cleanups/changes we've got in tip/x86/core, but there's no helping that I support. Acked-by: Peter Zijlstra (Intel)