Package trinity: Information
Source package: trinity
Version: 1.9-alt7
Build time: Nov 15, 2024, 08:40 AM in the task #362569
Category: Development/Other
Report package bugHome page: https://github.com/kernelslacker/trinity
License: GPL-2.0
Summary: System call fuzz tester
Description:
Trinity makes syscalls at random, with random arguments. Where Trinity differs from other fuzz testers is that the arguments it passes are not purely random. We found some bugs in the past by just passing random values, but once the really dumb bugs were found, these dumb fuzzers would just run and run. The problem was if a syscall took for example a file descriptor as an argument, one of the first things it would try to do was validate that fd. Being garbage, the kernel would just reject it as -EINVAL of course. So on startup, Trinity creates a list of file descriptors, by opening pipes, scanning sysfs, procfs, /dev, and creates a bunch of sockets using random network protocols. Then when a syscall needs an fd, it gets passed one of these at random. File descriptors aren't the only thing Trinity knows about. Every syscall has its arguments annotated, and where possible it tries to provide something at least semi-sensible. "Length" arguments for example get passed one of a whole bunch of potentially interesting values. (Powers of 2 +/-1 are a good choice for triggering off-by-one bugs it seems). Trinity also shares those file descriptors between multiple threads, which causes havoc sometimes. If a child process successfully creates an mmap, the pointer is stored, and fed to subsequent syscalls, sometimes with hilarious results.
List of RPM packages built from this SRPM:
trinity (x86_64, ppc64le, i586, aarch64)
trinity-debuginfo (x86_64, ppc64le, i586, aarch64)
trinity (x86_64, ppc64le, i586, aarch64)
trinity-debuginfo (x86_64, ppc64le, i586, aarch64)
Maintainer: Pavel Vasenkov
Last changed
Nov. 14, 2024 Pavel Vasenkov 1.9-alt7
- Update from upstream - Fix build memfd and drm
May 19, 2023 Pavel Vasenkov 1.9-alt6
- Fix removing depricated i810 definations
Feb. 27, 2023 Artyom Bystrov 1.9-alt5
- Add patch to fix build