mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Etienne Lorrain <etienne_lorrain@yahoo.fr>
To: Jeff Garzik <jeff@garzik.org>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: RE : Re: [RFC] ATA host-protected area (HPA) device mapper?
Date: Fri, 9 Jun 2006 17:55:50 +0200 (CEST)	[thread overview]
Message-ID: <20060609155550.69188.qmail@web26907.mail.ukl.yahoo.com> (raw)
In-Reply-To: <44898A52.2010008@garzik.org>

--- Jeff Garzik wrote:
> >   Your hard disk is a lot more powerfull than what you think, only very old
> 
> No, it's not.  I am well aware of what's in the ATA spec.
>
> >  hard disks only have ATA set max command. Nowadays, you can not only set the
> 
> Not true.

  If you want more info without reading the spec, here is some more:
http://www.heise.de/ct/english/05/08/172/

> >  Gujin also do the absolutely needed setup of the IDE hard disk which is to freeze
> >  the password system _and_ the config system of all the IDE hard disks present, so
> >  that no virus can put a random password and send you an E-mail with the address
> >  where to send the money to get the password to unlock the hard disk and so access
> >  again your data. Again, freezing means no more modifiable until next power cycle,
> >  so IMO it is the job of the bootloader to setup the hard disk, before running
> >  anything like Linux, a commercial OS, a bootable CDROM...
> 
> This is totally broken, and I am going to strongly recommend that no one 
> use this software.

  But that is the recommended way to do in the ATA specification, since ATA4:

http://www.t13.org/project/d1153r18-ATA-ATAPI-4.pdf
and read "6.10 Security Mode feature set" around page 30 / page 46.
Pay attentiong to the last sentense of "6.10.4 Frozen mode".

  And some BIOS correctly implement it - most BIOS don't.

> It is the OS responsibility to do this.  As a simple example, when the 
> libata ACPI patches are merged (soon), libata will send BIOS-specified 
> taskfiles to the device -- including the hard drive password, if any. 
> Then it will freeze the settings.

  Which setting are you talking about: freezing the HPA, the configuration
 or the password - that is different ATA commands.
 Gujin can run a kernel (or some other software) without freezing each of
 them independantly but the user has to explicitely request it - and should
 not try to boot a random CDROM with the password unfrozen.

> Gujin's behavior will prevent the user from accessing their data, if 
> they have protected it via BIOS.

  Some BIOS have support for password, but Gujin is not using BIOS
 services for "protection" because BIOS is not providing such services
 with a documented interface.

> >  Gujin is assuming that your hard disk are accessible by the documented ATA ide
> >  system, and some (or all?) IDE SATA interface have (volumtary?) broken
> >  implementation: they are not IDE register compatible.
> 
> More evidence that Gujin is completely broken.
> 
> Host controller programming interfaces have _always_ been variable.  PCI 
> IDE standard was never a requirement for all host controllers, indeed 
> such a requirement would be stupid, and widely ignored.
> 
> Modern SATA controllers are all FIS-based, and are not (and should not 
> be) limited by the legacy IDE register programming interface.

  The complete ATA specification is describing a register interface since ATA1,
 SATA chipsets should be software compatible, even if they add commands/interfaces:
http://www.sata-io.org/interopfaq.asp    say:
    Are there any known interoperability issues with SATA?
    One of the primary requirements of the SATA 1.0 specification was to
    maintain backward compatibility with existing operating system drivers
    to eliminate incompatibility issues.


  Etienne.


__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 

  reply	other threads:[~2006-06-09 15:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09 10:47 Etienne Lorrain
2006-06-09 14:48 ` Jeff Garzik
2006-06-09 15:55   ` Etienne Lorrain [this message]
2006-06-09 17:22 ` Alan Cox
2006-06-09 20:10   ` RE : " Etienne Lorrain
2006-06-10 11:56   ` Etienne Lorrain
2006-06-11 15:48     ` Arjan van de Ven
2006-06-13 10:00   ` Etienne Lorrain

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=20060609155550.69188.qmail@web26907.mail.ukl.yahoo.com \
    --to=etienne_lorrain@yahoo.fr \
    --cc=jeff@garzik.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®