1. 08 12月, 2012 1 次提交
  2. 16 11月, 2012 1 次提交
  3. 17 8月, 2012 1 次提交
  4. 15 8月, 2012 3 次提交
  5. 01 11月, 2011 1 次提交
  6. 24 5月, 2011 1 次提交
    • D
      net: convert %p usage to %pK · 71338aa7
      Dan Rosenberg 提交于
      The %pK format specifier is designed to hide exposed kernel pointers,
      specifically via /proc interfaces.  Exposing these pointers provides an
      easy target for kernel write vulnerabilities, since they reveal the
      locations of writable structures containing easily triggerable function
      pointers.  The behavior of %pK depends on the kptr_restrict sysctl.
      
      If kptr_restrict is set to 0, no deviation from the standard %p behavior
      occurs.  If kptr_restrict is set to 1, the default, if the current user
      (intended to be a reader via seq_printf(), etc.) does not have CAP_SYSLOG
      (currently in the LSM tree), kernel pointers using %pK are printed as 0's.
       If kptr_restrict is set to 2, kernel pointers using %pK are printed as
      0's regardless of privileges.  Replacing with 0's was chosen over the
      default "(null)", which cannot be parsed by userland %p, which expects
      "(nil)".
      
      The supporting code for kptr_restrict and %pK are currently in the -mm
      tree.  This patch converts users of %p in net/ to %pK.  Cases of printing
      pointers to the syslog are not covered, since this would eliminate useful
      information for postmortem debugging and the reading of the syslog is
      already optionally protected by the dmesg_restrict sysctl.
      Signed-off-by: NDan Rosenberg <drosenberg@vsecurity.com>
      Cc: James Morris <jmorris@namei.org>
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: Thomas Graf <tgraf@infradead.org>
      Cc: Eugene Teo <eugeneteo@kernel.org>
      Cc: Kees Cook <kees.cook@canonical.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Eric Paris <eparis@parisplace.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      71338aa7
  7. 18 5月, 2010 1 次提交
  8. 17 2月, 2010 1 次提交
    • T
      percpu: add __percpu sparse annotations to net · 7d720c3e
      Tejun Heo 提交于
      Add __percpu sparse annotations to net.
      
      These annotations are to make sparse consider percpu variables to be
      in a different address space and warn if accessed without going
      through percpu accessors.  This patch doesn't affect normal builds.
      
      The macro and type tricks around snmp stats make things a bit
      interesting.  DEFINE/DECLARE_SNMP_STAT() macros mark the target field
      as __percpu and SNMP_UPD_PO_STATS() macro is updated accordingly.  All
      snmp_mib_*() users which used to cast the argument to (void **) are
      updated to cast it to (void __percpu **).
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
      Cc: Vlad Yasevich <vladislav.yasevich@hp.com>
      Cc: netdev@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7d720c3e
  9. 23 1月, 2010 1 次提交
  10. 05 9月, 2009 1 次提交
  11. 23 7月, 2008 1 次提交
  12. 10 5月, 2008 1 次提交
  13. 13 4月, 2008 2 次提交
  14. 04 3月, 2008 1 次提交
  15. 01 3月, 2008 2 次提交
  16. 29 2月, 2008 1 次提交
  17. 10 2月, 2008 1 次提交
  18. 05 2月, 2008 1 次提交
  19. 10 11月, 2007 1 次提交
  20. 11 7月, 2007 1 次提交
  21. 13 2月, 2007 1 次提交
  22. 11 2月, 2007 1 次提交
  23. 03 12月, 2006 4 次提交
  24. 12 10月, 2006 1 次提交
  25. 23 9月, 2006 1 次提交
  26. 11 4月, 2006 1 次提交
  27. 18 1月, 2006 2 次提交
    • V
      [SCTP]: Fix sctp_assoc_seq_show() panics on big-endian systems. · 38b0e42a
      Vlad Yasevich 提交于
      This patch corrects the panic by casting the argument to the
      pointer of correct size.  On big-endian systems we ended up loading
      only 32 bits of data because we are treating the pointer as an int*.
      By treating this pointer as loff_t*, we'll load the full 64 bits
      and then let regular integer demotion take place which will give us
      the correct value.
      Signed-off-by: NVlad Yaseivch <vladislav.yasevich@hp.com>
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      38b0e42a
    • V
      [SCTP]: sctp doesn't show all associations/endpoints in /proc · 49392e5e
      Vlad Yasevich 提交于
      When creating a very large number of associations (and endpoints),
      /proc/assocs and /proc/eps will not show all of them.  As a result
      netstat will not show all of the either.  This is particularly evident
      when creating 1000+ associations (or endpoints).  As an example with
      1500 tcp style associations over loopback, netstat showed 1420 on my
      system instead of 3000.
      
      The reason for this is that the seq_operations start method is invoked
      multiple times bacause of the amount of data that is provided.  The
      start method always increments the position parameter and since we use
      the position as the hash bucket id, we end up skipping hash buckets.
      
      This patch corrects this situation and get's rid of the silly hash-1
      decrement.
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      49392e5e
  28. 26 10月, 2005 1 次提交
  29. 24 8月, 2005 1 次提交
  30. 14 6月, 2005 1 次提交
  31. 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