aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dbuf_stats.c
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2016-07-10 09:09:02 -0500
committerBrian Behlendorf <[email protected]>2016-07-14 16:25:03 -0700
commit8887c7d778dce8cadee422de97e557a224555bdf (patch)
tree302744ab06a765ac2751918ef3eddc2861ad4a42 /module/zfs/dbuf_stats.c
parent8d9e12451530418778f57315717e35cc5868d98d (diff)
Prevent null dereferences when accessing dbuf kstat
In arc_buf_info(), the arc_buf_t may have no header. If not, don't try to fetch the arc buffer stats and instead just zero them. The null dereferences were observed while accessing the dbuf kstat with awk on a system in which millions of small files were being created in order to overflow the system's metadata limit. Signed-off-by: Tim Chase <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #4837
Diffstat (limited to 'module/zfs/dbuf_stats.c')
0 files changed, 0 insertions, 0 deletions