On Mon, 7 Sep 2020 16:35:40 +0530, Vaibhav Jain wrote:
The newly introduced 'perf_stats' attribute uses the default access
mode of 0444 letting non-root users access performance stats of an
nvdimm and potentially force the kernel into issuing large number of
expensive HCALLs. Since the information exposed by this attribute
cannot be cached hence its better to ward of access to this attribute
from users who don't need to access these performance statistics.
[...]
Applied to powerpc/fixes.
[1/1] powerpc/papr_scm: Limit the readability of 'perf_stats' sysfs attribute
https://git.kernel.org/powerpc/c/0460534b532e5518c657c7d6492b9337d975eaa3
cheers