How to crash systemd in one tweet

Here wizards, magicians, sorcerers and everybody can rest a bit and talk about anything they like.

Just remember to respect the rules.

How to crash systemd in one tweet

Postby jiml8 » Sep 29th, '16, 18:20 ... _one_tweet

I have not tried this; rebooting my system is something I avoid to the extent I can, and I am busy now so I don't want to have to do it.

The article brings up MANY excellent points regarding the negative impact of systemd on modern Linux systems.
Posts: 1028
Joined: Jul 7th, '13, 18:09

Re: How to crash systemd in one tweet

Postby doktor5000 » Sep 29th, '16, 19:04

So on the other hand, you don't think there are one-liners that could crash SysV init? And it's not like everything was golden back then ...

I tend to agree more with this comment
This article starts with a bug. Note, it's a pretty irrelevant one that doesn't appear to be reproducible on recent builds.

Then it brings up a few other debatable issues, and then it incorrectly generalizes that systemd security is terrible. I say debatable because for example parsing command line parameters isn't something people usually delegate to a separate process.

Unfortunately, it also ignores all the great systemd security features it has added for the average Linux user (such as private tmp, and cgroups), and in fact all the other great features it has.

FWIW, as this is also only mentioned in the comments, the command mentioned usually does nothing for recent versions.
See also the respective bug report (which the author of that article forgot to mention/report ...)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
Posts: 15029
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to crash systemd in one tweet

Postby jiml8 » Sep 29th, '16, 20:01

And a subsequent comment to the comment you posted indicates that this isn't parsing text; it is accepting input from a world-available interface directly into PID 1 without validation or isolation.

Also, the subsequent comment points out that private tmp is not a systemd feature, and neither are cgroups. Further, cgroups are not intended as a security enhancement anyway, though they can be used that way.

Also, there was debate about whether it happened in recent versions. I still haven't tested it with M5 and don't really plan to unless I happen to have a copy other than my workstation running.

I don't know if there were 1-liners that could crash sysV init, but I do know that if sysV init crashed the system would die and restart gracefully because sysV init did nothing but start the system and scavenge zombies...unlike the current init which has become quite a heavyweight program.
Posts: 1028
Joined: Jul 7th, '13, 18:09

Re: How to crash systemd in one tweet

Postby nigelc » Oct 4th, '16, 13:25

I can make my system crash with it.

Code: Select all
NOTIFY_SOCKET=/run/systemd/notify systemd-notify ""
Posts: 182
Joined: Aug 28th, '11, 09:35

Return to The Wizards Lair

Who is online

Users browsing this forum: No registered users and 1 guest