diff options
| author | Ziyi Guo <n7l8m4@u.northwestern.edu> | 2026-02-12 02:08:06 +0000 |
|---|---|---|
| committer | Mike Marshall <hubcap@omnibond.com> | 2026-04-07 11:22:18 -0400 |
| commit | f855f4ab123b2b9c93465288c03fbb07a5903bb3 (patch) | |
| tree | 9c10b8bbd6ebb4e72b3b9c616f14b2de61659deb /rust/kernel/alloc | |
| parent | dbd6a823057a728c7294f3aaa5ededba4ad19e57 (diff) | |
orangefs: add usercopy whitelist to orangefs_op_cache
orangefs_op_cache is created with kmem_cache_create(), which provides
no usercopy whitelist. orangefs_devreq_read() copies the tag and upcall
fields directly from slab objects to userspace via copy_to_user(). With
CONFIG_HARDENED_USERCOPY enabled, this triggers usercopy_abort().
Switch to kmem_cache_create_usercopy() with a whitelist covering the
tag and upcall fields, matching the pattern already used by
orangefs_inode_cache in super.c.
Signed-off-by: Ziyi Guo <n7l8m4@u.northwestern.edu>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
