mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 23:57:25 +00:00
Although we can still consider this impossible to happen now, because the mmap syscall entry code verifies that specified offset must be page aligned, it's still a good practice to VERIFY we actually take a start address as page-aligned in case of doing mmap on /dev/mem. As for read(2) on /dev/mem, we don't map anything to userspace so it's safe to read from whatever offset userspace specified as long as it does not break the original rules of reading physical memory from /dev/mem.
3.1 KiB
3.1 KiB