summaryrefslogtreecommitdiffstats
path: root/test/fuzz/fuzz-link-parser
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:35:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:35:18 +0000
commitb750101eb236130cf056c675997decbac904cc49 (patch)
treea5df1a06754bdd014cb975c051c83b01c9a97532 /test/fuzz/fuzz-link-parser
parentInitial commit. (diff)
downloadsystemd-b750101eb236130cf056c675997decbac904cc49.tar.xz
systemd-b750101eb236130cf056c675997decbac904cc49.zip
Adding upstream version 252.22.upstream/252.22
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/fuzz/fuzz-link-parser')
-rw-r--r--test/fuzz/fuzz-link-parser/99-default.link12
-rw-r--r--test/fuzz/fuzz-link-parser/advertise-segv.link2
-rw-r--r--test/fuzz/fuzz-link-parser/condition-memleak.link7
-rw-r--r--test/fuzz/fuzz-link-parser/directives.link97
-rw-r--r--test/fuzz/fuzz-link-parser/oss-fuzz-138784
-rw-r--r--test/fuzz/fuzz-link-parser/oss-fuzz-13882bin0 -> 2015 bytes
6 files changed, 122 insertions, 0 deletions
diff --git a/test/fuzz/fuzz-link-parser/99-default.link b/test/fuzz/fuzz-link-parser/99-default.link
new file mode 100644
index 0000000..feb5b1f
--- /dev/null
+++ b/test/fuzz/fuzz-link-parser/99-default.link
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Link]
+NamePolicy=keep kernel database onboard slot path
+MACAddressPolicy=persistent
diff --git a/test/fuzz/fuzz-link-parser/advertise-segv.link b/test/fuzz/fuzz-link-parser/advertise-segv.link
new file mode 100644
index 0000000..305e846
--- /dev/null
+++ b/test/fuzz/fuzz-link-parser/advertise-segv.link
@@ -0,0 +1,2 @@
+[Link]
+Advertise=hoge foo
diff --git a/test/fuzz/fuzz-link-parser/condition-memleak.link b/test/fuzz/fuzz-link-parser/condition-memleak.link
new file mode 100644
index 0000000..523e4ba
--- /dev/null
+++ b/test/fuzz/fuzz-link-parser/condition-memleak.link
@@ -0,0 +1,7 @@
+[Match]
+OriginalName=eth0
+Host=hogehoge
+Virtualization=qemu
+KernelCommandLine=aaa
+KernelVersion=4.20.3
+Architecture=x86-64
diff --git a/test/fuzz/fuzz-link-parser/directives.link b/test/fuzz/fuzz-link-parser/directives.link
new file mode 100644
index 0000000..a1c797a
--- /dev/null
+++ b/test/fuzz/fuzz-link-parser/directives.link
@@ -0,0 +1,97 @@
+[Match]
+Architecture=
+Credential=
+Driver=
+Firmware=
+Host=
+KernelCommandLine=
+KernelVersion=
+Kind=
+MACAddress=
+OriginalName=
+Path=
+PermanentMACAddress=
+Property=
+Type=
+Virtualization=
+[Link]
+Description=
+MACAddressPolicy=
+MACAddress=
+NamePolicy=
+Name=
+AlternativeNamesPolicy=
+AlternativeName=
+Alias=
+TransmitQueues=
+ReceiveQueues=
+TransmitQueueLength=
+MTUBytes=
+BitsPerSecond=
+Duplex=
+AutoNegotiation=
+WakeOnLan=
+WakeOnLanPassword=
+Port=
+ReceiveChecksumOffload=
+TransmitChecksumOffload=
+GenericSegmentationOffload=
+TCPSegmentationOffload=
+TCP6SegmentationOffload=
+UDPSegmentationOffload=
+GenericReceiveOffload=
+GenericReceiveOffloadHardware=
+LargeReceiveOffload=
+ReceiveVLANCTAGHardwareAcceleration=
+TransmitVLANCTAGHardwareAcceleration=
+ReceiveVLANCTAGFilter=
+TransmitVLANSTAGHardwareAcceleration=
+NTupleFilter=
+RxChannels=
+TxChannels=
+OtherChannels=
+CombinedChannels=
+Advertise=
+RxBufferSize=
+RxMiniBufferSize=
+RxJumboBufferSize=
+TxBufferSize=
+RxFlowControl=
+TxFlowControl=
+AutoNegotiationFlowControl=
+GenericSegmentOffloadMaxBytes=
+GenericSegmentOffloadMaxSegments=
+RxCoalesceSec=
+RxMaxCoalescedFrames=
+RxCoalesceIrqSec=
+RxMaxCoalescedIrqFrames=
+TxCoalesceSec=
+TxMaxCoalescedFrames=
+TxCoalesceIrqSec=
+TxMaxCoalescedIrqFrames=
+StatisticsBlockCoalesceSec=
+UseAdaptiveRxCoalesce=
+UseAdaptiveTxCoalesce=
+CoalescePacketRateLow=
+RxCoalesceLowSec=
+RxMaxCoalescedLowFrames=
+TxCoalesceLowSec=
+TxMaxCoalescedLowFrames=
+CoalescePacketRateHigh=
+RxCoalesceHighSec=
+RxMaxCoalescedHighFrames=
+TxCoalesceHighSec=
+TxMaxCoalescedHighFrames=
+CoalescePacketRateSampleIntervalSec=
+MDI=
+SR-IOVVirtualFunctions=
+[SR-IOV]
+VirtualFunction=
+MACSpoofCheck=
+VLANId=
+VLANProtocol=
+QualityOfService=
+QueryReceiveSideScaling=
+Trust=
+LinkState=
+MACAddress=
diff --git a/test/fuzz/fuzz-link-parser/oss-fuzz-13878 b/test/fuzz/fuzz-link-parser/oss-fuzz-13878
new file mode 100644
index 0000000..dbb2abe
--- /dev/null
+++ b/test/fuzz/fuzz-link-parser/oss-fuzz-13878
@@ -0,0 +1,4 @@
+[Match]
+KernelVersion=t
+Virtualization=q
+KernelVersion= \ No newline at end of file
diff --git a/test/fuzz/fuzz-link-parser/oss-fuzz-13882 b/test/fuzz/fuzz-link-parser/oss-fuzz-13882
new file mode 100644
index 0000000..7c56ec2
--- /dev/null
+++ b/test/fuzz/fuzz-link-parser/oss-fuzz-13882
Binary files differ