Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1733477imm; Sun, 8 Jul 2018 09:44:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeusLsz6xepEkl40m9WibRCWWkZVza2Qqg3L9YIXMVWUoFcfSAyb+GS54dciNg3e2R3dKB6 X-Received: by 2002:a17:902:8209:: with SMTP id x9-v6mr17517766pln.150.1531068291752; Sun, 08 Jul 2018 09:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531068291; cv=none; d=google.com; s=arc-20160816; b=Mg+1AX9t4iHJIgTd5GiTaFOYJGp38/DVLqUhKECCR9bzINo0rR7J+1gtJMaTWgsUOO pjZMJbInyE8KtU42SMLXVrN8sbZqgQk0FSqjUuEu0kgy03cYahlntTT8b6U9LGlTuiRo qcMT/n8lzWaFTFxO8+iqaf3XSqPuEztFLjCPffrdY18XLpXK325RL32nw9NS42hU8v23 2Rxz3lA0wqwhzwK0J3uBvKO0gAf5DxF0GaRsHATOSR93mC65etIJVd7KWe6zSOF6Jpwh RPYbLdddhFNfYBihP7eWO9K3ieow508HqDUwOaYpZjshnNRWiqjoxD82k+fLP0tLSUD1 bcmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=k+lf7TWy+ctJ7Jv4suTL+uB2dU+wZLPii1RD6kaacOM=; b=dNFWK1ACfkHdHTwpCDuOZHektu2OJePt8UKSC/Ht6FpcpdM2J1BaukS5btwHHHShZK lMlGrgcmGzW3+300Vw2RJPL783qJpMVB0pXmNEr5pa3o//wWjU7OPb2K8W6Wi++Ey1qv kIKjlsxkskvAAQQo5xZUw87pJlAYiK78WBtoEjcJszpSK55CILH2+pncVE+S/Ad4WWdT JCReS1QlMh/hu+Kj0uj0XdAA7RYYI8JAqB+YX8Pj6SXlRfuwSq6JkfeMrCrpQpwaMf/Y OCZXNmNTtOMcrnwrI3sam5PV7E9YapBHrdjMuN3EvNT0J9k7C1eWOMfB+7WKtUmceYPM 6eew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p17-v6si13896244pfd.76.2018.07.08.09.44.35; Sun, 08 Jul 2018 09:44:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754232AbeGHQny (ORCPT + 99 others); Sun, 8 Jul 2018 12:43:54 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:40306 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073AbeGHQnx (ORCPT ); Sun, 8 Jul 2018 12:43:53 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fcCmr-0000xU-6k; Mon, 09 Jul 2018 00:43:49 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fcCmm-000791-RN; Mon, 09 Jul 2018 00:43:44 +0800 Date: Mon, 9 Jul 2018 00:43:44 +0800 From: Herbert Xu To: Stafford Horne Cc: LKML , Greg KH , arnd@arndb.de, Eric Biggers , linux-crypto@vger.kernel.org, Max Filippov , Nick Desaulniers , "David S. Miller" Subject: Re: [PATCH v2 1/2] crypto: Fix -Wstringop-truncation warnings Message-ID: <20180708164344.3lpe6q7m2yjeqcdl@gondor.apana.org.au> References: <20180625124538.21051-1-shorne@gmail.com> <20180625124538.21051-2-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180625124538.21051-2-shorne@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 09:45:37PM +0900, Stafford Horne wrote: > As of GCC 9.0.0 the build is reporting warnings like: > > crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report’: > crypto/ablkcipher.c:374:2: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation] > strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "", > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > sizeof(rblkcipher.geniv)); > ~~~~~~~~~~~~~~~~~~~~~~~~~ > > This means the strnycpy might create a non null terminated string. Fix this by > explicitly performing '\0' termination. > > Cc: Greg Kroah-Hartman > Cc: Arnd Bergmann > Cc: Max Filippov > Cc: Eric Biggers > Cc: Nick Desaulniers > Signed-off-by: Stafford Horne Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt