signal/arm64: siginfo cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | signal/arm64: Push siginfo generation into arm64_notify_diearch/ arch/ arch/ +1 more | +30 | 0 replies | |
| 2/15 | signal/arm64: Remove unneeded tsk parameter from arm64_force_sig_infoarch/ arch/ arch/ +2 more | +8 | 0 replies | |
| 3/15 | signal/arm64: Factor out arm64_show_signal from arm64_force_sig_infoarch/ | +11 | 0 replies | |
| 4/15 | signal/arm64: Factor set_thread_esr out of __do_user_faultarch/ | +7 | 0 replies | |
| 5/15 | signal/arm64: Consolidate the two hwpoison cases in do_page_faultarch/ | +7 | 0 replies | |
| 6/15 | signal/arm64: For clarity separate the 3 signal sending cases in do_page_faultarch/ | +9 | 0 replies | |
| 7/15 | signal/arm64: Expand __do_user_fault and remove itarch/ | +8 | 0 replies | |
| 8/15 | signal/arm64: Only perform one esr_to_fault_info call in do_page_faultarch/ | +5 | 0 replies | |
| 9/15 | signal/arm64: Only call set_thread_esr once in do_page_faultarch/ | +1 | 0 replies | |
| 10/15 | signal/arm64: Add and use arm64_force_sig_fault where appropriatearch/ arch/ arch/ +2 more | +25 | 0 replies | |
| 11/15 | signal/arm64: Add and use arm64_force_sig_mceerr as appropriatearch/ arch/ arch/ | +10 | 0 replies | |
| 12/15 | signal/arm64: Remove arm64_force_sig_infoarch/ arch/ | +0 | 0 replies | |
| 13/15 | signal/arm64: In ptrace_hbptriggered name the signal description stringarch/ | +2 | 0 replies | |
| 14/15 | signal/arm64: Add and use arm64_force_sig_ptrace_errno_traparch/ arch/ arch/ | +11 | 0 replies | |
| 15/15 | signal/arm64: Use send_sig_fault where appropriatearch/ | +3 | 0 replies |
Reviews trailers per patch
None of the 15 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Catalin Marinas |
|---|---|
| Series | R-b T-b |
| 1/15 | |
| 2/15 | |
| 3/15 | |
| 4/15 | |
| 5/15 | |
| 6/15 | |
| 7/15 | |
| 8/15 | |
| 9/15 | |
| 10/15 | |
| 11/15 | |
| 12/15 | |
| 13/15 | |
| 14/15 | |
| 15/15 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [REVIEW][PATCH 00/15] signal/arm64: siginfo cleanups
This is the continuation of my work to sort out signaling of exceptions with siginfo. The old signal sending functions by taking a siginfo argument resulted in their callers having to deal with the fiddly nature of siginfo directly. In small numbers of callers this is not a problem but in the number of callers in the kernel this resulted in cases where fields were not initialized or improperly initialized before being passed to userspace.
To avoid having to worry about those issues I have added new signal sending functions that each deal wit a different siginfo case. When using these functions there is no room for the fiddly nature of siginfo to cause mistakes.
This is my set of changes to update arm64 to use those functions. Along with some refactoring so those functions can be cleanly used.
Folks please review and double check me. I think I have kept these changes simple and obviously correct but I am human and mess up sometimes.
After these patches have had a chance to be reviewed I plan to merge them by my siginfo tree. If you would rather take them in the arm64
tree let me know. All of the prerequisites should have been merged
through Linus's tree several releases ago.
Eric W. Biederman (15):
signal/arm64: Push siginfo generation into arm64_notify_die signal/arm64: Remove unneeded tsk parameter from arm64_force_sig_info signal/arm64: Factor out arm64_show_signal from arm64_force_sig_info signal/arm64: Factor set_thread_esr out of __do_user_fault signal/arm64: Consolidate the two hwpoison cases in do_page_fault signal/arm64: For clarity separate the 3 signal sending cases in do_page_fault signal/arm64: Expand __do_user_fault and remove it
signal/arm64: Only perform one esr_to_fault_info call in do_page_fault signal/arm64: Only call set_thread_esr once in do_page_fault signal/arm64: Add and use arm64_force_sig_fault where appropriate signal/arm64: Add and use arm64_force_sig_mceerr as appropriate signal/arm64: Remove arm64_force_sig_info
signal/arm64: In ptrace_hbptriggered name the signal description string signal/arm64: Add and use arm64_force_sig_ptrace_errno_trap signal/arm64: Use send_sig_fault where appropriate
arch/arm64/include/asm/system_misc.h | 3 +- arch/arm64/include/asm/traps.h | 5 +- arch/arm64/kernel/debug-monitors.c | 11 ++--- arch/arm64/kernel/fpsimd.c | 10 ++-- arch/arm64/kernel/ptrace.c | 16 +++--- arch/arm64/kernel/sys_compat.c | 13 ++--- arch/arm64/kernel/traps.c | 67 ++++++++++++------------- arch/arm64/mm/fault.c | 94 +++++++++++++----------------------- 8 files changed, 90 insertions(+), 129 deletions(-)