1. 27 Oct, 2007 4 commits
    • Eric W. Biederman's avatar
      [NETNS]: Fix get_net_ns_by_pid · ceaa79c4
      Eric W. Biederman authored
      The pid namespace patches changed the semantics of
      find_task_by_pid without breaking the compile resulting
      in get_net_ns_by_pid doing the wrong thing.
      
      So switch to using the intended find_task_by_vpid.
      
      Combined with Denis' earlier patch to make netlink traffic
      fully synchronous the inadvertent race I introduced with
      accessing current is actually removed.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ceaa79c4
    • Eric W. Biederman's avatar
      [NET]: Marking struct pernet_operations __net_initdata was inappropriate · 2b008b0a
      Eric W. Biederman authored
      It is not safe to to place struct pernet_operations in a special section.
      We need struct pernet_operations to last until we call unregister_pernet_subsys.
      Which doesn't happen until module unload.
      
      So marking struct pernet_operations is a disaster for modules in two ways.
      - We discard it before we call the exit method it points to.
      - Because I keep struct pernet_operations on a linked list discarding
        it for compiled in code removes elements in the middle of a linked
        list and does horrible things for linked insert.
      
      So this looks safe assuming __exit_refok is not discarded
      for modules.
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2b008b0a
    • Adrian Bunk's avatar
      [INET] ESP: Must #include <linux/scatterlist.h> · 72998d8c
      Adrian Bunk authored
      This patch fixes the following compile errors in some configurations:
      
      <--  snip  -->
      
      ...
        CC      net/ipv4/esp4.o
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv4/esp4.c: In function 'esp_output':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv4/esp4.c:113: error: implicit declaration of function 'sg_init_table'
      make[3]: *** [net/ipv4/esp4.o] Error 1
      ...
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv6/esp6.c: In function 'esp6_output':
      /home/bunk/linux/kernel-2.6/git/linux-2.6/net/ipv6/esp6.c:112: error: implicit declaration of function 'sg_init_table'
      make[3]: *** [net/ipv6/esp6.o] Error 1
      
      
      <--  snip  -->
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      72998d8c
    • Jeff Garzik's avatar
      [TCP] IPV6: fix softnet build breakage · 18134bed
      Jeff Garzik authored
      net/ipv6/tcp_ipv6.c: In function 'tcp_v6_rcv':
      net/ipv6/tcp_ipv6.c:1736: error: implicit declaration of function
      'get_softnet_dma'
      net/ipv6/tcp_ipv6.c:1736: warning: assignment makes pointer from integer
      without a cast
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      18134bed
  2. 26 Oct, 2007 31 commits
  3. 25 Oct, 2007 5 commits