From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 770EA21B918; Wed, 9 Apr 2025 23:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744241353; cv=none; b=HLKOG1B1Ipb0xYJNA/Gt8JimRxypwsJRK2FBHive5AocztpGbxMjlixw8HnXKfK6GTgeLQS7PpT+AMAkbmL5gK8lP3IWvvKv2ER37Kma597S2R7T0iVPvEVQcvPMrIDGVO2L/gZAb3s/fjaI7j86J9mbVhwsEUk/FIVt04p92Gw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744241353; c=relaxed/simple; bh=EhZPvyo0u2J2uKyIYhiCL8sPOLbS5opEPVEPw2q8obI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fF5KhUtecLrhFrPZETjlvaM4gdkw4OcsF7n1wXXwE7xyKB5dxYWBsMkzpxglgZSjGJMJr3OUn/FZHQGaSLQ0KxR57dGt3OFv3gfuiscauhoxqHX0fpPkQklYriC8sFB4iYOqPgJbTqIw7LyQiPo0Mj+YnbtN4Sx0yGxV3odvmCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cQbDoSDq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cQbDoSDq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3BF0C4CEE2; Wed, 9 Apr 2025 23:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744241353; bh=EhZPvyo0u2J2uKyIYhiCL8sPOLbS5opEPVEPw2q8obI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cQbDoSDqZFPqieEkFUMW/slIN5fF21+bfuHsCN8Qbg/0gED4VeGWDO2LzA8HLWsGR 7dH7pDc8Waj+wLX3yvhCga7T+9Y3Jy/41yEXrePUHG2SKuC8RldZUHFwys/IqH7Fhb BJz4pd4mm+BfJW0XDqraKfhPn69Bnq9nrVOmprqtFHv23Z/C5ydprtiFuSJ/QLdLxO upR2R6mKbLMbhfwMBpjTCDlkMHZRgm5RpvH8+L9IdWW29TF/VPkBWIJAwxef+OBhdO u72u7gzedxf31bRostVtE0wcUt+MgKcxxSwBMgxP7TULZCWBSAVqkpUxDKV3sF0g4s Kq5m/v7di82vQ== Date: Wed, 9 Apr 2025 16:29:10 -0700 From: Kees Cook To: Paul Moore Cc: linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, John Johansen , Mimi Zohar , Roberto Sassu , Fan Wu , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , =?iso-8859-1?Q?G=FCnther?= Noack , Micah Morton , Casey Schaufler , Tetsuo Handa Subject: Re: [RFC PATCH 10/29] lsm: cleanup the LSM blob size code Message-ID: <202504091628.33D461D2@keescook> References: <20250409185019.238841-31-paul@paul-moore.com> <20250409185019.238841-41-paul@paul-moore.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250409185019.238841-41-paul@paul-moore.com> On Wed, Apr 09, 2025 at 02:49:55PM -0400, Paul Moore wrote: > Convert the lsm_blob_size fields to unsigned integers as there is no > current need for them to be negative, change "lsm_set_blob_size()" to > "lsm_blob_size_update()" to better reflect reality, and perform some > other minor cleanups to the associated code. > > Signed-off-by: Paul Moore Seems okay. Reviewed-by: Kees Cook -- Kees Cook