# git rev-parse -q --verify 0f52b3a00c789569d7ed822b5a6b30f59a8d4393^{commit} 0f52b3a00c789569d7ed822b5a6b30f59a8d4393 already have revision, skipping fetch # git checkout -q -f -B kisskb 0f52b3a00c789569d7ed822b5a6b30f59a8d4393 # git clean -qxdf # < git log -1 # commit 0f52b3a00c789569d7ed822b5a6b30f59a8d4393 # Author: Mahesh Salgaonkar # Date: Thu Aug 23 10:26:08 2018 +0530 # # powerpc/mce: Fix SLB rebolting during MCE recovery path. # # The commit e7e81847478 ("powerpc/64s: move machine check SLB flushing # to mm/slb.c") introduced a bug in reloading bolted SLB entries. Unused # bolted entries are stored with .esid=0 in the slb_shadow area, and # that value is now used directly as the RB input to slbmte, which means # the RB[52:63] index field is set to 0, which causes SLB entry 0 to be # cleared. # # Fix this by storing the index bits in the unused bolted entries, which # directs the slbmte to the right place. # # The SLB shadow area is also used by the hypervisor, but PAPR is okay # with that, from LoPAPR v1.1, 14.11.1.3 SLB Shadow Buffer: # # Note: SLB is filled sequentially starting at index 0 # from the shadow buffer ignoring the contents of # RB field bits 52-63 # # Fixes: e7e81847478b ("powerpc/64s: move machine check SLB flushing to mm/slb.c") # Signed-off-by: Mahesh Salgaonkar # Signed-off-by: Nicholas Piggin # Reviewed-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 0f52b3a00c789569d7ed822b5a6b30f59a8d4393 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. In function 'kernfs_get_target_path', inlined from 'kernfs_getlink.isra.0' at /kisskb/src/fs/kernfs/symlink.c:109:10, inlined from 'kernfs_iop_get_link.part.1' at /kisskb/src/fs/kernfs/symlink.c:127:10, inlined from 'kernfs_iop_get_link': /kisskb/src/fs/kernfs/symlink.c:91:3: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(s + len, kn->name, slen); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/kernfs/symlink.c: In function 'kernfs_iop_get_link': /kisskb/src/fs/kernfs/symlink.c:88:14: note: length computed here int slen = strlen(kn->name); ^~~~~~~~~~~~~~~~ /kisskb/src/crypto/ablkcipher.c: In function 'crypto_ablkcipher_report': /kisskb/src/crypto/ablkcipher.c:374:2: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(rblkcipher.geniv)); ~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/crypto/ablkcipher.c: In function 'crypto_givcipher_report': /kisskb/src/crypto/ablkcipher.c:448:2: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(rblkcipher.geniv)); ~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/crypto/blkcipher.c: In function 'crypto_blkcipher_report': /kisskb/src/crypto/blkcipher.c:513:2: warning: 'strncpy' specified bound 64 equals destination size [-Wstringop-truncation] strncpy(rblkcipher.geniv, alg->cra_blkcipher.geniv ?: "", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(rblkcipher.geniv)); ~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'fill_kobj_path', inlined from 'kobject_get_path' at /kisskb/src/lib/kobject.c:155:2: /kisskb/src/lib/kobject.c:128:3: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(path + length, kobject_name(parent), cur); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/lib/kobject.c: In function 'kobject_get_path': /kisskb/src/lib/kobject.c:125:13: note: length computed here int cur = strlen(kobject_name(parent)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/ext4/super.c: In function '__save_error_info.isra.5': /kisskb/src/fs/ext4/super.c:326:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] strncpy(es->s_last_error_func, func, sizeof(es->s_last_error_func)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/ext4/super.c:330:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] strncpy(es->s_first_error_func, func, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sizeof(es->s_first_error_func)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/boot/katmai.dtb: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" arch/powerpc/boot/katmai.dtb: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" arch/powerpc/boot/katmai.dtb: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x57b448) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x58bb60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2787419 Bytes = 2722.09 kB = 2.66 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2816221 Bytes = 2750.22 kB = 2.69 MB Load Address: 00600000 Entry Point: 006000bc Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2815778 Bytes = 2749.78 kB = 2.69 MB Load Address: 00600000 Entry Point: 00601230 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2815881 Bytes = 2749.88 kB = 2.69 MB Load Address: 00600000 Entry Point: 00601224 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2816317 Bytes = 2750.31 kB = 2.69 MB Load Address: 00600000 Entry Point: 00601208 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2815417 Bytes = 2749.43 kB = 2.68 MB Load Address: 00600000 Entry Point: 006001a4 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2815293 Bytes = 2749.31 kB = 2.68 MB Load Address: 00600000 Entry Point: 00601228 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2816315 Bytes = 2750.31 kB = 2.69 MB Load Address: 00600000 Entry Point: 00601224 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2815725 Bytes = 2749.73 kB = 2.69 MB Load Address: 00600000 Entry Point: 00601214 Image Name: Linux-4.18.0-rc3-g0f52b3a Created: Fri Aug 24 01:09:31 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2816158 Bytes = 2750.15 kB = 2.69 MB Load Address: 00600000 Entry Point: 0060121c Completed OK # rm -rf /kisskb/build/powerpc-next_ppc44x_defconfig_powerpc-gcc8 # Build took: 0:00:52.703130