1. 06 8月, 2009 1 次提交
  2. 18 6月, 2009 1 次提交
  3. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  4. 02 5月, 2008 1 次提交
  5. 10 4月, 2008 1 次提交
  6. 01 3月, 2008 1 次提交
  7. 29 2月, 2008 1 次提交
  8. 29 1月, 2008 2 次提交
    • E
      [ATM]: Suppress some sparse warnings · 5c17d5f1
      Eric Dumazet 提交于
        CHECK   net/atm/br2684.c
      net/atm/br2684.c:665:13: warning: context imbalance in 'br2684_seq_start' - wrong count at exit
      net/atm/br2684.c:676:13: warning: context imbalance in 'br2684_seq_stop' - unexpected unlock
        CHECK   net/atm/lec.c
      net/atm/lec.c:196:23: warning: expensive signed divide
        CHECK   net/atm/proc.c
      net/atm/proc.c:151:14: warning: context imbalance in 'vcc_seq_start' - wrong count at exit
      net/atm/proc.c:154:13: warning: context imbalance in 'vcc_seq_stop' - unexpected unlock
      Signed-off-by: NEric Dumazet <dada1@cosmosbay.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5c17d5f1
    • D
      [ATM]: Oops reading net/atm/arp · e5d69b9f
      Denis V. Lunev 提交于
      cat /proc/net/atm/arp causes the NULL pointer dereference in the
      get_proc_net+0xc/0x3a. This happens as proc_get_net believes that the
      parent proc dir entry contains struct net.
      
      Fix this assumption for "net/atm" case.
      
      The problem is introduced by the commit c0097b07abf5f92ab135d024dd41bd2aada1512f
      from Eric W. Biederman/Daniel Lezcano.
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e5d69b9f
  9. 11 10月, 2007 2 次提交
    • D
      [NET]: all net/ cleanup with ARRAY_SIZE · 8b14a536
      Denis Cheng 提交于
      Signed-off-by: NDenis Cheng <crquan@gmail.com>
      8b14a536
    • E
      [NET]: Make /proc/net per network namespace · 457c4cbc
      Eric W. Biederman 提交于
      This patch makes /proc/net per network namespace.  It modifies the global
      variables proc_net and proc_net_stat to be per network namespace.
      The proc_net file helpers are modified to take a network namespace argument,
      and all of their callers are fixed to pass &init_net for that argument.
      This ensures that all of the /proc/net files are only visible and
      usable in the initial network namespace until the code behind them
      has been updated to be handle multiple network namespaces.
      
      Making /proc/net per namespace is necessary as at least some files
      in /proc/net depend upon the set of network devices which is per
      network namespace, and even more files in /proc/net have contents
      that are relevant to a single network namespace.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      457c4cbc
  10. 16 7月, 2007 1 次提交
  11. 11 7月, 2007 1 次提交
  12. 13 2月, 2007 1 次提交
  13. 11 2月, 2007 1 次提交
  14. 09 12月, 2006 1 次提交
  15. 18 8月, 2006 1 次提交
  16. 01 7月, 2006 1 次提交
  17. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4