lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0607141425391.27161@turbotaz.ourhouse>
Date:	Fri, 14 Jul 2006 14:27:47 -0500 (CDT)
From:	Chase Venters <chase.venters@...entec.com>
To:	Michael Lindner <mikell@...online.net>
cc:	linux-kernel@...r.kernel.org
Subject: Re: PROBLEM: epoll_wait() returns wrong events for EOF with EPOLLOUT

On Fri, 14 Jul 2006, Michael Lindner wrote:

> 	Also a minor issue - epoll_ctl doesn't check if the fd in events.data.fd
> 	is the same as the fd that's been passed in as argument 3. If they differ
> 	(due to programmer error), epoll_wait will return an event with the
> 	incorrect events.data.fd specified to epoll_ctl().

This is expected behavior. events.data is a union. It is not possible or 
desireable to test data.fd in epoll_ctl() because it would break /many/ 
users of epoll who use the 32 or 64 bit unsigned field or pointer instead 
of fd.

Thanks,
Chase
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ