HomeFreeBSD

Add missing NULL in zpl_xattr_handlers

Description

Add missing NULL in zpl_xattr_handlers

The xattr_resolve_name() helper function expects the registered
list of xattr handlers to be NULL terminated. This NULL was
accidentally missing which could result in a NULL dereference.

Interestingly this issue only manifested itself on certain 32-bit
systems. Presumably on 64-bit kernels we just always happen to
get lucky and the memory following the structure is zeroed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #594

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Mar 14 2012, 7:36 PM
Parents
rG42cb3819f1a1: Use stderr for 'no pools/datasets available' error
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG77a405ae52e4: Add missing NULL in zpl_xattr_handlers (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Mar 15 2012, 10:18 PM