From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 24 11:00:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1C6F6C7C for ; Mon, 24 Mar 2014 11:00:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EDAFFFCB for ; Mon, 24 Mar 2014 11:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2OB00UU009972 for ; Mon, 24 Mar 2014 11:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2OB00fa009971; Mon, 24 Mar 2014 11:00:00 GMT (envelope-from gnats) Resent-Date: Mon, 24 Mar 2014 11:00:00 GMT Resent-Message-Id: <201403241100.s2OB00fa009971@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "T. Schaap" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FB06C75 for ; Mon, 24 Mar 2014 10:59:54 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D687FFC5 for ; Mon, 24 Mar 2014 10:59:53 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2OAxrxp026410 for ; Mon, 24 Mar 2014 10:59:53 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2OAxrA6026409; Mon, 24 Mar 2014 10:59:53 GMT (envelope-from nobody) Message-Id: <201403241059.s2OAxrA6026409@cgiserv.freebsd.org> Date: Mon, 24 Mar 2014 10:59:53 GMT From: "T. Schaap" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/187900: camcontrol: ATA secure erase always fails with timeout X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 11:00:01 -0000 >Number: 187900 >Category: kern >Synopsis: camcontrol: ATA secure erase always fails with timeout >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 24 11:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: T. Schaap >Release: 9.2 Release >Organization: - >Environment: FreeBSD 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #10: Thu Jan 16 21:33:00 CET 2014 :/usr/obj/usr/src/sys/SERVER amd64 >Description: When trying to securely erase a SATA disk with camcontrol security, the command starts succesfully but gives a timeout after circa 23 minutes. I tried 3 different disks with the same result. As far as I know there are no hardware problems. I think erasing disks should work flawlessly as this is an important security measure when abondoning disks. Example output: server# camcontrol security ada3 pass3: ATA-8 SATA 2.x device pass3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) Security Option Value supported yes enabled no drive locked no security config frozen no count expired no security level high enhanced erase supported yes erase time 152 min enhanced erase time 152 min master password rev fffe server# time camcontrol security ada3 -s secret -e secret -U user -T 10000 pass3: ATA-8 SATA 2.x device pass3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) You are about to ERASE ALL DATA from the following device: pass3,ada3: ATA-8 SATA 2.x device Are you SURE you want to ERASE ALL DATA? (yes/no) yes Issuing SECURITY_SET_PASSWORD password='secret', user='user', mode='high' Issuing SECURITY_ERASE_PREPARE Issuing SECURITY_ERASE_UNIT password='secret', user='user' camcontrol: ATA SECURITY_ERASE_UNIT failed: 0 0.000u 0.010s 23:36.24 0.0% 216+2216k 0+0io 0pf+0w >From /var/log/messages: Mar 24 11:03:13 server kernel: ada3 at ahcich3 bus 0 scbus3 target 0 lun 0 Mar 24 11:03:13 server kernel: ada3: ATA-8 SATA 2.x device Mar 24 11:03:13 server kernel: ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) Mar 24 11:03:13 server kernel: ada3: Command Queueing enabled Mar 24 11:03:13 server kernel: ada3: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) Mar 24 11:31:36 server kernel: ahcich3: Timeout on slot 0 port 0 Mar 24 11:31:36 server kernel: ahcich3: is 00000000 cs 00000001 ss 00000000 rs 00000001 tfd d0 serr 00000000 cmd 0000e017 >How-To-Repeat: camcontrol security ada3 -s secret -e secret -U user -T 10000 Substitute local device identifier for ada3! >Fix: >Release-Note: >Audit-Trail: >Unformatted: