Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp143666lqh; Fri, 3 May 2024 16:50:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlttOgP26tOJjeKsI26/ssUsU0ESnxhZuBV5iUN97LO5vMsV4VGs5dldKFpCchCR6/b4N7guU1RcozUfvl6ijvW1W/tICuDor4DHOYdA== X-Google-Smtp-Source: AGHT+IEkqueSzU+99IxwuHYC3kWcSut8rY6Erw/jASCsoos6KKxvjzx5Wu++hvkFzg0u4m8mAD4u X-Received: by 2002:a17:906:3748:b0:a58:d7d8:2f4d with SMTP id e8-20020a170906374800b00a58d7d82f4dmr2438129ejc.61.1714780213927; Fri, 03 May 2024 16:50:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714780213; cv=pass; d=google.com; s=arc-20160816; b=vHbchlI1LO6Wp99nL6FGYgty8a1Gvq77FAC3hotXGwnE2mCg82opHnc6R9j1rCpfJP nLlMVxfv5zX3ynDbgbe0QmI+fKMZcFp/9KnpqancKUcWFLDe0/j3KXcujqei8jzSUkyk KxKaElzciPmkWjhi00Y3OxU0aRiUfYE+9g50UdYsbPl9njpjQFhoU9u1vDoMqfI+Wdfs sH5LAaExAVTvuLnx/l1V3ZzD8o6jlCAGI1JYDGJAVSWw4Jis2vLlgvJyTwPAHHNpgZGT Bg8mx3vGwbQ3WVqH3QKMOPxA2qSicEBZD7EJ1eT4tH6qt8UCn8dVEYxsSCi3tyrvEevj oTqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=2YpmUB6M3pSqN3NzsLH/1Ao0GXXtZMFte53gEx/HtJU=; fh=Eazsw/fA34SJGavVHS5mQpveS1V9BSx5xm/ynUfBOLw=; b=dxs4/99O2v+kxi4KPeOPf7yyrU8gGDcsl+FamnaDe6VJ479kV+n88Tl5j77Hx9+JDx thDjd4Fy+kuC9Zm1jR1tub4ohnmxT+zh6R7gGF3EXoylnS26R0qRuz5VbuIdNODcKGbk ZFf3MYxhWnkRQN/V9T26R+JH6yJqNaQ7FHQW0NZjNd8OOwBd/hOB6evAupFfshxsE9SV eu23Ou0eUGONk1TX4OyqNu6T44oz8R7lp4TmGJU542kVcXQUHRPmeJ2NxIayZbZa6dCA FTTjS7S0WFIDfIab3cgjqsYEkmPNVRCgk+hTmPeryV9jVzxNUTsDENT/OJrkpTrF6FaQ tS8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bytY8/uF"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q21-20020a170906389500b00a4743988f95si683205ejd.820.2024.05.03.16.50.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 16:50:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bytY8/uF"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A673F1F23EB8 for ; Fri, 3 May 2024 23:50:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A9F984DEB; Fri, 3 May 2024 23:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bytY8/uF" X-Original-To: linux-crypto@vger.kernel.org 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 1E54F58ACC; Fri, 3 May 2024 23:50:01 +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=1714780202; cv=none; b=R3OBF8TA6RzOEbgM1EdhTSr4iPQYgEVseBkJzEKgIe4VOAAB4wvrTuHm9iYbdCemV34UfwmfvR6KvSIVUk5SOIKQuIur9Yl5BlCsPgrEsLtZ0f+H1IzgI1TPAg3uKvVeAghIegH4EfGlmi4kGU0T0M8dL5j0mN/m/ZdiqYPOfN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714780202; c=relaxed/simple; bh=2YpmUB6M3pSqN3NzsLH/1Ao0GXXtZMFte53gEx/HtJU=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=bG9P5qkFAhHLfXHipBaBIV61PUJ17QZQfMK+xPFc/ENom9H2LXydjyPRaB/IETUcx3aJBWV5ISu3CHt+AzG4OsZY3CqMC4T8LayW4CXZq+W4IQ5vfqYJ+hKIviSuB3nO9VBWDP0SIOUxtFmnxC3cIhWoFOLblBclsn5IWanNRgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bytY8/uF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4487FC116B1; Fri, 3 May 2024 23:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714780201; bh=2YpmUB6M3pSqN3NzsLH/1Ao0GXXtZMFte53gEx/HtJU=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=bytY8/uFZrCn37wOWEy3wId3z3QN5E14L9yhJt0D+EYhIdXPHW10GivvdAUibjWAA 77KVVH3Tr9z7QsqxN0i872jVu1dAILURmwjlJTWvaar2F8qu8RxIOl8G77Aqoaqa/0 aqyVah3WabniMmvfn87oH4SsqR89Jl3PoOTVaDzrRS5e9wj1Z3/XgEsgVdimvLPJnV SuCq3OGEbTxS6eIfgRhzEM9EWoCrrb8enpHUWhY3BtcZ3z31i+NGloYB8XJBC8I67u ASayxzLM3AoyBfXDr47x+3Y7ijNWI1FocxZmes/1RWmOfLQL90MMjOEADJmZ3PvaUf ksE3KLiIxNtfQ== Precedence: bulk X-Mailing-List: linux-crypto@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: Sat, 04 May 2024 02:49:58 +0300 Message-Id: Cc: "Lukas Wunner" , "Stefan Berger" , , , , Subject: Re: [PATCH] crypto: ecc - Protect ecc_digits_from_bytes from reading too many bytes From: "Jarkko Sakkinen" To: "Herbert Xu" X-Mailer: aerc 0.17.0 References: <20240426225553.3038070-1-stefanb@linux.ibm.com> In-Reply-To: On Fri May 3, 2024 at 1:30 PM EEST, Herbert Xu wrote: > On Mon, Apr 29, 2024 at 01:14:15PM +0300, Jarkko Sakkinen wrote: > >=20 > > Yeah, sure, that would be even better, or even memzero_explicit()? > > memzero_explicit should only be used for stack memory. BTW, is this in kernel documentation? It's a guideline really and would be nice to have reminder, that's all. BR, Jarkko