From owner-freebsd-scsi@freebsd.org Sat Dec 2 17:57:10 2017 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 840A9E657C9 for ; Sat, 2 Dec 2017 17:57:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7241877D38 for ; Sat, 2 Dec 2017 17:57:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vB2HvAs9071803 for ; Sat, 2 Dec 2017 17:57:10 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Sat, 02 Dec 2017 17:57:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: petr@leszkow.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Dec 2017 17:57:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #6 from Petr Leszkow --- btw, just checked SCSI Asignment at http://www.t10.org/lists/asc-num.htm#AS= C_27 for ASC 27,0 ...see list bellow: so, I think it would be sufficient if kernel can instruct the cam or any up= per layer to do not attempt to mount devices with ASC 27,0 and 27,1 as RW and handle them for example as CD/DVD asc 27,4 asc 27,5 ? What do you think ?=20 Thanks. Petr D - Direct Access Block Device (SBC-4) Device Column key .Z - Host Managed Zoned Block Device (ZBC) --------------------- . T - Sequential Access Device (SSC-5) blank =3D code not us= ed . P - Processor Device (SPC-2) not blank =3D code us= ed . .R - C/DVD Device (MMC-6) . . O - Optical Memory Block Device (SBC) . . M - Media Changer Device (SMC-3) . . .A - Storage Array Device (SCC-2)SBC) . . . E - SCSI Enclosure Services device (SES-3) . . . B - Simplified Direct-Access (Reduced Block) device (RBC) . . . .K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-4) . . . . F - Object-based Storage Device (OSD-2) ASC/ . . . . . ASCQ DZTPROMAEBKVF Description 27/00 DZT RO BK WRITE PROTECTED 27/01 DZT RO BK HARDWARE WRITE PROTECTED 27/02 DZT RO BK LOGICAL UNIT SOFTWARE WRITE PROTECTED 27/03 T R ASSOCIATED WRITE PROTECT 27/04 T R PERSISTENT WRITE PROTECT 27/05 T R PERMANENT WRITE PROTECT 27/06 R F CONDITIONAL WRITE PROTECT 27/07 DZ B SPACE ALLOCATION FAILED WRITE PROTECT 27/08 DZ ZONE IS READ ONLY --=20 You are receiving this mail because: You are the assignee for the bug.=