mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
When a freebsd32 caller uses all or most allowed space for control messages (MCLBYTES == 2K) then the message may no longer fit when the messages are padded for 64-bit alignment. Historically we've just shrugged and said there is no ABI guarantee. We ran into this on CheriBSD where a capsicumized 64-bit nm would fail when called with more than 64 files. Fix this by not gratutiously capping size of mbuf data we'll allocate to MCLBYTES and let m_get2 allocate up to MJUMPAGESIZE (4K or larger). Instead of hard-coding a length check, let m_get2 do it and check for a NULL return. Reviewed by: markj, jhb, emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D36322 |
||
|---|---|---|
| .. | ||
| freebsd32.h | ||
| freebsd32_abort2.c | ||
| freebsd32_capability.c | ||
| freebsd32_ioctl.c | ||
| freebsd32_ioctl.h | ||
| freebsd32_ipc.h | ||
| freebsd32_misc.c | ||
| freebsd32_misc.h | ||
| freebsd32_proto.h | ||
| freebsd32_signal.h | ||
| freebsd32_syscall.h | ||
| freebsd32_syscalls.c | ||
| freebsd32_sysent.c | ||
| freebsd32_systrace_args.c | ||
| freebsd32_util.h | ||
| Makefile | ||
| syscalls.conf | ||