HomeFreeBSD

Restrict kstats and print real pointers

Description

Restrict kstats and print real pointers

There are several places where we use zfs_dbgmsg and %p to
print pointers. In the Linux kernel, these values obfuscated
to prevent information leaks which means the pointers aren't
very useful for debugging crash dumps. We decided to restrict
the permissions of dbgmsg (and some other kstats while we were
at it) and print pointers with %px in zfs_dbgmsg as well as
spl_dumpstack

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Gallagher <john.gallagher@delphix.com>
Signed-off-by: sara hartse <sara.hartse@delphix.com>
Closes #8467
Closes #8476

Details

Provenance
Sara Hartse <sara.hartse@gmail.com>Authored on Apr 5 2019, 1:57 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 5 2019, 1:57 AM
Parents
rGaf6507930051: Hint about zpool free vs zfs available
Branches
Unknown
Tags
Unknown