Live data from Hacker News

Have you restarted your computer this week?

taonaw.com

241–250 of 411 posts

Re: Have you restarted your computer this week?

#241

Earlier quoted context omitted.

If your computer has any kind of secure boot / boot chain attestation stuff going on, like all phones do now, rebooting clears out pretty much all malware. Software bugs can put the system in to a bad state which can be abused by malware, but none of it can persist through a reboot since everything is checked and measured from scratch during the boot.

> Software bugs can put the system in to a bad state which can be abused by malware, but none of it can persist through a reboot since everything is checked and measured from scratch during the boot. This does not account for supply chain attacks nor trojan attacks which seek consensual installation. A reboot will not eradicate these threat vectors.

It relies on your software to be properly sandboxed and permissioned.

What we have seen is state funded hacking groups can often exploit bugs which break out of sandboxes and embed themselves in the system. But the malicious code only exists in memory, it can’t persist between reboots because the next boot would fail the checksum and signature checks.

Which is why security focused OSs will periodically reboot themselves to flush out possible malware and why jailbreaks and hacks for phones and game consoles usually have to be reinitiated after every boot.

MacOS has a few measures including SIP and boot chain security to implement this, though it’s currently hard to set up a properly secure Linux desktop.

Re: Have you restarted your computer this week?

#242

I don't feel like keeping my tower pc running more than necessary. When I don't use it for hours, I usually turn it off. At least when I go to bed I turn it off. Next day I turn it on again. Like a normal person. I don't see a need to save 1 minute or so, by keeping it running.

I'm astonished I had to wade through so many other replies to find this one. I had never considered I might be doing things abnormally when I turned my machine off at the end of the day.

If nothing else, think of the power usage!

Re: Have you restarted your computer this week?

#243

Is it weird that we don't have a way to update the system without rebooting by this day and age? I think there are things in Linux like live kernel patching (kexec, ksplice), but why by 2026 is this sort of architecture of live system updates not a common or included feature yet? People hate updates and having to reboot and have downtime right? Security updates to core systems are more important than ever now too. So…

Windows does more of this than people notice actually. I was on a system the other day, Server 2016, it had downloaded 2 updates, both system file related, one had installed already and the other one was nagging for a reboot. Stuff like Windows Defender doesnt even really ask if you want to install the update anymore, it just installs the new virus definitions immediately.

Windows has been gradually "undocking" more and more stuff from the main OS install into separately updatable/restartable/etc components for a while.

Re: Have you restarted your computer this week?

#244

I use NixOS and haven't restarted my machines in years. Always on. There are power outages once in a while but everything is set to restart when power is available so it comes back up.

IMO the power of NixOS is at the other extreme. Set it up with Impermanence (https://wiki.nixos.org/wiki/Impermanence) and reboot often.

Also worth flagging if you are only ever switching in new configs Kernel patches, firmware, or updates to systemd won’t apply until next boot.

Re: Have you restarted your computer this week?

#245
I turn off my work Mac on the weekends because I cannot for the life of me figure out how to make it shut the fuck up. If I close the lid I still hear email, calendar and slack notifications. If I explicitly put it to sleep I still hear notifications. The only way I can walk away from that cursed computer knowing I won't hear it nag me from the next room is to shut it down.

Re: Have you restarted your computer this week?

#246

Earlier quoted context omitted.

> Software bugs can put the system in to a bad state which can be abused by malware, but none of it can persist through a reboot since everything is checked and measured from scratch during the boot. This does not account for supply chain attacks nor trojan attacks which seek consensual installation. A reboot will not eradicate these threat vectors.

It relies on your software to be properly sandboxed and permissioned. What we have seen is state funded hacking groups can often exploit bugs which break out of sandboxes and embed themselves in the system. But the malicious code only exists in memory, it can’t persist between reboots because the next boot would fail the checksum and signature checks. Which is why security focused OSs will periodically reboot themsel…

> It relies on your software to be properly sandboxed and permissioned.

And organizations rely on their employees not falling for phishing email. How well has that worked?

> What we have seen is state funded hacking groups can often exploit bugs which break out of sandboxes and embed themselves in the system. But the malicious code only exists in memory, it can’t persist between reboots because the next boot would fail the checksum and signature checks.

"Malicious code existing only in memory" is patently false by not addressing supply chain attacks previously mentioned. To wit, the npm left-pad attack[0]. See also the thousands of PHP CVEs.

0 - https://en.wikipedia.org/wiki/Npm_left-pad_incident

Re: Have you restarted your computer this week?

#248

Earlier quoted context omitted.

6.19 added a new Live Update Orchestrator, which allows significantly more of the system to be retained while doing a kexec / Kernel Handover like transisiton to a new kernel too. https://www.phoronix.com/news/Linux-6.19-Live-Update-LUO https://lwn.net/Articles/1033364/ Systemd added support in recent 2.61. Theres also now ways to have user stores, that survive across switches. https://www.phoronix.com/news/systemd-2…

There's also `systemctl soft-reboot` which initiates a userspace-only reboot, which quickly restarts the system without going through the full hardware and kernel initialization process.

Real men use: killall -9

Re: Have you restarted your computer this week?

#249

Earlier quoted context omitted.

6.19 added a new Live Update Orchestrator, which allows significantly more of the system to be retained while doing a kexec / Kernel Handover like transisiton to a new kernel too. https://www.phoronix.com/news/Linux-6.19-Live-Update-LUO https://lwn.net/Articles/1033364/ Systemd added support in recent 2.61. Theres also now ways to have user stores, that survive across switches. https://www.phoronix.com/news/systemd-2…

There's also `systemctl soft-reboot` which initiates a userspace-only reboot, which quickly restarts the system without going through the full hardware and kernel initialization process.

But that doesn't give you kernel updates, being userspace only?

Re: Have you restarted your computer this week?

#250
post #107

I have a cron job which restarts my computer every day (Linux Mint Debian edition). I like waking up to a "fresh" computer, and since I know that it will restart every day - this is a "forcing function" to (1) be diligent about saving things that are important, (2) treating browser tabs, random notes, etc as ephemeral, and bookmarking the important stuff. I used to work at an office where we pair-programmed with clie…

> about what getting a computer into a productive state means

Why would you do that? Is your OS not running stable? Do you not have tight control over the software that is running? Why are you unable to keep it in a productive state?

Greetings from a Computer that only restarts for updates every few days, next to an airgapped machine that has been running for years.

Post reply on HN