Re: [PATCH] seq_file: seq_show_option_n() is used for precise sizes

From: Kees Cook
Date: Thu Jul 27 2023 - 11:49:48 EST



On Wed, 26 Jul 2023 14:59:57 -0700, Kees Cook wrote:
> When seq_show_option_n() is used, it is for non-string memory that
> happens to be printable bytes. As such, we must use memcpy() to copy the
> bytes and then explicitly NUL-terminate the result.
>
>

Applied, thanks!

[1/1] seq_file: seq_show_option_n() is used for precise sizes
https://git.kernel.org/kees/c/630fdd592912

Best regards,
--
Kees Cook