summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-11-07test: missing "die"Yu Watanabe1-1/+1
Follow-up for a41ff38b0999fb83464309a29b8f39450b8d4b85.
2018-11-07Merge pull request #10668 from evverx/travis-tweaksEvgeny Vereshchagin1-2/+2
travis: build and run fuzzers against crash reproducers
2018-11-07travis: show all commands when building systemdEvgeny Vereshchagin1-1/+1
This should prevent Travis CI from terminating build jobs that don't print anything for more than 10 minutes. See https://travis-ci.org/systemd/systemd/builds/451737177.
2018-11-07travis: build and run fuzzers against crash reproducersEvgeny Vereshchagin1-1/+1
2018-11-07in-addr-util: make in_addr_default_prefix_from_string() or friend set 0 to ↵Yu Watanabe3-10/+16
prefixlen when family == AF_INET6 (#10665) Follow-up for a4798d4e6d88c2be2625ce62d8326eaa9b80f2ee. Fixes #10662.
2018-11-07travis: make the directory with coverity tools available in a containerEvgeny Vereshchagin1-2/+2
Otherwise `coverity.sh build` will fail with ``` find: '/var/tmp/coverity-scan-analysis': No such file or directory ``` See https://travis-ci.org/systemd/systemd/jobs/451683385.
2018-11-07hwdb: IdeaPad Miix 310 with another bios version (#10661)imayoda1-1/+2
another bios version for same model with portrait screen.
2018-11-07Merge pull request #10644 from mrc0mmand/travis-fixEvgeny Vereshchagin2-62/+127
Fix & re-enable Travis CI
2018-11-07travis: overwrite test-capability with a simple script that is just skippedEvgeny Vereshchagin2-4/+2
so that it will be possible to work on the test failure and try to make Travis CI work at the same time.
2018-11-07Merge pull request #10640 from evverx/networkd-fuzzersYu Watanabe94-4/+1024
Add a couple of fuzzers for network_load_one and netdev_load_one
2018-11-06travis: workaround for dnf upgradeFrantisek Sumsal1-1/+3
dnf upgrade on Fedora Rawhide pulls in unwanted selinux-policy packages which breaks the system in several ways (and usually ends up with crashed systemd)
2018-11-06oss-fuzz.sh: copy dictionaries along with "options" filesEvgeny Vereshchagin1-0/+1
We currently don't have any upstream but it doesn't mean that it should be impossible to experiment with local ones :-)
2018-11-06tests: add a couple of files containing all the sections and directivesEvgeny Vereshchagin2-0/+340
This should help the fuzzers to discover code paths faster. In case anyone is interested, they were generated with the following script ``` perl -aF'/[\s,]+/' -ne ' if (my ($s, $d) = ($F[0] =~ /^([^\s\.]+)\.([^\s\.]+)$/)) { $d{$s}{$d} = 1; } END { while (my ($key, $value) = each %d) { printf "[%s]\n%s\n", $key, join("\n", keys(%$value)) }}' ``` by passing src/network/networkd-network-gperf.gperf and src/network/netdev/netdev-gperf.gperf to it.
2018-11-06tests: replace AdActorSysPrio with AdActorSystemPriorityEvgeny Vereshchagin1-1/+1
This is a follow-up to https://github.com/systemd/systemd/pull/10653.
2018-11-06tests: add a reporoducer for https://github.com/systemd/systemd/issues/10639Evgeny Vereshchagin1-0/+8
2018-11-06tests: add some data that can be fed to fuzz-network-parserEvgeny Vereshchagin53-0/+384
2018-11-06tests: add a reproducer for https://github.com/systemd/systemd/issues/10629Evgeny Vereshchagin1-0/+10
2018-11-06networkd: make network_load_one "public" and add a fuzzer for itEvgeny Vereshchagin4-1/+32
2018-11-06networkd: make netdev_load_one "public" and add a fuzzer for itEvgeny Vereshchagin32-1/+245
2018-11-06networkd: remove a weird assertion from network_load_oneEvgeny Vereshchagin1-2/+0
The assertion was added in dbffab87f1504abc9f but I'm not exactly sure why. Now it just crashes a fuzzer I wrote. I, of course, could fix the fuzzer so that it would generate names ending in ".network" if anyone would tell me why the assertion should be kept here.
2018-11-06util: initialize _argtypes in VA_FORMAT_ADVANCE when systemd is built with MSanEvgeny Vereshchagin1-0/+4
This gets around https://github.com/google/sanitizers/issues/992.
2018-11-07Merge pull request #10654 from poettering/srand-rdrandYu Watanabe1-2/+6
random-util.c mini-fixes
2018-11-06login: Don't mark framebuffer devices as master-of-seat devicesMarco Trevisan (Treviño)1-1/+1
Currently we consider any framebuffer device as enough to have a valid graphical session, but this might lead to many false postives like in the case of framebuffer devices that have a linked drm card which is still in the process of being added, or for vesa fb, and so it doesn't ensure us that we can have a proper graphical session. Since these days we normally don't consider anything without a DRM card able to provide a full graphical session, let's not set this at this level. Drivers which can provide a graphical session with the sole fb are still free to mark any device as `master-of-seat` Fixes #10435
2018-11-06Merge pull request #10658 from yuwata/udevd-worker-performanceLennart Poettering1-36/+106
udev: improve performance
2018-11-06Merge pull request #10602 from yuwata/sd-device-logsLennart Poettering10-102/+104
update log messages
2018-11-06Merge pull request #10633 from yuwata/sd-resolve-destroyLennart Poettering13-61/+220
Another solution to fix wireguard issues
2018-11-06time-util: make parse_sec() not accept "12.34.56"Yu Watanabe2-103/+136
This also changes the rational number treatment. So, the limitations introduced by 8079c90333422bbc008b68a9b7cefbdb8a15a4e9 and f6a178e91dd5fccf43f659eca887788fd5dcdccf are relaxed. Fixes #10619.
2018-11-06travis: drop the unnecessary /etc/machine-id magicFrantisek Sumsal1-7/+2
2018-11-06travis: run Coverity on a more stable Fedora releaseFrantisek Sumsal2-2/+2
2018-11-07udevd: increase default number of workersYu Watanabe1-1/+1
The uevent handling in udevd is not cpu hungry. So, let's increase the default number of workers per cpu. This decrease the number of queued uevents. Without this commit (children_max is 16 on my laptop) ``` $ journalctl -b -u systemd-udevd.service | grep reached | wc -l 1544 ``` With this commit (children_max is 30 on my laptop) ``` $ journalctl -b -u systemd-udevd.service | grep reached | wc -l 7 ```
2018-11-07udevd: wait 3 seconds before killing worker processesYu Watanabe1-2/+79
During boot process, many worker processes are forked and killed. To decrease cycles of forking and killing worker, let's wait 3 seconds before killing workers. If new uevent or inotify event comes within the delay, the killing porcess will be cancelled.
2018-11-06travis: move Docker setup to a separate scriptFrantisek Sumsal3-67/+77
This should make debugging somewhat easier
2018-11-06udevd: drop redundant logic of receiving ueventYu Watanabe1-9/+2
If there exists pending uevents, then sd-event invokes uevent handler. So, it is not necessary to receive the next uevent in inotify event.
2018-11-06udevd: decrease indentationYu Watanabe1-17/+19
2018-11-06Merge pull request #10597 from toanju/fix-networkd-l3-lossLennart Poettering4-6/+67
networkd: don't remove ip address or route
2018-11-06udevd: merge conditions to decrease indentationYu Watanabe1-9/+7
2018-11-06Merge pull request #10650 from yuwata/udevadm-trigger-use-write-string-fileLennart Poettering18-76/+73
udevadm: use write_string_file() helper function
2018-11-06networkd: cleanup for #10542Tobias Jungel4-7/+7
fixes: 53b1f7d
2018-11-06Merge pull request #10652 from yuwata/lldp-ndisc-string-tableLennart Poettering7-12/+49
lldp,ndisc: update debug logs
2018-11-06core, sysctl: skip ENOENT for /proc/sys/net/unix/max_dgram_qlenGiuseppe Scrivano1-1/+1
sysctl is disabled for /proc mounted from an user namespace thus entries like /proc/sys/net/unix/max_dgram_qlen do not exist. In this case, skip the error and do not try to change the default for the AF_UNIX datagram queue length.
2018-11-06ask-password: fix minor memory leak on error pathLennart Poettering1-4/+2
CID 1396557
2018-11-06networkd: don't remove routeTobias Jungel3-3/+36
In case networkd is restarted this prevents a removal of an already existing route that would be configured using networkd. With the proposed changes the route will be kept on the interface without removing. This happens only on physical hosts or VMs since networkd handles interface configuration slightly different in containers.
2018-11-06networkd: don't remove ip addressTobias Jungel2-3/+31
In case networkd is restarted this prevents a removal of an already existing IP address that would be configured using networkd. With the proposed changes the IP address will be kept on the interface without removing. This happens only on physical hosts or VMs since networkd handles interface configuration slightly different in containers.
2018-11-06sd-device: use write_string_file() helper to write sysattrYu Watanabe1-30/+21
2018-11-06fileio: introduce WRITE_STRING_FILE_NOFOLLOW flag for write_string_file() ↵Yu Watanabe2-1/+2
and friends
2018-11-06tree-wide: set WRITE_STRING_FILE_DISABLE_BUFFER flag when we write files ↵Yu Watanabe14-37/+39
under /proc or /sys
2018-11-06udevd: use set_oom_score_adjust() to set OOM scoreYu Watanabe1-2/+6
2018-11-06udevadm: use write_string_file() helper functionYu Watanabe1-6/+5
2018-11-06test: add tests for string tables for lldp and ndisc eventsYu Watanabe1-0/+4
2018-11-06ndisc: improve debug log messageYu Watanabe3-4/+20