Files
linux/arch/s390/include/asm
Heiko Carstens 674c5ff0f4 s390/stackleak: Fix __stackleak_poison() inline assembly constraint
The __stackleak_poison() inline assembly comes with a "count" operand where
the "d" constraint is used. "count" is used with the exrl instruction and
"d" means that the compiler may allocate any register from 0 to 15.

If the compiler would allocate register 0 then the exrl instruction would
not or the value of "count" into the executed instruction - resulting in a
stackframe which is only partially poisoned.

Use the correct "a" constraint, which excludes register 0 from register
allocation.

Fixes: 2a405f6bb3 ("s390/stackleak: provide fast __stackleak_poison() implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Link: https://lore.kernel.org/r/20260302133500.1560531-4-hca@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2026-03-03 16:42:14 +01:00
..
2025-04-14 11:23:21 +02:00
2026-01-27 12:16:16 +01:00
2025-10-21 10:25:55 +02:00
2020-08-26 18:47:21 +02:00
2025-11-06 14:12:31 +01:00
2020-12-16 14:55:49 +01:00
2025-11-17 11:10:38 +01:00
2026-02-25 16:46:07 +01:00
2022-12-06 16:18:22 +01:00
2019-02-05 14:29:23 +01:00
2026-02-05 09:43:47 +01:00
2026-02-04 17:00:10 +01:00
2025-11-24 11:45:21 +01:00
2026-02-04 17:00:10 +01:00
2020-02-27 16:02:21 +01:00
2019-02-07 18:06:18 -08:00
2025-11-17 11:10:38 +01:00
2025-06-26 15:30:51 +02:00
2024-10-30 17:02:39 -07:00
2025-11-17 11:10:38 +01:00
2025-11-17 11:10:38 +01:00
2025-11-17 11:10:38 +01:00
2025-11-14 11:34:27 +01:00
2026-02-04 17:00:10 +01:00
2022-01-30 21:17:00 -05:00
2026-02-04 17:00:10 +01:00
2026-02-25 16:46:07 +01:00