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

--- Comment #1 from j...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to