[roll] Roll fuchsia [kernel][port] Limit the number of port observers

This change limits the number of observers associated with a port.
When the limit is exceeded, a policy exception is raised for the
triggering process, which will result in its termination.  The default
value is UINT64_MAX (effectively unlimited).

The purpose of this change is to prevent a misbehaving program from
compromising system performance and stability.

Add new job policy code ZX_EXCP_POLICY_CODE_TOO_MANY_OBSERVERS.

Add new mini-process command MINIP_CMD_WAIT_ASYNC to facilitate
testing.

Add core-test PortTest.TooManyObservers to test the limit.  Note, this
test is disabled since the default is "no limit".  A future CL will
set a default limit and re-enable the test.

Original-Bug: 91615
Test: fx core-tests --gtest_filter=PortTest.TooManyObservers
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/654904
Original-Revision: 7dc038443df3fe6c10ef0ecc392a356bf404f19b
GitOrigin-RevId: 1b89315d4ff0e236fc05c77987682d7aef3ab8ec
Change-Id: I450fde99a3446b01258e916ccf2de4c8c197b8bd
1 file changed
tree: 18d4f5066979b368a72571e29b63c1b92ada6d09
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
  12. 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.