arm: don't call addr_limit_user_check for nommu
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | syscalls: use uaccess_kernel in addr_limit_user_checkinclude/ | +1 | 12 replies | |
| 2/6 | nds32: use uaccess_kernel in show_regsarch/ | +1 | 0 replies | |
| 3/6 | riscv: include <asm/pgtable.h> in <asm/uaccess.h>arch/ | +2 | 0 replies | |
| 4/6 | uaccess: remove segment_eqarch/ arch/ arch/ +21 more | +25 | 1 reply | |
| 5/6 | uaccess: add force_uaccess_{begin,end} helpersarch/ arch/ arch/ +9 more | +63 | 1 reply | |
| 6/6 | exec: use force_uaccess_begin during exec and exitfs/ kernel/ | +7 | 2 replies |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Greentime Hu | Geert Uytterhoeven | Mark Rutland | Eric W. Biederman | Guenter Roeck |
|---|---|---|---|---|---|
| 1/6 | T-b | ||||
| 2/6 | A-b | ||||
| 3/6 | |||||
| 4/6 | A-b | A-b | |||
| 5/6 | A-b | A-b | A-b | ||
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH 0/6] arm: don't call addr_limit_user_check for nommu
On arm nommu kernel use the same constant for USER_DS and KERNEL_DS, and seqment_eq always returns false. With the current check in addr_limit_user_check that works by accident, but when replacing seqment_eq with uaccess_kerne it will fail. Just remove the not needed check entirely.
Signed-off-by Christoph Hellwig <[email protected]>
Reported-by Guenter Roeck <[email protected]>
---
Andrew: this should preferably go before the other patches in this series.
arch/arm/kernel/signal.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/kernel/signal.c +2 -0
@@ -713,7 +713,9 @@ struct page *get_signal_page(void)/* Defer to generic check */ asmlinkage void addr_limit_check_failed(void) { +#ifdef CONFIG_MMU addr_limit_user_check (); +#endif }#ifdef CONFIG_DEBUG_RSEQ
Signature · 1 line
2.27.0