# git rev-parse -q --verify 9c1a41149230e5e2d48c8948943306b8c0c9f242^{commit} 9c1a41149230e5e2d48c8948943306b8c0c9f242 already have revision, skipping fetch # git checkout -q -f -B kisskb 9c1a41149230e5e2d48c8948943306b8c0c9f242 # git clean -qxdf # < git log -1 # commit 9c1a41149230e5e2d48c8948943306b8c0c9f242 # Author: Nicholas Piggin # Date: Fri Mar 23 15:53:38 2018 +1000 # # powerpc/64s: Fix i-side SLB miss bad address handler saving nonvolatile GPRs # # The SLB bad address handler's trap number fixup does not preserve the # low bit that indicates nonvolatile GPRs have not been saved. This # leads save_nvgprs to skip saving them, and subsequent functions and # return from interrupt will think they are saved. # # This causes kernel branch-to-garbage debugging to not have correct # registers, can also cause userspace to have its registers clobbered # after a segfault. # # Fixes: f0f558b131 ("powerpc/mm: Preserve CFAR value on SLB miss caused by access to bogus address") # Cc: Paul Mackerras # Signed-off-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 9c1a41149230e5e2d48c8948943306b8c0c9f242 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.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-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, 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:77: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)) ^ INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd960c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbc8e54) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5818592 Bytes = 5682.22 kB = 5.55 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841873 Bytes = 5704.95 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:12 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843738 Bytes = 5706.78 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842306 Bytes = 5705.38 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5843877 Bytes = 5706.91 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842277 Bytes = 5705.35 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841603 Bytes = 5704.69 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841589 Bytes = 5704.68 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841528 Bytes = 5704.62 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844043 Bytes = 5707.07 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841648 Bytes = 5704.73 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841575 Bytes = 5704.66 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842276 Bytes = 5705.35 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842198 Bytes = 5705.27 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842203 Bytes = 5705.28 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc2-g9c1a411 Created: Sun Mar 25 00:06:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841645 Bytes = 5704.73 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:01:46.809036