diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
commit | 55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch) | |
tree | 33f869f55a1b149e9b7c2b7e201867ca5dd52992 /test/fuzz/fuzz-execute-serialize | |
parent | Initial commit. (diff) | |
download | systemd-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-execute-serialize')
-rw-r--r-- | test/fuzz/fuzz-execute-serialize/crash-395e | 3 | ||||
-rw-r--r-- | test/fuzz/fuzz-execute-serialize/crash-622a | 3 | ||||
-rw-r--r-- | test/fuzz/fuzz-execute-serialize/initial | 264 | ||||
-rw-r--r-- | test/fuzz/fuzz-execute-serialize/mount-images | 3 | ||||
-rw-r--r-- | test/fuzz/fuzz-execute-serialize/state | 74 |
5 files changed, 347 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-execute-serialize/crash-395e b/test/fuzz/fuzz-execute-serialize/crash-395e new file mode 100644 index 0000000..943e673 --- /dev/null +++ b/test/fuzz/fuzz-execute-serialize/crash-395e @@ -0,0 +1,3 @@ + + +exec-parameters-n-storage-fds=1782 diff --git a/test/fuzz/fuzz-execute-serialize/crash-622a b/test/fuzz/fuzz-execute-serialize/crash-622a new file mode 100644 index 0000000..20b000f --- /dev/null +++ b/test/fuzz/fuzz-execute-serialize/crash-622a @@ -0,0 +1,3 @@ +exec-context-root-hash=0B12 +exec-context-root-hash=0B1eÿÿÿÿÿexeec-unx-euucmask=10 +exec-context-root-hash=0Be-22 diff --git a/test/fuzz/fuzz-execute-serialize/initial b/test/fuzz/fuzz-execute-serialize/initial new file mode 100644 index 0000000..403cf08 --- /dev/null +++ b/test/fuzz/fuzz-execute-serialize/initial @@ -0,0 +1,264 @@ +exec-context-environment= +exec-context-environment-files= +exec-context-pass-environment= +exec-context-unset-environment= +exec-context-working-directory= +exec-context-root-directory= +exec-context-root-image= +exec-context-root-image-options= +exec-context-root-verity= +exec-context-root-hash-path= +exec-context-root-hash-sig-path= +exec-context-root-hash= +exec-context-root-hash-sig= +exec-context-root-ephemeral= +exec-context-umask= +exec-context-private-non-blocking= +exec-context-private-mounts= +exec-context-memory-ksm= +exec-context-private-tmp= +exec-context-private-devices= +exec-context-protect-kernel-tunables= +exec-context-protect-kernel-modules= +exec-context-protect-kernel-logs= +exec-context-protect-clock= +exec-context-protect-control-groups= +exec-context-private-network= +exec-context-private-users= +exec-context-private-ipc= +exec-context-remove-ipc= +exec-context-protect-home= +exec-context-protect-system= +exec-context-mount-api-vfs= +exec-context-same-pgrp= +exec-context-cpu-sched-reset-on-fork= +exec-context-non-blocking= +exec-context-ignore-sigpipe= +exec-context-memory-deny-write-execute= +exec-context-restrict-realtime= +exec-context-restrict-suid-sgid= +exec-context-keyring-mode= +exec-context-protect-hostname= +exec-context-protect-proc= +exec-context-proc-subset= +exec-context-runtime-directory-preserve-mode= +exec-context-timeout-clean-usec= +exec-context-nice= +exec-context-working-directory-missing-ok= +exec-context-working-directory-home= +exec-context-oom-score-adjust= +exec-context-coredump-filter= +exec-context-ioprio= +exec-context-cpu-scheduling-policy= +exec-context-cpu-scheduling-priority= +exec-context-cpu-scheduling-reset-on-fork= +exec-context-cpu-affinity= +exec-context-numa-mask= +exec-context-numa-policy= +exec-context-cpu-affinity-from-numa= +exec-context-timer-slack-nsec= +exec-context-std-input= +exec-context-std-output= +exec-context-std-error= +exec-context-stdio-as-fds= +exec-context-std-input-fd-name= +exec-context-std-output-fd-name= +exec-context-std-error-fd-name= +exec-context-std-input-file= +exec-context-std-output-file= +exec-context-std-output-file-append= +exec-context-std-output-file-truncate= +exec-context-std-error-file= +exec-context-std-error-file-append= +exec-context-std-error-file-truncate= +exec-context-stdin-data= +exec-context-tty-path= +exec-context-tty-reset= +exec-context-tty-vhangup= +exec-context-tty-vt-disallocate= +exec-context-tty-rows= +exec-context-tty-columns= +exec-context-syslog-priority= +exec-context-syslog-level-prefix= +exec-context-syslog-identifier= +exec-context-log-level-max= +exec-context-log-ratelimit-interval-usec= +exec-context-log-ratelimit-burst= +exec-context-log-filter-allowed-patterns= +exec-context-log-filter-denied-patterns= +exec-context-log-extra-fields= +exec-context-log-namespace= +exec-context-secure-bits= +exec-context-capability-bounding-set= +exec-context-capability-ambient-set= +exec-context-user= +exec-context-group= +exec-context-dynamic-user= +exec-context-supplementary-groups= +exec-context-set-login-environment= +exec-context-pam-name= +exec-context-read-write-paths= +exec-context-read-only-paths= +exec-context-inaccessible-paths= +exec-context-exec-paths= +exec-context-no-exec-paths= +exec-context-exec-search-path= +exec-context-mount-propagation-flag= +exec-context-bind-read-only-path= +exec-context-bind-path= +exec-context-temporary-filesystems= +exec-context-utmp-id= +exec-context-utmp-mode= +exec-context-no-new-privileges= +exec-context-selinux-context-ignore= +exec-context-apparmor-profile-ignore= +exec-context-smack-process-label-ignore= +exec-context-selinux-context= +exec-context-apparmor-profile= +exec-context-smack-process-label= +exec-context-personality= +exec-context-lock-personality= +exec-context-syscall-filter= +exec-context-syscall-archs= +exec-context-syscall-errno= +exec-context-syscall-allow-list= +exec-context-syscall-log= +exec-context-syscall-log-allow-list= +exec-context-restrict-namespaces= +exec-context-restrict-filesystems= +exec-context-restrict-filesystems-allow-list= +exec-context-address-families= +exec-context-address-families-allow-list= +exec-context-network-namespace-path= +exec-context-ipc-namespace-path= +exec-context-mount-image= +exec-context-extension-image= +exec-context-extension-directories= +exec-context-set-credentials= +exec-context-load-credentials= +exec-context-import-credentials= +exec-context-root-image-policy= +exec-context-mount-image-policy= +exec-context-extension-image-policy= + +exec-command-path= +exec-command-argv= +exec-command-flags= + +exec-parameters-runtime-scope= +exec-parameters-environment= +exec-parameters-n-socket-fds= +exec-parameters-n-storage-fds= +exec-parameters-fds= +exec-parameters-fd-names= +exec-parameters-flags= +exec-parameters-selinux-context-net= +exec-parameters-cgroup-supported= +exec-parameters-cgroup-path= +exec-parameters-cgroup-id= +exec-parameters-received-credentials-directory= +exec-parameters-received-encrypted-credentials-directory= +exec-parameters-confirm-spawn= +exec-parameters-shall-confirm-spawn= +exec-parameters-watchdog-usec= +exec-parameters-idle-pipe= +exec-parameters-stdin-fd= +exec-parameters-stdout-fd= +exec-parameters-stderr-fd= +exec-parameters-exec-fd= +exec-parameters-bpf-outer-map-fd= +exec-parameters-notify-socket= +exec-parameters-open-file= +exec-parameters-fallback-smack-process-label= +exec-parameters-user-lookup-fd= +exec-parameters-files-env= +exec-parameters-unit-id= +exec-parameters-invocation-id-string= + +exec-runtime-id= +exec-runtime-tmp-dir= +exec-runtime-var-tmp-dir= +exec-runtime-netns-storage-socket= +exec-runtime-ipcns-storage-socket= +exec-runtime-dynamic-creds-user= +exec-runtime-dynamic-creds-group= +exec-runtime-dynamic-creds-group-copy= +exec-runtime-ephemeral-copy= +exec-runtime-ephemeral-storage-socket= + +exec-cgroup-context-cpu-accounting= +exec-cgroup-context-io-accounting= +exec-cgroup-context-block-io-accounting= +exec-cgroup-context-memory-accounting= +exec-cgroup-context-tasks-accounting= +exec-cgroup-context-ip-accounting= +exec-cgroup-context-memory-oom-group= +exec-cgroup-context-cpu-weight= +exec-cgroup-context-startup-cpu-weight= +exec-cgroup-context-cpu-shares= +exec-cgroup-context-startup-cpu-shares= +exec-cgroup-context-cpu-quota-per-sec-usec= +exec-cgroup-context-cpu-quota-period-usec= +exec-cgroup-context-allowed-cpus= +exec-cgroup-context-startup-allowed-cpus= +exec-cgroup-context-allowed-memory-nodes= +exec-cgroup-context-startup-allowed-memory-nodes= +exec-cgroup-context-io-weight= +exec-cgroup-context-startup-io-weight= +exec-cgroup-context-block-io-weight= +exec-cgroup-context-startup-block-io-weight= +exec-cgroup-context-default-memory-min= +exec-cgroup-context-default-memory-low= +exec-cgroup-context-memory-min= +exec-cgroup-context-memory-low= +exec-cgroup-context-startup-memory-low= +exec-cgroup-context-memory-high= +exec-cgroup-context-startup-memory-high= +exec-cgroup-context-memory-max= +exec-cgroup-context-startup-memory-max= +exec-cgroup-context-memory-swap-max= +exec-cgroup-context-startup-memory-swap-max= +exec-cgroup-context-memory-zswap-max= +exec-cgroup-context-startup-memory-zswap-max= +exec-cgroup-context-memory-limit= +exec-cgroup-context-tasks-max-value= +exec-cgroup-context-tasks-max-scale= +exec-cgroup-context-default-memory-min-set= +exec-cgroup-context-default-memory-low-set= +exec-cgroup-context-default-startup-memory-low-set= +exec-cgroup-context-memory-min-set= +exec-cgroup-context-memory-low-set= +exec-cgroup-context-startup-memory-low-set= +exec-cgroup-context-startup-memory-high-set= +exec-cgroup-context-startup-memory-max-set= +exec-cgroup-context-startup-memory-swap-max-set= +exec-cgroup-context-startup-memory-zswap-max-set= +exec-cgroup-context-device-policy= +exec-cgroup-context-disable-controllers= +exec-cgroup-context-delegate-controllers= +exec-cgroup-context-delegate= +exec-cgroup-context-managed-oom-swap= +exec-cgroup-context-managed-oom-memory-pressure= +exec-cgroup-context-managed-oom-memory-pressure-limit= +exec-cgroup-context-managed-oom-preference= +exec-cgroup-context-memory-pressure-watch= +exec-cgroup-context-delegate-subgroup= +exec-cgroup-context-memory-pressure-threshold-usec= +exec-cgroup-context-device-allow= +exec-cgroup-context-io-device-weight= +exec-cgroup-context-io-device-latency-target-usec= +exec-cgroup-context-block-io-device-weight= +exec-cgroup-context-block-io-read-bandwidth= +exec-cgroup-context-block-io-write-bandwidth= +exec-cgroup-context-ip-address-allow= +exec-cgroup-context-ip-address-deny= +exec-cgroup-context-ip-address-allow-reduced= +exec-cgroup-context-ip-address-deny-reduced= +exec-cgroup-context-ip-ingress-filter-path= +exec-cgroup-context-ip-egress-filter-path= +exec-cgroup-context-bpf-program= +exec-cgroup-context-socket-bind-allow= +exec-cgroup-context-socket-bind-deny= +exec-cgroup-context-restrict-network-interfaces= +exec-cgroup-context-restrict-network-interfaces-is-allow-list= + diff --git a/test/fuzz/fuzz-execute-serialize/mount-images b/test/fuzz/fuzz-execute-serialize/mount-images new file mode 100644 index 0000000..6ca8fa8 --- /dev/null +++ b/test/fuzz/fuzz-execute-serialize/mount-images @@ -0,0 +1,3 @@ +exec-context-mount-image=/dev/foo / root:suid +exec-context-mount-image=/tmp/tmp.RcqHuV/minimal_0.gpt /run/img1 root:noatime +exec-context-mount-image=/tmp/tmp.RcqHuV/minimal_0.gpt /run/img1 root:noatime home:relatime diff --git a/test/fuzz/fuzz-execute-serialize/state b/test/fuzz/fuzz-execute-serialize/state new file mode 100644 index 0000000..a417a41 --- /dev/null +++ b/test/fuzz/fuzz-execute-serialize/state @@ -0,0 +1,74 @@ +exec-context-environment=TERM=linux +exec-context-umask=0022 +exec-context-protect-home=no +exec-context-protect-system=no +exec-context-ignore-sigpipe=yes +exec-context-keyring-mode=private +exec-context-protect-proc=default +exec-context-proc-subset=all +exec-context-runtime-directory-preserve-mode=no +exec-context-directories-RuntimeDirectory=0755 +exec-context-directories-StateDirectory=0755 +exec-context-directories-CacheDirectory=0755 +exec-context-directories-LogsDirectory=0755 +exec-context-directories-ConfigurationDirectory=0755 +exec-context-limit-NOFILE=1024:524288 +exec-context-limit-MEMLOCK=8388608 +exec-context-std-input=null +exec-context-std-output=journal +exec-context-std-error=inherit +exec-context-stdio-as-fds=yes +exec-context-tty-rows=4294967295 +exec-context-tty-columns=4294967295 +exec-context-syslog-priority=30 +exec-context-syslog-level-prefix=yes +exec-context-log-level-max=-1 +exec-context-mount-propagation-flag=0 +exec-context-utmp-mode=init +exec-context-syscall-errno=2147483646 +exec-context-mount-image=/foo.raw /run/img2:3 root:nosuid + +exec-command-path=mount +exec-command-argv=mount +exec-command-flags=0 + +exec-parameters-runtime-scope=system +exec-parameters-environment=LANG=C.UTF-8 +exec-parameters-environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin +exec-parameters-flags=13855 +exec-parameters-cgroup-supported=1965 +exec-parameters-cgroup-path=/system.slice/run-u26.service +exec-parameters-cgroup-id=3376 +exec-parameters-prefix-directories-RuntimeDirectory=/run +exec-parameters-prefix-directories-StateDirectory=/var/lib +exec-parameters-prefix-directories-CacheDirectory=/var/cache +exec-parameters-prefix-directories-LogsDirectory=/var/log +exec-parameters-prefix-directories-ConfigurationDirectory=/etc +exec-parameters-stdin-fd=44 +exec-parameters-stdout-fd=45 +exec-parameters-stderr-fd=63 +exec-parameters-user-lookup-fd=65 +exec-parameters-unit-id=run-u26.service +exec-parameters-invocation-id-string=fd06144c3fc64436b42b30b2eb8189ee + + +exec-cgroup-context-cpu-accounting=yes +exec-cgroup-context-memory-accounting=yes +exec-cgroup-context-tasks-accounting=yes +exec-cgroup-context-allowed-cpus= +exec-cgroup-context-startup-allowed-cpus= +exec-cgroup-context-allowed-memory-nodes= +exec-cgroup-context-startup-allowed-memory-nodes= +exec-cgroup-context-tasks-max-value=15 +exec-cgroup-context-tasks-max-scale=100 +exec-cgroup-context-device-policy=auto +exec-cgroup-context-managed-oom-swap=auto +exec-cgroup-context-managed-oom-memory-pressure=auto +exec-cgroup-context-managed-oom-memory-pressure-limit=0 +exec-cgroup-context-managed-oom-preference=none +exec-cgroup-context-memory-pressure-watch=auto +exec-cgroup-context-memory-pressure-threshold-usec=200000 +exec-cgroup-context-ip-address-allow-reduced=yes +exec-cgroup-context-ip-address-deny-reduced=yes + + |