Re: [RFC PATCH v1] tun: Cleanup error handling in tun_set_iff()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Wednesday, August 5, 2009 - 4:14 pm

Paul Moore <paul.moore@hp.com> writes:


I don't understand.  Generating less readable and less efficient code is
preferable?


Yes.  But how many times can you come into tun_set_iff on the same file?
Think multiple threads trying to do the same thing at the same time.


I totally agree that things are not as obvious as they should be.  I made
things more complex when I added support for ip link del.  Then Herbert's
patches collided and broke things when he added the socket support.
Herbert change the refcount scheme that made things simpler and easier
to get correct.

Things are mostly good now, but think the tun code could use good audit,
cleanup, simplification.  Which takes advantage of everything that Herbert
did.  All of which requires someone to spend enough time looking at the
code to understand what is going on.  Not hard but a bit time consuming.


Sure.  I am all for that and that is how I originally coded it.
My point is that this is not harmful and that it can really only be triggered
by a buggy or hostile user.   So it isn't critical to get fixed.  It is an
imperfect so a fix is desirable.

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: [RFC PATCH v1] tun: Cleanup error handling in tun_set_ ..., Eric W. Biederman, (Tue Aug 4, 10:32 pm)
Re: [RFC PATCH v1] tun: Cleanup error handling in tun_set_ ..., Eric W. Biederman, (Wed Aug 5, 4:14 pm)