Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp704417rdb; Sun, 1 Oct 2023 01:35:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLzoJCngGYeFMFHz0htPpogFFHmKfVirChs3Hclk7iZlpP1tuCNJx4B+WsXuUf4c/chIT/ X-Received: by 2002:a05:6870:b488:b0:1d5:a980:9caa with SMTP id y8-20020a056870b48800b001d5a9809caamr10431440oap.29.1696149300077; Sun, 01 Oct 2023 01:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696149300; cv=none; d=google.com; s=arc-20160816; b=MU56Bx2z9Bcy3JP6YlZtkr6/1VsFUK2SCVDYR+uy7cik93E50/W3Ni/4eDyIK4rQJd NuGWFsX4LZEQ+J66rZpF+/ffXqf9UL10mH0bnb3nTIJ12Z2+TzqFoxcBWhhOgUP9Tgby /Hgrbbyc9BTsL3lTeQxUUua86ZheZIMNBg2HEzIhhvs/9SVOeRxhaO1f9e/lwG9R3XAj TDSwl4g6lROn/RuE8g4gQFZvG1WTn/cWsIIjArnHcCh8ekQ8os1tayF9PrG/9/0KVfgS Itwtsg1N+nnNTLfpblRpnXOcxLnj0iTLtInnHxFU1USSwSMUxB8JNHsD5fZVFoBZmtD3 snjA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9UOcb0B8AexeHjg6MalyeGUIvHYJ9PSbISOeLF51B68=; fh=qJbInn3Fb43V0JJumdNGsx0d8pIyyPw1zBANp2BY/wY=; b=pFZ7xYIkA9kC+O1UJttue6geHxC4+vnQOLirL/GfR8n8NDOTOnGtdWh9avM/odre7Q taEqpAmI+tXO+z8pmA5UIWw9ViXvj0O2l/YOtGVE7hBdw0W4drSdobA+529RVzbhIr32 NL9jvbQgqh2xkpROp3dURQIGUPn2pFQC/H2XHem7RgH/95C7luOo4p0iVHKKvyxj/OrM BBF96SATYu/qGT7oHd2ORt7in2FCLxxg1GdC7GnLi9DBDySSX/8yV+pJJzhqsigtP/1f xrTuGOzqQW+ZrFUwcUndMU9oX4+1OiWLOBqfJ+7TNQ2fVByQv3ViscByO4G67kBmv8uG VarQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b005859e224619si5484137pgv.786.2023.10.01.01.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 01:35:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 168A98029D33; Sun, 1 Oct 2023 01:34:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234510AbjJAIez (ORCPT + 99 others); Sun, 1 Oct 2023 04:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbjJAIez (ORCPT ); Sun, 1 Oct 2023 04:34:55 -0400 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15C083 for ; Sun, 1 Oct 2023 01:34:50 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qmruX-002PY4-JV; Sun, 01 Oct 2023 16:34:46 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Sun, 01 Oct 2023 16:34:49 +0800 Date: Sun, 1 Oct 2023 16:34:49 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Damian Muszynski Subject: Re: [PATCH] crypto: qat - increase size of buffers Message-ID: References: <20230922090439.30120-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230922090439.30120-1-giovanni.cabiddu@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 01 Oct 2023 01:34:55 -0700 (PDT) On Fri, Sep 22, 2023 at 10:03:47AM +0100, Giovanni Cabiddu wrote: > Increase the size of the buffers used for composing the names used for > the transport debugfs entries and the vector name to avoid a potential > truncation. > > This resolves the following errors when compiling the driver with W=1 > and KCFLAGS=-Werror on GCC 12.3.1: > > drivers/crypto/intel/qat/qat_common/adf_transport_debug.c: In function ‘adf_ring_debugfs_add’: > drivers/crypto/intel/qat/qat_common/adf_transport_debug.c:100:60: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=] > drivers/crypto/intel/qat/qat_common/adf_isr.c: In function ‘adf_isr_resource_alloc’: > drivers/crypto/intel/qat/qat_common/adf_isr.c:197:47: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 0 and 5 [-Werror=format-truncation=] > > Fixes: a672a9dc872e ("crypto: qat - Intel(R) QAT transport code") > Signed-off-by: Giovanni Cabiddu > Reviewed-by: Damian Muszynski > --- > drivers/crypto/intel/qat/qat_common/adf_accel_devices.h | 2 +- > drivers/crypto/intel/qat/qat_common/adf_transport_debug.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 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