# git rev-parse -q --verify c72f04dc46f466a7574a204bf2e965aa1c5cf277^{commit} c72f04dc46f466a7574a204bf2e965aa1c5cf277 already have revision, skipping fetch # git checkout -q -f -B kisskb c72f04dc46f466a7574a204bf2e965aa1c5cf277 # git clean -qxdf # < git log -1 # commit c72f04dc46f466a7574a204bf2e965aa1c5cf277 # Author: Petr Mladek # Date: Wed May 27 14:28:44 2020 +0200 # # powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again # # The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() # only to archs where they work") caused that bpf_probe_read{, str}() # functions were not longer available on architectures where the same # logical address might have different content in kernel and user memory # mapping. These architectures should use probe_read_{user,kernel}_str # helpers. # # For backward compatibility, the problematic functions are still # available on architectures where the user and kernel address spaces # are not overlapping. This is defined # CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE. # # At the moment, these backward compatible functions are enabled only on # x86_64, arm, and arm64. Let's do it also on powerpc that has the non # overlapping address space as well. # # Fixes: 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work") # Signed-off-by: Petr Mladek # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200527122844.19524-1-pmladek@suse.com # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 c72f04dc46f466a7574a204bf2e965aa1c5cf277 # < make -s -j 80 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- defconfig # < make -s -j 80 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- help # make -s -j 80 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- olddefconfig # make -s -j 80 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1652:6: note: 'oldval' was declared here int oldval, ret; ^ FIT description: Linux 5.7.0-rc2-gc72f04dc46f4 Created: Fri May 29 02:08:54 2020 Image 0 (kernel@0) Description: Linux 5.7.0-rc2-gc72f04dc46f4 Created: Fri May 29 02:08:54 2020 Type: Kernel Image Compression: gzip compressed Data Size: 4947485 Bytes = 4831.53 KiB = 4.72 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x80915630 Hash algo: sha1 Hash value: 5429b81f57748a7e3d88d17d9d99325613d5e2ba Image 1 (fdt@boston) Description: img,boston Device Tree Created: Fri May 29 02:08:54 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Fri May 29 02:08:54 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Fri May 29 02:08:54 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 4639 Bytes = 4.53 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 018897896b42c41c943aca35a20e4300dba250c8 Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Fri May 29 02:08:54 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 5198 Bytes = 5.08 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 36c7bd0bd79cfc2f7dd6acda6c7996294f4967e6 Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Fri May 29 02:08:54 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mips-gcc4.9 # Build took: 0:01:43.900896