[haiku-bugs] [Haiku] #17060: GUI apps crash if a storage device reports its capacity and block size to be 0

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 06 Jul 2021 22:18:38 -0000

#17060: GUI apps crash if a storage device reports its capacity and block size 
to
be 0
-------------------------------+-----------------------------
 Reporter:  dasebek            |       Owner:  (none)
     Type:  bug                |      Status:  new
 Priority:  normal             |   Milestone:  Unscheduled
Component:  Drivers/Disk/SCSI  |     Version:  R1/Development
 Keywords:                     |  Blocked By:
 Blocking:                     |    Platform:  All
-------------------------------+-----------------------------
 If a hard drive reports both its capacity and its block size to be 0, or
 if the capacity is not detected and scsi_periph/block.cpp implicitly sets
 both values to 0, GUI apps like DriveSetup and DiskProbe cause kernel
 panics when trying to access this drive.

 For some reason, it seems that empty CD drives are not affected by this
 bug. If CD drives contain no media and report the capacity and/or block
 size to be 0, they can still be listed in DriveSetup and accessed by
 DiskProbe.

 This bug seems to affect both R1/beta2 and the nightlies (hrev55184), at
 least the x86_64 versions.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17060>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts:

  • » [haiku-bugs] [Haiku] #17060: GUI apps crash if a storage device reports its capacity and block size to be 0 - Haiku