[roll] Roll fuchsia [starnix] Fix restricted address space range used by usercopy

This fixes the address range for the restricted aspace passed to the
usercopy routines to cover the full restricted address space. The code
was excluding the top 2mb which meant mappings that high up would have
incorrect fault handling behavior - either kernel mode operations would
falsely reject the address as invalid or the usercopy fault handler
would not run for catchable faults. These addresses could be mapped
intentionally or be selected at random by the kernel's ASLR logic very
rarely - but more commonly on architectures with smaller address ranges
like RISC-V using the Sv39 scheme.

This also adds tests for kernel mode operations on the very lowest and
very highest accessible virtual addresses in restricted mode.

Original-Fixed: 356682112
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1096958
Original-Revision: bd64735b1fa6c61d6cc4c8bd843aa4c08e747533
GitOrigin-RevId: 77dd1f5399e12dd8b1bbc1f139a827b552539303
Change-Id: Ia4660594edee7ae8dbfdb8f429546a056aafa1e3
1 file changed
tree: d447b88b574371f2b89e91e206ae46c51d9ad3ca
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.