Skip to contentSkip to conversation

FAILED: patch "[PATCH] crypto: xilinx-trng - Remove crypto_rng interface" failed to apply to 7.1-stable tree

PATCH [email protected] 2 participants 4 messages Jul 15 – Jul 17

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 7.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y
git checkout FETCH_HEAD
git cherry-pick -x 32b4d29280ed2a991dc196d5845b892acedc63b8
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026071501-handstand-curtain-592d@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..'

Possible dependencies:

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 32b4d29280ed2a991dc196d5845b892acedc63b8 Mon Sep 17 00:00:00 2001
From: Eric Biggers <[email protected]>
Date: Sun, 31 May 2026 12:17:35 -0700
Subject: [PATCH] crypto: xilinx-trng - Remove crypto_rng interface

Implementing the crypto_rng interface has no purpose, as it isn't used in practice. It's being removed from other drivers too. Just remove it. This leaves hwrng, which is actually used.

Tagging with 'Cc stable' due to the bugs that this removes:

- xtrng_trng_generate() sometimes returned success even when it didn't fill in all the bytes.

- It was possible for xtrng_trng_generate() and xtrng_hwrng_trng_read() to run concurrently and interfere with each other, as the locking code in xtrng_hwrng_trng_read() was broken.

Fixes 8979744aca80 ("crypto: xilinx - Add TRNG driver for Versal")
drivers/crypto/Kconfig +0 -1
index 4c47ab6bb267..851904fb9ba4 100644
@@ -703,7 +703,6 @@ config CRYPTO_DEV_XILINX_TRNG
 	tristate "Support for Xilinx True Random Generator"
 	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
 	select CRYPTO_DF80090A
-	select CRYPTO_RNG
 	select HW_RANDOM
 	help
 	  Xilinx Versal SoC driver provides kernel-side support for True Random Number
drivers/crypto/xilinx/xilinx-trng.c +4 -81

160 lines not on this page · raw message

#1 lore raw
Quoted 8 lines · On Wed, Jul 15, 2026 at 12:16:01PM +0200, [email protected] wrote:

The patch below does not apply to the 7.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

Quoted 8 lines

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y
git checkout FETCH_HEAD
git cherry-pick -x 32b4d29280ed2a991dc196d5845b892acedc63b8
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026071501-handstand-curtain-592d@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..'

Possible dependencies:

It actually cherry-picks cleanly. And you also failed to Cc the
subsystem mailing list.

- Eric

author maintainer
#2 lore raw
Quoted 16 lines · Eric Biggers
Quoted 15 lines · On Wed, Jul 15, 2026 at 12:16:01PM +0200, [email protected] wrote:

The patch below does not apply to the 7.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y
git checkout FETCH_HEAD
git cherry-pick -x 32b4d29280ed2a991dc196d5845b892acedc63b8
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026071501-handstand-curtain-592d@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..'

Quoted 3 lines
Quoted 1 line

Possible dependencies:

It actually cherry-picks cleanly.

Odd, I got this error:
Hunk #2 FAILED at 13.

Quoted 1 line

And you also failed to Cc the subsystem mailing list.

We don't do that for stable FAILED emails, as that would just spam too many lists too often.

thanks for the backports!

greg k-h

#3 lore raw
Quoted 17 lines · Greg KH
Quoted 16 lines · Eric Biggers
Quoted 15 lines · On Wed, Jul 15, 2026 at 12:16:01PM +0200, [email protected] wrote:

The patch below does not apply to the 7.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.1.y
git checkout FETCH_HEAD
git cherry-pick -x 32b4d29280ed2a991dc196d5845b892acedc63b8
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026071501-handstand-curtain-592d@gregkh' --subject-prefix 'PATCH 7.1.y' 'HEAD^..'

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Possible dependencies:

It actually cherry-picks cleanly.

Odd, I got this error:
Hunk #2 FAILED at 13.

Use 'git cherry-pick', just like you're telling everyone else to do.

Quoted 4 lines
Quoted 1 line

And you also failed to Cc the subsystem mailing list.

We don't do that for stable FAILED emails, as that would just spam too many lists too often.

They are part of the kernel development process and need to be sent to the proper lists.

- Eric