mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
There are two issues with the checks against VM_MAXUSER_ADDRESS. First, the comparison should consider the values as unsigned, otherwise addresses with the high bit set will fail to branch. Second, the value of VM_MAXUSER_ADDRESS is, by convention, one larger than the maximum mappable user address and invalid itself. Thus, use the bgeu instruction for these comparisons. Add a regression test case for copyin(9). PR: 257193 Reported by: Robert Morris <rtm@lcs.mit.edu> Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D31209 |
||
|---|---|---|
| .. | ||
| acct | ||
| execve | ||
| pipe | ||
| coredump_phnum_helper.c | ||
| coredump_phnum_test.sh | ||
| fdgrowtable_test.c | ||
| kcov.c | ||
| kern_copyin.c | ||
| kern_descrip_test.c | ||
| kill_zombie.c | ||
| libkern_crc32.c | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.inc | ||
| pdeathsig.c | ||
| pdeathsig_helper.c | ||
| ptrace_test.c | ||
| reaper.c | ||
| sendfile_helper.c | ||
| sendfile_test.sh | ||
| sigaltstack.c | ||
| sonewconn_overflow.py | ||
| sonewconn_overflow.sh | ||
| sys_getrandom.c | ||
| unix_passfd_test.c | ||
| unix_seqpacket_test.c | ||
| unix_socketpair_test.c | ||
| waitpid_nohang.c | ||