# git rev-parse -q --verify cbd18991e24fea2c31da3bb117c83e4a3538cd11^{commit} cbd18991e24fea2c31da3bb117c83e4a3538cd11 already have revision, skipping fetch # git checkout -q -f -B kisskb cbd18991e24fea2c31da3bb117c83e4a3538cd11 # git clean -qxdf # < git log -1 # commit cbd18991e24fea2c31da3bb117c83e4a3538cd11 # Author: Christophe Leroy # Date: Wed Aug 21 10:20:11 2019 +0000 # # powerpc/mm: Fix an Oops in kasan_mmu_init() # # Uncompressing Kernel Image ... OK # Loading Device Tree to 01ff7000, end 01fff74f ... OK # [ 0.000000] printk: bootconsole [udbg0] enabled # [ 0.000000] BUG: Unable to handle kernel data access at 0xf818c000 # [ 0.000000] Faulting instruction address: 0xc0013c7c # [ 0.000000] Thread overran stack, or stack corrupted # [ 0.000000] Oops: Kernel access of bad area, sig: 11 [#1] # [ 0.000000] BE PAGE_SIZE=16K PREEMPT # [ 0.000000] Modules linked in: # [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.3.0-rc4-s3k-dev-00743-g5abe4a3e8fd3-dirty #2080 # [ 0.000000] NIP: c0013c7c LR: c0013310 CTR: 00000000 # [ 0.000000] REGS: c0c5ff38 TRAP: 0300 Not tainted (5.3.0-rc4-s3k-dev-00743-g5abe4a3e8fd3-dirty) # [ 0.000000] MSR: 00001032 CR: 99033955 XER: 80002100 # [ 0.000000] DAR: f818c000 DSISR: 82000000 # [ 0.000000] GPR00: c0013310 c0c5fff0 c0ad6ac0 c0c600c0 f818c031 82000000 00000000 ffffffff # [ 0.000000] GPR08: 00000000 f1f1f1f1 c0013c2c c0013304 99033955 00400008 00000000 07ff9598 # [ 0.000000] GPR16: 00000000 07ffb94c 00000000 00000000 00000000 00000000 00000000 f818cfb2 # [ 0.000000] GPR24: 00000000 00000000 00001000 ffffffff 00000000 c07dbf80 00000000 f818c000 # [ 0.000000] NIP [c0013c7c] do_page_fault+0x50/0x904 # [ 0.000000] LR [c0013310] handle_page_fault+0xc/0x38 # [ 0.000000] Call Trace: # [ 0.000000] Instruction dump: # [ 0.000000] be010080 91410014 553fe8fe 3d40c001 3d20f1f1 7d800026 394a3c2c 3fffe000 # [ 0.000000] 6129f1f1 900100c4 9181007c 91410018 <913f0000> 3d2001f4 6129f4f4 913f0004 # # Don't map the early shadow page read-only yet when creating the new # page tables for the real shadow memory, otherwise the memblock # allocations that immediately follows to create the real shadow pages # that are about to replace the early shadow page trigger a page fault # if they fall into the region being worked on at the moment. # # Signed-off-by: Christophe Leroy # Fixes: 2edb16efc899 ("powerpc/32: Add KASAN support") # Cc: stable@vger.kernel.org # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/fe86886fb8db44360417cee0dc515ad47ca6ef72.1566382750.git.christophe.leroy@c-s.fr # < /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 cbd18991e24fea2c31da3bb117c83e4a3538cd11 # < make -s -j 120 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 120 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/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2591:6: warning: 'ret' 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:338:21: note: 'pdeo' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1852:6: warning: 'ret' 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/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/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:248:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:228:19: note: 'i' was declared here /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/sound/soc/soc-pcm.c: In function 'soc_pcm_trigger': /kisskb/src/sound/soc/soc-pcm.c:1074:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/soc-pcm.c: In function 'soc_pcm_bespoke_trigger': /kisskb/src/sound/soc/soc-pcm.c:1092:9: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.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/mpc8555cds.dts:330.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 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc9b04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcb9304) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204625 Bytes = 6059.20 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204671 Bytes = 6059.25 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204664 Bytes = 6059.24 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6173763 Bytes = 6029.07 KiB = 5.89 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204623 Bytes = 6059.20 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204841 Bytes = 6059.42 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204623 Bytes = 6059.20 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6206501 Bytes = 6061.04 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204888 Bytes = 6059.46 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6205006 Bytes = 6059.58 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204810 Bytes = 6059.38 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204866 Bytes = 6059.44 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002e8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6204839 Bytes = 6059.41 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6205022 Bytes = 6059.59 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6205929 Bytes = 6060.48 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Image Name: Linux-5.3.0-gcbd18991e24f Created: Sat Sep 21 10:03:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6206585 Bytes = 6061.12 KiB = 5.92 MiB Load Address: 00d00000 Entry Point: 00d002a8 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:01:11.431697