lkml.org 
[lkml]   [1999]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: total freeze with framebuffer + X
> > I found much more serious bug: xinit sometimes sends SIGKILL to xserver
> > when terminating. If your machine is under heavy load (make -j zImage) and
> > you correctly terminate windowmanager (not xserver), xinit kills xserver
> > with -9 and console is dead.
>
> This is actually supposed to be a feature: it's to protect against the server
> crashing and refusing to terminate, which will definitely leave your console
> unusable.
>
> (as an aside, make -j is completely useless unless you have 10-12 processors
> in your machine, except for stress-testing the kernel)

I know make -j is useless, but for stress-testing it's good.
BTW. Crashing under heavy load reminds me another well known operating
system ;-)

> > I think the kernel shouldn't allow users to send unmaskable signals to
> > suid programs.
>
> suid programs should be written to be able to deal with such circumstances.
> Unexpected events can happen due to any number of causes. suid programs don't
> have the excuse that they were run by root, so he can be blamed for anything
> that goes wrong.

What do you think X, dosemu, svgalib etc. should do to protect themselves
from -9 sent by the user? Yes, they can do setuid(0);setgid(0);, but it
protects them from all signals, what's not always good.

Mikulas Patocka


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

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.073 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site