Thread (51 messages) 51 messages, 7 authors, 2020-07-29

Re: [PATCH v3 09/19] fs/kernel_read_file: Switch buffer size arg to size_t

From: Mimi Zohar <zohar@kernel.org>
Date: 2020-07-27 16:29:38
Also in: linux-efi, linux-integrity, linux-kselftest, lkml, selinux

On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote:
In preparation for further refactoring of kernel_read_file*(), rename
the "max_size" argument to the more accurate "buf_size", and correct
its type to size_t. Add kerndoc to explain the specifics of how the
arguments will be used. Note that with buf_size now size_t, it can no
longer be negative (and was never called with a negative value). Adjust
callers to use it as a "maximum size" when *buf is NULL.

Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Kees Cook <redacted>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help