Thread (43 messages) 43 messages, 9 authors, 2025-12-19

Re: [patch V5 02/12] uaccess: Provide ASM GOTO safe wrappers for unsafe_*_user()

From: Yann Ylavic <hidden>
Date: 2025-10-28 14:04:59
Also in: linux-arm-kernel, linux-fsdevel, linux-riscv, linux-s390, lkml

On Tue, Oct 28, 2025 at 10:32 AM Thomas Gleixner [off-list ref] wrote:
+
+#define __put_kernel_nofault(dst, src, type, label)            \
+do {                                                           \
+       __label__ local_label;                                  \
+       arch_get_kernel_nofault(dst, src, type, local_label);   \
Probably arch_put_kernel_nofault() instead?
+       if (0) {                                                \
+       local_label:                                            \
+               goto label;                                     \
+       }                                                       \
+} while (0)

Regards;
Yann.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help