lkml.org 
[lkml]   [2000]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix queued SIGIO
On Mon, Sep 18, 2000 at 01:44:04PM +0200, Alan Cox wrote:
> > On Mon, Sep 18, 2000 at 12:34:03PM +0200, Alan Cox wrote:
> > > > The problem is really that SI_SIGIO is negative, but it should be positive
> > > > to make SI_FROMUSER return false on it.
> > > >
> > > > Changing it would unfortunately break binary compatibility. This patch
> > >
> > > Why ?
> >
> > If a program checks info->si_code for incoming signals.
>
> ok now what does the value the kernel passes have to do with the value we
> write on the user stack - at the moment we blindly copy but we could just
> use a tiny lookup table to 'dekernelize' the ID. In fact if you picked a bitflag
> you could just mask it

That would not help much, the user could just still set the non mapped
value in sigqueueinfo() [which would need to be forbidden to avoid
users faking kernel signals, which my patch exactly does]


-Andi

--
This is like TV. I don't like TV.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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