netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] some fixes of tuntap
@ 2013-01-12  2:59 Jason Wang
  2013-01-12  2:59 ` [PATCH V2 1/3] tuntap: switch to use rtnl_dereference() Jason Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jason Wang @ 2013-01-12  2:59 UTC (permalink / raw)
  To: davem, mst, netdev, linux-kernel; +Cc: edumazet, stefanha, Jason Wang

Hi all:

There series fixes two issues:
- Don't allow calling TUNSETIFF when a file is detached which may cause kernel
data structure corrupt.
- Fix the reference count leaking of sock and module.

Plus a suggestion from Eric to use rtnl_dereference() instead of the open code.

Changes from v1:
- don't use rcu to dereference tfile->detached as it was already protected by
rtnl lock.
- add a patch of switching to use rtnl_dereference().

Jason Wang (3):
  tuntap: switch to use rtnl_dereference()
  tuntap: forbid calling TUNSETIFF when detached
  tuntap: fix leaking reference count

 drivers/net/tun.c |   44 ++++++++++++++++++++++----------------------
 1 files changed, 22 insertions(+), 22 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-12  3:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-12  2:59 [PATCH V2 0/3] some fixes of tuntap Jason Wang
2013-01-12  2:59 ` [PATCH V2 1/3] tuntap: switch to use rtnl_dereference() Jason Wang
2013-01-12  2:59 ` [PATCH V2 2/3] tuntap: forbid calling TUNSETIFF when detached Jason Wang
2013-01-12  2:59 ` [PATCH V2 3/3] tuntap: fix leaking reference count Jason Wang
2013-01-12  3:42 ` [PATCH V2 0/3] some fixes of tuntap David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).