[PATCH v2 0/2] Fixes for security locked drives

TJ Adams <[email protected]> Mon, 6 Jul 2026 14:00:52 -0700
Newsgroups org.kernel.vger.linux-ide,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
These patches improve libata handling of locked drives.

Changes since v1:
- Simplified the n_sectors check in ata_dev_revalidate() as suggested by
  Niklas
- Added Patch 2 to disable HPA resizing for locked drives to address
  Sashiko's feedback.

Testing:
- Verified using the internal test suite that originally detected the regression.
- The issue can be reproduced manually using the steps outlined in the thread
  (runtime locking, disabling SSP, active I/O, and link reset).

TJ Adams (2):
  ata: libata-core: Skip HPA resize for locked drives
  ata: libata-core: Allow capacity transition to zero for locked drives

 drivers/ata/libata-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.55.0.rc2.803.g1fd1e6609c-goog