diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-07-28 21:12:32 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-07-28 21:12:32 -0700 |
commit | 2e616d9f9ce8d469db4cd0a019cdc2ff3feab577 (patch) | |
tree | c9032b3e27c6e6acb57ec51248468b7b66c8aae0 /usr | |
parent | 609488bc979f99f805f34e9a32c1e3b71179d10b (diff) | |
download | linux-riscv-2e616d9f9ce8d469db4cd0a019cdc2ff3feab577.tar.gz linux-riscv-2e616d9f9ce8d469db4cd0a019cdc2ff3feab577.tar.bz2 linux-riscv-2e616d9f9ce8d469db4cd0a019cdc2ff3feab577.zip |
xfs: fix stack contents leakage in the v1 inumber ioctls
Explicitly initialize the onstack structures to zero so we don't leak
kernel memory into userspace when converting the in-core inumbers
structure to the v1 inogrp ioctl structure. Add a comment about why we
have to use memset to ensure that the padding holes in the structures
are set to zero.
Fixes: 5f19c7fc6873351 ("xfs: introduce v5 inode group structure")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions