diff options
author | Sara Hartse <[email protected]> | 2019-04-04 18:57:06 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-04-04 18:57:06 -0700 |
commit | a887d653b32aaba3fe04c7b25ff0091b9ea9c64e (patch) | |
tree | 6d0bd45a6d2080fce9223ae252f5c93782418dd7 /lib | |
parent | af6507930051e9ee481cad1130df84636c4a770c (diff) |
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 <[email protected]>
Reviewed-by: John Gallagher <[email protected]>
Signed-off-by: sara hartse <[email protected]>
Closes #8467
Closes #8476
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/kernel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index 926f4f4f4..f22ad56b5 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -437,6 +437,7 @@ seq_printf(struct seq_file *m, const char *fmt, ...) void procfs_list_install(const char *module, const char *name, + mode_t mode, procfs_list_t *procfs_list, int (*show)(struct seq_file *f, void *p), int (*show_header)(struct seq_file *f), |