From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [tip:x86/sev 9/11] arch/x86/boot/compressed/misc.c:397 early_sev_detect() warn: bitwise AND condition is false here
Date: Thu, 31 Oct 2024 14:45:16 +0800 [thread overview]
Message-ID: <202410311441.nu6INxRH-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
CC: x86@kernel.org
TO: Ashish Kalra <ashish.kalra@amd.com>
CC: "Borislav Petkov (AMD)" <bp@alien8.de>
CC: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
CC: Tom Lendacky <thomas.lendacky@amd.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/sev
head: 3074152e56c9b0f9b9c67edfbc08b371db050b6d
commit: f30470c190c2f4776e0baeba1f53fd8dd3820394 [9/11] x86/boot: Skip video memory access in the decompressor for SEV-ES/SNP
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: i386-randconfig-141-20241030 (https://download.01.org/0day-ci/archive/20241031/202410311441.nu6INxRH-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202410311441.nu6INxRH-lkp@intel.com/
New smatch warnings:
arch/x86/boot/compressed/misc.c:397 early_sev_detect() warn: bitwise AND condition is false here
Old smatch warnings:
arch/x86/boot/compressed/../../../../lib/zstd/decompress/huf_decompress.c:598 HUF_decompress4X1_usingDTable_internal_body() warn: maybe use && instead of &
arch/x86/boot/compressed/../../../../lib/zstd/decompress/huf_decompress.c:598 HUF_decompress4X1_usingDTable_internal_body() warn: maybe use && instead of &
arch/x86/boot/compressed/../../../../lib/zstd/decompress/huf_decompress.c:1292 HUF_decompress4X2_usingDTable_internal_body() warn: maybe use && instead of &
arch/x86/boot/compressed/../../../../lib/zstd/decompress/huf_decompress.c:1292 HUF_decompress4X2_usingDTable_internal_body() warn: maybe use && instead of &
arch/x86/boot/compressed/../../../../lib/zstd/decompress/zstd_decompress_internal.h:206 ZSTD_DCtx_get_bmi2() warn: inconsistent indenting
arch/x86/boot/compressed/../../../../lib/zstd/decompress/zstd_decompress_block.c:894 ZSTD_execSequenceEnd() warn: inconsistent indenting
arch/x86/boot/compressed/../../../../lib/zstd/decompress/zstd_decompress_block.c:942 ZSTD_execSequenceEndSplitLitBuffer() warn: inconsistent indenting
arch/x86/boot/compressed/../../../../lib/zstd/decompress/zstd_decompress_block.c:1009 ZSTD_execSequence() warn: inconsistent indenting
vim +397 arch/x86/boot/compressed/misc.c
cd0d9d92c8bb46 Ard Biesheuvel 2024-02-27 387
f30470c190c2f4 Ashish Kalra 2024-08-01 388 static void early_sev_detect(void)
f30470c190c2f4 Ashish Kalra 2024-08-01 389 {
f30470c190c2f4 Ashish Kalra 2024-08-01 390 /*
f30470c190c2f4 Ashish Kalra 2024-08-01 391 * Accessing video memory causes guest termination because
f30470c190c2f4 Ashish Kalra 2024-08-01 392 * the boot stage2 #VC handler of SEV-ES/SNP guests does not
f30470c190c2f4 Ashish Kalra 2024-08-01 393 * support MMIO handling and kexec -c adds screen_info to the
f30470c190c2f4 Ashish Kalra 2024-08-01 394 * boot parameters passed to the kexec kernel, which causes
f30470c190c2f4 Ashish Kalra 2024-08-01 395 * console output to be dumped to both video and serial.
f30470c190c2f4 Ashish Kalra 2024-08-01 396 */
f30470c190c2f4 Ashish Kalra 2024-08-01 @397 if (sev_status & MSR_AMD64_SEV_ES_ENABLED)
f30470c190c2f4 Ashish Kalra 2024-08-01 398 lines = cols = 0;
f30470c190c2f4 Ashish Kalra 2024-08-01 399 }
f30470c190c2f4 Ashish Kalra 2024-08-01 400
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-10-31 6:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202410311441.nu6INxRH-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.