[PATCH v3 08/19] fs/kernel_read_file: Remove redundant size argument

Mimi Zohar zohar at kernel.org
Mon Jul 27 16:29:15 UTC 2020


On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote:
> In preparation for refactoring kernel_read_file*(), remove the redundant
> "size" argument which is not needed: it can be included in the return
> code, with callers adjusted. (VFS reads already cannot be larger than
> INT_MAX.)
> 
> Acked-by: Scott Branden <scott.branden at broadcom.com>
> Signed-off-by: Kees Cook <keescook at chromium.org>

Reviewed-by: Mimi Zohar <zohar at linux.ibm.com>



More information about the Linux-security-module-archive mailing list