summaryrefslogtreecommitdiff
path: root/drivers/staging/panel/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorMauricio Faria de Oliveira <mfo@igalia.com>2026-07-23 20:08:04 -0300
committerBorislav Petkov (AMD) <bp@alien8.de>2026-07-28 16:32:44 -0700
commita8c171c107c0b61a5e7e10cedab0fb72aeaf640d (patch)
tree165ac7be022993657d24a933db42b1a4c27d58d3 /drivers/staging/panel/git@git.tavy.me:linux-stable.git
parentf5098b6bae761e346ebcd9da7f95622c04733cff (diff)
x86/boot: Add volatile, clobbers and zero-length test in memcmp()
Add the volatile qualifier and clobbers parameter to prevent bugs with instruction reordering and optimization. Also add TEST for the zero-length case to set ZF, as, if the count register is zero, the REPE prefix does not run the CMPSB instruction, leaving the ZF flag undetermined. [ bp: Add a comment about the len==0 case. ] Fixes: 62bd0337d0c4 ("Top header file for new x86 setup code") Closes: https://sashiko.dev/#/patchset/20260701-pvh-kasan-inline-v6-0-ba99045dfa9f%40igalia.com Suggested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Mauricio Faria de Oliveira <mfo@igalia.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/all/20260721-pvh-kasan-inline-v7-2-38979a50cef0@igalia.com
Diffstat (limited to 'drivers/staging/panel/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions