Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2018 16:31:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-scsi@FreeBSD.org
Subject:   [Bug 224037] Kernel crashes when trying to  mount certain USB keys reported as WriteProtected
Message-ID:  <bug-224037-5312-aRbteFJiry@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-224037-5312@https.bugs.freebsd.org/bugzilla/>
References:  <bug-224037-5312@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037

--- Comment #26 from commit-hook@freebsd.org ---
A commit references this bug:

Author: avg
Date: Thu Feb 15 16:31:36 UTC 2018
New revision: 329319
URL: https://svnweb.freebsd.org/changeset/base/329319

Log:
  MFC r327996: geom_disk / scsi_da: deny opening write-protected disks for
writing

  Ths change consists of two parts.

  geom_disk: deny opening a disk for writing if it's marked as
  write-protected.  A new disk(9) flag is added to mark write protected
  disks.  A possible alternative could be to add another parameter to d_ope=
n,
  so that the open mode could be passed to it and the disk drivers could
  make the decision internally, but the flag required less churn.

  scsi_da: add a new phase of disk probing to query the all pages mode
  sense page.  We can determine if the disk is write protected using bit 7
  of the device specific field in the mode parameter header returned by
  MODE SENSE.

  PR:           224037

Changes:
_U  stable/10/
  stable/10/sys/cam/scsi/scsi_da.c
  stable/10/sys/geom/geom_disk.c
  stable/10/sys/geom/geom_disk.h

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224037-5312-aRbteFJiry>