aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2016-12-05 12:37:47 +1100
committerDave Chinner <[email protected]>2016-12-05 12:37:47 +1100
commit96a3aefb8ffde23180130460b0b2407b328eb727 (patch)
tree95c3b9855e5423120a04f9b92612b3e212e63bd8 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent356a3225222e5bc4df88aef3419fb6424f18ab69 (diff)
xfs: don't crash if reading a directory results in an unexpected hole
In xfs_dir3_data_read, we can encounter the situation where err == 0 and *bpp == NULL if the given bno offset happens to be a hole; this leads to a crash if we try to set the buffer type after the _da_read_buf call. Holes can happen due to corrupt or malicious entries in the bmbt data, so be a little more careful when we're handling buffers. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions