Whamcloud - gitweb
LU-16314 llite: Prefer %pK with seq_printf 12/51212/7
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 24 Aug 2023 09:14:09 +0000 (04:14 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Sep 2023 06:17:14 +0000 (06:17 +0000)
commitbdb6033bf7351ff763ceee8b5cfeb7f5e4425ada
tree64b56bc04768951e9d98e1afef36dd443448888c
parent050c2fb23b1f98745305a3dfe3062ea5a66dfdb4
LU-16314 llite: Prefer %pK with seq_printf

Update procfs and sysfs users to prefer %pK to when
printing pointers so that when kptr_restrict is set to 1
a real pointer value is provided.

To enable printing non-hashed pointer values:
  sysctl -w kernel/kptr_restrict=1

This change also sets kptr_restrict to 1 for all clients
and servers under test by test framework.

Test-Parameters: trivial
HPE-bug-id: LUS-10945
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Iccfce1399648e752cb7b78afc75aacbfb0bde390
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51212
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/gnilnd/gnilnd_proc.c
lustre/llite/vvp_dev.c
lustre/tests/test-framework.sh