Re: [PATCH 9/12] ipv4: assign PDE->data before gluing PDE into /proc tree

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stoyan Gaydarov <stoyboyker@...>
Cc: Denis V. Lunev <den@...>, <akpm@...>, <linux-kernel@...>, Alexey Dobriyan <adobriyan@...>, Eric W. Biederman <ebiederm@...>, David S. Miller <davem@...>
Date: Friday, July 11, 2008 - 11:42 pm

"Stoyan Gaydarov" <stoyboyker@gmail.com> writes:


It appears you are getting things confused.  The original window is that tcp_seq_open
(which is what get called when you open the proc file) had a small race that p->data
could be read before it was set.

With proc_create_data that race was closed.

You are saying that it is a problem for tcp_seq_open to be passed a NULL afinfo.
It is.  That has nothing to do with the original race (as that is a very
different part of the code).  Feel free to audit all of the callers if
you like.  That problem however is not subtle or racy.

So I see nothing wrong with this patch unless you can find a problem with
proc_create_data.

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

Messages in current thread:
[PATCH 0/12] Further PDE-&gt;data assignments cleanups, Denis V. Lunev, (Tue Apr 29, 7:12 am)
RE: [PATCH 7/12] cciss: assign PDE-&gt;data before gluing PD..., Miller, Mike (OS Dev), (Tue Apr 29, 11:26 am)
Re: [PATCH 9/12] ipv4: assign PDE->data before gluing PDE..., Eric W. Biederman, (Fri Jul 11, 11:42 pm)