Re: [PATCH][NETNS] Use list_for_each_entry_continue_reverse in setup_net

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Sunday, September 16, 2007 - 5:06 pm

David Miller <davem@davemloft.net> writes:


I did that audit when I replied to Stephen the first time and I just
redid it to verify myself.  We are calling functions that can fail
from the init function (kmalloc in the most common).  So the
init function can fail.

So short of adding a bunch of BUG_ON's to the kernel to trap those
failure cases we can't remove the backwards list walk.  Especially
since I can initiate this code path as root by calling 
"clone(CLONE_NEWNET...)".

Eric
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH][NETNS] Use list_for_each_entry_continue_revers ..., Stephen Hemminger, (Fri Sep 14, 5:49 am)
Re: [PATCH][NETNS] Use list_for_each_entry_continue_revers ..., Eric W. Biederman, (Fri Sep 14, 7:41 am)
Re: [PATCH][NETNS] Use list_for_each_entry_continue_revers ..., Eric W. Biederman, (Fri Sep 14, 10:33 am)
Re: [PATCH][NETNS] Use list_for_each_entry_continue_revers ..., Stephen Hemminger, (Fri Sep 14, 1:07 pm)
Re: [PATCH][NETNS] Use list_for_each_entry_continue_revers ..., Eric W. Biederman, (Fri Sep 14, 2:53 pm)
Re: [PATCH][NETNS] Use list_for_each_entry_continue_revers ..., Eric W. Biederman, (Sun Sep 16, 5:06 pm)