1. 06 Jan, 2006 7 commits
  2. 14 Nov, 2005 4 commits
  3. 09 Nov, 2005 2 commits
  4. 07 Nov, 2005 3 commits
  5. 29 Oct, 2005 1 commit
  6. 12 Oct, 2005 1 commit
    • Jeff Dike's avatar
      [PATCH] uml: revert block driver use of host AIO · 91acb21f
      Jeff Dike authored
      
      
      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: default avatarJeff Dike <jdike@addtoit.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      91acb21f
  7. 10 Oct, 2005 3 commits
  8. 30 Sep, 2005 2 commits
  9. 23 Sep, 2005 3 commits
  10. 17 Sep, 2005 4 commits
    • Jeff Dike's avatar
      [PATCH] uml: preserve errno in error paths · b4fd310e
      Jeff Dike authored
      
      
      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: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b4fd310e
    • Jeff Dike's avatar
      [PATCH] uml: Remove a useless include · d9f0d915
      Jeff Dike authored
      
      
      linux/inet.h isn't needed, and on my system, is empty.
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d9f0d915
    • Jeff Dike's avatar
      [PATCH] uml: Remove an unused file · edcc2205
      Jeff Dike authored
      
      
      This removes a file which is no longer used.
      Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      edcc2205
    • Jeff Dike's avatar
      [PATCH] uml: breakpoint an arbitrary thread · 3eddddcf
      Jeff Dike authored
      
      
      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: default avatarJeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      3eddddcf
  11. 05 Sep, 2005 3 commits
  12. 27 Aug, 2005 1 commit
    • Al Viro's avatar
      [PATCH] mmaper_kern.c fixes [buffer overruns] · 6a029a90
      Al Viro authored
      
      
       - 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: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      6a029a90
  13. 29 Jul, 2005 2 commits
  14. 27 Jul, 2005 2 commits
  15. 14 Jul, 2005 1 commit
  16. 08 Jul, 2005 1 commit