Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1669427pxb; Fri, 22 Oct 2021 05:37:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmHWWtAdQ8GINNqgpb6D9tp3sCxvo0RtLca13riAIoqCo2PEZwc4oagXUS0n3zQGBwan3N X-Received: by 2002:a05:6a00:24c8:b0:44c:654b:403b with SMTP id d8-20020a056a0024c800b0044c654b403bmr11737231pfv.55.1634906251144; Fri, 22 Oct 2021 05:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634906251; cv=none; d=google.com; s=arc-20160816; b=FI0y4PXKzyObJGugW3SM3OYEl9DhnxAQmvLohuG2m42EePThKNPC8ROJqHj7WHP/eN Yrh0tgcbT7zhc6EhD0qJEkMVn2eOYYPS0Cv5pbspwN9v3nWaKmQYOoiYaGYSSIwb9hrc Sf8ti5NmL+wYcZfK6lm26hCWoJ+l+SyjxEiEGRjfznx7Kl15KOb5W44kN0vFueCDb/N9 3VFmJucZlkNKa4ClU7LaS3QI3R7PVfUm5dVptpXcj/5Bis7+EvYukEwn0TejV2B5LQp+ vAx3gypCshdEFa2V1BEEm91+sb1rzZ8vRujyDUawO79yKecOdPba7BxDNHXc8B19J4/t ay0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=14yOjEGrQsQtIeO/wZ7RpNV/vbseTL7WtiuaN/XigxQ=; b=BE5DTwSzlvu8E4WY24NFD561OfIoZUu/C1rYv/nEmyOy9X4m6IPeI6DVHZ85YKrCEy 4U8K42asaeBePdrfqh962aQ7OERWiIngnb+YMvReP/RYY+mcBKwCydsfhNaUuak6mj1Z I4kI7+HKriYkCnCMAnvKOw25xXT0OzWswlSIGVxxB0Uvb0h6v82mu66J9rJnAyd2wzm/ B1nzsRspI51x3xiZIPKY15+D/y8qqURgO6d9u63gbxxywlZHP0qAtHoAXeS5AN9Kf8dC IpheiamLbjqW/dALj4mSR+9u48i8kaFKoVS1Efn5kqSPiMClgkkjyconw+rpr1on204w OsoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rm12si5617164pjb.48.2021.10.22.05.37.18; Fri, 22 Oct 2021 05:37:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232276AbhJVMjJ (ORCPT + 99 others); Fri, 22 Oct 2021 08:39:09 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:56246 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231473AbhJVMjE (ORCPT ); Fri, 22 Oct 2021 08:39:04 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1mdtmR-00030v-LC; Fri, 22 Oct 2021 20:36:15 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1mdtmK-0001o2-4u; Fri, 22 Oct 2021 20:36:08 +0800 Date: Fri, 22 Oct 2021 20:36:08 +0800 From: Herbert Xu To: Tianjia Zhang Cc: "David S. Miller" , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Nathan Chancellor , Nick Desaulniers , Abaci Robot , Heyuan Shi , x86@kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: x86/sm4 - Fix invalid section entry size Message-ID: <20211022123608.GA6920@gondor.apana.org.au> References: <20211015034733.51205-1-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015034733.51205-1-tianjia.zhang@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Oct 15, 2021 at 11:47:33AM +0800, Tianjia Zhang wrote: > This fixes the following warning: > > vmlinux.o: warning: objtool: elf_update: invalid section entry size > > The size of the rodata section is 164 bytes, directly using the > entry_size of 164 bytes will cause errors in some versions of the > gcc compiler, while using 16 bytes directly will cause errors in > the clang compiler. This patch correct it by filling the size of > rodata to a 16-byte boundary. > > Fixes: a7ee22ee1445 ("crypto: x86/sm4 - add AES-NI/AVX/x86_64 implementation") > Fixes: 5b2efa2bb865 ("crypto: x86/sm4 - add AES-NI/AVX2/x86_64 implementation") > Reported-by: Peter Zijlstra > Reported-by: Abaci Robot > Signed-off-by: Tianjia Zhang > Tested-by: Heyuan Shi > --- > arch/x86/crypto/sm4-aesni-avx-asm_64.S | 6 +++++- > arch/x86/crypto/sm4-aesni-avx2-asm_64.S | 6 +++++- > 2 files changed, 10 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt