Skip to main content

MAX_USER_SLICE_LEN

Constant MAX_USER_SLICE_LEN 

Source
const MAX_USER_SLICE_LEN: usize = _; // 16_777_216usize
Expand description

Maximum length allowed for a single UserSlice (16 MiB).

Prevents a malicious userspace from causing the kernel to walk millions of page table entries or allocate huge kernel buffers.