# git rev-parse -q --verify c21f5a9ed85ca3e914ca11f421677ae9ae0d04b0^{commit} c21f5a9ed85ca3e914ca11f421677ae9ae0d04b0 already have revision, skipping fetch # git checkout -q -f -B kisskb c21f5a9ed85ca3e914ca11f421677ae9ae0d04b0 # git clean -qxdf # < git log -1 # commit c21f5a9ed85ca3e914ca11f421677ae9ae0d04b0 # Author: Christophe Leroy # Date: Mon Jun 3 13:00:51 2019 +0000 # # powerpc/32s: fix booting with CONFIG_PPC_EARLY_DEBUG_BOOTX # # When booting through OF, setup_disp_bat() does nothing because # disp_BAT are not set. By change, it used to work because BOOTX # buffer is mapped 1:1 at address 0x81000000 by the bootloader, and # btext_setup_display() sets virt addr same as phys addr. # # But since commit 215b823707ce ("powerpc/32s: set up an early static # hash table for KASAN."), a temporary page table overrides the # bootloader mapping. # # This 0x81000000 is also problematic with the newly implemented # Kernel Userspace Access Protection (KUAP) because it is within user # address space. # # This patch fixes those issues by properly setting disp_BAT through # a call to btext_prepare_BAT(), allowing setup_disp_bat() to # properly setup BAT3 for early bootx screen buffer access. # # Reported-by: Mathieu Malaterre # Fixes: 215b823707ce ("powerpc/32s: set up an early static hash table for KASAN.") # Signed-off-by: Christophe Leroy # Tested-by: Mathieu Malaterre # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 c21f5a9ed85ca3e914ca11f421677ae9ae0d04b0 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:194:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1465:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:803:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:800:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:331:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2589:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1850:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:334.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/mpc8541cds.dts:334.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 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc733cc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc62bcc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:36 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6009906 Bytes = 5869.05 KiB = 5.73 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040996 Bytes = 5899.41 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6041652 Bytes = 5900.05 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6041660 Bytes = 5900.06 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6041026 Bytes = 5899.44 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040329 Bytes = 5898.76 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6041002 Bytes = 5899.42 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040992 Bytes = 5899.41 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6041398 Bytes = 5899.80 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040526 Bytes = 5898.95 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040331 Bytes = 5898.76 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040612 Bytes = 5899.04 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6042057 Bytes = 5900.45 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040542 Bytes = 5898.97 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6042173 Bytes = 5900.56 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.2.0-rc2-gc21f5a9ed85c Created: Fri Jun 7 23:46:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6040976 Bytes = 5899.39 KiB = 5.76 MiB Load Address: 00d00000 Entry Point: 00d002e8 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:01:41.702227