Ninjatrappeur's systemd working tree
Go to file
Susant Sahani b1c626f67f networkd: fix crash if fails to get network file (#8714)
In some situation if networkd fails to get the network file
then networkd crashes becasse the link->network is not initalized;

```
veth99: Failed to get network dhcp-client-ipv4-only: No such file or directory
Segmentation fault

gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/sus/tt/systemd/build/systemd-networkd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments
warning: Loadable section ".note.gnu.property" outside of ELF segments

Program received signal SIGSEGV, Segmentation fault.
link_load (link=0x55555582ccd0) at ../src/network/networkd-link.c:2973
2973	                r = sd_dhcp_client_new(&link->dhcp_client, link->network->dhcp_anonymize);
(gdb) bt
(gdb) p link->network
$1 = (Network *) 0x0
(gdb) list
2968	                if (r < 0) {
2969	                        log_link_debug_errno(link, r, "Failed to parse DHCPv4 address %s: %m", dhcp4_address);
2970	                        goto dhcp4_address_fail;
2971	                }
2972
2973	                r = sd_dhcp_client_new(&link->dhcp_client, link->network->dhcp_anonymize);
2974	                if (r < 0)
2975	                        return log_link_error_errno(link, r, "Failed to create DHCPv4 client: %m");
2976
2977	                r = sd_dhcp_client_set_request_address(link->dhcp_client, &address.in);
(gdb) r
```
2018-04-17 16:55:04 +02:00
.github doc: add a new doc/ directory, and move two markdown docs into them 2018-02-27 19:59:09 +01:00
.mkosi tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
catalog tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
coccinelle coccinelle: fix typo in file name (#8640) 2018-04-02 23:30:26 +09:00
doc tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
factory/etc factory: remove broken pam_limits 2014-07-30 15:21:54 +02:00
hwdb hwdb: Add a 2nd accelerometer orientation quirk for the Lenovo Ideapad Miix 320 (#8734) 2018-04-17 16:51:33 +02:00
man logind: enable limiting of user session scopes using pam context objects (#8397) 2018-04-17 16:42:44 +02:00
modprobe.d Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
network tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
po tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
presets tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
rules tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
shell-completion tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
src networkd: fix crash if fails to get network file (#8714) 2018-04-17 16:55:04 +02:00
sysctl.d tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
sysusers.d tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
test Merge pull request #8575 from keszybz/non-absolute-paths 2018-04-17 15:54:10 +02:00
tmpfiles.d tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
tools tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
travis-ci Integration of Travis CI and Coverity Scan Analysis (#7691) 2018-01-11 11:41:35 +01:00
units time-wait-sync: use watchfile to coordinate with timesyncd 2018-04-14 09:52:40 -05:00
xorg login: avoid external process call 2018-01-12 18:02:57 +01:00
.dir-locals.el meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
.editorconfig editorconfig: add rule for meson.build files (#6671) 2017-08-28 16:37:23 +02:00
.gitattributes git: indicate that tabs are never OK in the systemd tree 2013-10-30 02:25:38 +01:00
.gitignore Add mkosi.output/ to .gitignore 2017-11-29 14:33:56 +01:00
.mailmap mailmap: one more person 2018-03-05 17:21:09 +01:00
.travis.yml Rename scripts/coverity.sh to tools/coverity.sh 2018-03-12 15:39:21 +01:00
.vimrc vimrc: fix indentation logic for our docbook xml files 2016-04-29 12:23:34 +02:00
.ycm_extra_conf.py ycm: add doc string for all the functions in configuration file 2017-11-29 13:21:49 -07:00
configure build-sys: add basic support for ./configure && make && make install 2017-07-18 10:05:06 -04:00
LICENSE.GPL2 relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
LICENSE.LGPL2.1 licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
Makefile build-sys: Fix Makefile wrapper for install target (#6548) 2017-08-07 11:29:20 +02:00
meson.build tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
meson_options.txt tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
mkosi.build tree-wide: drop license boilerplate 2018-04-06 18:58:55 +02:00
mkosi.default mkosi: create .mkosi directory 2016-10-06 11:53:58 -04:00
NEWS NEWS: Warn about predictable network naming changes 2018-03-26 14:00:43 -04:00
README README: mention systemd-stable 2018-03-26 15:28:03 +02:00
README.md README: mention systemd-stable 2018-03-26 15:28:03 +02:00
TODO update TODO 2018-04-12 11:02:47 +02:00
zanata.xml po: add basic fedora.zanata.org configuration 2018-02-19 13:56:57 +01:00

systemd - System and Service Manager

Count of open issues over time Count of open pull requests over time Build Status
Coverity Scan Status
CII Best Practices

Details

General information about systemd can be found in the systemd Wiki.

Information about build requirements are provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the HACKING file for information how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.