gecko-dev/tools/fuzzing
Nika Layzell 5e08e6891a Bug 1757802 - Don't keep alive Shmem shared memory regions on IProtocol, r=ipc-reviewers,jld
With this new approach, Shmem instances will now have their handles
transferred inline within messages as attachments, rather than being
associated with their actors and sent in separate messages.

This has a few advantages:

* The implementation is much simpler
* Releasing all references to a Shmem will automatically destroy it by
  RAII, rather than leaking the shared memory region until the toplevel
  actor is destroyed, removing the need for types like RaiiShmem.
* This allows re-transmitting Shmem instances to another process, as we
  don't close the shared memory region handle upon receiving it.

But also has a disadvantage that because we keep alive the shared memory
region's handle until the shmem is destroyed, so that it can be
re-transmitted, we may end up using more FDs or HANDLEs while running.

This patch intentionally doesn't change or simplify callsites, removing
APIs like RaiiShmem, in order to make it easier to revert if this causes
issues on platforms like Linux due to FD exhaustion. If we don't run
into increased resource exhaustion problems, we can make these changes
in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D140211
2022-04-18 19:26:15 +00:00
..
common
docs Bug 1449575 - Update fuzzing build docs. - r=jkratzer 2022-03-24 19:39:06 +00:00
faulty Bug 1754037 - Part 2: Forward declare Message{Reader,Writer} where Message is forward declared, r=ipc-reviewers,mccr8 2022-03-04 15:39:39 +00:00
interface Bug 1744806 - Fix gcc + --enable-fuzzing missing header r=decoder 2021-12-08 17:00:24 +00:00
ipc Bug 1757802 - Don't keep alive Shmem shared memory regions on IProtocol, r=ipc-reviewers,jld 2022-04-18 19:26:15 +00:00
libfuzzer
messagemanager Bug 1726123 - Part 5: Add missing "js/" includes outside of SM. r=arai 2021-08-17 15:45:39 +00:00
nyx Bug 1764259 - [Fuzzing] Nyx replay mode. r=truber 2022-04-14 12:10:14 +00:00
registry
rust
shmem
smoke Bug 1742857 - Add Grizzly fuzzing framework smoke test. r=tsmith,ahal 2022-01-13 14:23:11 +00:00
libfuzzer-config.mozbuild
libfuzzer-flags.mozbuild
moz.build Bug 1738278 - Add fuzzing snapshot API. r=truber,firefox-build-system-reviewers,glandium 2021-11-25 11:20:43 +00:00