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 BD7401922FC for ; Wed, 5 Jun 2024 08:04:50 +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=1717574690; cv=none; b=VfF2HpFWzBoo28OeusqFGDR6h8IrEimuuE3FwsG1D4tX0dRGkys18yhh5F6vctaJfafR2ZK80AuiM5gwPUW3swA11QepAC4Cu0Bfd9aIlUrsnuLWGpYg9KDRBmxOokmG9MKeqP1xp/IesnbtQml9A5YdQJeVvtJrWHrCk3sP/WM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717574690; c=relaxed/simple; bh=5ALkOcn8NPSHKv4/SEUapnC4KG6VH13x7tLJN3YOm+w=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=ofnrCa7/cw9ZN6pol1elWY2d+PnN9thn02TGkrF1hWYQQGsVUQ15r6GzXI3RUdMMJnEZVptmMUhj0HucAm2k/KYZuS3BBMyhx3Q4IYOXEpMiqluMjG17bMsznexUkmojrfy25xWCO57jgxYuGEf1VGspBX3XoZw+IR/xVOSeBnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZJjtK90w; 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="ZJjtK90w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CCA3C3277B; Wed, 5 Jun 2024 08:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717574690; bh=5ALkOcn8NPSHKv4/SEUapnC4KG6VH13x7tLJN3YOm+w=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=ZJjtK90wTgtd64FEE8ruhK6urAJBoaOL7SvFWFcriAfGzk0lN7gL3hKwHiHjGE4kj j0QWB2UxyaJxx6PrX5vHdPkwepbcfRRXJ63A0v+bxXSxNS7kwxIwSnaesaNNxt+KHK pD3b4HoGobJGN+H2pEu28aVSEocG/ifq9WvUhovCw+Bi9+rV+HX0AFG22n5ZxRoEza d5RPQRMgBKuYkVM2MKKqI2F6jbFobV9oiXmHJmRW63tYsWrrcnU7+AOlzAu9RfzN2O CrvRBd5VcdacMzhDUuSiyxG9uNRGvQTisx2dnGcGzUGG+0f6BNRg/4jmZ3iadWfdof IAdFOVpmXXGmw== 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: Wed, 05 Jun 2024 11:04:47 +0300 Message-Id: Cc: , Subject: Re: [PATCH v2] tpm: tpm_crb: Call acpi_put_table() on firmware bug From: "Jarkko Sakkinen" To: "Joe Hattori" , X-Mailer: aerc 0.17.0 References: <20240605073329.1640668-1-dev@hattorij.com> In-Reply-To: <20240605073329.1640668-1-dev@hattorij.com> On Wed Jun 5, 2024 at 10:33 AM EEST, Joe Hattori wrote: > Hi Jarkko, > > Thank you for your time and feedback on my previous patch. > > 1. Drop the hyphens. > - I have removed them from the commit message in the v2 patch below. > 2. Wouldn't it be memory corruption, and not a leak? > - The validation_count field not returning to 0 causes > acpi_tb_release_table() not being called, which means memory is not > being unmapped. Therefore, I assume it is a memory leak. > 3. Why would ACPICA return corrupted data in this case? > - It is mostly unlikely that it returns corrupted data, but it would > happen when the ACPI table is misconfigured by the firmware. Although > this event is rare, I thought it would still be nice to take care of > the error path. > =20 > Please find the updated patch v2 attached to this email. Actually: no. And when you send a patch send them as separate entities and version them [1]. And I don't believe you because I don't live in a belief system. There is total zero evidence provided of anything. And even if this was the case you should then submit the bug fix to ACPICA itself, not here. Thus, NAK. Please don't waste everyones time by inventing imaginary problems. It would be way more productive to solve some actual problems. [1] https://www.kernel.org/doc/html/v6.9/process/submitting-patches.html BR, Jarkko