# git rev-parse -q --verify 21f8b2fa3ca5b01f7a2b51b89ce97a3705a15aa0^{commit} 21f8b2fa3ca5b01f7a2b51b89ce97a3705a15aa0 already have revision, skipping fetch # git checkout -q -f -B kisskb 21f8b2fa3ca5b01f7a2b51b89ce97a3705a15aa0 # git clean -qxdf # < git log -1 # commit 21f8b2fa3ca5b01f7a2b51b89ce97a3705a15aa0 # Author: Christophe Leroy # Date: Tue Feb 18 19:38:27 2020 +0000 # # powerpc/kprobes: Ignore traps that happened in real mode # # When a program check exception happens while MMU translation is # disabled, following Oops happens in kprobe_handler() in the following # code: # # } else if (*addr != BREAKPOINT_INSTRUCTION) { # # BUG: Unable to handle kernel data access on read at 0x0000e268 # Faulting instruction address: 0xc000ec34 # Oops: Kernel access of bad area, sig: 11 [#1] # BE PAGE_SIZE=16K PREEMPT CMPC885 # Modules linked in: # CPU: 0 PID: 429 Comm: cat Not tainted 5.6.0-rc1-s3k-dev-00824-g84195dc6c58a #3267 # NIP: c000ec34 LR: c000ecd8 CTR: c019cab8 # REGS: ca4d3b58 TRAP: 0300 Not tainted (5.6.0-rc1-s3k-dev-00824-g84195dc6c58a) # MSR: 00001032 CR: 2a4d3c52 XER: 00000000 # DAR: 0000e268 DSISR: c0000000 # GPR00: c000b09c ca4d3c10 c66d0620 00000000 ca4d3c60 00000000 00009032 00000000 # GPR08: 00020000 00000000 c087de44 c000afe0 c66d0ad0 100d3dd6 fffffff3 00000000 # GPR16: 00000000 00000041 00000000 ca4d3d70 00000000 00000000 0000416d 00000000 # GPR24: 00000004 c53b6128 00000000 0000e268 00000000 c07c0000 c07bb6fc ca4d3c60 # NIP [c000ec34] kprobe_handler+0x128/0x290 # LR [c000ecd8] kprobe_handler+0x1cc/0x290 # Call Trace: # [ca4d3c30] [c000b09c] program_check_exception+0xbc/0x6fc # [ca4d3c50] [c000e43c] ret_from_except_full+0x0/0x4 # --- interrupt: 700 at 0xe268 # Instruction dump: # 913e0008 81220000 38600001 3929ffff 91220000 80010024 bb410008 7c0803a6 # 38210020 4e800020 38600000 4e800020 <813b0000> 6d2a7fe0 2f8a0008 419e0154 # ---[ end trace 5b9152d4cdadd06d ]--- # # kprobe is not prepared to handle events in real mode and functions # running in real mode should have been blacklisted, so kprobe_handler() # can safely bail out telling 'this trap is not mine' for any trap that # happened while in real-mode. # # If the trap happened with MSR_IR or MSR_DR cleared, return 0 # immediately. # # Reported-by: Larry Finger # Fixes: 6cc89bad60a6 ("powerpc/kprobes: Invoke handlers directly") # Cc: stable@vger.kernel.org # v4.10+ # Signed-off-by: Christophe Leroy # Reviewed-by: Masami Hiramatsu # Reviewed-by: Naveen N. Rao # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/424331e2006e7291a1bfe40e7f3fa58825f565e1.1582054578.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 21f8b2fa3ca5b01f7a2b51b89ce97a3705a15aa0 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_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 8 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- help # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- olddefconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:72: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/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/ext4/extents.c: In function 'ext4_convert_unwritten_io_end_vec': /kisskb/src/fs/ext4/extents.c:5009:23: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/trace_events.c: In function 'event_create_dir': /kisskb/src/kernel/trace/trace_events.c:2040: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:1426:5: warning: 'page' 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/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/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2598: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:1859:6: warning: 'ret' 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/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/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/fs/io_uring.c: In function '__io_sqe_files_update': /kisskb/src/fs/io_uring.c:5824:13: warning: 'err' 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 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd20000) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:08 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6337235 Bytes = 6188.71 KiB = 6.04 MiB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6367675 Bytes = 6218.43 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6369235 Bytes = 6219.96 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368415 Bytes = 6219.16 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368413 Bytes = 6219.15 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368752 Bytes = 6219.48 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6370211 Bytes = 6220.91 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368441 Bytes = 6219.18 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002e8 INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd307d0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6370213 Bytes = 6220.91 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:11 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6367763 Bytes = 6218.52 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:12 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368447 Bytes = 6219.19 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:12 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368401 Bytes = 6219.14 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002a8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:12 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6367668 Bytes = 6218.43 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002e8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:12 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6368452 Bytes = 6219.19 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002e8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:12 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6367773 Bytes = 6218.53 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002e8 Image Name: Linux-5.6.0-rc2-00099-g21f8b2fa3 Created: Wed Mar 25 12:36:12 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6367775 Bytes = 6218.53 KiB = 6.07 MiB Load Address: 00e00000 Entry Point: 00e002e8 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc4.6 # Build took: 0:02:49.859297