Files
linux-stable-mirror/arch/s390/include/asm
Sven SchnelleandGreg Kroah-Hartman 21379c6fc8 s390: Mark psw in __load_psw_mask() as __unitialized
[ Upstream commit 7278a8fb8d ]

Without __unitialized, the following code is generated when
INIT_STACK_ALL_ZERO is enabled:

86: d7 0f f0 a0 f0 a0     xc      160(16,%r15), 160(%r15)
8c: e3 40 f0 a0 00 24     stg     %r4, 160(%r15)
92: c0 10 00 00 00 08     larl    %r1, 0xa2
98: e3 10 f0 a8 00 24     stg     %r1, 168(%r15)
9e: b2 b2 f0 a0           lpswe   160(%r15)

The xc is not adding any security because psw is fully initialized
with the following instructions. Add __unitialized to the psw
definitiation to avoid the superfluous clearing of psw.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-18 13:21:15 +02:00
..
2023-07-03 11:19:42 +02:00
2022-05-11 14:40:57 +02:00
2023-06-05 09:36:39 +02:00
2023-06-05 09:36:40 +02:00
2023-07-24 12:12:24 +02:00
2023-02-15 11:07:01 +01:00
2023-08-18 10:12:34 -07:00
2022-12-06 16:18:22 +01:00
2022-03-08 00:33:01 +01:00
2023-08-09 15:20:51 +02:00
2024-07-11 12:49:12 +02:00
2023-07-03 11:19:42 +02:00
2022-07-11 09:54:24 +02:00
2023-06-05 09:36:39 +02:00
2022-06-30 19:40:36 +02:00
2023-08-30 11:03:27 +02:00
2022-05-11 14:40:57 +02:00
2023-01-04 17:54:50 +01:00