[PATCH v2 0/3] clear new memory after realloc

Mike Grant
2015-06-19T15:04:18Z

v2
- updated indentation per Brian Foster's suggestions
- added a patch to correct the finalisation of the potentially-realloc'ed
bplist, following IRC discussion with Brian

This patchset fixes the seg-fault bug that was crashing an xfs_repair attempt
on a 150TB filesystem. The problem, including traces and metadump link, is
in the mail thread "xfs_repair segfault + debug info" 29/May/2015. After the
patch was applied, the xfs_repair ran through to completion.

The final for loops at the end of the function containing the realloc didn't
account for any extra buffers that might have been added; this is corrected.

A cosmetic reformatting of nearby lines is included, using a constant to reduce
line lengths.

Mike Grant (3):
xfs_repair: reformat lines to fit within 80 characters
xfs_repair: clear new memory after realloc
xfs_repair: include any realloc'ed buffers in final putbuf

repair/phase6.c | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)