Re: Unkillable processes stuck in "D" state running forever

Randy.Dunlap (rddunlap@osdl.org)
Tue, 30 Jul 2002 14:42:06 -0700 (PDT)


On Tue, 30 Jul 2002, Federico Sevilla III wrote:

| On Mon, Jul 29, 2002 at 09:13:33AM -0700, Randy.Dunlap wrote:
| > On Mon, 29 Jul 2002, Denis Vlasenko wrote:
| > | It is logged by syslog. /var/log/messages if your conf is standard.
| > That helps on the output side, sure, but I (mis?)understood the question
| > to be about the ability to do Alt-SysRq-x via ssh. Is that possible?
|
| No you didn't misunderstand my question. Alt-SysRq-x via ssh doesn't
| work, and that's what I was wondering about. :)
|
| > Not that I know of, but I could be wrong about that.
| > So if you really need Alt-SysRq over a network connection (or even
| > a serial console connection)...
| > A few months ago I cooked up a patch so that "echo {magickey}"
| > mimics SysRq via proc/sysctl. Patch against 2.4.18 is here:
| > http://www.osdl.org/archive/rddunlap/patches/sys-magic.dif
| > Usage is: echo {key} > /proc/sys/kernel/magickey
|
| I'm curious: can anyone logged on do this? With the physical Alt-SysRq-x
| people have to actually go into the server room, up to the server,
| connect a keyboard, and do their mumbo-jumbo. With this anybody can say,
| unmount all filesystems, right?
|
| :(

The 'magickey' /proc file is mode 0644 (read-write for root, read-only
for others), so jo_user can't write to it.

| But thanks, anyway. I'm thinking about whether or not I should do this
| (and just restrict logins to root, or something like that).

Sure.

-- 
~Randy

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/