Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp789059ybh; Wed, 22 Jul 2020 13:20:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz605myFfqreRzX2mH8ABJxtFj+H3rut3RRWceLb4b4QdDoJYnmMkM0TDTWX5Zy8h3iSBU X-Received: by 2002:a05:6402:1a3c:: with SMTP id be28mr1185539edb.140.1595449241364; Wed, 22 Jul 2020 13:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595449241; cv=none; d=google.com; s=arc-20160816; b=Da5bd8vOeNtQTd/VdOEiGgZde1nZpJt6z9rlVOcBMiuVH+JGrbAOda5IN+3MNfmvVn 5q1kICvm2lDnARbaL7J9V8W7ZuRBul8AykDQviLxzPvtM2OgOv7dkYppp1dDgBPdgikv sTbyr4njyahY2G1NeV6QyN4SQtXofc9mAHBT6y4dkST32EFXHFon5DT0qRCfrIV2T7aC sdfYQrHXP/Cg6OIKE4L2mpBt2g6wY2mtMJPTe7ew+bj64ANmjgIslt6Mc7L8gbLnM6SB Zh+CXmDEx/zAIR+7cMGSzn8OmgxfgswfXYjzus1sXYMgRmpyPk08iF5caebcXEUVVdRs Vczw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=YBiMuq3lG7okFliwFV5nxUDQMbmUTnQxTGwTEFTcaa4=; b=B5b8ZA2aRjpmK9S3HHj+KaihInsgzx1ZkEkhjFg8oOt6bhU1ifiaAKlImeALcIq8C4 JSxBlaTiDmDLBNALMA+flUXjO6FCVETOH88LjNrXW+2e80CtqM+o1NMDRswOJ853XlTt oP03MyXbXjjg/qyynjeeZB58WyHX4JqO0PmCsDHtGn/2wnYNmqsVxw3xggon+cg+gj6z mD3/pIG20O0BkrY8c6pKT27m8gGBwY+c3NNX9cVmMcmt2ky58LeaHsR7yzG539utRQwR 0OFjTU92AV8ef29jIC24/7bmxbhDRuMyZqAX0ghgMRwvB0lyPY+meV1d+kHTt1/G+6I6 VPfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 jr2si674332ejb.439.2020.07.22.13.20.18; Wed, 22 Jul 2020 13:20:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732555AbgGVUUF (ORCPT + 99 others); Wed, 22 Jul 2020 16:20:05 -0400 Received: from smtprelay0162.hostedemail.com ([216.40.44.162]:37558 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726841AbgGVUUE (ORCPT ); Wed, 22 Jul 2020 16:20:04 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id A061C1810988C; Wed, 22 Jul 2020 20:20:03 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1434:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:4321:5007:7576:9108:10004:10400:10848:11026:11232:11658:11914:12043:12048:12296:12297:12438:12679:12740:12760:12895:13019:13069:13200:13229:13311:13357:13439:14181:14659:14721:21080:21451:21611:21627:30012:30054:30080:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: goat25_55034d926f38 X-Filterd-Recvd-Size: 2322 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Wed, 22 Jul 2020 20:20:01 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] KEYS: remove redundant memset From: Joe Perches To: Tom Rix , dhowells@redhat.com, jarkko.sakkinen@linux.intel.com, jmorris@namei.org, serge@hallyn.com, denkenz@gmail.com, marcel@holtmann.org Cc: keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 22 Jul 2020 13:20:00 -0700 In-Reply-To: References: <20200722134610.31947-1-trix@redhat.com> <2bdd6b8ec731d180023d593b679afc66def19b4f.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-07-22 at 13:10 -0700, Tom Rix wrote: > On 7/22/20 1:02 PM, Joe Perches wrote: > > On Wed, 2020-07-22 at 06:46 -0700, trix@redhat.com wrote: > > > From: Tom Rix > > > > > > Reviewing use of memset in keyctrl_pkey.c > > > > > > keyctl_pkey_params_get prologue code to set params up > > > > > > memset(params, 0, sizeof(*params)); > > > params->encoding = "raw"; > > > > > > keyctl_pkey_query has the same prologue > > > and calls keyctl_pkey_params_get. > > > > > > So remove the prologue. > > > > > > Fixes: 00d60fd3b932 ("KEYS: Provide keyctls to drive the new key type ops for asymmetric keys [ver #2]") > > At best, this is a micro optimization. > Yes > > How is this appropriate for a Fixes: line? > Removing unneeded code is not a fix? IMO: there's no "bug" here. It's not a logic defect causing some unintended outcome. It doesn't need backporting to stable branches. Documentation/process/submitting-patches.rst-If your patch fixes a bug in a specific commit, e.g. you found an issue using Documentation/process/submitting-patches.rst:``git bisect``, please use the 'Fixes:' tag with the first 12 characters of Documentation/process/submitting-patches.rst-the SHA-1 ID, and the one line summary.