From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FC3A2D47F1; Tue, 7 Jul 2026 01:23:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783387400; cv=none; b=EvVipYGJYjSkbhqc0r0iQJjIvokcuvWrFntmskjOaMYtOIzKMwSy8mykMmDpqcGBqU3EOnFCzjDhUnlDOlUwkxMgXemwAf9GD7CyOE4K+/MgOAPqQIaOfewLcI6k904pPFMkk6ZAR2wkxc6h2r4JpLCV+woRae7ULSr6LQ9CKCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783387400; c=relaxed/simple; bh=6OMU10E/7vvxhppU9sNySMI9MeMIZci+A44dIaZ2U4A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pOV4SBbn8hL8MN+bP4LwwzZW4eRTeMrn2/t+ysbQ3ek/AgELycoVS6CYpl7CwRfqTtW3jUQ+Bsqswfs/vOo9R6b5dzBdZRZ7nhaJ3SBgwkUowgaEOJ7DiBOR1I4sN5KWgerOGeQlA5MNNK8sClu31NEyIHNJOb+g8ytbmVmQxnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iAIb1MBW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iAIb1MBW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E06871F000E9; Tue, 7 Jul 2026 01:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783387399; bh=X+XhWenkPmatoMI1cmD2xxx7/I9YArI3ESeanbuJX5I=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=iAIb1MBWomZNcQGe4+pmCJdLQHvpvJh9FXfTVYDDZi49Gn2mYt3OWG4wc93e/BnNU DbuW7INr5fjmBPz/JpIDMvo4M1r02ofM10VRMFVO1TNsIwxAlJs8UHm7hgboht77Ym dUXKKLLOuRAmFbIrndMsp8+LMNoeSIeZYLngy+BGoUCqSDmRqP4Lh8CibRSgssCX3/ ovp874UwWFR16CELv0dZoDZAh2nmsmUqMr3WImD45TQntG1YTBZ4riGeTAnd/bMkBy uQi8kbU8hHtSCTJgw2VTyQG3LPg/S6QEqVII4BOSaM0tt8JQHEwesihTbLMAh/ErhA wtNXfAkHseW5w== Message-ID: <777f958b-de91-417a-ae1b-47e96204713e@kernel.org> Date: Tue, 7 Jul 2026 10:23:16 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv3] scsi: st: use kzalloc_array() To: Rosen Penev , linux-scsi@vger.kernel.org Cc: =?UTF-8?Q?Kai_M=C3=A4kisara?= , "James E.J. Bottomley" , "Martin K. Petersen" , Kees Cook , "Gustavo A. R. Silva" , open list , open "list:KERNEL" HARDENING "(not" covered by other "areas):Keyword:b__counted_by(_le|_be|_ptr)?b" References: <20260706233029.814601-1-rosenp@gmail.com> Content-Language: en-US From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20260706233029.814601-1-rosenp@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/7/26 08:30, Rosen Penev wrote: > Merge allocations to simplify memory management with kzalloc_array(). No > need to kfree separately. > > Add __counted_by for extra runtime analysis. Move counting variable > assignment after allocation as kzalloc_flex() does this with newer > compilers. > > Signed-off-by: Rosen Penev You forgot to add my review tag. So here it is again. Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research