android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marco Elver b5c9938cb4
FROMGIT: kfence: use pt_regs to generate stack trace on faults
Instead of removing the fault handling portion of the stack trace based on
the fault handler's name, just use struct pt_regs directly.

Change kfence_handle_page_fault() to take a struct pt_regs, and plumb it
through to kfence_report_error() for out-of-bounds, use-after-free, or
invalid access errors, where pt_regs is used to generate the stack trace.

If the kernel is a DEBUG_KERNEL, also show registers for more information.

Link: https://lkml.kernel.org/r/20201105092133.2075331-1-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Jann Horn <jannh@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Bug: 177201466
(cherry picked from commit 54a5abe9b5d542ee71836439cc662efe178c8211
    https://github.com/hnaz/linux-mm v5.11-rc4-mmots-2021-01-21-20-10)
Test: CONFIG_KFENCE_KUNIT_TEST=y passes on Cuttlefish
Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: I3a60060b24f0efb4faee2e6c953973bc1263e8d1
2026-05-07 17:24:03 +03:00
..
alpha UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
arc Merge branch 'android11-5.4-lts' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-12-11 01:41:51 -08:00
arm UPSTREAM: arm: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
arm64 FROMGIT: kfence: use pt_regs to generate stack trace on faults 2026-05-07 17:24:03 +03:00
c6x
csky UPSTREAM: csky: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
h8300
hexagon UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
ia64 BACKPORT: maccess: rename probe_kernel_address to get_kernel_nofault 2026-01-14 18:13:21 -08:00
m68k Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
microblaze BACKPORT: epoll: wire up syscall epoll_pwait2 2025-12-22 07:42:50 +02:00
mips UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
nds32 BACKPORT: maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault 2026-01-14 18:13:21 -08:00
nios2 Merge tag 'ASB-2025-08-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-01 13:17:46 +03:00
openrisc UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
parisc UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
powerpc UPSTREAM: powerpc: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
riscv BACKPORT: kbuild: check CONFIG_AS_IS_LLVM instead of LLVM_IAS 2026-05-05 20:02:23 +03:00
s390 UPSTREAM: s390: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
sh UPSTREAM: sh: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
sparc UPSTREAM: net: retrieve netns cookie via getsocketopt 2026-05-07 10:18:28 -04:00
um Merge android11-5.4.302(91d385eb) into msm-5.4 2026-01-30 11:41:11 +05:30
unicore32 UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
x86 FROMGIT: kfence: use pt_regs to generate stack trace on faults 2026-05-07 17:24:03 +03:00
xtensa UPSTREAM: xtensa: Enable seccomp architecture tracking 2026-05-07 10:17:18 -04:00
.gitignore
Kconfig BACKPORT: mm: speedup mremap on 1GB or larger regions 2025-02-20 04:17:48 +02:00