1. 02 11月, 2013 1 次提交
  2. 26 8月, 2013 1 次提交
  3. 30 7月, 2013 1 次提交
  4. 24 7月, 2013 4 次提交
  5. 18 5月, 2013 1 次提交
  6. 17 5月, 2013 2 次提交
  7. 25 4月, 2013 1 次提交
  8. 24 4月, 2013 1 次提交
  9. 09 4月, 2013 1 次提交
  10. 28 3月, 2013 1 次提交
  11. 26 3月, 2013 5 次提交
  12. 22 3月, 2013 1 次提交
    • J
      USB: ftdi_sio: fix use-after-free in TIOCMIWAIT · 71ccb9b0
      Johan Hovold 提交于
      Use the port wait queue and make sure to check the serial disconnected
      flag before accessing private port data after waking up.
      
      This is is needed as the private port data (including the wait queue
      itself) can be gone when waking up after a disconnect.
      
      When switching to tty ports, some lifetime assumptions were changed.
      Specifically, close can now be called before the final tty reference is
      dropped as part of hangup at device disconnect. Even with the ftdi
      private-data refcounting this means that the port private data can be
      freed while a process is sleeping on modem-status changes and thus
      cannot be relied on to detect disconnects when woken up.
      
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      71ccb9b0
  13. 14 2月, 2013 1 次提交
    • J
      USB: serial: fix null-pointer dereferences on disconnect · b2ca6990
      Johan Hovold 提交于
      Make sure serial-driver dtr_rts is called with disc_mutex held after
      checking the disconnected flag.
      
      Due to a bug in the tty layer, dtr_rts may get called after a device has
      been disconnected and the tty-device unregistered. Some drivers have had
      individual checks for disconnect to make sure the disconnected interface
      was not accessed, but this should really be handled in usb-serial core
      (at least until the long-standing tty-bug has been fixed).
      
      Note that the problem has been made more acute with commit 0998d063
      ("device-core: Ensure drvdata = NULL when no driver is bound") as the
      port data is now also NULL when dtr_rts is called resulting in further
      oopses.
      Reported-by: NChris Ruehl <chris.ruehl@gtsys.com.hk>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2ca6990
  14. 02 2月, 2013 2 次提交
  15. 16 1月, 2013 3 次提交
    • J
      TTY: switch tty_flip_buffer_push · 2e124b4a
      Jiri Slaby 提交于
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty in many
      call sites. Only tty_port will needed and hence no more
      tty_port_tty_get in those paths.
      
      Now, the one where most of tty_port_tty_get gets removed:
      tty_flip_buffer_push.
      
      IOW we also closed all the races in drivers not using tty_port_tty_get
      at all yet.
      
      Also we move tty_flip_buffer_push declaration from include/linux/tty.h
      to include/linux/tty_flip.h to all others while we are changing it
      anyway.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2e124b4a
    • J
      TTY: switch tty_insert_flip_char · 92a19f9c
      Jiri Slaby 提交于
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty in many
      call sites. Only tty_port will needed and hence no more
      tty_port_tty_get in those paths.
      
      tty_insert_flip_char is the next one to proceed. This one is used all
      over the code, so the patch is huge.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      92a19f9c
    • J
      TTY: convert more flipping functions · 2f693357
      Jiri Slaby 提交于
      Now, we start converting tty buffer functions to actually use
      tty_port. This will allow us to get rid of the need of tty pointer in
      many call sites. Only tty_port will be needed and hence no more
      tty_port_tty_get calls in those paths.
      
      Now 4 string flipping ones are on turn:
      * tty_insert_flip_string_flags
      * tty_insert_flip_string_fixed_flag
      * tty_prepare_flip_string
      * tty_prepare_flip_string_flags
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2f693357
  16. 14 1月, 2013 1 次提交
  17. 27 11月, 2012 2 次提交
  18. 31 10月, 2012 8 次提交
  19. 26 10月, 2012 1 次提交
  20. 25 9月, 2012 1 次提交
  21. 18 9月, 2012 1 次提交