summaryrefslogtreecommitdiffstats
path: root/test/fuzz/fuzz-manager-serialize
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:49:52 +0000
commit55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch)
tree33f869f55a1b149e9b7c2b7e201867ca5dd52992 /test/fuzz/fuzz-manager-serialize
parentInitial commit. (diff)
downloadsystemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz
systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/fuzz/fuzz-manager-serialize')
-rw-r--r--test/fuzz/fuzz-manager-serialize/activation-details6
-rw-r--r--test/fuzz/fuzz-manager-serialize/bogus-unit-type4
-rw-r--r--test/fuzz/fuzz-manager-serialize/empty-attachment-path11
-rw-r--r--test/fuzz/fuzz-manager-serialize/invalid-varlink-sock5
-rw-r--r--test/fuzz/fuzz-manager-serialize/netns-invalid-socketbin0 -> 27 bytes
-rw-r--r--test/fuzz/fuzz-manager-serialize/service-accept-socket10
-rw-r--r--test/fuzz/fuzz-manager-serialize/socket-int-max3
-rw-r--r--test/fuzz/fuzz-manager-serialize/state233
8 files changed, 272 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-manager-serialize/activation-details b/test/fuzz/fuzz-manager-serialize/activation-details
new file mode 100644
index 0000000..735b0e8
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/activation-details
@@ -0,0 +1,6 @@
+
+y.service
+job
+activation-details-unit-type=path
+activation-details-unit-name
+activation-details-unit-name \ No newline at end of file
diff --git a/test/fuzz/fuzz-manager-serialize/bogus-unit-type b/test/fuzz/fuzz-manager-serialize/bogus-unit-type
new file mode 100644
index 0000000..b3f5c9b
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/bogus-unit-type
@@ -0,0 +1,4 @@
+
+d.socket
+job
+activation-details-unit-type=service \ No newline at end of file
diff --git a/test/fuzz/fuzz-manager-serialize/empty-attachment-path b/test/fuzz/fuzz-manager-serialize/empty-attachment-path
new file mode 100644
index 0000000..9f15496
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/empty-attachment-path
@@ -0,0 +1,11 @@
+curr :er
+82967574637335/dprunning
+
+run-stedm\x2dsysctl.service.mount
+s4002
+te-ewal=0
+stat25 0
+ip-bpf-egress-installed=1651 4116038
+condi/dpad-nriv-j0
+userspmath-pci\x2d0000:00:01.1\x2d0
+ip-bpf-egress-installed=1651 recvmsg6
diff --git a/test/fuzz/fuzz-manager-serialize/invalid-varlink-sock b/test/fuzz/fuzz-manager-serialize/invalid-varlink-sock
new file mode 100644
index 0000000..724c85a
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/invalid-varlink-sock
@@ -0,0 +1,5 @@
+current-jobda90d3313a435b56a7-dbus-broker.service-enN2wt
+varlink-server-socket-address=/run/systemd/is.oystem.ManagedOOM varlink-server-socket-fd=-3
+varlink-server-socket-address=/run/systemd/userdb/io.systemd.DynamicUsr varlink-server-socket-fd=44
+
+systemd-udevd-co~ntrassert-timestamp=1682967574856rted-
diff --git a/test/fuzz/fuzz-manager-serialize/netns-invalid-socket b/test/fuzz/fuzz-manager-serialize/netns-invalid-socket
new file mode 100644
index 0000000..13ff22c
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/netns-invalid-socket
Binary files differ
diff --git a/test/fuzz/fuzz-manager-serialize/service-accept-socket b/test/fuzz/fuzz-manager-serialize/service-accept-socket
new file mode 100644
index 0000000..8bafbb0
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/service-accept-socket
@@ -0,0 +1,10 @@
+current-job-tmp-dir=/niliclrd,ng
+
+plymo-.sliceuth-quiwt-dir=/niliclrd,ng
+
+plymo-.sliceuth-quiwt-ait.service
+srd2043d7818E@96s
+8582967570742745a94
+accept-socket=runn2043ait.service
+srd2043d7818E@96s
+8582967570742745a94
diff --git a/test/fuzz/fuzz-manager-serialize/socket-int-max b/test/fuzz/fuzz-manager-serialize/socket-int-max
new file mode 100644
index 0000000..d0dca33
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/socket-int-max
@@ -0,0 +1,3 @@
+
+l.socket
+socket=2147483647 5 \ No newline at end of file
diff --git a/test/fuzz/fuzz-manager-serialize/state b/test/fuzz/fuzz-manager-serialize/state
new file mode 100644
index 0000000..6cb33f2
--- /dev/null
+++ b/test/fuzz/fuzz-manager-serialize/state
@@ -0,0 +1,233 @@
+current-job-id=148
+n-installed-jobs=76
+n-failed-jobs=0
+taint-usr=no
+ready-sent=no
+taint-logged=yes
+service-watchdogs=yes
+show-status-overridden=
+log-level-override=
+log-target-override=
+runtime-watchdog-overridden=
+reboot-watchdog-overridden=
+kexec-watchdog-overridden=
+pretimeout-watchdog-overridden=
+pretimeout-watchdog-governor-overridden=
+kernel-timestamp=1682967570742745 0
+userspace-timestamp=1682967574137496 3394743
+security-start-timestamp=1682967574141658 3398906
+security-finish-timestamp=1682967574144881 3402129
+generators-start-timestamp=1682967574184585 3441832
+generators-finish-timestamp=1682967574611957 3869206
+units-load-start-timestamp=1682967574612243 3869490
+units-load-finish-timestamp=1682967574636269 3893517
+units-load-timestamp=1682967579189877 8447124
+env=
+notify-fd=40
+notify-socket=/run/systemd/notify
+cgroups-agent-fd=
+user-lookup=41 42
+subscribed=:1.2
+subscribed=:1.4
+dynamic-user=
+destroy-ipc-uid=
+destroy-ipc-gid=
+exec-runtime=foo tmp-dir=foo var-tmp-dir=foo netns-socket-0=0 netns-socket-1=0 ipcns-socket-0=0 ipcns-socket-1=0
+exec-runtime=systemd-resolved.service tmp-dir=/tmp/systemd-private-a0d7e38d0d2043da90d3313a435b56a7-systemd-resolved.service-9RLwQC var-tmp-dir=/var/tmp/systemd-private-a0d7e38d0d2043da90d3313a435b56a7-systemd-resolved.service-lH60S6
+exec-runtime=systemd-logind.service tmp-dir=/tmp/systemd-private-a0d7e38d0d2043da90d3313a435b56a7-systemd-logind.service-U3Mkrl var-tmp-dir=/var/tmp/systemd-private-a0d7e38d0d2043da90d3313a435b56a7-systemd-logind.service-bLqCAv
+exec-runtime=dbus-broker.service tmp-dir=/tmp/systemd-private-a0d7e38d0d2043da90d3313a435b56a7-dbus-broker.service-tjqGny var-tmp-dir=/var/tmp/systemd-private-a0d7e38d0d2043da90d3313a435b56a7-dbus-broker.service-enN2wt
+varlink-server-socket-address=/run/systemd/io.systemd.ManagedOOM varlink-server-socket-fd=43
+varlink-server-socket-address=/run/systemd/userdb/io.systemd.DynamicUser varlink-server-socket-fd=44
+
+systemd-udevd-control.socket
+state=running
+result=success
+n-accepted=0
+n-refused=0
+socket=51 5 /run/udev/control
+state-change-timestamp=1682967575463460 4720707
+inactive-exit-timestamp=1682967574856752 4113999
+active-enter-timestamp=1682967574856752 4113999
+condition-timestamp=1682967574856210 4113458
+assert-timestamp=1682967574856251 4113498
+condition-result=yes
+assert-result=yes
+transient=no
+in-audit=no
+exported-invocation-id=no
+exported-log-level-max=no
+exported-log-extra-fields=no
+exported-log-rate-limit-interval=no
+exported-log-rate-limit-burst=no
+cpu-usage-base=
+cpu-usage-last=
+managed-oom-kill-last=
+oom-kill-last=
+cgroup=/system.slice/systemd-udevd-control.socket
+cgroup-realized=no
+cgroup-realized-mask=
+cgroup-enabled-mask=
+cgroup-invalidated-mask=bpf-firewall
+ip-bpf-ingress-installed=
+ip-bpf-egress-installed=
+bpf-device-control-installed=
+ip-bpf-custom-ingress-installed=
+ip-bpf-custom-egress-installed=
+restrict-ifaces-bpf-fd=
+ref-uid=
+ref-gid=
+invocation-id=17e82c0e231b44d9a783ea3e6ddd7357
+freezer-state=running
+markers=
+ref=
+io-accounting-read-bytes-base=
+io-accounting-write-bytes-base=
+io-accounting-read-operations-base=
+io-accounting-write-operations-base=
+ip-accounting-ingress-bytes=
+ip-accounting-ingress-packets=
+ip-accounting-egress-bytes=
+ip-accounting-egress-packets=
+io-accounting-read-bytes-last=
+io-accounting-write-bytes-last=
+io-accounting-read-operations-last=
+io-accounting-write-operations-last=
+job
+job-id=
+job-type=
+job-state=
+job-irreversible=
+job-sent-dbus-new-signal=
+job-ignore-order=
+job-begin=
+job-begin-running=
+subscribed=
+activation-details-unit-type=
+activation-details-unit-name=
+
+
+basic.target
+state=active
+state-change-timestamp=1682967576420561 5677809
+inactive-exit-timestamp=1682967576420561 5677809
+active-enter-timestamp=1682967576420561 5677809
+condition-timestamp=1682967576420494 5677742
+assert-timestamp=1682967576420506 5677753
+condition-result=yes
+assert-result=yes
+transient=no
+in-audit=no
+exported-invocation-id=no
+exported-log-level-max=no
+exported-log-extra-fields=no
+exported-log-rate-limit-interval=no
+exported-log-rate-limit-burst=no
+cpu-usage-base=0
+io-accounting-read-bytes-base=0
+io-accounting-write-bytes-base=0
+io-accounting-read-operations-base=0
+io-accounting-write-operations-base=0
+cgroup-realized=no
+cgroup-invalidated-mask=bpf-firewall
+invocation-id=9c5c2f671fca4512aaf3a1a2ba2272ca
+freezer-state=running
+
+dev-disk-by\x2dpath-pci\x2d0000:00:01.1\x2data\x2d2.0.device
+sysfs=/sys/devices/pci0000:00/0000:00:01.1/ata2/host1/target1:0:0/1:0:0:0/block/sr0
+path=/dev/disk/by-path/pci-0000:00:01.1-ata-2.0
+state=plugged
+found=found-udev
+state-change-timestamp=1682967576333166 5590413
+inactive-exit-timestamp=1682967576333166 5590413
+active-enter-timestamp=1682967576333166 5590413
+transient=no
+in-audit=no
+exported-invocation-id=no
+exported-log-level-max=no
+exported-log-extra-fields=no
+exported-log-rate-limit-interval=no
+exported-log-rate-limit-burst=no
+cpu-usage-base=0
+io-accounting-read-bytes-base=0
+io-accounting-write-bytes-base=0
+io-accounting-read-operations-base=0
+io-accounting-write-operations-base=0
+cgroup-realized=no
+cgroup-invalidated-mask=bpf-firewall
+invocation-id=603717818eb740968fd5e4d4acff07bb
+freezer-state=running
+
+plymouth-quit-wait.service
+state=dead
+result=success
+reload-result=success
+main-pid-known=no
+bus-name-good=no
+bus-name-owner=yes
+n-restarts=0
+flush-n-restarts=no
+forbid-restart=no
+state-change-timestamp=1682967578033073 7290321
+transient=no
+in-audit=no
+exported-invocation-id=no
+exported-log-level-max=no
+exported-log-extra-fields=no
+exported-log-rate-limit-interval=no
+exported-log-rate-limit-burst=no
+cpu-usage-base=0
+io-accounting-read-bytes-base=0
+io-accounting-write-bytes-base=0
+io-accounting-read-operations-base=0
+io-accounting-write-operations-base=0
+cgroup-realized=no
+cgroup-invalidated-mask=bpf-firewall
+freezer-state=running
+
+run-credentials-systemd\x2dsysctl.service.mount
+state=mounted
+result=success
+reload-result=success
+n-retry-umount=0
+state-change-timestamp=1682967574956755 4214002
+inactive-exit-timestamp=1682967574956755 4214002
+active-enter-timestamp=1682967574956755 4214002
+transient=no
+in-audit=no
+exported-invocation-id=no
+exported-log-level-max=no
+exported-log-extra-fields=no
+exported-log-rate-limit-interval=no
+exported-log-rate-limit-burst=no
+cpu-usage-base=0
+io-accounting-read-bytes-base=0
+io-accounting-write-bytes-base=0
+io-accounting-read-operations-base=0
+io-accounting-write-operations-base=0
+cgroup-realized=no
+cgroup-invalidated-mask=bpf-firewall
+invocation-id=63a57e2e3d3a47c28e09dc34fca94c41
+freezer-state=running
+
+system.slice
+state=active
+state-change-timestamp=1682967574637337 3894584
+inactive-exit-timestamp=1682967574637337 3894584
+active-enter-timestamp=1682967574637337 3894584
+transient=no
+in-audit=no
+exported-invocation-id=no
+exported-log-level-max=no
+exported-log-extra-fields=no
+exported-log-rate-limit-interval=no
+exported-log-rate-limit-burst=no
+cpu-usage-base=0
+io-accounting-read-bytes-base=0
+io-accounting-write-bytes-base=0
+io-accounting-read-operations-base=0
+io-accounting-write-operations-base=0
+cgroup=/system.slice
+cgroup-realized=yes
+cgroup-realized-mask=memory pids bpf-firewall bpf-devices
+cgroup-enabled-mask=memory pids
+freezer-state=running