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 BFDF8566A; Wed, 17 Jul 2024 13:33:44 +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=1721223224; cv=none; b=sQ39GJnJnPWo5jEq0LSK3Px6DEcTNZoFQ+cJOyzmbravZuV63KbIv1BzA4cC7akrRzecSTZL/K/4CTmXuH8iRdJyeZPb3xoC0AtFyy6dEzTBiAvPm2zmRdizCqGJSzVw3SOwjOWYOp/zoZXeDF0FTfBh4/E6dBl7RvTGXaSC+T8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721223224; c=relaxed/simple; bh=g3cwZ/x9CY+hSC/sCIT3dsiPeI4OGPupHHfnIETxlL8=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=d3LP6zQWDRtJvbnOvgX1HgI8DuLdnrzffMwzGAWq2bQFL+W6GFFftLtLC/xQieeZFdv86MlqXnNUwknHmv/ZfnEVkRczaiTMQwHSGgzO+B/00wCMp8xVoMkRMzFB9UiWz5qa3SzRWDDI7wU1MMp3zXDLru0xvrX9oxiSSZmlWW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eYz14SvK; 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="eYz14SvK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5197BC32782; Wed, 17 Jul 2024 13:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721223224; bh=g3cwZ/x9CY+hSC/sCIT3dsiPeI4OGPupHHfnIETxlL8=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=eYz14SvKF7e9RuRHc+ddupm5RGSWpk/BNZPG5vX6+JUlsTq3jlg85qdEw/wHq9uNh lZDo7CqGTDh8NhkGL0bsi+XJvcgRfmcifR4Nkh2pthuVCXTKxYAbzSOKfmc7JV/YCE oWcwDLJJvdWH+X4BZpMpS5lC5xvl4O/FzOFnq9P5+0157PyIL+AKjDo2hbB5HzpXWF 9EMMQayO1OWPu8RlXk32tlwGfIv5wBuVM8gYy31khVk74wHwOlz9kBzhWUO/FpfLvp ELjDVey2vtkqR2bdVrCE2bepJKF349xBpZMeKOcphlyGv6p3/GdYo4OyhLt77fQ1aP 5p8nVI8qzuJQQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 17 Jul 2024 16:33:39 +0300 Message-Id: Cc: , , , , , "kernel test robot" Subject: Re: [PATCH v2 1/2] KEYS: trusted: fix DCP blob payload length assignment From: "Jarkko Sakkinen" To: "David Gstir" , "sigma star Kernel Team" , "James Bottomley" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , "Richard Weinberger" , "David Oberhollenzer" X-Mailer: aerc 0.17.0 References: <20240717112845.92088-1-david@sigma-star.at> In-Reply-To: <20240717112845.92088-1-david@sigma-star.at> On Wed Jul 17, 2024 at 2:28 PM EEST, David Gstir wrote: > The DCP trusted key type uses the wrong helper function to store > the blob's payload length which can lead to the wrong byte order > being used in case this would ever run on big endian architectures. > > Fix by using correct helper function. > > Cc: stable@vger.kernel.org # v6.10+ > Fixes: 2e8a0f40a39c ("KEYS: trusted: Introduce NXP DCP-backed trusted key= s") > Suggested-by: Richard Weinberger > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202405240610.fj53EK0q-lkp@i= ntel.com/ > Signed-off-by: David Gstir > Signed-off-by: Jarkko Sakkinen I applied the patches, will send the PR later on (probably either -rc2 or -rc3), so thus they are mirrored already to also linux-next. BR, Jarkko