summaryrefslogtreecommitdiff
path: root/Toolchain/Patches
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-02 02:09:25 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 02:17:12 +0100
commit3dcec260ed0455a1de9ff5ebbdd6480caf1bd6b4 (patch)
tree21fff2596bf8a1147173e06535901fabf32b54e9 /Toolchain/Patches
parente5ffa960d7b585f4aba0eb18b89a14dee9e7e2b5 (diff)
downloadserenity-3dcec260ed0455a1de9ff5ebbdd6480caf1bd6b4.zip
Kernel: Validate the full range of user memory passed to syscalls
We now validate the full range of userspace memory passed into syscalls instead of just checking that the first and last byte of the memory are in process-owned regions. This fixes an issue where it was possible to avoid rejection of invalid addresses that sat between two valid ones, simply by passing a valid address and a size large enough to put the end of the range at another valid address. I added a little test utility that tries to provoke EFAULT in various ways to help verify this. I'm sure we can think of more ways to test this but it's at least a start. :^) Thanks to mozjag for pointing out that this code was still lacking! Incidentally this also makes backtraces work again. Fixes #989.
Diffstat (limited to 'Toolchain/Patches')
0 files changed, 0 insertions, 0 deletions