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

Yann Ylavic ylavic.dev at gmail.com
Wed Oct 29 01:04:46 AEDT 2025


On Tue, Oct 28, 2025 at 10:32 AM Thomas Gleixner <tglx at linutronix.de> 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.


More information about the Linuxppc-dev mailing list