Re: [Real fix] Re: Kernel panic: can't push onto full stack

Alexander Viro (viro@math.psu.edu)
Tue, 2 Mar 1999 13:53:28 -0500 (EST)


On Tue, 2 Mar 1999, Andrea Arcangeli wrote:

> On Tue, 2 Mar 1999 kuznet@ms2.inr.ac.ru wrote:
>
> >Why luckily? 8) Because we have to pass even dead connection request
> >to accept(), otherwise blocking accept() may hang after select().
>
> I can't understand the problem :(. If the client-sock is been closed after
> a not accepted yet connect (so unix_peer(tsk)->dead == 1) unix_accept()
> will not block but it will return (and it will return succesfully, but
> maybe with a dead just deallocated sock in socket->sk..).

Yaaarrrgh... The point being that *if* Alexey's patch would do
what it intended to do unix_accept() would *not* return such connections.
And that's the problem with any scheme including killing of
closed-but-not-yet-accepted connections.

-
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/