# 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/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 21f8b2fa3ca5b01f7a2b51b89ce97a3705a15aa0 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig KCONFIG_SEED=0x97DFE24D # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=n # Added to kconfig CONFIG_CPU_LITTLE_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_BOOK3E_64=n # Added to kconfig CONFIG_PPC_BOOK3S_64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:3313:warning: override: reassigning to symbol STANDALONE .config:3318:warning: override: reassigning to symbol PPC64 .config:3321:warning: override: reassigning to symbol PPC_DISABLE_WERROR .config:3322:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [y]: - OCXL [=y] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_randconfig+ppc64le_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [y]: - OCXL [=y] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [y]: - OCXL [=y] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [y]: - OCXL [=y] && PPC_POWERNV [=y] && PCI [=y] && EEH [=y] /kisskb/src/arch/powerpc/kernel/eeh.c:1676:12: warning: 'proc_eeh_show' defined but not used [-Wunused-function] 1676 | static int proc_eeh_show(struct seq_file *m, void *v) | ^~~~~~~~~~~~~ /kisskb/src/drivers/usb/host/fhci-hcd.c: In function 'fhci_urb_enqueue': /kisskb/src/drivers/usb/host/fhci-hcd.c:398:8: warning: this statement may fall through [-Wimplicit-fallthrough=] 398 | size = 2; | ~~~~~^~~ /kisskb/src/drivers/usb/host/fhci-hcd.c:399:2: note: here 399 | case PIPE_BULK: | ^~~~ /kisskb/src/drivers/cpufreq/powernv-cpufreq.c: In function 'powernv_cpufreq_reboot_notifier': /kisskb/src/drivers/cpufreq/powernv-cpufreq.c:896:1: warning: the frame size of 1104 bytes is larger than 1024 bytes [-Wframe-larger-than=] 896 | } | ^ /kisskb/src/drivers/usb/misc/usbtest.c: In function 'test_queue': /kisskb/src/drivers/usb/misc/usbtest.c:2148:1: warning: the frame size of 1232 bytes is larger than 1024 bytes [-Wframe-larger-than=] 2148 | } | ^ Completed OK # rm -rf /kisskb/build/powerpc-next-rand_randconfig+ppc64le_powerpc-gcc9 # Build took: 0:04:28.428949