News for hackers. Stuff that matters.
Re:Windows' Undocumented “Emergency Restart” by dend on Tuesday July 05, 2022 @01:03PM (#31990788)
Indeed the feature is undocumented, but it's been known for some time - its goal is to mimic as much as possible the reset button, for those situations when your computer freezes up to a point where Ctrl+Alt+Del works, but literally no other process responds. Think "Background process locked up my OS, and I can't do anything short of unplugging the computer." Especially helpful on a laptop where the physical reset button is not available.
Re:Windows' Undocumented “Emergency Restart” by malfist on Tuesday July 05, 2022 @01:22PM (#31991043)
I wonder why microsoft never implemented the Magic SysRq keys like linux: https://en.wikipedia.org/wiki/Magic_SysRq_key

It'd let you safely shutdown when the computer is locked up otherwise.

Re:Windows' Undocumented “Emergency Restart” by notriddle on Tuesday July 05, 2022 @02:30PM (#31991934)
That's what Ctrl-Alt-Del is for.

They aren't exactly the same thing, I suppose, but there's enough functional overlap that if you already have one, it's hard to justify adding another. You don't want too many of these "escape sequences", because every kernel-side keyboard interrupt becomes a thing that:

* Userland doesn't get to use that keyboard shortcut any more.

* Someone might accidentally trigger, and if they don't know what's going on, they become stuck.

* It's another thing that anyone building a captive kiosk has to know how to disable.

Re:Windows' Undocumented “Emergency Restart” by kllrnohj on Tuesday July 05, 2022 @02:19PM (#31991810)
The times my Linux installs have locked up, those keys never worked.
Re:Windows' Undocumented “Emergency Restart” by pengaru on Tuesday July 05, 2022 @03:18PM (#31992509)
They may be disabled by distros to enhance security against physical access attacks.

It can also be challenging to actually input a magic-sysrq combo on many modern keyboards where sysrq isn't its own key, if it's labeled at all as some Fn-key contortion.

Re:Windows' Undocumented “Emergency Restart” by nyanpasu64 on Tuesday July 05, 2022 @04:34PM (#31993336)
Personally I value being able to trigger oomkiller early when a process is eating up RAM, and being able to SIGKILL kwin_x11 on Nvidia or whatever other process is wedging Linux shutdown, instead of waiting multiple minutes for systemd to give up waiting and SIGKILL it directly. In terms of physical access attacks, it's just as viable and far more powerful to add a keylogger to my keyboard or Linux distro, or pull and image my hard drive, than to gasp kill processes or sync filesystem data to disk, oh the horror!
Re:Windows' Undocumented “Emergency Restart” by pengaru on Tuesday July 05, 2022 @05:01PM (#31993643)
WRT the physical security argument in favor of disabling sysrq, my assumption is it's more aimed towards defeating quick-n-dirty mischief style abuse.

Ages ago I worked with a small team of young sysadmins who would often cause trouble for one another abusing things like sysrq, or poorly configured XFree86 instances without DontZap enabled (ctrl-alt-backspace termination, to a shell when startx/xinit is being used). Most of the time nothing malicious was actually done. But when you return to your screen-locked X desktop to find a fullscreen VC with a root shell blinking back at you and an empty history, guess what you'll at least have on the back of your mind for the rest of the workday?

Re:Windows' Undocumented “Emergency Restart” by sebazzz on Wednesday July 06, 2022 @12:56PM (#32003674)
From what I recall it needs to be enabled (or not be disabled) when the kernel is compiled and in some cases a flag must be put on the kernel command line while booting.
Re:Windows' Undocumented “Emergency Restart” by malfist on Tuesday July 05, 2022 @02:30PM (#31991923)
They always worked for me, but it's been a long time since linux has locked up on me.
Re:Windows' Undocumented “Emergency Restart” by forgotpwd16 on Tuesday July 05, 2022 @01:06PM (#31990824)
What always found impressive on Windows is C-A-Del will always work.
Re:Windows' Undocumented “Emergency Restart” by hammyhavoc on Tuesday July 05, 2022 @01:31PM (#31991168)
I can name hundreds of occasions from first-hand experience where it hasn't worked in the past 26 years for me on a variety of machines in various environments.
Re:Windows' Undocumented “Emergency Restart” by nyanpasu64 on Tuesday July 05, 2022 @04:30PM (#31993305)
One prominent example I've seen multiple times, is hanging in the shutdown screen where no text appears under the spinning dots, and Ctrl-Alt-Del does nothing.
Re:Windows' Undocumented “Emergency Restart” by memcg on Tuesday July 05, 2022 @01:54PM (#31991481)
Me too.
Re:Windows' Undocumented “Emergency Restart” by beebmam on Tuesday July 05, 2022 @02:54PM (#31992223)
Blue screen of death, for example.
Re:Windows' Undocumented “Emergency Restart” by jkingsman on Tuesday July 05, 2022 @01:58PM (#31991550)
Ctrl+Alt+Del invokes WinLogon, the highest priority process, that then delivers the task manager. I believe this is a kernel invocation, so regardless of user land dysfunction, it will always work. Tthis is possibly attributable as much to convenience as it is to security -- the Secure Attention Sequence[1] is intended as a login-spoofind protection which will suspend other tasks (like a spoofed login screen) before continuing forward with user auth.

[1]: https://en.wikipedia.org/wiki/Secure_attention_key

Re:Windows' Undocumented “Emergency Restart” by rzzzt on Tuesday July 05, 2022 @02:42PM (#31992079)
A group policy can be enabled on most variants of Windows (dating back to around NT 4 or Windows 2000, I think) to start with a dialog saying "Press Ctrl-Alt-Delete to begin", and pretty much nothing else, exactly for the reasons you describe.
Re:Windows' Undocumented “Emergency Restart” by WorldMaker on Tuesday July 05, 2022 @03:00PM (#31992289)
Though Microsoft's current security recommendation is against setting that policy for accessibility reasons. [0]

Windows since 8 has worked on hardening/strengthening the "Secure Desktop" that login flows (and UAC prompts) happen on so that as much as possible malware shouldn't be able to run in those sandboxes.

[0] https://docs.microsoft.com/en-us/windows/security/threat-pro...

Re:Windows' Undocumented “Emergency Restart” by theevilsharpie on Tuesday July 05, 2022 @02:37PM (#31992025)
> I believe this is a kernel invocation, so regardless of user land dysfunction, it will always work.

It may always work from the kernel's standpoint, but this doesn't necessarily make it usable.

Anything that blocks the display of WinLogon (e.g., the GPU has crashed and is unresponsive) would render this emergency restart mechanism unusable, and typically, situations like this are usually the only time I would need such a feature.

Re:Windows' Undocumented “Emergency Restart” by AllegedAlec on Tuesday July 05, 2022 @03:17PM (#31992503)
So what if the keypresses never get registered?
Re:Windows' Undocumented “Emergency Restart” by ls612 on Tuesday July 05, 2022 @08:53PM (#31995555)
I had a situation a month ago where my computer froze up (it was a couple months old at the time) and literally nothing would respond, even control-alt-delete, but my mouse cursor would still move around. I have no idea what caused that (it was a fresh restart after installing a GPU driver) but whatever drives the cursor display must be even higher priority than C-A-Del.
Re:Windows' Undocumented “Emergency Restart” by crdotson on Tuesday July 05, 2022 @11:17PM (#31996300)
Most graphics cards implement a hardware mouse cursor where the video card reads the current pointer location from memory and overlays the cursor on the screen. So I guess if the driver for the mouse and the video driver are both still running (the kernel hasn’t stopped completely) that will still work even if Winlogin is screwed to the point where it can’t show the CTRL-ALT-DEL screen.

Happy to be corrected by someone who knows more about the windows kernel. :)

Re:Windows' Undocumented “Emergency Restart” by ls612 on Thursday July 07, 2022 @04:39PM (#32019041)
Interesting I didn’t know that. Some part of the kernel was fucked for sure as even the hardware sleep button in my keyboard didn’t work but I guess if the display driver was functioning that would be all that was needed.
Re:Windows' Undocumented “Emergency Restart” by WatchDog on Tuesday July 05, 2022 @07:44PM (#31995125)
I feel like it worked more reliably in XP and below, ever since vista I’ve had less success. With that said, system stability as a whole seems to have improved dramatically since those days, I don’t need to reach for it very often.
Re:Windows' Undocumented “Emergency Restart” by robonerd on Tuesday July 05, 2022 @01:47PM (#31991381)
> Especially helpful on a laptop where the physical reset button is not available.

Are there any where holding the power button for 10-15 seconds doesn't work? This has always been a reliable technique for me, when using linux on numerous different laptops from different manufacturers.

Re:Windows' Undocumented “Emergency Restart” by kkfx on Tuesday July 05, 2022 @03:43PM (#31992761)
That's ACPI shutdown, not OS-specific but motherboard specific AFAIK, it should work an all ACPI compliant systems...
Re:Windows' Undocumented “Emergency Restart” by netsharc on Tuesday July 05, 2022 @06:02PM (#31994308)
Indeed. And afaik, the specs say hold it for 4 seconds
Re:Windows' Undocumented “Emergency Restart” by Kwpolska on Tuesday July 05, 2022 @02:08PM (#31991661)
Remote access?
Re:Windows' Undocumented “Emergency Restart” by WorldMaker on Tuesday July 05, 2022 @02:55PM (#31992232)
BIOS issues? Though Ctrl+Alt+Delete might not work with a BIOS acting up either.
Re:Windows' Undocumented “Emergency Restart” by hulitu on Wednesday July 06, 2022 @02:05AM (#31997311)
15 seconds migh be a lotof time, depending on the situation.