Re: [PATCH] pstore: publish big_oops_buf after max_compressed_size

From: Kees Cook

Date: Tue Sep 22 2026 - 00:00:39 EST


On Mon, 21 Sep 2026 21:16:54 -0400, Jaidev Shastri wrote:
> allocate_buf_for_compression() stores big_oops_buf and then
> max_compressed_size, both with plain stores. pstore_dump() runs from
> kmsg_dump on any CPU, tests big_oops_buf without psinfo_lock and then
> reads max_compressed_size.
>
> Store the size first and publish the buffer with smp_store_release(),
> paired with smp_load_acquire() in pstore_dump().
>
> [...]

Applied to for-next/pstore, thanks!

[1/1] pstore: publish big_oops_buf after max_compressed_size
https://git.kernel.org/kees/c/7c756181175d

Take care,

--
Kees Cook