[PW_SID:955846] riscv: misaligned: fix interruptible context and add tests#329
[PW_SID:955846] riscv: misaligned: fix interruptible context and add tests#329linux-riscv-bot wants to merge 6 commits into
Conversation
Since both load/store and user/kernel should use almost the same path and that we are going to add some code around that, factorize it. Signed-off-by: Clément Léger <cleger@rivosinc.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
We can safely reenable IRQs if coming from userspace. This allows to access user memory that could potentially trigger a page fault. Fixes: b686ecd ("riscv: misaligned: Restrict user access to kernel memory") Signed-off-by: Clément Léger <cleger@rivosinc.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Now that we can safely handle user memory accesses while in the misaligned access handlers, use get_user() instead of __get_user() to have user memory access checks. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
riscv supports the "unaligned-trap" sysctl variable, add it to the list of supported architectures. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
This selftest tests (almost) all the currently emulated instruction (except for the RV32 compressed ones which are left as a future exercise for a RV32 user). For the FPU instructions, all the FPU registers are tested. Signed-off-by: Clément Léger <cleger@rivosinc.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 1: "[v2,1/5] riscv: misaligned: factorize trap handling" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 2: "[v2,2/5] riscv: misaligned: enable IRQs while handling misaligned accesses" |
|
Patch 3: "[v2,3/5] riscv: misaligned: use get_user() instead of __get_user()" |
|
Patch 3: "[v2,3/5] riscv: misaligned: use get_user() instead of __get_user()" |
|
Patch 3: "[v2,3/5] riscv: misaligned: use get_user() instead of __get_user()" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 4: "[v2,4/5] Documentation/sysctl: add riscv to unaligned-trap supported archs" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
|
Patch 5: "[v2,5/5] selftests: riscv: add misaligned access testing" |
6c2725a to
c8da138
Compare
PR for series 955846 applied to workflow__riscv__fixes
Name: riscv: misaligned: fix interruptible context and add tests
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=955846
Version: 2