diff options
author | Tom Caputi <[email protected]> | 2018-04-17 14:13:57 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-17 11:13:57 -0700 |
commit | e14a32b1c844d924b9f093375c0badcf10f61741 (patch) | |
tree | 933a0515c9755a3b8ef854221a45c2de2e1112fc /include/libnvpair.h | |
parent | 0c03d21ac99ebdbefe65c319fc3712928c40af78 (diff) |
Fix object reclaim when using large dnodes
Currently, when the receive_object() code wants to reclaim an
object, it always assumes that the dnode is the legacy 512 bytes,
even when the incoming bonus buffer exceeds this length. This
causes a buffer overflow if --enable-debug is not provided and
triggers an ASSERT if it is. This patch resolves this issue and
adds an ASSERT to ensure this can't happen again.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tom Caputi <[email protected]>
Closes #7097
Closes #7433
Diffstat (limited to 'include/libnvpair.h')
0 files changed, 0 insertions, 0 deletions