selftests-mm-fix-a-possibly-uninitialized-warning-in-pkey-x86h.patch removed from -mm tree
The quilt patch titled
Subject: selftests/mm: fix a "possibly uninitialized" warning in pkey-x86.h
has been removed from the -mm tree. Its filename was
selftests-mm-fix-a-possibly-uninitialized-warning-in-pkey-x86h.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: John Hubbard <[email protected]>
Subject: selftests/mm: fix a "possibly uninitialized" warning in pkey-x86.h
Date: Tue, 6 Jun 2023 00:16:33 -0700
This fixes a real bug, too, because xstate_size() was assuming that the stack variable xstate_size was initialized to zero. That's not guaranteed nor even especially likely.
---
tools/testing/selftests/mm/pkey-x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/mm/pkey-x86.h renamed from tools/testing/selftests/mm/pkey-x86.h~selftests-mm-fix-a-possibly-uninitialized-warning-in-pkey-x86h +1 -1
@@ -132,7 +132,7 @@ int pkey_reg_xstate_offset(void)unsigned int ecx;unsigned int edx;int xstate_offset; -int xstate_size; +int xstate_size =0 ;unsigned long XSTATE_CPUID =0xd ;int leaf;
_
Patches currently in -mm which might be from [email protected] are