diff options
author | Darrick J. Wong <[email protected]> | 2022-05-20 14:42:36 +1000 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2022-05-20 14:42:36 +1000 |
commit | 25b1e9dc32299b98257835910f8e532d805b824f (patch) | |
tree | a9c719770d9f06637a9c8da10adff80b1c15661f /lib/test_fortify/write_overflow-strncpy.c | |
parent | 85d76aec6bbb3dd0131511e73d48b2816e7ab8de (diff) |
xfs: validate xattr name earlier in recovery
When we're validating a recovered xattr log item during log recovery, we
should check the name before starting to allocate resources. This isn't
strictly necessary on its own, but it means that we won't bother with
huge memory allocations during recovery if the attr name is garbage,
which will simplify the changes in the next patch.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Allison Henderson <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions