[Bug 236585] BTX Halted upgrading FreeBSD 11.2 UFS from r344213 to r345199

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 18 03:34:49 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236585

--- Comment #1 from john at feith.com ---
Created attachment 202946
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202946&action=edit
Patch for crash

Here's what seems to be happening ...

  1) bd_init calls bd_int13probe which creates entries for the various
     drives, including the card reader.  Unfortunately bd_sectorsize
     is set to zero for the card reader (presumably because no media
     is present).

  2) zfs_dev_init calls i386_zfs_probe which uses zfs_probe_dev to
     probe all the drives.

  3) zfs_probe_dev -> open -> disk_open -> ptable_open -> ptable_iso9660read
     at which point things go splat due to cdb2devb attempting to divide
     by the sector size (which is zero).

Fixed by having disk_open check for a sector size of zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list