Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1077298ybg; Wed, 3 Jun 2020 23:51:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT8i/SsGrv/VA3i6kMDcxq51P/6iaOQQoEi/mj340tv5NOMIczoXPXbFxijEtaNaVWFk9y X-Received: by 2002:aa7:d158:: with SMTP id r24mr2890128edo.272.1591253462978; Wed, 03 Jun 2020 23:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591253462; cv=none; d=google.com; s=arc-20160816; b=Uq7aS0Sb7U0rRo9Z8xZGOjGM3hpR4y5WoTOmq58urpqOrVBFThlPEbSicXQYxNLC3y 5gC2bzBO0hbv4KWGpfzKdbXS9FITvhUf9hrowWa3vgIXCYN9wbMN48I0rDD/AyUNTce4 SMHUmvN0XwVXRI5N0clzmgRqMHSkax3rmR3u3TfmkG1pk6EBBaIe9gOAq5Yy/Y5jhHQe RYhwYismR/zuvkB60d29sxpmzMdepUfgzZ3hM77mdOp3E2toevRy/aXYJ4vM6xxMgT6D QD40j7rZiJO3aoEtieSZUigl7/YOMHitw6W5aWlQPeO6+AGiUeyF2g3PO/snnLrNYjgB rxRA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gP5X5KYSvxDUiol3JRaTuxPh1QrnGMjxCmPLLJL+adY=; b=wytQkoc+AFzEhAi3+WCbc+I3TyY7IfnLE+JfnVELm3PnXfeXTgaLAmjsWyEzexo7Og vyQXBR9eEpxaATR3UkhYUMbBePJ4Ff2nDFl8HPA100XZS5jnu9FzscMDygWQVA1zLQpl QClLsFf1XUbwH7T/uIHNEXoU2CtaImVcijXbWvB/SOzb45CKMBPVvL7E4Tm1vp/tHUA3 h6QIemEPA9SYtUpNi59fKQL5tL9VNcP/JWKQVOT4MuU/uXurCyjVd4q7Ol1mNEAXBteY uhWgaMklw1nDXWNfkdIcC718X5YOpFjesALxFF4NR7r63hb2UkDPvOof4cd9s70YAMqT yjpQ== 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 bu21si1118129ejb.675.2020.06.03.23.50.38; Wed, 03 Jun 2020 23:51:02 -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 S1726926AbgFDGuf (ORCPT + 99 others); Thu, 4 Jun 2020 02:50:35 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:36620 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726248AbgFDGuf (ORCPT ); Thu, 4 Jun 2020 02:50:35 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jgjhZ-0002fD-DI; Thu, 04 Jun 2020 16:50:10 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 04 Jun 2020 16:50:09 +1000 Date: Thu, 4 Jun 2020 16:50:09 +1000 From: Herbert Xu To: Zhangfei Gao Cc: Greg Kroah-Hartman , Jonathan Cameron , wangzhou1 , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, kbuild-all@lists.01.org Subject: Re: [PATCH] crypto: hisilicon - fix strncpy warning with strlcpy Message-ID: <20200604065009.GA29822@gondor.apana.org.au> References: <202006032110.BEbKqovX%lkp@intel.com> <1591241524-6452-1-git-send-email-zhangfei.gao@linaro.org> <20200604033918.GA2286@gondor.apana.org.au> <20200604061811.GA28759@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jun 04, 2020 at 02:44:16PM +0800, Zhangfei Gao wrote: > > I think it is fine. > 1. Currently the name size is 64, bigger enough. > Simply grep in driver name, 64 should be enough. > We can make it larger when there is a request. > 2. it does not matter what the name is, since it is just an interface. > cat /sys/class/uacce/hisi_zip-0/flags > cat /sys/class/uacce/his-0/flags > should be both fine to app only they can be distinguished. > 3. It maybe a hard restriction to fail just because of a long name. I think we should err on the side of caution. IOW, unless you know that you need it to succeed when it exceeds the limit, then you should just make it fail. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt