1. 06 12月, 2006 3 次提交
    • T
      SUNRPC: Fix a potential race in rpc_wake_up_task() · 8aca67f0
      Trond Myklebust 提交于
      Use RCU to ensure that we can safely call rpc_finish_wakeup after we've
      called __rpc_do_wake_up_task. If not, there is a theoretical race, in which
      the rpc_task finishes executing, and gets freed first.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      8aca67f0
    • T
      e6b3c4db
    • C
      Subject: Re: [PATCH] Fix SUNRPC wakeup/execute race condition · cc4dc59e
      Christophe Saout 提交于
      The sunrpc scheduler contains a race condition that can let an RPC
      task end up being neither running nor on any wait queue. The race takes
      place between rpc_make_runnable (called from rpc_wake_up_task) and
      __rpc_execute under the following condition:
      
      First __rpc_execute calls tk_action which puts the task on some wait
      queue. The task is dequeued by another process before __rpc_execute
      continues its execution. While executing rpc_make_runnable exactly after
      setting the task `running' bit and before clearing the `queued' bit
      __rpc_execute picks up execution, clears `running' and subsequently
      both functions fall through, both under the false assumption somebody
      else took the job.
      
      Swapping rpc_test_and_set_running with rpc_clear_queued in
      rpc_make_runnable fixes that hole. This introduces another possible
      race condition that can be handled by checking for `queued' after
      setting the `running' bit.
      
      Bug noticed on a 4-way x86_64 system under XEN with an NFSv4 server
      on the same physical machine, apparently one of the few ways to hit
      this race condition at all.
      
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: J. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: NChristophe Saout <christophe@saout.de>
      Signed-off-by: NTrond Myklebust <trond.myklebust@fys.uio.no>
      cc4dc59e
  2. 27 9月, 2006 1 次提交
  3. 23 9月, 2006 3 次提交
  4. 27 3月, 2006 1 次提交
  5. 21 3月, 2006 5 次提交
  6. 14 3月, 2006 1 次提交
  7. 02 2月, 2006 1 次提交
  8. 07 1月, 2006 6 次提交
  9. 09 10月, 2005 1 次提交
  10. 05 10月, 2005 1 次提交
  11. 30 8月, 2005 1 次提交
  12. 23 6月, 2005 2 次提交
  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