1. 01 5月, 2009 2 次提交
  2. 29 4月, 2009 1 次提交
  3. 28 4月, 2009 1 次提交
  4. 27 4月, 2009 1 次提交
  5. 23 4月, 2009 1 次提交
  6. 22 4月, 2009 1 次提交
  7. 21 4月, 2009 1 次提交
  8. 07 4月, 2009 12 次提交
  9. 03 4月, 2009 2 次提交
  10. 02 4月, 2009 2 次提交
  11. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  12. 27 3月, 2009 2 次提交
    • B
      powerpc: Fix bugs introduced by sysfs changes · ec78c8ac
      Benjamin Herrenschmidt 提交于
      Rusty's patch to change our sysfs access to various registers
      to use smp_call_function_single() introduced a whole bunch of
      warnings. This fixes them. This version also fixes an actual
      bug in here where it did mtspr instead of mfspr when reading
      the files
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ec78c8ac
    • J
      powerpc: Sanitize stack pointer in signal handling code · efbda860
      Josh Boyer 提交于
      On powerpc64 machines running 32-bit userspace, we can get garbage bits in the
      stack pointer passed into the kernel.  Most places handle this correctly, but
      the signal handling code uses the passed value directly for allocating signal
      stack frames.
      
      This fixes the issue by introducing a get_clean_sp function that returns a
      sanitized stack pointer.  For 32-bit tasks on a 64-bit kernel, the stack
      pointer is masked correctly.  In all other cases, the stack pointer is simply
      returned.
      
      Additionally, we pass an 'is_32' parameter to get_sigframe now in order to
      get the properly sanitized stack.  The callers are know to be 32 or 64-bit
      statically.
      Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      efbda860
  13. 25 3月, 2009 1 次提交
  14. 24 3月, 2009 9 次提交
  15. 23 3月, 2009 1 次提交
  16. 21 3月, 2009 1 次提交
  17. 17 3月, 2009 1 次提交