From: Tejun Heo <htejun@gmail.com>
To: "Rus V. Brushkoff" <rus@SoyuzKT.Od.UA>
Cc: Jeff Garzik <jeff@garzik.org>,
linux-ide@vger.kernel.org, Mark Lord <liml@rtr.ca>
Subject: Re: SATA HDD password problem
Date: Sat, 08 Mar 2008 10:17:17 +0900 [thread overview]
Message-ID: <47D1E91D.8090704@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0803071038380.12026@Soyuz-KT.TeNet.Odessa.UA>
Hello,
Rus V. Brushkoff wrote:
> :This is weird. The drive should have stayed unlocked over
> :initialization sequence as SSP is in effect. Either the BIOS is turning
> :off SSP during POST or the drive isn't preserving security mode state
> :although SSP is in effect. Testing who's to blame can be a bit
> :cumbersome and involves removing power from the drive while the rest of
> :the system is running. Can you do that?
>
> Sure - I can simply hot-unplug/hot-plug hdd from laptop. For now I've
> attached good dmesg (normal boot without hdd password set), and bad one -
> with a kernel panic. Please clarify what exact power-on/power-off hdd log
> do you need - with hdd password set (do not know if the kernel panic state
> can be interrupted by sata events) or without hdd password set ?
Okay, here's the sequence.
1. Boot w/o password set. hdparm -I will show that security feature is
not enabled.
2. Execute "hdparm --user-master u --security-set-pass PASSWORD
/dev/sda". hdparm -I will show that security is enabled but not locked.
3. Remove power from the drive and reapply. Now hdparm -I will show
that security is enabled and locked and dd'ing from the drive will fail.
4. Execute "hdparm --user-master -u --security-unlock PASSWORD
/dev/sda". hdparm -I will show security enabled but unlocked and you'll
be able to access the drive again.
5. Unload and reload ahci. This will trigger controller initialization
causing hardresets on the ports. Execute hdparm -I and see whether the
drive is still unlocked and verify that you can read from the drive.
If the drive stays unlocked over #5, it means that the BIOS is
explicitly disabling SSP during POST. If the drive locks up again, it
means its SSP implementation isn't preserving security mode state over
hardreset.
Thanks.
--
tejun
next prev parent reply other threads:[~2008-03-08 1:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 9:50 SATA HDD password problem Rus V. Brushkoff
2008-03-05 12:30 ` Jeff Garzik
2008-03-05 12:49 ` Rus V. Brushkoff
2008-03-06 9:47 ` Tejun Heo
2008-03-06 12:31 ` Rus V. Brushkoff
2008-03-07 3:54 ` Tejun Heo
2008-03-07 9:17 ` Rus V. Brushkoff
2008-03-08 1:17 ` Tejun Heo [this message]
2008-03-08 16:12 ` Rus V. Brushkoff
2008-03-09 5:13 ` Tejun Heo
2008-03-09 5:13 ` Tejun Heo
2008-03-09 17:42 ` Rus V. Brushkoff
2008-03-10 0:37 ` Tejun Heo
2008-03-10 1:25 ` [PATCH #upstream-fixes] ahci: implement skip_host_reset parameter Tejun Heo
2008-03-17 12:27 ` Jeff Garzik
2008-03-07 14:45 ` SATA HDD password problem Mark Lord
2008-03-08 0:51 ` Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D1E91D.8090704@gmail.com \
--to=htejun@gmail.com \
--cc=jeff@garzik.org \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
--cc=rus@SoyuzKT.Od.UA \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).