You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7265
JIRA: https://issues.redhat.com/browse/RHEL-65658
CONFLICTS:
Minor context conflicts as RHEL-9 does not have the following commits:
25b8400 ("arm64: Support Clang UBSAN trap codes for better reporting")
d683a85 ("ubsan: Remove regs from report_ubsan_failure()")
8ce71d2 ("arm64/traps: Handle GCS exceptions")
1384022 ("arm64: mops: Handle MOPS exceptions from EL1")
398edaa ("arm64/fpsimd: Do not discard modified SVE state")
This series simplifies the debug exception entry path by removing handler
registration mechanisms for the debug exception handlers, a holdover from
the arm kernel, as well as the break and stepping handlers.
This moves much of the code related to debug exceptions outside of
`mm/fault.c` where it didn't make much sense.
This allows us to split the debug exception entries: going from one common
path per EL for all debug exceptions to a unique one per exception and EL.
The result is a much simpler and fully static exception entry path, which
we tailor to the different exceptions and their constraints.
...
Original cover letter and testing procedure can be found here:
arm64: debug: remove hook registration, split exception entry (v6)
https://lore.kernel.org/linux-arm-kernel/20250707114109.35672-1-ada.coupriediaz@arm.com/
These are the upstream commits backported for this MR:
ad8b226 arm64: debug: clean up single_step_handler logic
b1e2d95 arm64: refactor aarch32_break_handler()
9a0e3b9 arm64: Return early when break handler is found on linked-list
3b84efc arm64: kprobes: Return DBG_HOOK_ERROR if kprobes can not handle a BRK
2537512 arm64: kretprobes: acquire the regs via a BRK exception
6adfdc5 arm64: debug: call software breakpoint handlers statically
403b48a arm64: debug: call step handlers statically
d4e0b12 arm64: debug: remove break/step handler registration infrastructure
eaff68b arm64: entry: Add entry and exit functions for debug exceptions
43e2ae7 arm64: debug: split hardware breakpoint exception entry
80691d3 arm64: debug: refactor reinstall_suspended_bps()
0ac7584 arm64: debug: split single stepping exception entry
413f0bb arm64: debug: split hardware watchpoint exception entry
31575e1 arm64: debug: split brk64 exception entry
fc5e5d0 arm64: debug: split bkpt32 exception entry
8b09788 trap: cleanup trap_init()
a8b8cce arm64: debug: remove debug exception registration infrastructure
Special note goes for commits 9a0e3b9, 3b84efc, 2537512 and
8b09788 that were added to fix minor context conflicts. Also, commit
Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Approved-by: Radu Rendec <rrendec@redhat.com>
Approved-by: Alessandro Carminati <acarmina@redhat.com>
Approved-by: Aristeu Rozanski <arozansk@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Approved-by: Audra Mitchell <aubaker@redhat.com>
Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
0 commit comments