Page MenuHomeFreeBSD

stand: Limit array passed to fzap_leaf_array to arrays size
Needs ReviewPublic

Authored by imp on Fri, Oct 2, 8:51 PM.
Tags
None
Referenced Files
F174494921: D60263.id188500.diff
Sat, Oct 3, 5:01 PM
F174413453: D60263.id188500.diff
Sat, Oct 3, 12:41 AM
F174412716: D60263.diff
Sat, Oct 3, 12:35 AM
F174396085: D60263.diff
Fri, Oct 2, 9:51 PM
F174395845: D60263.diff
Fri, Oct 2, 9:49 PM
Subscribers

Details

Summary

In zap_leaf_lookup, bound the array size passed to fzap_leaf_array to
the smaller of what's in the leaf node and the passed in array size. We
do not need to read more than the number of ints in the entry, so bound
what we pass to the fzap_leaf_read to this number. This is currently a
nop, but the dynamic system attributes code will need it.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77668
Build 74551: arc lint + arc unit