# git rev-parse -q --verify b49f9d9b0e428909796b4a7e7f1049f489859e0f^{commit} b49f9d9b0e428909796b4a7e7f1049f489859e0f already have revision, skipping fetch # git checkout -q -f -B kisskb b49f9d9b0e428909796b4a7e7f1049f489859e0f # git clean -qxdf # < git log -1 # commit b49f9d9b0e428909796b4a7e7f1049f489859e0f # Author: Naveen N. Rao # Date: Wed May 19 16:17:17 2021 +0530 # # powerpc/kprobes: Fix validation of prefixed instructions across page boundary # # When checking if the probed instruction is the suffix of a prefixed # instruction, we access the instruction at the previous word. If the # probed instruction is the very first word of a module, we can end up # trying to access an invalid page. # # Fix this by skipping the check for all instructions at the beginning of # a page. Prefixed instructions cannot cross a 64-byte boundary and as # such, we don't expect to encounter a suffix as the very first word in a # page for kernel text. Even if there are prefixed instructions crossing # a page boundary (from a module, for instance), the instruction will be # illegal, so preventing probing on the suffix of such prefix instructions # isn't worthwhile. # # Fixes: b4657f7650ba ("powerpc/kprobes: Don't allow breakpoints on suffixes") # Cc: stable@vger.kernel.org # v5.8+ # Reported-by: Christophe Leroy # Signed-off-by: Naveen N. Rao # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/0df9a032a05576a2fa8e97d1b769af2ff0eafbd6.1621416666.git.naveen.n.rao@linux.vnet.ibm.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 b49f9d9b0e428909796b4a7e7f1049f489859e0f # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc521c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd582c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc521c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:53 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5487599 Bytes = 5358.98 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:53 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5488078 Bytes = 5359.45 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5486441 Bytes = 5357.85 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5457847 Bytes = 5329.93 KiB = 5.21 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5486100 Bytes = 5357.52 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5487522 Bytes = 5358.91 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5488347 Bytes = 5359.71 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5487586 Bytes = 5358.97 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.13.0-rc2+ Created: Fri May 21 23:32:54 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5488062 Bytes = 5359.44 KiB = 5.23 MiB Load Address: 00d00000 Entry Point: 00d00894 Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 # Build took: 0:04:42.051244