# git rev-parse -q --verify 73aca179d78eaa11604ba0783a6d8b2125fbc332^{commit} 73aca179d78eaa11604ba0783a6d8b2125fbc332 already have revision, skipping fetch # git checkout -q -f -B kisskb 73aca179d78eaa11604ba0783a6d8b2125fbc332 # git clean -qxdf # < git log -1 # commit 73aca179d78eaa11604ba0783a6d8b2125fbc332 # Author: Michael Ellerman # Date: Mon Mar 26 19:27:01 2018 +1100 # # powerpc/modules: Fix crashes by adding CONFIG_RELOCATABLE to vermagic # # If you build the kernel with CONFIG_RELOCATABLE=n, then install the # modules, rebuild the kernel with CONFIG_RELOCATABLE=y and leave the # old modules installed, we crash something like: # # Unable to handle kernel paging request for data at address 0xd000000018d66cef # Faulting instruction address: 0xc0000000021ddd08 # Oops: Kernel access of bad area, sig: 11 [#1] # Modules linked in: x_tables autofs4 # CPU: 2 PID: 1 Comm: systemd Not tainted 4.16.0-rc6-gcc_ubuntu_le-g99fec39 #1 # ... # NIP check_version.isra.22+0x118/0x170 # Call Trace: # __ksymtab_xt_unregister_table+0x58/0xfffffffffffffcb8 [x_tables] (unreliable) # resolve_symbol+0xb4/0x150 # load_module+0x10e8/0x29a0 # SyS_finit_module+0x110/0x140 # system_call+0x58/0x6c # # This happens because since commit 71810db27c1c ("modversions: treat # symbol CRCs as 32 bit quantities"), a relocatable kernel encodes and # handles symbol CRCs differently from a non-relocatable kernel. # # Although it's possible we could try and detect this situation and # handle it, it's much more robust to simply make the state of # CONFIG_RELOCATABLE part of the module vermagic. # # Fixes: 71810db27c1c ("modversions: treat symbol CRCs as 32 bit quantities") # 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 73aca179d78eaa11604ba0783a6d8b2125fbc332 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_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)) ^ arch/powerpc/boot/mpc8555cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/mpc8568mds.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8568mds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8541cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe08000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe09000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe0a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e0009000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e000b000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/sbc8548.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/sbc8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/tqm8548.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/tqm8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb556dc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb44f24) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5547100 Bytes = 5417.09 kB = 5.29 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570862 Bytes = 5440.29 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5571073 Bytes = 5440.50 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5571683 Bytes = 5441.10 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570887 Bytes = 5440.32 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570999 Bytes = 5440.43 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570886 Bytes = 5440.32 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570909 Bytes = 5440.34 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570881 Bytes = 5440.31 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5573586 Bytes = 5442.96 kB = 5.32 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5572458 Bytes = 5441.85 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5571261 Bytes = 5440.68 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5573329 Bytes = 5442.70 kB = 5.32 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570860 Bytes = 5440.29 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5573627 Bytes = 5443.00 kB = 5.32 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-g73aca17 Created: Tue Apr 10 00:10:38 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5570754 Bytes = 5440.19 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig_powerpc-5.3 # Build took: 0:01:48.385402