Commit 2b0ec56
CKI KWF Bot
Merge: arm64: debug: remove hook registration, split exception entry
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>File tree
29 files changed
+364
-601
lines changed- arch
- arc/kernel
- arm64
- include/asm
- kernel
- probes
- mm
- arm/kernel
- h8300/kernel
- hexagon/kernel
- nds32/kernel
- nios2/kernel
- openrisc/kernel
- parisc/kernel
- powerpc/kernel
- riscv/kernel
- um/kernel
- init
29 files changed
+364
-601
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | 784 | | |
790 | 785 | | |
791 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 65 | | |
90 | 66 | | |
91 | 67 | | |
| |||
107 | 83 | | |
108 | 84 | | |
109 | 85 | | |
110 | | - | |
| 86 | + | |
111 | 87 | | |
112 | | - | |
| 88 | + | |
113 | 89 | | |
114 | | - | |
| 90 | + | |
115 | 91 | | |
116 | 92 | | |
117 | 93 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 94 | + | |
121 | 95 | | |
122 | 96 | | |
123 | 97 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
62 | 74 | | |
63 | 75 | | |
64 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
0 commit comments