summaryrefslogtreecommitdiff
path: root/test/fuzz
Commit message (Collapse)AuthorAgeFilesLines
* network: add DHCPv6.RouteMetric=Yu Watanabe2020-06-021-0/+1
| | | | Hopefully fixes #15295.
* network: fix double free in macsec_receive_channel_free()Yu Watanabe2020-06-011-0/+10
| | | | | Fixes #15941. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22547
* Merge pull request #15884 from ssahani/dhcpv6-vendorYu Watanabe2020-06-011-0/+1
|\ | | | | DHCPv6: Introduce vendor specific
| * network: Inroduce DHCP6- send vendor optionsSusant Sahani2020-05-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network: Inroduce DHCP6- send vendor options ``` 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION_VENDOR_OPTS | option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | enterprise-number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . vendor-option-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` ``` 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | sub-opt-code | sub-option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ . . . sub-option-data . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 31: Vendor-specific Options Format sub-opt-code The code for the sub-option. A 2-octet field. sub-option-len An unsigned integer giving the length of the sub-option-data field in this sub-option in octets. A 2-octet field. sub-option-data The data area for the sub-option. The length, in octets, is specified by sub-option-len. ```
* | tests: add a testcase triggering https://github.com/systemd/systemd/issues/15968Evgeny Vereshchagin2020-05-311-0/+14
| | | | | | | | It's just a follow-up to https://github.com/systemd/systemd/pull/15976
* | network: fix memleaksYu Watanabe2020-05-291-0/+2
|/ | | | Fixes #15951.
* network: DHCPv6 Assign delegated prefix to LAN interfaceSusant Sahani2020-05-291-0/+1
| | | | | | | | | In DHCPv6-PD environment, where WAN interface requests IPv6 via DHCPv6, receives the address as well as delegated prefixes, with LAN interfaces serving those delegated prefixes in their router advertisement messages. The LAN interfaces on the router themselves do not have the IPv6 addresses assigned by networkd from the prefix it serves on that interface. Now this patch enables it.
* core: add new PassPacketInfo= socket unit propertyLennart Poettering2020-05-271-0/+1
|
* Merge pull request #15669 from andir/systemd-ipv6-pd-subnet-idLennart Poettering2020-05-271-0/+1
|\ | | | | networkd: subnet id support for ipv6 prefix delegation
| * networkd: Add support for setting a preferred subnet id for IPv6 PD leasesAndreas Rammhold2020-05-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows users to configure a subnet id that should be used instead of automatically (sequentially) assigned subnets. The previous attempt had the downside that the subnet id would not be the same between networkd restarts. In some setups it is desirable to have predictable subnet ids across restarts of services and systems. The code for the assignment had to be broken up into two pieces. One of them is the old (sequential) assignment of prefixes and the other is the new assignment based on configured subnet ids. The new assignment code has to be executed first and has to be taken into account when (later on) allocating the "old" subnets from the same pool. Instead of having one iteration through the links we are now trying to allocate a prefix for every link on every delegated prefix, unless they received an assignment in a previous iteration.
* | Merge pull request #15226 from benzea/benzea/xdg-autostart-generatorLennart Poettering2020-05-273-0/+32
|\ \ | | | | | | xdg-autostart-generator: a generator for XDG autostart files
| * | fuzz: Add an XDG desktop file fuzzerBenjamin Berg2020-05-273-0/+32
| | | | | | | | | | | | | | | | | | To test the XDG parser used by the xdg-autostart-generator. Co-authored-by: Evgeny Vereshchagin <evvers@ya.ru>
* | | meson: support building fuzzers with meson <0.48.0Frantisek Sumsal2020-05-271-2/+9
|/ /
* | add a test triggering https://github.com/systemd/systemd/issues/15907Evgeny Vereshchagin2020-05-261-0/+1
| |
* | Merge pull request #15167 from ssahani/address-gen-modeLennart Poettering2020-05-251-0/+1
|\ \ | | | | | | networkctl: Add a range to address genmode
| * | network: Allow to configure addr_gen_modeSusant Sahani2020-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Defines how link-local and autoconf addresses are generated. 0: generate address based on EUI64 (default) 1: do no generate a link-local address, use EUI64 for addresses generated from autoconf 2: generate stable privacy addresses, using the secret from stable_secret (RFC7217) 3: generate stable privacy addresses, using a random secret if unset
* | | login: limit nr_inodes for /run/user/$UIDTopi Miettinen2020-05-241-0/+1
| | | | | | | | | | | | | | | Limit number of inodes for tmpfs mounts on /run/user/$UID. Default is RuntimeDirectorySize= divided by 4096.
* | | Merge pull request #15886 from mrc0mmand/travis-enable-fuzz-testsEvgeny Vereshchagin2020-05-231-1/+2
|\ \ \ | | | | | | | | travis: enable fuzzer regression tests under sanitizers
| * | | meson: pass the optimization level to the fuzzer buildFrantisek Sumsal2020-05-231-1/+2
| |/ /
* | | tests: add a testcase for https://github.com/systemd/systemd/issues/15885Evgeny Vereshchagin2020-05-221-0/+9
|/ /
* | Merge pull request #15865 from evverx/ubsan-to-the-rescueEvgeny Vereshchagin2020-05-211-5/+5
|\ \ | | | | | | build-system: build the fuzz targets with both ASan and UBSan
| * | build-system: build the fuzz targets with both ASan and UBSanEvgeny Vereshchagin2020-05-201-5/+5
| | | | | | | | | | | | Just a follow-up to https://github.com/systemd/systemd/pull/15860
* | | Merge pull request #15274 from ssahani/network-issue-9610Zbigniew Jędrzejewski-Szmek2020-05-201-0/+1
|\ \ \ | | | | | | | | DHCP4: Allow lease time to be set when missing from offer
| * | | network: DHCPv4- Allow to set DHCP lease lifetimeSusant Sahani2020-05-201-0/+1
| | | |
* | | | Merge pull request #15490 from ssahani/dhcpv6-vendor-classLennart Poettering2020-05-201-0/+1
|\ \ \ \ | |_|/ / |/| | | network: DHCPv6 - Add support to send vendor class information
| * | | network: DHCPv6 - Add support to send vendor class informationSusant Sahani2020-05-201-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Frame 1: 177 bytes on wire (1416 bits), 177 bytes captured (1416 bits) on interface veth-peer, id 0 Ethernet II, Src: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4), Dst: IPv6mcast_01:00:02 (33:33:00:01:00:02) Internet Protocol Version 6, Src: fe80::1c04:f8ff:feb8:2fd4, Dst: ff02::1:2 User Datagram Protocol, Src Port: 546, Dst Port: 547 DHCPv6 Message type: Solicit (1) Transaction ID: 0x5ca46b Rapid Commit Identity Association for Non-temporary Address Fully Qualified Domain Name Vendor Class Option: Vendor Class (16) Length: 23 Value: 0000ab11000048656c6c6f3a686f773a6172653a796f75 Enterprise ID: Tom Gundersen (systemd) (43793) vendor-class-data: Hello:how:are:you Identity Association for Prefix Delegation Option Request Client Identifier Elapsed time
* | | Merge pull request #15860 from keszybz/bus-message-empty-fieldsZbigniew Jędrzejewski-Szmek2020-05-201-0/+0
|\ \ \ | | | | | | | | Fix crash on message with empty fields structure
| * | | bus-message: fix negative offset with ~empty messageZbigniew Jędrzejewski-Szmek2020-05-201-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the linked reproducer, m->fields_size == 0, and we calculate ri == -1, which of course doesn't end well. Skip the whole calculation if m->fields_size == 0, and also check that we don't go negative even if it is non-zero. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19446 and #15583.
* | | | Merge pull request #15661 from hundeboll/mount-read-write-onlyZbigniew Jędrzejewski-Szmek2020-05-201-0/+1
|\ \ \ \ | |_|/ / |/| | | Mount read write only
| * | | mount: add ReadWriteOnly property to fail on read-only mountsMartin Hundebøll2020-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Systems where a mount point is expected to be read-write needs a way to fail mount units that fallback as read-only. Add a property to allow setting the -w option when calling mount(8).
* | | | network: DHCPv6 - Add support to send user classSusant Sahani2020-05-191-0/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Frame 115: 171 bytes on wire (1368 bits), 171 bytes captured (1368 bits) on interface veth-peer, id 0 Ethernet II, Src: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4), Dst: IPv6mcast_01:00:02 (33:33:00:01:00:02) Internet Protocol Version 6, Src: fe80::1c04:f8ff:feb8:2fd4, Dst: ff02::1:2 User Datagram Protocol, Src Port: 546, Dst Port: 547 DHCPv6 Message type: Solicit (1) Transaction ID: 0x673257 Rapid Commit Option: Rapid Commit (14) Length: 0 Identity Association for Non-temporary Address Option: Identity Association for Non-temporary Address (3) Length: 12 Value: d0cc94090000000000000000 IAID: d0cc9409 T1: 0 T2: 0 Fully Qualified Domain Name Option: Fully Qualified Domain Name (39) Length: 6 Value: 01045a657573 0000 0... = Reserved: 0x00 .... .0.. = N bit: Server should perform DNS updates .... ..0. = O bit: Server has not overridden client's S bit preference .... ...1 = S bit: Server should perform forward DNS updates Client FQDN: Zeus User Class Option: User Class (15) Length: 17 Value: 000f68656c6c6f30313233343031323334 Identity Association for Prefix Delegation Option: Identity Association for Prefix Delegation (25) Length: 12 Value: d0cc94090000000000000000 IAID: d0cc9409 T1: 0 T2: 0 Option Request Option: Option Request (6) Length: 10 Value: 001700180038001f000e Requested Option code: DNS recursive name server (23) Requested Option code: Domain Search List (24) Requested Option code: NTP Server (56) Requested Option code: Simple Network Time Protocol Server (31) Requested Option code: Rapid Commit (14) Client Identifier Option: Client Identifier (1) Length: 14 Value: 00020000ab11d258482fc7eee651 DUID: 00020000ab11d258482fc7eee651 DUID Type: assigned by vendor based on Enterprise number (2) Enterprise ID: Tom Gundersen (systemd) (43793) Identifier: d258482fc7eee651 Elapsed time Option: Elapsed time (8) Length: 2 Value: 0bd0 Elapsed time: 30240ms
* | | network: DHCPv6 - Add support set arbitary request optionsSusant Sahani2020-05-171-0/+1
| | |
* | | shared: fix integer overflow in calendarspecFrantisek Sumsal2020-05-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: oss-fuzz#22208 ``` test/fuzz/fuzz-calendarspec/oss-fuzz-22208... ../src/shared/calendarspec.c:666:48: runtime error: signed integer overflow: 2147000000 + 1000000 cannot be represented in type 'int' #0 0x7f0b9f6cc56a in prepend_component ../src/shared/calendarspec.c:666 #1 0x7f0b9f6cd03a in parse_chain ../src/shared/calendarspec.c:718 #2 0x7f0b9f6cea1c in parse_calendar_time ../src/shared/calendarspec.c:845 #3 0x7f0b9f6d1397 in calendar_spec_from_string ../src/shared/calendarspec.c:1084 #4 0x401570 in LLVMFuzzerTestOneInput ../src/fuzz/fuzz-calendarspec.c:17 #5 0x401ae0 in main ../src/fuzz/fuzz-main.c:39 #6 0x7f0b9e31b1a2 in __libc_start_main (/lib64/libc.so.6+0x271a2) #7 0x40122d in _start (/home/fsumsal/repos/systemd/build/fuzz-calendarspec+0x40122d) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/shared/calendarspec.c:666:48 in ```
* | | network: Add support to group links.Susant Sahani2020-05-151-0/+1
| | | | | | | | | | | | | | | | | | Link groups are similar to port ranges found in managed switches. You can add network interfaces to a numbered group and perform operations on all the interfaces from that group at once.
* | | network: allow setting VLAN protocol on bridgesRubens Figueiredo2020-05-141-0/+1
| | | | | | | | | | | | Signed-off-by: Rubens Figueiredo <rubens.figueiredo@bisdn.de>
* | | DHCP client: make SendOption work for DHCPv6 too.Andrew Doran2020-05-111-0/+1
|/ /
* | link: Allow configuring RX mini and jumbo ring sizes, toonabijaczleweli2020-04-291-0/+2
|/ | | | | This now covers all ethtool_ringparam configurables (as of v5.6; https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/ethtool.h?h=v5.6#n488)
* network: Add support send and receive LPR serversSusant Sahani2020-04-221-0/+1
|
* Merge pull request #15332 from keszybz/coredump-filterLennart Poettering2020-04-091-0/+1
|\ | | | | CoredumpFilter=
| * manager: add CoredumpFilter= settingZbigniew Jędrzejewski-Szmek2020-04-091-0/+1
| | | | | | | | Fixes #6685.
* | LLDP: Add support to transmit MUD URLSusant Sahani2020-04-081-0/+2
|/
* Merge pull request #15252 from ssahani/dhcpv6-mudZbigniew Jędrzejewski-Szmek2020-04-021-0/+1
|\ | | | | DHCPv6: Add support to send MUD URL
| * network: DHCPv6 Add support to send MUD URLSusant Sahani2020-04-011-0/+1
| |
* | network: can: add support for CAN-FD related propertiesRichard Petri2020-04-011-0/+4
| |
* | network: DHCPv4 - introduce The Manufacturer Usage Description (MUD)Susant Sahani2020-03-301-0/+1
| |
* | network: DHCP - add support to emit and receive SMTP server informationSusant Sahani2020-03-291-0/+1
| |
* | DHCP: Add support to emit and retrieve POP3 serverSusant Sahani2020-03-281-0/+1
|/
* network: Fix split in `SendOption=` on client and serverDavid Wood2020-03-191-0/+2
| | | | | | | | | | | | | | | | | When specifying `DHCPv4.SendOption=`, it is used by systemd-networkd to set the value of that option within the DHCP request that is sent out. This differs to setting `DHCPServer.SendOption=`, which will place all the options together as suboptions into the vendor-specific information (code 43) option. This commit adds two new config options, `DHCPv4.SendVendorOption=` and `DHCPServer.SendVendorOption=`. These both have the behaviour of the old `DHCPServer.SendOption=` flag, and set the value of the suboption in the vendor-specific information option. The behaviour of `DHCPServer.SendOption=` is then changed to reflect that of `DHCPv4.SendOption=`. It will set the value of the corresponding option in the DHCP request.
* Merge pull request #15136 from yuwata/network-dhcp4-use-gatewayZbigniew Jędrzejewski-Szmek2020-03-171-0/+1
|\ | | | | network: add a flag to ignore gateway provided by DHCP server
| * network: add a flag to ignore gateway provided by DHCP serverYu Watanabe2020-03-161-0/+1
| | | | | | | | Closes #15117.