1. 14 11月, 2005 3 次提交
  2. 10 11月, 2005 1 次提交
  3. 09 11月, 2005 1 次提交
  4. 07 11月, 2005 3 次提交
  5. 30 10月, 2005 1 次提交
  6. 12 10月, 2005 1 次提交
    • J
      [PATCH] uml: revert block driver use of host AIO · 91acb21f
      Jeff Dike 提交于
      The patch to use host AIO support that I submitted early after 2.6.13 exposed
      some problems in the block driver.  I have fixes for these, but am not
      comfortable putting them into 2.6.14 at this late date.  So, this patch reverts
      the use of host AIO.
      
      I will resubmit the original patch, plus fixes to the driver after 2.6.14
      in order to get a reasonable amount of testing before they're exposed to
      the general public.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      91acb21f
  7. 10 10月, 2005 3 次提交
  8. 01 10月, 2005 1 次提交
  9. 30 9月, 2005 1 次提交
  10. 23 9月, 2005 3 次提交
  11. 18 9月, 2005 4 次提交
    • J
      [PATCH] uml: preserve errno in error paths · b4fd310e
      Jeff Dike 提交于
      The poster child for this patch is the third tuntap_user hunk.  When an ioctl
      fails, it properly closes the opened file descriptor and returns.  However,
      the close resets errno to 0, and the 'return errno' that follows returns 0
      rather than the value that ioctl set.  This caused the caller to believe that
      the device open succeeded and had opened file descriptor 0, which caused no
      end of interesting behavior.
      
      The rest of this patch is a pass through the UML sources looking for places
      where errno could be reset before being passed back out.  A common culprit is
      printk, which could call write, being called before errno is returned.
      
      In some cases, where the code ends up being much smaller, I just deleted the
      printk.
      
      There was another case where a caller of run_helper looked at errno after a
      failure, rather than the return value of run_helper, which was the errno value
      that it wanted.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b4fd310e
    • J
      [PATCH] uml: Remove a useless include · d9f0d915
      Jeff Dike 提交于
      linux/inet.h isn't needed, and on my system, is empty.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d9f0d915
    • J
      [PATCH] uml: Remove an unused file · edcc2205
      Jeff Dike 提交于
      This removes a file which is no longer used.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      edcc2205
    • J
      [PATCH] uml: breakpoint an arbitrary thread · 3eddddcf
      Jeff Dike 提交于
      This patch implements a stack trace for a thread, not unlike sysrq-t does.
      The advantage to this is that a break point can be placed on showreqs, so that
      upon showing the stack, you jump immediately into the debugger.  While sysrq-t
      does the same thing, sysrq-t shows *all* threads stacks.  It also doesn't work
      right now.  In the future, I thought it might be acceptable to make this show
      all pids stacks, but perhaps leaving well enough alone and just using sysrq-t
      would be okay.  For now, upon receiving the stack command, UML switches
      context to that thread, dumps its registers, and then switches context back to
      the original thread.  Since UML compacts all threads into one of 4 host
      threads, this sort of mechanism could be expanded in the future to include
      other debugging helpers that sysrq does not cover.
      
      Note by jdike - The main benefit to this is that it brings an arbitrary thread
      back into context, where it can be examined by gdb.  The fact that it dumps it
      stack is secondary.  This provides the capability to examine a sleeping
      thread, which has existed in tt mode, but not in skas mode until now.
      
      Also, the other threads, that sysrq doesn't cover, can be gdb-ed directly
      anyway.
      
      Signed-off-by: Allan Graves<allan.graves@gmail.com>
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3eddddcf
  12. 05 9月, 2005 3 次提交
  13. 28 8月, 2005 1 次提交
    • A
      [PATCH] mmaper_kern.c fixes [buffer overruns] · 6a029a90
      Al Viro 提交于
       - copy_from_user() can fail; ->write() must check its return value.
      
       - severe buffer overruns both in ->read() and ->write() - lseek to the
         end (i.e.  to mmapper_size) and
      
      	if (count + *ppos > mmapper_size)
      		count = count + *ppos - mmapper_size;
      
         will do absolutely nothing.  Then it will call
      
      	copy_to_user(buf,&v_buf[*ppos],count);
      
         with obvious results (similar for ->write()).
      
         Fixed by turning read to simple_read_from_buffer() and by doing
         normal limiting of count in ->write().
      
       - gratitious lock_kernel() in ->mmap() - it's useless there.
      
       - lots of gratuitous includes.
      Signed-off-by: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6a029a90
  14. 29 7月, 2005 2 次提交
  15. 28 7月, 2005 2 次提交
  16. 15 7月, 2005 1 次提交
  17. 08 7月, 2005 1 次提交
  18. 26 6月, 2005 2 次提交
  19. 22 6月, 2005 2 次提交
    • P
      [PATCH] uml: complete hw_controller_type->release conversion · faec1e99
      Paolo 'Blaisorblade' Giarrusso 提交于
      This occurrence of free_irq_by_irq_and_dev() was missed when converting UML
      to the use of hw_controller_type->release.
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      faec1e99
    • P
      [PATCH] uml: add and use generic hw_controller_type->release · dbce706e
      Paolo 'Blaisorblade' Giarrusso 提交于
      With Chris Wedgwood <cw@f00f.org>
      
      Currently UML must explicitly call the UML-specific
      free_irq_by_irq_and_dev() for each free_irq call it's done.
      
      This is needed because ->shutdown and/or ->disable are only called when the
      last "action" for that irq is removed.
      
      Instead, for UML shared IRQs (UML IRQs are very often, if not always,
      shared), for each dev_id some setup is done, which must be cleared on the
      release of that fd.  For instance, for each open console a new instance
      (i.e.  new dev_id) of the same IRQ is requested().
      
      Exactly, a fd is stored in an array (pollfds), which is after read by a
      host thread and passed to poll().  Each event registered by poll() triggers
      an interrupt.  So, for each free_irq() we must remove the corresponding
      host fd from the table, which we do via this -release() method.
      
      In this patch we add an appropriate hook for this, and remove all uses of
      it by pointing the hook to the said procedure; this is safe to do since the
      said procedure.
      
      Also some cosmetic improvements are included.
      
      This is heavily based on some work by Chris Wedgwood, which however didn't
      get the patch merged for something I'd call a "misunderstanding" (the need
      for this patch wasn't cleanly explained, thus adding the generic hook was
      felt as undesirable).
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      CC: Ingo Molnar <mingo@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dbce706e
  20. 14 6月, 2005 1 次提交
  21. 09 6月, 2005 3 次提交