lkml.org 
[lkml]   [1999]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] fix for accept on unix-domain sockets
Date
Hello!

> The reason is, that skb_recv_datagram is used get incoming connection requests, but this checks
> if a SOCK_STREAM socket is in TCP_ESTABLISHED state before waiting.

Opla! Thank you.

The patch is incorrect (racy), but you can make correct one
if copy part of skb_recv_datagram, omitting offending line
and some useless checks (f.e. sk->shutdown, socket_error() etc)

Alexey Kuznetsov

-
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:54    [W:0.048 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site