Zbigniew Jędrzejewski-Szmek
92e068b465
basic/utf8: do not read past end of string when looking for a multi-byte character
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9341 .
2019-02-26 12:37:40 +01:00
Yu Watanabe
10f6188b67
fuzz: add a sample for fuzz-udev-database
2019-02-26 13:28:30 +09:00
Lennart Poettering
510dc4da13
Merge pull request #11767 from yuwata/network-bridge-enslaved
...
network: extend 'enslaved' state to bridge slave
2019-02-25 19:29:30 +01:00
Yu Watanabe
eac31d708f
fuzz: add directives.link and 99-default.link for fuzz-link-parser
...
Also adds several reproducers of errors fixed in earlier commits.
2019-02-25 12:40:42 +09:00
Yu Watanabe
6609924c32
test-network: add more tests for IgnoreCarrierLoss=
...
Suggested by @amishmm in #9262 .
2019-02-25 09:34:14 +09:00
Yu Watanabe
2be6c5d2ec
test-network: add more tests for Bridge=
2019-02-25 09:34:14 +09:00
Yu Watanabe
cc3e488c7d
test-network: testing with two bond slaves
2019-02-23 19:43:25 +09:00
Yu Watanabe
3dd2d52414
test-udev: fix alignment and drop unnecessary white spaces
2019-02-22 06:50:21 +09:00
Yu Watanabe
84a0819c9d
test-udev: add more tests for line continuation
2019-02-22 06:50:20 +09:00
Lennart Poettering
953a1af082
Merge pull request #11776 from keszybz/networkd-ordered-sets
...
Store domains lists in OrderedSets in networkd
2019-02-21 15:15:11 +01:00
Martin Pitt
f5cf985e9c
networkd-test: fix test_dropin()
...
- This test needs resolved, so make sure it is started. In some Debian
environments it is not.
- It was an unnecessary, and now failing assumption that name servers
get atomically written to the resolved's resolv.conf. Wait until both
expected name servers are in the file.
2019-02-21 12:37:08 +01:00
Martin Pitt
ca56805c8d
networkd-test: use a complete domain name in test_route_only_dns()
...
Since version 241 (commit ea4678?), querying MX type records for
single-label domains does not actually forward the query to the DNS
server any more. Use "example.com" instead, which is the recommended
test domain anyway.
2019-02-21 12:37:08 +01:00
Martin Pitt
6592c9c850
networkd-test: disable DNSSEC in domain-restricted DNS test
...
dnsmasq 2.80 changed behaviour when being queried by resolved with
enabled DNSSEC: It returns errors for SOA and DS queries which cause the
entire query to fail. As we don't configure DNSSEC in this test anyway,
just disable it so that we retain compatibility with old and new dnsmasq
versions.
2019-02-21 12:37:06 +01:00
Zbigniew Jędrzejewski-Szmek
95b2903bde
tests: shorten the fuzz test case
...
The test was failing in Ubuntu CI with a 30s timeout. It makes
sense to keep the file so exercise the set allocation logic, but
we can make it shorter.
2019-02-21 12:30:13 +01:00
Zbigniew Jędrzejewski-Szmek
5e2a51d588
networkd: use OrderedSets instead of strvs to store lists of domains
...
We were already using OrderedSets in the manager object, but strvs in the
configuration parsing code. Using sets gives us better scaling when many
domains are used.
In oss-fuzz #13059 the attached reproducer takes approximately 30.5 s to be
parsed. Converting to sets makes this go down to 10s. This is not _vastly_
faster, but using sets seems like a nicer approach anyway. In particular, we
avoid the quadratic de-unification operation after each addition.
2019-02-21 12:04:27 +01:00
Yu Watanabe
4da3315452
test-network: add testcases for handling disable_ipv6 sysctl property
2019-02-21 11:08:07 +09:00
Yu Watanabe
ecdd039246
test-network: update cosmetic workaround
...
Almost all tests call copy_unit_to_networkd_unit_path() at first.
So, let's move the line break there.
2019-02-21 10:55:46 +09:00
Anita Zhang
7ca69792e5
core: add ':' prefix to ExecXYZ= skip env var substitution
2019-02-20 17:58:14 +01:00
Yu Watanabe
2dcaf38020
Merge pull request #11764 from yuwata/network-verify
...
network: introduce network_verify() and drop incompatible settings
2019-02-20 06:13:53 +09:00
Yu Watanabe
0cc972aac3
test-network: add tests for meaningless settings which should be ignored by networkd
2019-02-20 06:12:54 +09:00
Yu Watanabe
71064bd5ac
Merge pull request #11759 from yuwata/fix-test-dropin
...
test-network: check whether ethtool support driver field for dummy interfaces
2019-02-20 06:11:11 +09:00
Yu Watanabe
b1b10691be
Merge pull request #11757 from yuwata/test-udev-continuation
...
test-udev: add more tests for line continuations and comments
2019-02-20 06:10:37 +09:00
Yu Watanabe
232152bcb1
test-network: check whether ethtool support driver field for dummy interfaces
...
Fixes #11758 .
2019-02-19 22:00:06 +09:00
Yu Watanabe
f32c600935
test-network: disable test for Driver field in networkctl
...
CentOS CI does not like the test. Let's at least tentatively disable the test.
2019-02-19 17:39:05 +09:00
Yu Watanabe
fde66c2120
test-network: update format used by networkctl status
2019-02-19 17:38:30 +09:00
Yu Watanabe
d35976c670
test-udev: add more tests for line continuations and comments
2019-02-19 09:22:45 +09:00
Yu Watanabe
e37a5d90b0
test-udev: use proper semantics for too long line with continuation
...
Follow-up for 1e797cf596
.
2019-02-19 09:21:58 +09:00
Lennart Poettering
9c5675af76
Merge pull request #11729 from yuwata/fix-11721
...
sd-device: also store properties read from udev database to sd_device::properties_db
2019-02-18 16:02:26 +01:00
Lennart Poettering
1ff3e129ae
Merge pull request #11746 from yuwata/udev-rules-cleanup
...
udev-rules: several cleanups for udev-rules.c
2019-02-18 13:05:34 +01:00
Lennart Poettering
1cfece4a45
Merge pull request #11681 from yuwata/network-link-enslaved-operstate
...
network: introduce new 'enslaved' operstate
2019-02-18 13:00:13 +01:00
Lennart Poettering
702451b038
Merge pull request #11698 from yuwata/fix-network-route-table
...
network: honor specified route table
2019-02-18 12:58:32 +01:00
Lennart Poettering
31ced79065
Merge pull request #11743 from keszybz/two-memory-fixups
...
Two fixups for issues found by scanners
2019-02-18 12:09:25 +01:00
Yu Watanabe
c3a8853f6e
test-network: add tests for bonding
2019-02-18 18:07:11 +09:00
Yu Watanabe
1e797cf596
test-udev: add a testcase of too long line
2019-02-18 12:22:54 +09:00
Yu Watanabe
b117044c09
test-network: decrease sleep time in test_bind_carrier()
...
This effectively reverts 63eb09569a
,
as the commit does not fix #11724 .
2019-02-18 06:11:50 +09:00
Zbigniew Jędrzejewski-Szmek
ea53cfd195
shared/calendarspec: do not allocate a big string on stack
...
The string can be as long as a logical line in a unit file — so no unlimited,
but quite big. Let's use a normal heap allocation when making a copy.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13125
2019-02-16 23:31:07 +01:00
Yu Watanabe
18c613dc36
test-network: add tests for VRF=
2019-02-17 01:25:21 +09:00
Yu Watanabe
0ae7a66d1a
test-network: add tests for DHCP.RouteTable=
2019-02-17 01:17:40 +09:00
Yu Watanabe
3b51bbe135
test-network: drop unused variable
2019-02-17 01:17:40 +09:00
Yu Watanabe
96fb7dc30f
test-network: add a tiny test for ID_NET_DRIVER= udev property
...
Test for #11721 .
2019-02-17 00:43:38 +09:00
Yu Watanabe
63eb09569a
test-network: increase sleep time in test_bind_carrier()
...
Hopefully fixes #11667 .
2019-02-16 07:22:54 +09:00
Lennart Poettering
84e4b0b893
Merge pull request #11716 from ssahani/drop-autoconf-address
...
networkd: ipv6ra allow to ignore addresses
2019-02-15 12:17:46 +01:00
Lennart Poettering
a0279563d7
Merge pull request #11719 from yuwata/networkctl-wildcards
...
networkctl: accept wildcards to specify links
2019-02-15 11:44:24 +01:00
Lennart Poettering
19df3047f3
Merge pull request #9262 from ssahani/ignore-carrier-9111
...
networkd: allow to retain configs even if carrier is lost
2019-02-15 11:35:43 +01:00
Yu Watanabe
cd65d06720
test-network: add test for BindCarrier=
2019-02-15 11:30:17 +01:00
Yu Watanabe
308ae89c9b
test-network: add tests for wildcards in networkctl
2019-02-15 13:54:28 +09:00
Susant Sahani
24433ffa6d
Add to fuzzer
2019-02-14 21:10:59 +05:30
Zbigniew Jędrzejewski-Szmek
dc9cced4ac
Merge pull request #11704 from yuwata/fix-oss-fuzz-12980
...
udev-rule: make rule_add_key() return negative errno when too much tokens
2019-02-13 23:27:12 +01:00
Yu Watanabe
be18d18bd8
test: add testcase for oss-fuzz#12980
2019-02-13 04:16:30 +09:00
Yu Watanabe
05514ae196
test-network: add tests for LinkLocalAddressing=
2019-02-13 02:36:15 +09:00