# git rev-parse -q --verify ff5bc793e47b537bf3e904fada585e102c54dd8b^{commit} ff5bc793e47b537bf3e904fada585e102c54dd8b already have revision, skipping fetch # git checkout -q -f -B kisskb ff5bc793e47b537bf3e904fada585e102c54dd8b # git clean -qxdf # < git log -1 # commit ff5bc793e47b537bf3e904fada585e102c54dd8b # Author: Nicholas Piggin # Date: Wed Jun 6 11:40:08 2018 +1000 # # powerpc/64s/radix: Fix missing ptesync in flush_cache_vmap # # There is a typo in f1cb8f9beb ("powerpc/64s/radix: avoid ptesync after # set_pte and ptep_set_access_flags") config ifdef, which results in the # necessary ptesync not being issued after vmalloc. # # This causes random kernel faults in module load, bpf load, anywhere # that vmalloc mappings are used. # # After correcting the code, this survives a guest kernel booting # hundreds of times where previously there would be a crash every few # boots (I haven't noticed the crash on host, perhaps due to different # TLB and page table walking behaviour in hardware). # # A memory clobber is also added to the flush, just to be sure it won't # be reordered with the pte set or the subsequent mapping access. # # Fixes: f1cb8f9beb ("powerpc/64s/radix: avoid ptesync after set_pte and ptep_set_access_flags") # 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 ff5bc793e47b537bf3e904fada585e102c54dd8b # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_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-next_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)) ^ 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/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/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/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/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' 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/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' INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbeb618) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbdae60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5845642 Bytes = 5708.63 kB = 5.57 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869581 Bytes = 5732.01 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868250 Bytes = 5730.71 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868255 Bytes = 5730.72 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869011 Bytes = 5731.46 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869484 Bytes = 5731.92 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868292 Bytes = 5730.75 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869013 Bytes = 5731.46 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:15 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869042 Bytes = 5731.49 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869058 Bytes = 5731.50 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5869299 Bytes = 5731.74 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5870139 Bytes = 5732.56 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:16 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5870171 Bytes = 5732.59 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868657 Bytes = 5731.11 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868520 Bytes = 5730.98 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gff5bc79 Created: Thu Jun 7 00:21:17 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5868492 Bytes = 5730.95 kB = 5.60 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:02:00.400895