diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-08-03 02:34:25 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-08-13 16:05:09 +0200 |
commit | d1c35b4cf108f375eaea43a966745e67708c3c02 (patch) | |
tree | f7fa467d52a7fcf6496e0e498bb1b77a27042f4f /security/loadpin | |
parent | 3634762ead9f828eac6796e0d68e4dfed0f6b4cf (diff) |
rust: alloc: implement `Cmalloc` in module allocator_test
So far the kernel's `Box` and `Vec` types can't be used by userspace
test cases, since all users of those types (e.g. `CString`) use kernel
allocators for instantiation.
In order to allow userspace test cases to make use of such types as
well, implement the `Cmalloc` allocator within the allocator_test module
and type alias all kernel allocators to `Cmalloc`. The `Cmalloc`
allocator uses libc's realloc() function as allocator backend.
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'security/loadpin')
0 files changed, 0 insertions, 0 deletions