[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090423.213542.03667490.davem@davemloft.net>
Date: Thu, 23 Apr 2009 21:35:42 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: penguin-kernel@...ove.sakura.ne.jp
Cc: paul.moore@...com, linux-security-module@...r.kernel.org,
netdev@...r.kernel.org, greg@...kko.com
Subject: Re: [PATCH] LSM: Add security_socket_post_accept() and
security_socket_post_recv_datagram().
From: Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>
Date: Fri, 24 Apr 2009 11:07:28 +0900
> David Miller wrote:
>> People use poll() to avoid -EAGAIN and blocking, they expect the bits
>> to tell them what fd's they can work on to do real work.
>
> I found that "man 2 select" says
>
> Under Linux, select() may report a socket file descriptor as "ready for
> reading", while nevertheless a subsequent read blocks. This could for example
> happen when data has arrived but upon examination has wrong checksum and is
> discarded.
You won't give up will you? If you're trying to irritate me, it's
working.
This behavior mentioned in that manpage snippet is a BUG which we
FIXED! You're just proving my point even more!
The poll() paths now cause a bypass of the delayed checksum
verification, which used to cause that above mentioned incorrect
behavior.
Don't push man page crap at me. Instead, actually understand what the
code does and how it behaves.
This man page snipped above is completely wrong and buggy. Never
trust documentation over code.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists