From 148e5ad95b8caa2d20c1d2bd63e5c27cc33b9f2d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 30 Dec 2022 10:52:54 -0700 Subject: [PATCH] Add dictionaries for fuzz_iolog_legacy and fuzz_iolog_timing. --- MANIFEST | 2 + lib/iolog/regress/fuzz/fuzz_iolog_legacy.dict | 42 +++++++++ lib/iolog/regress/fuzz/fuzz_iolog_timing.dict | 89 +++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 lib/iolog/regress/fuzz/fuzz_iolog_legacy.dict create mode 100644 lib/iolog/regress/fuzz/fuzz_iolog_timing.dict diff --git a/MANIFEST b/MANIFEST index 5145ed0e7..f9c6859bb 100644 --- a/MANIFEST +++ b/MANIFEST @@ -169,7 +169,9 @@ lib/iolog/regress/corpus/seed/timing/timing.4 lib/iolog/regress/fuzz/fuzz_iolog_json.c lib/iolog/regress/fuzz/fuzz_iolog_json.dict lib/iolog/regress/fuzz/fuzz_iolog_legacy.c +lib/iolog/regress/fuzz/fuzz_iolog_legacy.dict lib/iolog/regress/fuzz/fuzz_iolog_timing.c +lib/iolog/regress/fuzz/fuzz_iolog_timing.dict lib/iolog/regress/host_port/host_port_test.c lib/iolog/regress/iolog_filter/check_iolog_filter.c lib/iolog/regress/iolog_filter/test1/log diff --git a/lib/iolog/regress/fuzz/fuzz_iolog_legacy.dict b/lib/iolog/regress/fuzz/fuzz_iolog_legacy.dict new file mode 100644 index 000000000..5b4d63a34 --- /dev/null +++ b/lib/iolog/regress/fuzz/fuzz_iolog_legacy.dict @@ -0,0 +1,42 @@ +# Legacy I/O log info file: +# timestamp:submit_user:run_user:run_group:tty:lines:columns +# working directory +# command [args] +# +# users and groups +millert +root +bin +wheel +operator +testuser +alice +bob +users +# +# terminals +/dev/console +/dev/tty00 +/dev/tty01 +/dev/pts/0 +/dev/pts/1 +/dev/ttyp2 +/dev/ttyp3 +# +# directories +/root +/home/millert +/home/alice +/home/bob +/tmp +/usr/local +/usr/src +# +# commands +/bin/ls +/usr/bin/id -u +/usr/bin/su - +/usr/bin/mailq +/usr/bin/make -C /usr/src/usr.bin/sort install +/usr/bin/apt update +/usr/bin/rpm -e sudo diff --git a/lib/iolog/regress/fuzz/fuzz_iolog_timing.dict b/lib/iolog/regress/fuzz/fuzz_iolog_timing.dict new file mode 100644 index 000000000..20bfd6c7f --- /dev/null +++ b/lib/iolog/regress/fuzz/fuzz_iolog_timing.dict @@ -0,0 +1,89 @@ +# I/O log timing lines are formatted as: +# [0-4] sleep_time num_bytes +# 5 sleep_time lines cols +# 7 sleep_time signum|sigabbrev +# +# Signal abbreviations +ABRT +ALRM +BUS +CANCEL +CHLD +CLD +CONT +CONT +EMT +FPE +FREEZE +HUP +ILL +INFO +INT +IO +IOT +KILL +LOST +LWP +PIPE +POLL +PROF +PWR +QUIT +SEGV +STKFLT +STOP +STOP +SYS +TERM +THAW +TRAP +TSTP +TSTP +TTIN +TTIN +TTOU +TTOU +UNUSED +URG +USR1 +USR2 +VTALRM +WAITING +WINCH +XCPU +XFSZ +# +# Signal numbers, 0-32 +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32