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 7C49121345; Sun, 22 Dec 2024 15:23:33 +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=1734881013; cv=none; b=BkIj4uQwmaVyLbdUWDFmFzL9bb7oHXbjAvkFP1t5zksN3DD4V8Htyfwv0ntY4l3Xg+EWC3Ad5kedFjtJJ2falV+0tE5HMb6zNmITkgEuG56235SlmYzRP5dUVOPDrfbADuuDKzGGuYPa7ntuN0ctipN7u3X+PeVPS0LpKxITmuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734881013; c=relaxed/simple; bh=bzY/le8nsdIZqknA1e2jVzHlvCzOVqQWEAH6N7fKyec=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=OKL7FfP8gltj2rTzb9j2zzWd+q0RwvHuRMoDuUrUGu8ClxdyPDIudqQw4/8TNkaTJMWoLeQr1kW/0X0Gxn8DqUQuLOjDY3hECP7LtSXC+uMNA82FI3LDyWfkbt+BDoCU9eUEjS0gawSUsScmygn7D5KMf2HmWQYH2Q2K1HKMYP8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 853DBC4CECD; Sun, 22 Dec 2024 15:23:32 +0000 (UTC) Precedence: bulk X-Mailing-List: linux-integrity@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: Sun, 22 Dec 2024 17:23:28 +0200 Message-Id: Cc: , "Peter Huewe" , "Jason Gunthorpe" , "Colin Ian King" , "Joe Hattori" , "Stefan Berger" , "Roberto Sassu" , "Al Viro" , "Andy Liang" , "Matthew Garrett" , "Mimi Zohar" , Subject: Re: [PATCH] tpm: Map the ACPI provided event log From: "Jarkko Sakkinen" To: "James Bottomley" , "Ard Biesheuvel" , "Jarkko Sakkinen" X-Mailer: aerc 0.18.2 References: <20241221113318.562138-1-jarkko@kernel.org> In-Reply-To: On Sun Dec 22, 2024 at 5:00 PM EET, James Bottomley wrote: > If event logs grow to greater than KMALLOC_MAX_SIZE then absolutely it > makes sense to map them instead of copying them. But we'd have to do > that for all event log locators: ACPI, EFI and OF, because event log > size should be independent of the mechanism used to locate it. So, > even as a long term fix (assuming we think there's a possibility of > logs expanding by 50x), this patch doesn't do the right thing because > it only maps ACPI logs. Because we have a test target only on ACPI where this happens fix should still fix only ACPI. It's not hard to reiterate this but=20 precursory iteration is a bad idea. BR, Jarkko