summaryrefslogtreecommitdiffstats
path: root/module/zfs/space_map.c
diff options
context:
space:
mode:
authorSara Hartse <[email protected]>2019-04-04 18:57:06 -0700
committerBrian Behlendorf <[email protected]>2019-04-04 18:57:06 -0700
commita887d653b32aaba3fe04c7b25ff0091b9ea9c64e (patch)
tree6d0bd45a6d2080fce9223ae252f5c93782418dd7 /module/zfs/space_map.c
parentaf6507930051e9ee481cad1130df84636c4a770c (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 'module/zfs/space_map.c')
-rw-r--r--module/zfs/space_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/space_map.c b/module/zfs/space_map.c
index 5cf3feaae..d9cd8767e 100644
--- a/module/zfs/space_map.c
+++ b/module/zfs/space_map.c
@@ -848,7 +848,7 @@ space_map_truncate(space_map_t *sm, int blocksize, dmu_tx_t *tx)
doi.doi_bonus_size != sizeof (space_map_phys_t)) ||
doi.doi_data_block_size != blocksize ||
doi.doi_metadata_block_size != 1 << space_map_ibs) {
- zfs_dbgmsg("txg %llu, spa %s, sm %p, reallocating "
+ zfs_dbgmsg("txg %llu, spa %s, sm %px, reallocating "
"object[%llu]: old bonus %u, old blocksz %u",
dmu_tx_get_txg(tx), spa_name(spa), sm, sm->sm_object,
doi.doi_bonus_size, doi.doi_data_block_size);