# Re: \[PATCH v4 06/17\] fs/kernel\_read\_file: Remove redundant size argument

- From: James Morris \<jmorris@namei.org\>
- Date: 2020-07-30 02:25:16 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2020/07/6054879
- Thread: https://ratatoskr.run/linux-efi/2020/07/6054513/t.md

```text
On Wed, 29 Jul 2020, 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@broadcom.com>
> Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
> Signed-off-by: Kees Cook <redacted>

Reviewed-by: James Morris <redacted>

-- 
James Morris
[ref]

```
