Re: [PATCH] /proc/sysrq-trigger can now pause processing for one second

From: Tomáš Mudruňka
Date: Mon Dec 18 2023 - 08:06:39 EST


> Add pauses and soon you will want loops and then it's turing complete :)
>
> Why not have a bpf script that does this instead? :)

Funny you mention this. For a moment i've actually thought someone
would come with this idea sooner or later. :-)
But i think we will all agree that there are several reasons why this
would be quite terrible idea...

Anyway for me the sysrq-trigger is about giving kernel linear
instructions on how to shutdown/reboot ASAP with minimal chance for
data corruption and least amount of userspace involvement possible. I
just want to kill everything more or less cleanly and safely reboot
without having to give control back to userspace script, because there
might be something wrong with userspace at the time.

Tom