kern/187900: camcontrol: ATA secure erase always fails with timeout

T. Schaap schaap at ovibus.nl
Mon Mar 24 11:00:01 UTC 2014


>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 <host> 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #10: Thu Jan 16 21:33:00 CET 2014     <host>:/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: <ST3750330NS SN06> 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: <ST3750330NS SN06> 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: <ST3750330NS SN06> 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: <ST3750330NS SN06> 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:


More information about the freebsd-bugs mailing list