1. 29 4月, 2011 1 次提交
  2. 15 4月, 2011 2 次提交
  3. 31 3月, 2011 1 次提交
  4. 30 3月, 2011 1 次提交
  5. 25 3月, 2011 2 次提交
  6. 23 3月, 2011 3 次提交
    • R
      um: remove file pointer from ioctl · 8a06dc4d
      Richard Weinberger 提交于
      Commit 6caa76b7 ("tty: now phase out the ioctl file pointer for good")
      removed the ioctl file pointer.  User Mode Linux's line driver uses this
      ioctl and needs a signature update too.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      8a06dc4d
    • P
      uml: kernels on {i386,x86_64} produce bad coredumps · 13e165ba
      Paul Pluzhnikov 提交于
      One of our users reported that when a user-level program SIGSEGVs under
      UML kernel, the resulting core dump is not very usable.
      
      I have reproduced that with the latest kernel:
      
        make ARCH=um defconfig; make ARCH=um
      
      Run the resulting kernel, then "inside" run this program:
      
      #include <pthread.h>
      
      void *fn(void *p)
      {
       abort();
      }
      
      int main()
      {
       pthread_t tid;
       pthread_create(&tid, 0, fn, 0);
       pthread_join(tid, 0);
       return 0;
      }
      
      Analyze the coredump with GDB. Here is what you'll see:
      
      sudo gdb -q -ex 'set solib-absolute-prefix ../root_fs' -ex 'file ../root_fs/var/tmp/mt-abort' -ex 'core ../root_fs/var/tmp/core.762'
      Reading symbols from /usr/local/google/root_fs/var/tmp/mt-abort...done.
      [New Thread 763]
      [New Thread 762]
      Core was generated by `./mt-abort'.
      Program terminated with signal 6, Aborted.
      #0  0x0000000040255250 in raise () from ../root_fs/lib64/libc.so.6
      (gdb) info thread
        2 Thread 762  0x0000000000000000 in ?? ()
      * 1 Thread 763  0x0000000040255250 in raise () from ../root_fs/lib64/libc.so.6
      
      Note that thread#2 looks funny.
      
      (gdb) thread 2
      [Switching to thread 2 (Thread 762)]#0  0x0000000000000000 in ?? ()
      (gdb) info reg
      rax            0x0      0
      rbx            0x0      0
      rcx            0x0      0
      rdx            0x0      0
      rsi            0x0      0
      rdi            0x0      0
      rbp            0x0      0x0
      rsp            0x0      0x0
      r8             0x0      0
      r9             0x0      0
      r10            0x0      0
      r11            0x0      0
      r12            0x0      0
      r13            0x0      0
      r14            0x0      0
      r15            0x0      0
      rip            0x0      0
      eflags         0x0      [ ]
      cs             0x0      0
      ss             0x0      0
      ds             0x0      0
      es             0x0      0
      fs             0x0      0
      gs             0x0      0
      
      Examining the core shows that NT_PRSTATUS notes for all threads other than
      the one that crashed are zeroed out.
      
      I believe this is happening because neither ELF_CORE_COPY_TASK_REGS nor
      task_pt_regs are defined under ARCH=um, and so elf_core_copy_task_regs()
      becomes a no-op.
      
      Attached patch fixes this for SUBARCH={x86_64,i386}.
      Signed-off-by: NPaul Pluzhnikov <ppluzhnikov@google.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Acked-by: NWANG Cong <xiyou.wangcong@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      13e165ba
    • E
      mm: NUMA aware alloc_task_struct_node() · 504f52b5
      Eric Dumazet 提交于
      All kthreads being created from a single helper task, they all use memory
      from a single node for their kernel stack and task struct.
      
      This patch suite creates kthread_create_on_cpu(), adding a 'cpu' parameter
      to parameters already used by kthread_create().
      
      This parameter serves in allocating memory for the new kthread on its
      memory node if available.
      
      Users of this new function are : ksoftirqd, kworker, migration, pktgend...
      
      This patch:
      
      Add a node parameter to alloc_task_struct(), and change its name to
      alloc_task_struct_node()
      
      This change is needed to allow NUMA aware kthread_create_on_cpu()
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Reviewed-by: NAndi Kleen <ak@linux.intel.com>
      Acked-by: NRusty Russell <rusty@rustcorp.com.au>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      504f52b5
  7. 17 3月, 2011 1 次提交
  8. 14 3月, 2011 1 次提交
    • A
      open-style analog of vfs_path_lookup() · 73d049a4
      Al Viro 提交于
      new function: file_open_root(dentry, mnt, name, flags) opens the file
      vfs_path_lookup would arrive to.
      
      Note that name can be empty; in that case the usual requirement that
      dentry should be a directory is lifted.
      
      open-coded equivalents switched to it, may_open() got down exactly
      one caller and became static.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      73d049a4
  9. 09 3月, 2011 1 次提交
  10. 01 3月, 2011 1 次提交
  11. 15 2月, 2011 4 次提交
  12. 27 1月, 2011 1 次提交
  13. 25 1月, 2011 1 次提交
    • T
      percpu: align percpu readmostly subsection to cacheline · 19df0c2f
      Tejun Heo 提交于
      Currently percpu readmostly subsection may share cachelines with other
      percpu subsections which may result in unnecessary cacheline bounce
      and performance degradation.
      
      This patch adds @cacheline parameter to PERCPU() and PERCPU_VADDR()
      linker macros, makes each arch linker scripts specify its cacheline
      size and use it to align percpu subsections.
      
      This is based on Shaohua's x86 only patch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Shaohua Li <shaohua.li@intel.com>
      19df0c2f
  14. 21 1月, 2011 3 次提交
  15. 14 1月, 2011 5 次提交
  16. 25 11月, 2010 1 次提交
    • W
      uml: disable winch irq before freeing handler data · 69e83dad
      Will Newton 提交于
      Disable the winch irq early to make sure we don't take an interrupt part
      way through the freeing of the handler data, resulting in a crash on
      shutdown:
      
        winch_interrupt : read failed, errno = 9
        fd 13 is losing SIGWINCH support
        ------------[ cut here ]------------
        WARNING: at lib/list_debug.c:48 list_del+0xc6/0x100()
        list_del corruption, next is LIST_POISON1 (00100100)
        082578c8:  [<081fd77f>] dump_stack+0x22/0x24
        082578e0:  [<0807a18a>] warn_slowpath_common+0x5a/0x80
        08257908:  [<0807a23e>] warn_slowpath_fmt+0x2e/0x30
        08257920:  [<08172196>] list_del+0xc6/0x100
        08257940:  [<08060244>] free_winch+0x14/0x80
        08257958:  [<080606fb>] winch_interrupt+0xdb/0xe0
        08257978:  [<080a65b5>] handle_IRQ_event+0x35/0xe0
        08257998:  [<080a8717>] handle_edge_irq+0xb7/0x170
        082579bc:  [<08059bc4>] do_IRQ+0x34/0x50
        082579d4:  [<08059e1b>] sigio_handler+0x5b/0x80
        082579ec:  [<0806a374>] sig_handler_common+0x44/0xb0
        08257a68:  [<0806a538>] sig_handler+0x38/0x50
        08257a78:  [<0806a77c>] handle_signal+0x5c/0xa0
        08257a9c:  [<0806be28>] hard_handler+0x18/0x20
        08257aac:  [<00c14400>] 0xc14400
      Signed-off-by: NWill Newton <will.newton@gmail.com>
      Acked-by: NWANG Cong <xiyou.wangcong@gmail.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      69e83dad
  17. 18 11月, 2010 1 次提交
  18. 12 11月, 2010 1 次提交
  19. 28 10月, 2010 2 次提交
  20. 27 10月, 2010 7 次提交