ENOMEM
Cannot allocate memory
- Linux value
- 12
- strerror(3)
- Cannot allocate memory
- On this site
- 20 syscalls
Where you will see ENOMEM
- clone3(2)Linux · Processes
Insufficient kernel memory for the new task.
- close_range(2)Linux · File descriptors
With CLOSE_RANGE_UNSHARE: insufficient kernel memory for the new table.
- eventfd(2)Linux · Events
Insufficient memory to create a new eventfd.
- fanotify_init(2)Linux · Events
Allocating the notification group failed.
- io_uring_setup(2)Linux · I/O
Insufficient kernel resources.
- madvise(2)Linux · Memory
Part of the range isn't mapped; Linux applies the advice to the rest and still returns this.
- memfd_create(2)Linux · Memory
Insufficient memory to create the anonymous file.
- memfd_secret(2)Linux · Memory
Insufficient memory to create the anonymous file.
- mlock(2)Linux · Memory
Would exceed the RLIMIT_MEMLOCK soft limit without CAP_IPC_LOCK, or the range isn't fully mapped.
- mseal(2)Linux · Memory
The address range is not fully mapped, or spans more VMAs than the kernel will process.
- process_vm_readv(2)Linux · Memory
A range in remote_iov is not mapped in the target process's address space.
- seccomp(2)Linux · Sandboxing
Out of memory, or total filter length on the thread exceeds 32768 instructions.
- setns(2)Linux · Processes
Cannot allocate memory to change the namespace.
- signalfd(2)Linux · Events
Insufficient memory to create a new signalfd.
- splice(2)Linux · I/O
Out of memory.
- sync_file_range(2)Linux · I/O
Insufficient kernel memory.
- tee(2)Linux · I/O
Out of memory.
- timerfd_create(2)Linux · Events
Insufficient kernel memory to create the timer.
- unshare(2)Linux · Processes
Insufficient kernel memory to create the namespace.
- userfaultfd(2)Linux · Memory
Insufficient kernel memory.
Sources
- errno(3), Linux man-pages
- The meaning for each syscall is taken from that syscall's own card and the man page it cites.
Values are the Linux numbers on x86 and arm64; other architectures and the BSDs number some errors differently. BSD cards list the names the BSD man page uses. Spot one that's wrong? Tell Rod.