ladybird/Userland
Andreas Kling a27c5d2fb7 Kernel: Fail with EFAULT for any address+size that would wrap around
Previously we were only checking that each of the virtual pages in the
specified range were valid.

This made it possible to pass in negative buffer sizes to some syscalls
as long as (address) and (address+size) were on the same page.
2020-01-29 12:56:07 +01:00
..
al.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
allocate.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
aplay.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
avol.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
basename.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
cal.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
cat.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
chgrp.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
chmod.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
chown.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
chroot.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
clear.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
copy.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
cp.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
crash.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
cut.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
date.cpp Kernel+LibC+Userland: Switch to 64-bit time_t 2020-01-27 10:59:29 +01:00
df.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
disk_benchmark.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
dmesg.cpp dmesg: Use pledge() and unveil() 2020-01-22 11:40:22 +01:00
echo.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
env.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
false.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
fgrep.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
flock.cpp Userland: Add a dummy passthrough "flock" program 2020-01-20 20:44:29 +01:00
gron.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
head.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
host.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
hostname.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
html.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
id.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
ifconfig.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
jp.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
keymap.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
kill.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
killall.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ln.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
ls.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
lspci.cpp lspci: Use pledge() and unveil() 2020-01-23 09:51:45 +01:00
Makefile Build: Userland: no need for duplicate .cpp->.o rule 2020-01-01 22:21:50 +01:00
man.cpp Meta: Claim copyright for files created by me 2020-01-24 15:15:16 +01:00
md.cpp Meta: Claim copyright for files created by me 2020-01-24 15:15:16 +01:00
mkdir.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
mknod.cpp mknod: Use pledge() 2020-01-27 21:38:36 +01:00
modload.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
modunload.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
mon.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
more.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
mount.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
munch.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
mv.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
nc.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
nl.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
pape.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
paste.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
pidof.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
ping.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
pro.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
profile.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
ps.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
purge.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
realpath.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
reboot.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
rm.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
rmdir.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
rpcdump.cpp rpcdump: Use pledge() and unveil() 2020-01-23 10:22:54 +01:00
shutdown.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
sleep.cpp sleep: Use pledge() 2020-01-27 21:39:35 +01:00
sort.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
stat.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
strace.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
su.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
sync.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
syscall.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
sysctl.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
tail.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
tee.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
test_efault.cpp Kernel: Fail with EFAULT for any address+size that would wrap around 2020-01-29 12:56:07 +01:00
test_io.cpp Kernel: sys$readlink() should return the number of bytes written out 2020-01-27 21:50:51 +01:00
top.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
touch.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
tr.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
true.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
truncate.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
tt.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
tty.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
umount.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
uname.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
uptime.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
wc.cpp Userland+Terminal: Port to new CArgsParser API 2020-01-28 13:50:18 +01:00
which.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
whoami.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
yes.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00