1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

Kernel: Fix incorrect EFAULTs when syscall would write into COW pages.

This commit is contained in:
Andreas Kling 2019-01-25 01:39:15 +01:00
parent a4a106a430
commit 11b73c38d8
4 changed files with 38 additions and 32 deletions

View file

@ -90,7 +90,7 @@ int main(int, char**)
}
if (FD_ISSET(ptm_fd, &rfds)) {
byte buffer[1024];
byte buffer[4096];
ssize_t nread = read(ptm_fd, buffer, sizeof(buffer));
if (nread < 0) {
dbgprintf("Terminal read error: %s\n", strerror(errno));