1. 08 6月, 2011 4 次提交
  2. 29 5月, 2011 1 次提交
    • E
      ns: Wire up the setns system call · 7b21fddd
      Eric W. Biederman 提交于
      32bit and 64bit on x86 are tested and working.  The rest I have looked
      at closely and I can't find any problems.
      
      setns is an easy system call to wire up.  It just takes two ints so I
      don't expect any weird architecture porting problems.
      
      While doing this I have noticed that we have some architectures that are
      very slow to get new system calls.  cris seems to be the slowest where
      the last system calls wired up were preadv and pwritev.  avr32 is weird
      in that recvmmsg was wired up but never declared in unistd.h.  frv is
      behind with perf_event_open being the last syscall wired up.  On h8300
      the last system call wired up was epoll_wait.  On m32r the last system
      call wired up was fallocate.  mn10300 has recvmmsg as the last system
      call wired up.  The rest seem to at least have syncfs wired up which was
      new in the 2.6.39.
      
      v2: Most of the architecture support added by Daniel Lezcano <dlezcano@fr.ibm.com>
      v3: ported to v2.6.36-rc4 by: Eric W. Biederman <ebiederm@xmission.com>
      v4: Moved wiring up of the system call to another patch
      v5: ported to v2.6.39-rc6
      v6: rebased onto parisc-next and net-next to avoid syscall  conflicts.
      v7: ported to Linus's latest post 2.6.39 tree.
      
      >  arch/blackfin/include/asm/unistd.h     |    3 ++-
      >  arch/blackfin/mach-common/entry.S      |    1 +
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      
      Oh - ia64 wiring looks good.
      Acked-by: NTony Luck <tony.luck@intel.com>
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7b21fddd
  3. 01 4月, 2011 1 次提交
  4. 31 3月, 2011 1 次提交
  5. 11 3月, 2011 2 次提交
    • M
      futex: Sanitize futex ops argument types · 8d7718aa
      Michel Lespinasse 提交于
      Change futex_atomic_op_inuser and futex_atomic_cmpxchg_inatomic
      prototypes to use u32 types for the futex as this is the data type the
      futex core code uses all over the place.
      Signed-off-by: NMichel Lespinasse <walken@google.com>
      Cc: Darren Hart <darren@dvhart.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      LKML-Reference: <20110311025058.GD26122@google.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      8d7718aa
    • M
      futex: Sanitize cmpxchg_futex_value_locked API · 37a9d912
      Michel Lespinasse 提交于
      The cmpxchg_futex_value_locked API was funny in that it returned either
      the original, user-exposed futex value OR an error code such as -EFAULT.
      This was confusing at best, and could be a source of livelocks in places
      that retry the cmpxchg_futex_value_locked after trying to fix the issue
      by running fault_in_user_writeable().
          
      This change makes the cmpxchg_futex_value_locked API more similar to the
      get_futex_value_locked one, returning an error code and updating the
      original value through a reference argument.
      Signed-off-by: NMichel Lespinasse <walken@google.com>
      Acked-by: Chris Metcalf <cmetcalf@tilera.com>  [tile]
      Acked-by: Tony Luck <tony.luck@intel.com>  [ia64]
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Tested-by: Michal Simek <monstr@monstr.eu>  [microblaze]
      Acked-by: David Howells <dhowells@redhat.com> [frv]
      Cc: Darren Hart <darren@dvhart.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      LKML-Reference: <20110311024851.GC26122@google.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      37a9d912
  6. 10 3月, 2011 1 次提交
    • M
      microblaze: Fix circular headers dependency when ftrace is enabled. · caa66ce9
      Michal Simek 提交于
      Remove compilation failure when ftrace in enabled.
      
      Error log:
        CC      kernel/trace/power-traces.o
      In file included from arch/microblaze/include/asm/irq.h:15,
                       from include/linux/irq.h:27,
                       from include/asm-generic/hardirq.h:12,
                       from arch/microblaze/include/asm/hardirq.h:15,
                       from include/linux/hardirq.h:7,
                       from include/linux/ftrace_event.h:7,
                       from include/trace/ftrace.h:19,
                       from include/trace/define_trace.h:96,
                       from include/trace/events/power.h:240,
                       from kernel/trace/power-traces.c:14:
      include/linux/interrupt.h: In function '__raise_softirq_irqoff':
      include/linux/interrupt.h:413: error: implicit declaration of function 'trace_softirq_raise'
      In file included from include/trace/ftrace.h:554,
                       from include/trace/define_trace.h:96,
                       from include/trace/events/power.h:240,
                       from kernel/trace/power-traces.c:14:
      include/trace/events/irq.h: In function 'ftrace_test_probe_irq_handler_entry':
      include/trace/events/irq.h:37: error: implicit declaration of function 'check_trace_callback_type_irq_handler_entry'
      include/trace/events/irq.h: In function 'ftrace_test_probe_irq_handler_exit':
      include/trace/events/irq.h:67: error: implicit declaration of function 'check_trace_callback_type_irq_handler_exit'
      include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_entry':
      include/trace/events/irq.h:112: error: implicit declaration of function 'check_trace_callback_type_softirq_entry'
      include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_exit':
      include/trace/events/irq.h:126: error: implicit declaration of function 'check_trace_callback_type_softirq_exit'
      include/trace/events/irq.h: In function 'ftrace_test_probe_softirq_raise':
      include/trace/events/irq.h:140: error: implicit declaration of function 'check_trace_callback_type_softirq_raise'
      make[5]: *** [kernel/trace/power-traces.o] Error 1
      make[4]: *** [kernel/trace] Error 2
      make[3]: *** [kernel] Error 2
      Suggested-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      caa66ce9
  7. 09 3月, 2011 12 次提交
  8. 08 2月, 2011 2 次提交
  9. 05 2月, 2011 1 次提交
  10. 16 1月, 2011 2 次提交
    • M
      microblaze: Fix asm/pgtable.h · 658b368d
      Michal Simek 提交于
      Function ptep_test_and_clear_young have had wrong the first argument.
      It is also necessary to add __HAVE macros for ptep_test_and_clear_young and
      ptep_get_and_clear functions.
      
      Error log:
      In file included from linux/arch/microblaze/include/asm/pgtable.h:570,
                       from arch/microblaze/mm/pgtable.c:35:
      include/asm-generic/pgtable.h:23: error: conflicting types for 'ptep_test_and_clear_young'
      linux/arch/microblaze/include/asm/pgtable.h:449: error:
      previous definition of 'ptep_test_and_clear_young' was here
      include/asm-generic/pgtable.h:73: error: redefinition of 'ptep_get_and_clear'
      linux/arch/microblaze/include/asm/pgtable.h:462: error:
      previous definition of 'ptep_get_and_clear' was here
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      658b368d
    • M
      microblaze: Fix missing pagemap.h · 1947fc1d
      Michal Simek 提交于
      Add missing linux/pagemap.h to solve compilation error.
      
      Error log:
      In file included from linux/arch/microblaze/include/asm/tlb.h:17,
                       from mm/pgtable-generic.c:9:
      include/asm-generic/tlb.h: In function 'tlb_flush_mmu':
      include/asm-generic/tlb.h:76: error: implicit declaration of function 'release_pages'
      include/asm-generic/tlb.h: In function 'tlb_remove_page':
      include/asm-generic/tlb.h:105: error: implicit declaration of function 'page_cache_release'
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      1947fc1d
  11. 03 1月, 2011 1 次提交
  12. 01 11月, 2010 1 次提交
  13. 27 10月, 2010 1 次提交
  14. 21 10月, 2010 10 次提交