Skip to content
Snippets Groups Projects
  1. Mar 25, 2012
  2. Nov 02, 2011
  3. Sep 15, 2011
  4. Jul 26, 2011
  5. Mar 23, 2011
  6. Jan 13, 2011
  7. Nov 24, 2010
    • Will Newton's avatar
      uml: disable winch irq before freeing handler data · 69e83dad
      Will Newton authored
      
      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: default avatarWill Newton <will.newton@gmail.com>
      Acked-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      69e83dad
  8. Apr 20, 2010
  9. Apr 19, 2010
  10. Mar 06, 2010
  11. Oct 11, 2009
  12. Oct 13, 2008
  13. Jul 30, 2008
  14. May 08, 2008
  15. Apr 28, 2008
  16. Feb 05, 2008
  17. Oct 20, 2007
  18. Oct 16, 2007
    • Jeff Dike's avatar
      uml: console tidying · 2f8a2dc2
      Jeff Dike authored
      
      Tidy line.c:
      	The includes are more minimal
      	Lots of style fixes
      	All the printks have severities
      	Removed some commented-out code
      	Deleted a useless printk when ioctl is called
      	Fixed some whitespace damage
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2f8a2dc2
    • Jeff Dike's avatar
      uml: fix console writing bugs · c59dbcad
      Jeff Dike authored
      
      The previous console cleanup patch switched generic_read and generic_write
      from calling os_{read,write}_file to calling read and write directly.  Because
      the calling convention is different, they now need to get any error from errno
      rather than the return value.  I did this for generic_read, but forgot about
      generic_write.
      
      While chasing some output corruption, I noticed that line_write was
      unnecessarily calling flush_buffer, and deleted it.  I don't understand why,
      but the corruption disappeared.  This is unneeded because there already is a
      perfectly good mechanism for finding out when the host output device has some
      room to write data - there is an interrupt that comes in when writes can
      happen again.  line_write calling flush_buffer seemed to just be an attempt to
      opportunistically get some data out to the host.
      
      I also made write_chan short-circuit calling into the host-level code for
      zero-length writes.  Calling libc write with a length of zero conflated write
      not being able to write anything with asking it not to write anything.  Better
      to just cut it off as soon as possible.
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c59dbcad
  19. Jul 16, 2007
    • Jeff Dike's avatar
      uml: SIGIO support cleanup · 42a359e3
      Jeff Dike authored
      
      Cleanup of the SIGWINCH support.
      
      Some code and comment reformatting.
      
      The stack used for SIGWINCH threads was leaked.  This is now fixed by storing
      it with the pid and other information, and freeing it when the thread is
      killed.
      
      If something goes wrong with a WIGWINCH thread, and this is discovered in the
      interrupt handler, the winch record would leak.  It is now freed, except that
      the IRQ isn't freed.  This is hard to do from interrupt context.  This has the
      side-effect that the IRQ system maintains a reference to the freed structure,
      but that shouldn't cause a problem since the descriptor is disabled.
      
      register_winch_irq is now much better about cleaning up after an
      initialization failure.
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      42a359e3
    • Jeff Dike's avatar
      uml: handle errors on opening host side of consoles · d14ad81f
      Jeff Dike authored
      
      If the host side of a console can't be opened, this will now produce visible
      error messages.
      
      enable_chan now returns a status and this is passed up to con_open and
      ssl_open, which will complain if anything went wrong.
      
      The default host device for the serial line driver is now a pts device rather
      than a pty device since lots of hosts have LEGACY_PTYS disabled.  This had
      always been failing on such hosts, but silently.
      
      Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d14ad81f
  20. Jun 09, 2007
  21. May 07, 2007
  22. Mar 08, 2007
  23. Feb 12, 2007
  24. Feb 11, 2007
Loading