Re: [RFC] ATA host-protected area (HPA) device mapper?

From: Jeff Garzik
Date: Fri Jun 09 2006 - 10:47:50 EST


Etienne Lorrain 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.


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.

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.

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


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.

Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/