Commit 00470c1
committed
Merge: arm64: debug: remove hook registration, split exception entry
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1350
JIRA: https://issues.redhat.com/browse/RHEL-69599
CONFLICTS:
minor conflict, more context than functionality, as RHEL-10 does not have
commit d683a85 ("ubsan: Remove regs from report_ubsan_failure()")
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()
dc1fd37 arm64: Introduce esr_is_ubsan_brk()
6adfdc5 arm64: debug: call software breakpoint handlers statically
403b48a arm64: debug: call step handlers statically
d4e0b12 arm64: debug: remove break/step handler registration infrastructure
398edaa arm64/fpsimd: Do not discard modified SVE state
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
a8b8cce arm64: debug: remove debug exception registration infrastructure
Special note goes for commit dc1fd37 that was added to fix a minor context
conflict and commit 398edaa that is both required context and a fix.
Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Approved-by: Gabriele Monaco <gmonaco@redhat.com>
Approved-by: Rafael Aquini <raquini@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Scott Weaver <scweaver@redhat.com>File tree
19 files changed
+377
-479
lines changed- arch/arm64
- include/asm
- kernel
- probes
- mm
19 files changed
+377
-479
lines changed| 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 | | |
| |||
108 | 84 | | |
109 | 85 | | |
110 | 86 | | |
111 | | - | |
| 87 | + | |
112 | 88 | | |
113 | | - | |
| 89 | + | |
114 | 90 | | |
115 | | - | |
| 91 | + | |
116 | 92 | | |
117 | 93 | | |
118 | 94 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 95 | + | |
122 | 96 | | |
123 | 97 | | |
124 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
| 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 | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
0 commit comments