On Thu, Jun 06, 2024 at 09:58:26AM -0400, Brian Foster wrote:
> smatch warns that the copy of arg to userspace is a potential data
> leak by virtue of arg.pad not being checked or zeroed. This was
> introduced by the commit referenced below that switched arg from
> being a zeroed runtime allocation to living on the stack. Fix by
> simply zero initializing the structure.
>
> Fixes: cde738a61e65 ("bcachefs: Convert bch2_ioctl_fs_usage() to new
> accounting")
> Reported-by: Dan Carpenter <[email protected]>
> Signed-off-by: Brian Foster <[email protected]>
Applied