1. 11 10月, 2007 1 次提交
    • E
      [NET]: Make socket creation namespace safe. · 1b8d7ae4
      Eric W. Biederman 提交于
      This patch passes in the namespace a new socket should be created in
      and has the socket code do the appropriate reference counting.  By
      virtue of this all socket create methods are touched.  In addition
      the socket create methods are modified so that they will fail if
      you attempt to create a socket in a non-default network namespace.
      
      Failing if we attempt to create a socket outside of the default
      network namespace ensures that as we incrementally make the network stack
      network namespace aware we will not export functionality that someone
      has not audited and made certain is network namespace safe.
      Allowing us to partially enable network namespaces before all of the
      exotic protocols are supported.
      
      Any protocol layers I have missed will fail to compile because I now
      pass an extra parameter into the socket creation code.
      
      [ Integrated AF_IUCV build fixes from Andrew Morton... -DaveM ]
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b8d7ae4
  2. 15 8月, 2007 1 次提交
    • A
      [ECONET]: remove econet_packet_type on unload · 9c29a377
      Alexey Dobriyan 提交于
      Steps to reproduce:
      
      	modprobe econet
      	rmmod econet
      	modprobe econet
      
      Unable to handle kernel paging request at ffffffff8870a098 RIP: 
       [<ffffffff8040bfb8>] dev_add_pack+0x48/0x90
      PGD 203067 PUD 207063 PMD 7817f067 PTE 0
      Oops: 0002 [1] PREEMPT SMP 
      CPU 1 
      Modules linked in: econet [maaaany]
      Pid: 10671, comm: modprobe Not tainted 2.6.23-rc3-bloat #6
      RIP: 0010:[<ffffffff8040bfb8>]  [<ffffffff8040bfb8>] dev_add_pack+0x48/0x90
      RSP: 0000:ffff810076293df8  EFLAGS: 00010202
      RAX: ffffffff88659090 RBX: ffffffff88659060 RCX: ffffffff8870a090
      RDX: 0000000000000080 RSI: ffffffff805ec660 RDI: ffff810078ce4680
      RBP: ffff810076293e08 R08: 0000000000000002 R09: 0000000000000000
      R10: ffffffff8040bf88 R11: 0000000000000001 R12: ffff810076293e18
      R13: 000000000000001b R14: ffff810076dd06b0 R15: ffffffff886590c0
      FS:  00002b96a525dae0(0000) GS:ffff81007e0e2138(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
      CR2: ffffffff8870a098 CR3: 000000007bb67000 CR4: 00000000000026e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      Process modprobe (pid: 10671, threadinfo ffff810076292000, task ffff810078ce4680)
      Stack:  ffff810076dd06b0 0000000000000000 ffff810076293e38 ffffffff8865b180
       0000000000800000 0000000000000000 ffffffff886590c0 ffff810076dd01c8
       ffff810076293f78 ffffffff8026723c ffff810076293e48 ffffffff886590d8
      Call Trace:
       [<ffffffff8865b180>] :econet:econet_proto_init+0x180/0x1da
       [<ffffffff8026723c>] sys_init_module+0x15c/0x19e0
       [<ffffffff8020c13e>] system_call+0x7e/0x83
      
      
      Code: 48 89 41 08 48 89 82 e0 c5 5e 80 48 c7 c7 a0 08 5d 80 e8 f1 
      RIP  [<ffffffff8040bfb8>] dev_add_pack+0x48/0x90
       RSP <ffff810076293df8>
      CR2: ffffffff8870a098
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9c29a377
  3. 26 4月, 2007 6 次提交
  4. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  5. 11 2月, 2007 1 次提交
  6. 22 7月, 2006 1 次提交
  7. 01 7月, 2006 1 次提交
  8. 29 3月, 2006 2 次提交
  9. 05 1月, 2006 1 次提交
  10. 04 1月, 2006 3 次提交
  11. 04 10月, 2005 1 次提交
    • H
      [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl · e5ed6399
      Herbert Xu 提交于
      The following patch renames __in_dev_get() to __in_dev_get_rtnl() and
      introduces __in_dev_get_rcu() to cover the second case.
      
      1) RCU with refcnt should use in_dev_get().
      2) RCU without refcnt should use __in_dev_get_rcu().
      3) All others must hold RTNL and use __in_dev_get_rtnl().
      
      There is one exception in net/ipv4/route.c which is in fact a pre-existing
      race condition.  I've marked it as such so that we remember to fix it.
      
      This patch is based on suggestions and prior work by Suzanne Wood and
      Paul McKenney.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e5ed6399
  12. 30 8月, 2005 3 次提交
  13. 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