# git rev-parse -q --verify 0460534b532e5518c657c7d6492b9337d975eaa3^{commit} 0460534b532e5518c657c7d6492b9337d975eaa3 already have revision, skipping fetch # git checkout -q -f -B kisskb 0460534b532e5518c657c7d6492b9337d975eaa3 # git clean -qxdf # < git log -1 # commit 0460534b532e5518c657c7d6492b9337d975eaa3 # Author: Vaibhav Jain # Date: Mon Sep 7 16:35:40 2020 +0530 # # powerpc/papr_scm: Limit the readability of 'perf_stats' sysfs attribute # # The newly introduced 'perf_stats' attribute uses the default access # mode of 0444, allowing non-root users to access performance stats of # an nvdimm and potentially force the kernel into issuing a large number # of expensive hypercalls. Since the information exposed by this # attribute cannot be cached it is better to ward off access to this # attribute from users who don't need to access to these performance # statistics. # # Hence update the access mode of 'perf_stats' attribute to be only # readable by root users. # # Fixes: 2d02bf835e57 ("powerpc/papr_scm: Fetch nvdimm performance stats from PHYP") # Reported-by: Aneesh Kumar K.V # Signed-off-by: Vaibhav Jain # Reviewed-by: Ira Weiny # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200907110540.21349-1-vaibhav@linux.ibm.com # < /opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux-gcc --version # < /opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux-ld --version # < git log --format=%s --max-count=1 0460534b532e5518c657c7d6492b9337d975eaa3 # < make -s -j 80 ARCH=microblaze O=/kisskb/build/powerpc-fixes_mmu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- mmu_defconfig # < make -s -j 80 ARCH=microblaze O=/kisskb/build/powerpc-fixes_mmu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- help # make -s -j 80 ARCH=microblaze O=/kisskb/build/powerpc-fixes_mmu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- olddefconfig # make -s -j 80 ARCH=microblaze O=/kisskb/build/powerpc-fixes_mmu_defconfig_microblaze CROSS_COMPILE=/opt/cross/kisskb/br-microblaze-full-2016.08-613-ge98b4dd/bin/microblazeel-linux- /kisskb/src/scripts/Makefile.asm-generic:25: redundant generic-y found in arch/microblaze/include/asm/Kbuild: hw_irq.h Kernel: arch/microblaze/boot/linux.bin is ready (#1) Completed OK # rm -rf /kisskb/build/powerpc-fixes_mmu_defconfig_microblaze # Build took: 0:00:56.150785