From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 30D7C331EBF for ; Fri, 12 Jun 2026 14:42:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781275370; cv=none; b=Xsz5wDXxhaRql3xSsqEBWlVhgafmjP/fgGU8TADCzMIIuu77QQ2YLJBbxnjRUU1aUF/LegzmWawBcvXMIkPBAQdi9h4YLW1TG5o3AqWEXhHh47+a5VKU5P7Pb+t6uCccz+7HfkeiIgl4ukMUffO/oUguLqQCM6PQRWdVcE5HpY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781275370; c=relaxed/simple; bh=Nhy5giZKOwnhiLgH89yFQcIbTY9tA5W22DGV8WRXzig=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BEUe4gtWk9OXcosIaJNOh9q6PmpISZpnkymjibmLHDuAcIWWsZzjjEe1XCar2FC9/llT/3Xt0eZpZoZMlG8rz3CwjhtykmopbBjatv7NrruUc2BdC86eUcpt9+HtaiRso+BENjnHDl5FQ/azylNjgsQv+J6HZAZzXhc0wrBWrpU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bBuLkvKx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bBuLkvKx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E92021F000E9; Fri, 12 Jun 2026 14:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781275368; bh=jwWBXQiXwMzWbuhR/ImNISeDkzf0zSBbuQwL4WAjm2c=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=bBuLkvKxT+kPA04dXzNpzQe7XYQPe5J21ZN84ddImYNY4vHMo0/nKOAHBPzVE1sYm 3G16pALc4InZjTXAEuo75KY0VAX2Wo+8cyX50suVJC0xtOW+qy/eNF/1xFaXM33Pru v+ehcMANfuapy5URhVBwmL/C6MxkxOAkm5VdWH5PMr/ZxMt5hHolvaD9toVBAjEggQ sSGj/sVajvXPZ35rB4GKd3vs48SxCI53rv/ZSdVry5AH1oxSkLCmaRrqNr4Qe3cc0l xjp1JO5mtWkhrPNZHbupEGYZl9wjTZG/rrTfIkWhWJjlP3zBE0yh5sDrHfzsQArDdJ LRkfX55dOJCJQ== Date: Fri, 12 Jun 2026 17:42:42 +0300 From: Mike Rapoport To: Michal Clapinski Cc: Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Pasha Tatashin , Pratyush Yadav , Alexander Graf , linux-kernel@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [PATCH v2] pstore: add a KHO backend Message-ID: References: <20260605121040.1177072-1-mclapinski@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260605121040.1177072-1-mclapinski@google.com> Hi, On Fri, Jun 05, 2026 at 02:10:40PM +0200, Michal Clapinski wrote: > Up to this point to preserve late shutdown logs in memory, users had to > predefine a memory region using ramoops. This commit changes this by > preserving a buffer using kexec-handover. > > pstore_kho supports preserving only 1 dmesg buffer. > It gets replaced with the new buffer on every kexec, so the user has to > copy the file out of pstore after every kexec. > There is no erase() support. Sorry I didn't jump at v1. pstore does not really need a KHO backend. It can use ram backend with reserve_mem and reserve_mem can be preserved with KHO already. > Signed-off-by: Michal Clapinski > --- > v2: > - Added a comment explaining the benefits of pstore_kho. > - Created include/linux/kho/abi/pstore.h. > - Got rid of the KHO subtree. > - Made sure never to free incoming kho data. > This way the module can be safely reloaded. > - Sashiko complained that I trust the data coming from the old kernel. > I ignored it. LMK if I shouldn't trust the old kernel. > --- > fs/pstore/Kconfig | 10 ++ > fs/pstore/Makefile | 2 + > fs/pstore/pstore_kho.c | 230 +++++++++++++++++++++++++++++++++ > include/linux/kho/abi/pstore.h | 27 ++++ > 4 files changed, 269 insertions(+) > create mode 100644 fs/pstore/pstore_kho.c > create mode 100644 include/linux/kho/abi/pstore.h -- Sincerely yours, Mike.