From: Harald Freudenberger <freude@linux.ibm.com>
To: Cornelia Huck <cohuck@redhat.com>
Cc: "Michael Tokarev" <mjt@tls.msk.ru>,
richard.henderson@linaro.org, iii@linux.ibm.com,
david@kernel.org, thuth@redhat.com, berrange@redhat.com,
qemu-s390x@nongnu.org, qemu-devel@nongnu.org,
linux-s390@vger.kernel.org, dengler@linux.ibm.com,
borntraeger@linux.ibm.com, fcallies@linux.ibm.com,
qemu-stable <qemu-stable@nongnu.org>,
"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Subject: Re: [PATCH v11 01/21] target/s390x: Fix wrong address handling in address loops
Date: Wed, 08 Jul 2026 16:57:17 +0200 [thread overview]
Message-ID: <cbd3f1f1757c0b7740c20cecefc8ccfd@linux.ibm.com> (raw)
In-Reply-To: <87zf01in2z.fsf@redhat.com>
On 2026-07-08 16:16, Cornelia Huck wrote:
> On Wed, Jul 08 2026, Harald Freudenberger <freude@linux.ibm.com> wrote:
>
>> On 2026-07-08 13:18, Michael Tokarev wrote:
>>> On 08.07.2026 13:37, Michael Tokarev wrote:
>>>> On 07.07.2026 19:17, Harald Freudenberger wrote:
>>>>> The loop increments addr by the element stride (+= 4) before
>>>>> calling
>>>>> wrap_address, but then overwrites the loop addr with the wrapped
>>>>> value. On the next iteration the stride is applied to the wrapped
>>>>> address of the previous element, not to the original unwrapped
>>>>> address. This results in every element after the first is read from
>>>>> a
>>>>> wrong (wrapped) address.
>>>>>
>>>>> Fixes: 9f17bfdab4 ("target/s390x: support SHA-512 extensions")
>>>>> Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
>>>>> ---
>>>>> target/s390x/tcg/crypto_helper.c | 12 ++++--------
>>>>> 1 file changed, 4 insertions(+), 8 deletions(-)
>>>>
>>>> This feels like qemu-stable material.
>>>> I'm picking this change up for currently active stable qemu series.
>>>> Please let me know if I shouldn't.
>>>
>>> Um, this was a bit premature.
>>>
>>> This particular commit requires a previous commit in this area,
>>> de96db79 "target/s390x: Compile crypto_helper.c as common unit".
>>> It's easy to back-port across, but since this change ("Fix wrong
>>> address handling...") hasn't been marked as for-stable, I'm *not*
>>> doing that. If this change is actually needed in -stable, please
>>> let me know. Also, is it okay to pick up the previous change
>>> ("compile as common unit") to -stable too, to avoid fixing up
>>> subsequent changes.
>>>
>>> Thanks,
>>>
>>> /mjt
>>
>> Fine with me. However, Connie replied to my v10 series that she
>> wants to pick this patch. However, it is yet not on the qemu
>> master branch.
>
> Should be now, as the s390 update was pulled?
Yes, it is on master now.
next prev parent reply other threads:[~2026-07-08 14:57 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 16:17 [PATCH v11 00/21] target/s390x: Extend qemu CPACF support Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 01/21] target/s390x: Fix wrong address handling in address loops Harald Freudenberger
2026-07-08 10:37 ` Michael Tokarev
2026-07-08 11:18 ` Michael Tokarev
2026-07-08 14:03 ` Harald Freudenberger
2026-07-08 14:16 ` Cornelia Huck
2026-07-08 14:57 ` Harald Freudenberger [this message]
2026-07-07 16:17 ` [PATCH v11 02/21] target/s390x: Rework s390 cpacf implementations Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 03/21] target/s390x: Move cpacf sha512 code into a new file Harald Freudenberger
2026-07-08 12:51 ` Holger Dengler
2026-07-07 16:17 ` [PATCH v11 04/21] target/s390x: Support cpacf sha256 Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 05/21] target/s390x: Support AES ECB for cpacf km instruction Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 06/21] target/s390x: Support AES CBC for cpacf kmc instruction Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 07/21] target/s390x: Support AES CTR for cpacf kmctr instruction Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 08/21] target/s390x: Minimal AES XTS support for cpacf pcc instruction Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 09/21] target/s390x: Support AES XTS for cpacf km instruction Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 10/21] target/s390x: Base support for cpacf protected keys Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 11/21] target/s390x: Support pckmo encrypt AES subfunctions Harald Freudenberger
2026-07-07 16:17 ` [PATCH v11 12/21] target/s390x: Support protected key AES ECB for cpacf km instruction Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 13/21] target/s390x: Support protected key AES CBC for cpacf kmc instruction Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 14/21] target/s390x: Support protected key AES CTR for cpacf kmctr instruction Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 15/21] target/s390x: Minimal protected key AES XTS support for cpacf pcc instruction Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 16/21] target/s390x: Support protected key AES XTS for cpacf km instruction Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 17/21] docs/s390: Document CPACF instructions support Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 18/21] crypto: Add aes-helpers file to support some AES modes Harald Freudenberger
2026-07-08 16:52 ` Daniel P. Berrangé
2026-07-07 16:18 ` [PATCH v11 19/21] target/s390x: Use generic AES helper functions Harald Freudenberger
2026-07-08 16:53 ` Daniel P. Berrangé
2026-07-09 9:28 ` Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 20/21] target/s390x: Improve fetch and store mem from and to guest Harald Freudenberger
2026-07-07 16:18 ` [PATCH v11 21/21] tests/tcg/s390x: Add tests for CPACF instructions Harald Freudenberger
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=cbd3f1f1757c0b7740c20cecefc8ccfd@linux.ibm.com \
--to=freude@linux.ibm.com \
--cc=berrange@redhat.com \
--cc=borntraeger@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@kernel.org \
--cc=dengler@linux.ibm.com \
--cc=fcallies@linux.ibm.com \
--cc=iii@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=mjt@tls.msk.ru \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.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