diff options
author | Dave Chinner <dchinner@redhat.com> | 2017-10-09 18:37:22 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-27 08:38:09 (GMT) |
commit | 3042b3a5a4eedbd18e992256415a34435b5128bc (patch) | |
tree | 779eaebbd45a95bed63e5cd2d02ba7f486c1d277 /arch/arm/mach-pxa/pxa320.h | |
parent | 1b4998dceda7f2e8f397a9633fe288041b875050 (diff) | |
download | linux-3042b3a5a4eedbd18e992256415a34435b5128bc.tar.xz |
xfs: Don't log uninitialised fields in inode structures
commit 20413e37d71befd02b5846acdaf5e2564dd1c38e upstream.
Prevent kmemcheck from throwing warnings about reading uninitialised
memory when formatting inodes into the incore log buffer. There are
several issues here - we don't always log all the fields in the
inode log format item, and we never log the inode the
di_next_unlinked field.
In the case of the inode log format item, this is exacerbated
by the old xfs_inode_log_format structure padding issue. Hence make
the padded, 64 bit aligned version of the structure the one we always
use for formatting the log and get rid of the 64 bit variant. This
means we'll always log the 64-bit version and so recovery only needs
to convert from the unpadded 32 bit version from older 32 bit
kernels.
Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-pxa/pxa320.h')
0 files changed, 0 insertions, 0 deletions