From: TJ Adams <tadamsjr@google.com>
To: Damien Le Moal <dlemoal@kernel.org>,
Niklas Cassel <cassel@kernel.org>,
Hannes Reinecke <hare@suse.de>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
Igor Pylypiv <ipylypiv@google.com>,
Salomon Dushimirimana <salomondush@google.com>,
TJ Adams <tadamsjr@google.com>
Subject: [PATCH v2 0/2] Fixes for security locked drives
Date: Mon, 6 Jul 2026 14:00:52 -0700 [thread overview]
Message-ID: <20260706210054.1336654-1-tadamsjr@google.com> (raw)
In-Reply-To: <akaHPScetfl1VbF8@ryzen>
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
next prev parent reply other threads:[~2026-07-06 21:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-22 18:28 [PATCH] ata: libata-core: Allow capacity transition to zero for locked drives TJ Adams
2026-06-22 18:40 ` sashiko-bot
2026-06-24 14:20 ` Niklas Cassel
2026-07-01 23:16 ` TJ Adams
2026-07-02 15:43 ` Niklas Cassel
2026-07-06 21:00 ` TJ Adams [this message]
2026-07-06 21:00 ` [PATCH v2 1/2] ata: libata-core: Skip HPA resize " TJ Adams
2026-07-06 21:00 ` [PATCH v2 2/2] ata: libata-core: Allow capacity transition to zero " TJ Adams
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=20260706210054.1336654-1-tadamsjr@google.com \
--to=tadamsjr@google.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=hare@suse.de \
--cc=ipylypiv@google.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=salomondush@google.com \
/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