# 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 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe1933c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) INFO: Uncompressed kernel (size 0xe08c10) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xf00000) Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:10 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851774 Bytes = 6691.19 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:08 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6821669 Bytes = 6661.79 KiB = 6.51 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:11 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6854652 Bytes = 6694.00 KiB = 6.54 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:11 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851740 Bytes = 6691.15 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:11 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851453 Bytes = 6690.87 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f00314 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:11 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851631 Bytes = 6691.05 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:11 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851946 Bytes = 6691.35 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f00314 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851923 Bytes = 6691.33 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6852617 Bytes = 6692.01 KiB = 6.54 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851315 Bytes = 6690.74 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851466 Bytes = 6690.88 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f00314 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851467 Bytes = 6690.89 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f00314 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6854077 Bytes = 6693.43 KiB = 6.54 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851441 Bytes = 6690.86 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f002a4 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6851846 Bytes = 6691.26 KiB = 6.53 MiB Load Address: 00f00000 Entry Point: 00f00314 Image Name: Linux-5.13.0-rc2-gb49f9d9b0e42 Created: Fri May 21 23:42:12 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6853270 Bytes = 6692.65 KiB = 6.54 MiB Load Address: 00f00000 Entry Point: 00f002a4 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:02:19.907747