# 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/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 0460534b532e5518c657c7d6492b9337d975eaa3 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc5200_defconfig # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/platforms/52xx/lite5200_sleep.S: Assembler messages: /kisskb/src/arch/powerpc/platforms/52xx/lite5200_sleep.S:184: Warning: invalid register expression /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1667:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/lib/zstd/compress.c: In function 'ZSTD_compressBlock_doubleFast': /kisskb/src/lib/zstd/compress.c:1393:1: warning: the frame size of 1584 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x7515a0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7515a0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7515a0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x740ee8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.9.0-rc1-g0460534b532e Created: Fri Sep 11 01:17:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3732677 Bytes = 3645.19 KiB = 3.56 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.9.0-rc1-g0460534b532e Created: Fri Sep 11 01:17:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3765869 Bytes = 3677.61 KiB = 3.59 MiB Load Address: 00800000 Entry Point: 00800274 Image Name: Linux-5.9.0-rc1-g0460534b532e Created: Fri Sep 11 01:17:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3765853 Bytes = 3677.59 KiB = 3.59 MiB Load Address: 00800000 Entry Point: 00800274 Image Name: Linux-5.9.0-rc1-g0460534b532e Created: Fri Sep 11 01:17:22 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3762531 Bytes = 3674.35 KiB = 3.59 MiB Load Address: 00800000 Entry Point: 00800274 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 # Build took: 0:01:18.665921