From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 39A342877F2 for ; Thu, 13 Nov 2025 20:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763065393; cv=none; b=XX11Q9ZF6jWUk/0uUFkh3CyIH6KEGy8tEnQBdiREFvustKiqrP6yqxUIjfLBBFntgACTy8Z7wKCVHv5Sn40Ws9CX31jKUy0vC2foGBgjGdkmcwDcpIaSGkHhs0JCoR65oOSpHlAeD99JtA3Iij7/zRXa7+L6fHoBn68wUJBECbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763065393; c=relaxed/simple; bh=1EmXvRqwWJk/1eCiXdIX4GUSs27vYT0K7Xwt/Tdoa4M=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=JZVv/IT7kI9vfXO8Srj+r6vFsXKcNaB6sHIIBGCcAB1mm3vdhYkWzSfo4YbY2WFuV/2jOXvnWXUXceQQET7BFS77XfWU2LXRBLPtiyxvI0fqEzoYHFQnhk60kw0YzSdVLhcodeBMgKqCRqG2hfn4sBrEIA1obST5+7NtXXfVWg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=sRB3kHc4; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="sRB3kHc4" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1763065388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9uKu64x57meNN+TtZY3bpRMMEpmt9YND75hWgxR8WSA=; b=sRB3kHc4HEC+f82cvLFkjSov1M+2akJC8aYLDdT06iuFr8MVwbUyzKBoqWUsnjAfkehaLr 4Flpo4bo5e+pMGQfABeClGzCzOuhIr7sUDHpL1sdblyAX62TOLcl6uyrtq5w1PDSB+ssyx fEIeCcCS0IFNelNKIXIgLWjw4Mb3x0U= Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: [PATCH] KEYS: encrypted: Replace deprecated strcpy and improve get_derived_key X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum In-Reply-To: <20251113172913.GC1792@sol> Date: Thu, 13 Nov 2025 21:23:01 +0100 Cc: Mimi Zohar , David Howells , Jarkko Sakkinen , Paul Moore , James Morris , "Serge E. Hallyn" , linux-hardening@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20251113135831.98587-1-thorsten.blum@linux.dev> <20251113172913.GC1792@sol> To: Eric Biggers X-Migadu-Flow: FLOW_OUT On 13. Nov 2025, at 18:29, Eric Biggers wrote: > [...] > > This changes the resulting derived key when key_type == 0 && > master_keylen >= 24, because different bytes are passed to sha256(). I see, thanks. I'll submit a v2.