164 Commits
Author SHA1 Message Date
Robert Swiecki f0314885ba libhfuzz+linux/bfd: unify static and dynamic (cmp) dictionaries into one 2026-01-04 20:24:52 +01:00
Robert Swiecki e905b88f44 subproc: kill process group in addition to pid 2025-12-31 10:05:40 +01:00
Robert Swiecki 974db6a90f make indent 2025-01-07 09:38:47 +01:00
Robert Swiecki 7b89f383f3 clang-format: IndentCaseLabels: false 2023-09-25 21:24:01 +02:00
Robert Swiecki f0e192f82b subproc/libhfuzz: move prctl(PDEATHSIG) to libhfcommon 2021-09-07 00:14:40 +02:00
David Carlier a03f41c5fb freebsd set delivery signal from parent process. 2021-09-06 22:21:34 +01:00
Robert Swiecki 53599e3fd0 make indent 2021-08-06 16:00:20 +02:00
David Carlier 56147c0369 Solaris/Illumos build implementation proposal. 2021-08-01 17:28:33 +01:00
Robert Swiecki 649e48630a subproc: simpler subproc_StatusToStr()) 2020-05-05 20:24:41 +02:00
Robert Swiecki bbb476eec9 New directives in .clang-format 2020-04-29 16:14:09 +02:00
Robert Swiecki e70cb4915f move mutexes into a separate substruct 2020-04-26 09:31:09 +02:00
Robert Swiecki 2751713e03 Implement edge counting for PC-guards as well (in addition to 8-bit-counters)
This is a fairly big change, which enabled edge counting for pc-guard
(now, non-default) mode.
2020-04-10 16:49:41 +02:00
Robert Swiecki efe02e41ca use usecs instead of msecs as the basic unit of time 2020-03-29 21:03:56 +02:00
Robert Swiecki 274f2f1492 subproc: missing comma 2020-03-26 11:57:04 +01:00
Robert Swiecki 5501c4a499 subproc: guard changing a global var by a mutex 2020-03-25 19:54:52 +01:00
Robert Swiecki 6c70071872 all: use struct dynfile_t inside run_t 2020-03-25 16:17:41 +01:00
Robert Swiecki 0de0d743b3 subproc: don't change nice-ness, until all effects are understood 2020-03-24 10:41:21 +01:00
Robert Swiecki a1feff309a subproc: set nice(1) for fuzzed processes 2020-03-24 00:40:05 +01:00
Robert Swiecki 50d650dbfd input: don't bump testing ratio for inputs older than 10 seconds 2020-03-19 14:03:09 +01:00
Robert Swiecki 94585ac0d5 Add const cmp feedback functionality behind the --experimental_const_feedback flag 2020-02-26 21:03:14 +01:00
Robert Swiecki 995db88442 introduce concept of cmpfeedback map which will be used to report back to the fuzzer const strings and integer values used in fuzzed processes 2020-02-26 17:32:18 +01:00
Robert Swiecki 2c666ab911 subproc/libhfuzz: logging + putting non-socketfuzzer procedures in one place 2020-02-23 08:14:58 +01:00
Robert Swiecki 93d72b1706 cmdline/subproc: allow to set RLIMIT_STACK 2020-02-23 01:42:55 +01:00
Robert Swiecki c71fc1b445 make indent 2020-02-22 15:24:31 +01:00
Mrmaxmeier 9eae695162 don't try to open file descriptors in socket fuzzer mode 2020-02-17 02:43:59 +01:00
Robert Swiecki 365ca5be86 arch: move arch.c logging to subproc.c 2020-01-20 16:00:45 +01:00
Robert Swiecki 903b627fde subproc: move execve argument preparation into a separate func 2020-01-20 15:22:02 +01:00
Robert Swiecki 9d11e5aeb7 subproc: move argument generation to subproc.c 2020-01-20 00:50:54 +01:00
Robert Swiecki e8ac344b58 sanitizers/cmdline: rework sanitizer support so with -S it makes *san responsible for handling/reporting crashes 2019-11-29 17:48:03 +01:00
Robert Swiecki 6432ff95d1 subproc: allways map input file to _HF_INPUT_FILE 2019-09-22 20:56:42 +02:00
Robert Swiecki 762617598e honggfuzz: map feedback struct unconditionally 2019-08-28 18:14:32 +02:00
Robert Swiecki 99559afa16 subproc: allow to use ___FILE___ and -s with persistent mode 2019-08-27 22:45:02 +02:00
Robert Swiecki 2e7c0c0f75 subproc: gather info about slowest unit unconditionally 2019-08-02 16:41:40 +02:00
Robert Swiecki 31ef51c864 honggfuzz.h: make naming of truct params conform to the similar convention 2019-07-30 16:41:43 +02:00
Guillaume Weghsteen 98c82fa4ee add new statistic collection
add crashes count and timeouted count to the final summary
add new_units_added libfuzzer like statitic - counts the number of new samples added in the corpus during this run because of new coverage found.
add slowest unit - after each round, update the timeOfLongestUnitInMilliseconds if the round was more than 10% slower than the slowest one so far and above option threshold (default: 10s). Timeouts are not considered.
print the statistics in the final summary. The slowest unit value will always be 0 if under the threshold defined in the options.
2019-07-26 15:40:59 +02:00
Robert Swiecki af7a92b9a6 subproc: use TEMP_FAILURE_RETRY with some restartable funcs 2019-04-17 22:02:53 +02:00
Robert Swiecki c1b3938d78 subproc: allow to specify whether a thread should be joinable 2019-02-21 08:42:03 +01:00
Robert Swiecki 5fbedcaf54 subproc: use TEMP_FAILURE_RETRY 2019-02-20 18:40:51 +01:00
Robert Swiecki 56ca14424c input: don't ftruncate under macosx - it's expensive there 2019-02-19 15:17:49 +01:00
Robert Swiecki be996b40a8 macos: make macos waiting loop similar to other archs 2019-02-19 08:25:17 +01:00
Robert Swiecki 636ffba7cc linux/arch: close perf once the process is killed 2019-02-18 15:45:16 +01:00
Robert Swiecki fb78740052 subproc: make threads detachable since we're no longer using pthread_join 2019-02-17 02:43:27 +01:00
Robert Swiecki 64d52436fd create a signal thread to distribute SIGCHLD as SIGUSR1 2019-02-14 23:02:13 +01:00
Robert Swiecki 0c52f7defe subproc: use __WALL is available 2019-02-14 16:34:21 +01:00
Robert Swiecki e44b5a77a4 libhfcommon: remove unused func 2019-02-09 05:59:04 +01:00
Robert Swiecki e0b04c5d2b mac: incorrect check 2019-02-08 16:37:37 +01:00
Robert Swiecki f6e0f9278d netbsd: some fixes for netbsd 8 2019-01-30 19:09:41 +01:00
Robert Swiecki 4489427d0b subporc: allow to use the same log_level inside fuzzed processes 2019-01-30 12:53:54 +01:00
Robert Swiecki 98e2337238 ALL: remove -p (pid), simplify the subproc state machine. NetBSD will stop working for some time, will be fixed in the coming days 2019-01-30 11:50:18 +01:00
Robert Swiecki fda8130504 log: allow for logging in child processes 2019-01-26 23:32:40 +01:00