1. 14 3月, 2009 1 次提交
  2. 31 10月, 2008 1 次提交
  3. 11 7月, 2008 1 次提交
  4. 25 4月, 2008 1 次提交
    • T
      tcp: tcp_probe buffer overflow and incorrect return value · 8d390efd
      Tom Quetchenbach 提交于
      tcp_probe has a bounds-checking bug that causes many programs (less,
      python) to crash reading /proc/net/tcp_probe. When it outputs a log
      line to the reader, it only checks if that line alone will fit in the
      reader's buffer, rather than that line and all the previous lines it
      has already written.
      
      tcpprobe_read also returns the wrong value if copy_to_user fails--it
      just passes on the return value of copy_to_user (number of bytes not
      copied), which makes a failure look like a success.
      
      This patch fixes the buffer overflow and sets the return value to
      -EFAULT if copy_to_user fails.
      
      Patch is against latest net-2.6; tested briefly and seems to fix the
      crashes in less and python.
      Signed-off-by: NTom Quetchenbach <virtualphtn@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8d390efd
  5. 14 4月, 2008 1 次提交
  6. 11 10月, 2007 1 次提交
    • 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
  7. 20 7月, 2007 1 次提交
  8. 15 7月, 2007 1 次提交
  9. 12 7月, 2007 1 次提交
  10. 08 6月, 2007 1 次提交
  11. 31 5月, 2007 2 次提交
  12. 26 4月, 2007 1 次提交
  13. 13 2月, 2007 1 次提交
  14. 24 1月, 2007 1 次提交
  15. 26 11月, 2006 1 次提交
  16. 02 10月, 2006 1 次提交
    • A
      [PATCH] Kprobes: Make kprobe modules more portable · 3a872d89
      Ananth N Mavinakayanahalli 提交于
      In an effort to make kprobe modules more portable, here is a patch that:
      
      o Introduces the "symbol_name" field to struct kprobe.
        The symbol->address resolution now happens in the kernel in an
        architecture agnostic manner. 64-bit powerpc users no longer have
        to specify the ".symbols"
      o Introduces the "offset" field to struct kprobe to allow a user to
        specify an offset into a symbol.
      o The legacy mechanism of specifying the kprobe.addr is still supported.
        However, if both the kprobe.addr and kprobe.symbol_name are specified,
        probe registration fails with an -EINVAL.
      o The symbol resolution code uses kallsyms_lookup_name(). So
        CONFIG_KPROBES now depends on CONFIG_KALLSYMS
      o Apparantly kprobe modules were the only legitimate out-of-tree user of
        the kallsyms_lookup_name() EXPORT. Now that the symbol resolution
        happens in-kernel, remove the EXPORT as suggested by Christoph Hellwig
      o Modify tcp_probe.c that uses the kprobe interface so as to make it
        work on multiple platforms (in its earlier form, the code wouldn't
        work, say, on powerpc)
      Signed-off-by: NAnanth N Mavinakayanahalli <ananth@in.ibm.com>
      Signed-off-by: NPrasanna S Panchamukhi <prasanna@in.ibm.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3a872d89
  17. 14 8月, 2006 1 次提交
  18. 03 8月, 2006 1 次提交
  19. 18 6月, 2006 2 次提交