Re: [patch] avoid kmemcheck warning in epoll

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, <andrea@...>, <vegard.nossum@...>
Date: Monday, February 11, 2008 - 7:37 pm

On Mon, 11 Feb 2008, Andrew Morton wrote:


Dunno, but I don't think so. Epoll initializes the node to a state so that 
later on can check if the file-fd item is inserted or not. And it uses the 
"parent" information for that. But rb_set_parent() (that is used in the 
current initialization code) uses the data in the node, and this triggers 
the uninitialized memory access.
Taking a better look at it, the code (after the latest changes) has no 
more point-of-failures after the rb-tree insert, so I can probably avoid 
doing the node's parent-initialization and check altogether.
Yeah, let's that ;)

 eventpoll.c |   27 +++------------------------
 1 file changed, 3 insertions(+), 24 deletions(-)

Andrew, drop that one. I'm gonna send the new one after some test...



- Davide


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] avoid kmemcheck warning in epoll, Davide Libenzi, (Sun Feb 10, 5:32 pm)
Re: [patch] avoid kmemcheck warning in epoll, Andrew Morton, (Mon Feb 11, 6:56 pm)
Re: [patch] avoid kmemcheck warning in epoll, Davide Libenzi, (Mon Feb 11, 7:37 pm)