Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2112970ioo; Mon, 23 May 2022 10:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcM/cdydwtw0JOmY7UdWD2OkjaPh49f9/v/0jFyjVE4CDKkwx/nHNPTPg9ydEgdO/z2JCg X-Received: by 2002:a63:d10a:0:b0:3c6:c6e0:9b1e with SMTP id k10-20020a63d10a000000b003c6c6e09b1emr21294694pgg.410.1653326374480; Mon, 23 May 2022 10:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653326374; cv=none; d=google.com; s=arc-20160816; b=pSLUW811Izu0TujHIQcIlUHontnF4wS1CIldceSMnKoyQRUbmYC7l8V90BfNPY9cIe LiVl3vuccWrtL3Fbs84xGM6Ia4sDSK2ykXNiI4tWKxATLD1R734qLOfmbQg6+vGuR9eH DnbeUsOyOIPl+kTAXN+l2R0RVf9N4KBDrDdGnXoEYln6K0WzfWKWRipU8PzdGeoAoJ2J qBIwejBCIPow9iAGyzZggLq/c4mjX9Pe/T02M27LrEDdI7ucFN0Ib3J510pbYlq7sJLO SIxgYif92IaQuIPrbRax0/eOzXancl1HYr5T7tDEM1mt3YdDxKuET/BnbC3FcgHa7Kpg CaNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tK7wDUnOzulOQZncezVFG2rbqEARUgXZwKgyMXkBtlc=; b=R4tO9CwkDL8WMuZjSLrdtaW7ru0akeyaUF46FS6vJ20iYFLR0ULS00P1Y6YwJ2kmYU /SnDCKgcSiL83BycEAML0uZAiwYTraKbPauiNJlyWl+HKAjXncs3/Tz1Tvgop5UwDsvk pA3NmziWmTI5k0vNzuOwHlDIGepu8cYsntI5l0l4v17JAWJL3BcWVcRnZCU6KWQNUNxX Ti4akiAJnPNCF5DM8uW+2rqf7eNEbKhP0Cdk2poEGJ27S1rEupo+n/+8gbJfD8KCq+Hb zS5eoFlu/z6oP3v+Droj+7mNHeGGvSS8iMit6YrimROQFDhx7FMRgfL/sQGWI5DCELqy dQTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2BE15vY1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o22-20020a056a0015d600b005184a9fcbd6si16954113pfu.197.2022.05.23.10.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 10:19:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2BE15vY1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2501F7A839; Mon, 23 May 2022 10:19:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241119AbiEWRRH (ORCPT + 99 others); Mon, 23 May 2022 13:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239633AbiEWRMq (ORCPT ); Mon, 23 May 2022 13:12:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94BD795A4; Mon, 23 May 2022 10:12:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0853D614B8; Mon, 23 May 2022 17:11:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED440C385AA; Mon, 23 May 2022 17:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653325911; bh=yWszmqLY47S5iaXcawYdL8HPP6PVa/621Zhmc4slavE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2BE15vY18GCOr2FK2EJ2HuL8pMnNuSlXSRjqSYiTA8mWflTsf9mo/xZRZkEQhHYRk WmhSIQ5Ipbpk69/g7KiVZ1l+a1S/06IlM408nkcL/qm2yNPBq3Gz8/RZADlw/aLbmi +ntb0Sjhd2lTve18DKfXLnmKgDDBwlzTIy2hp+fU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Rothwell , "Peter Zijlstra (Intel)" , Martin Willi , Herbert Xu , Sasha Levin Subject: [PATCH 5.4 09/68] crypto: x86/chacha20 - Avoid spurious jumps to other functions Date: Mon, 23 May 2022 19:04:36 +0200 Message-Id: <20220523165804.100193933@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165802.500642349@linuxfoundation.org> References: <20220523165802.500642349@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Peter Zijlstra [ Upstream commit 4327d168515fd8b5b92fa1efdf1d219fb6514460 ] The chacha_Nblock_xor_avx512vl() functions all have their own, identical, .LdoneN label, however in one particular spot {2,4} jump to the 8 version instead of their own. Resulting in: arch/x86/crypto/chacha-x86_64.o: warning: objtool: chacha_2block_xor_avx512vl() falls through to next function chacha_8block_xor_avx512vl() arch/x86/crypto/chacha-x86_64.o: warning: objtool: chacha_4block_xor_avx512vl() falls through to next function chacha_8block_xor_avx512vl() Make each function consistently use its own done label. Reported-by: Stephen Rothwell Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Martin Willi Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- arch/x86/crypto/chacha-avx512vl-x86_64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/crypto/chacha-avx512vl-x86_64.S b/arch/x86/crypto/chacha-avx512vl-x86_64.S index 848f9c75fd4f..596f91e3a774 100644 --- a/arch/x86/crypto/chacha-avx512vl-x86_64.S +++ b/arch/x86/crypto/chacha-avx512vl-x86_64.S @@ -172,7 +172,7 @@ ENTRY(chacha_2block_xor_avx512vl) # xor remaining bytes from partial register into output mov %rcx,%rax and $0xf,%rcx - jz .Ldone8 + jz .Ldone2 mov %rax,%r9 and $~0xf,%r9 @@ -438,7 +438,7 @@ ENTRY(chacha_4block_xor_avx512vl) # xor remaining bytes from partial register into output mov %rcx,%rax and $0xf,%rcx - jz .Ldone8 + jz .Ldone4 mov %rax,%r9 and $~0xf,%r9 -- 2.35.1