SoylentNews
SoylentNews is people
https://soylentnews.org/

Title    Systemd Crashing Bug
Date    Wednesday October 05 2016, @12:46AM
Author    CoolHand
Topic   
from the love-for-lennart dept.
https://soylentnews.org/article.pl?sid=16/10/04/2258217

mechanicjay writes:

Security researcher and MateSSL founder, Andrew Ayer has uncovered a bug which will either crash or make systemd unstable (depending on who you talk to) on pretty much every linux distro. David Strauss posted a highly critical response to Ayer. In true pedantic nerd-fight fashion there is a bit of back and forth between them over the "true" severity of the issue and what not.

Nerd fights aside, how you feel about this bug, will probably largely depend on how you feel about systemd in general.

The following command, when run as any user, will crash systemd:

NOTIFY_SOCKET=/run/systemd/notify systemd-notify ""

After running this command, PID 1 is hung in the pause system call. You can no longer start and stop daemons. inetd-style services no longer accept connections. You cannot cleanly reboot the system. The system feels generally unstable (e.g. ssh and su hang for 30 seconds since systemd is now integrated with the login system). All of this can be caused by a command that's short enough to fit in a Tweet.

Edit (2016-09-28 21:34): Some people can only reproduce if they wrap the command in a while true loop. Yay non-determinism!


Original Submission

Links

  1. "mechanicjay" - mailto:mechanicjayNO@SPAMsoylentnews.org
  2. "a bug" - https://www.agwa.name/blog/post/how_to_crash_systemd_in_one_tweet
  3. "a highly critical response" - https://medium.com/@davidtstrauss/how-to-throw-a-tantrum-in-one-blog-post-c2ccaa58661d#.mphskkqg7
  4. "Tweet" - https://twitter.com/__agwa/status/781210293632315392
  5. "wrap the command in a while true loop" - https://github.com/systemd/systemd/issues/4234#issuecomment-250289253
  6. "Original Submission" - https://soylentnews.org/submit.pl?op=viewsub&subid=16204

© Copyright 2024 - SoylentNews, All Rights Reserved

printed from SoylentNews, Systemd Crashing Bug on 2024-03-28 16:19:02