Files
linux/include/linux
Arnd Bergmann 1f9a8286bc uaccess: always export _copy_[from|to]_user with CONFIG_RUST
Rust code needs to be able to access _copy_from_user and _copy_to_user
so that it can skip the check_copy_size check in cases where the length
is known at compile-time, mirroring the logic for when C code will skip
check_copy_size. To do this, we ensure that exported versions of these
methods are available when CONFIG_RUST is enabled.

Alice has verified that this patch passes the CONFIG_TEST_USER_COPY test
on x86 using the Android cuttlefish emulator.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/r/20240528-alice-mm-v7-2-78222c31b8f4@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2024-07-08 23:44:01 +02:00
..
2024-04-24 11:06:26 -07:00
2024-04-25 20:55:49 -07:00
2024-06-18 14:48:27 +01:00
2024-05-02 20:35:57 +02:00
2024-04-17 08:44:03 -06:00
2024-04-29 16:28:07 -07:00
2024-06-24 18:29:20 +02:00
2024-04-23 09:03:37 +09:00
2024-05-05 17:53:55 -07:00
2024-05-11 00:41:15 +00:00
2024-04-15 16:03:24 -04:00
2024-05-09 13:02:39 +02:00
2024-05-19 14:36:17 -07:00
2024-05-19 14:40:44 -07:00
2024-04-23 13:16:03 +02:00
2024-06-21 13:33:17 +02:00
2024-06-05 19:19:26 -07:00
2024-05-03 10:44:42 +01:00
2024-06-24 20:52:09 -07:00
2024-05-05 17:53:49 -07:00
2024-04-15 19:43:48 +02:00
2024-05-02 16:28:15 +02:00
2024-05-04 18:57:21 +02:00
2024-05-06 12:05:00 +02:00
2024-04-25 20:55:48 -07:00