[haiku-bugs] Re: [Haiku] #14756: XHCI / usb_disk: transfers stall and then _kern_read segfaults

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 12 Dec 2018 16:26:02 -0000

#14756: XHCI / usb_disk: transfers stall and then _kern_read segfaults
--------------------------------+----------------------------
   Reporter:  Berusik           |      Owner:  nobody
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  Unscheduled
  Component:  Drivers/USB/XHCI  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  x86-64
--------------------------------+----------------------------

Comment (by waddlesplash):

 It seems descriptor->ops being NULL is a valid state to be in:
 http://xref.plausible.coop/source/xref/haiku/src/system/kernel/fs/fd.cpp#226

 I guess packagefs is attempting a read on a closed fd, which is odd. At
 any rate _kern_read should be able to tolerate that and return B_BAD_VALUE
 like it does elsewhere.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14756#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: