lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <332d9d42-c4ae-47a8-b3d6-32907eddb7ba@intel.com>
Date:   Wed, 7 Sep 2022 13:53:42 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Nick Desaulniers <ndesaulniers@...gle.com>
CC:     <lkp@...ts.01.org>, <lkp@...el.com>, 0day robot <lkp@...el.com>,
        <linux-hardening@...r.kernel.org>,
        Kees Cook <keescook@...omium.org>,
        "Nathan Chancellor" <nathan@...nel.org>, Tom Rix <trix@...hat.com>,
        <linux-kernel@...r.kernel.org>, <llvm@...ts.linux.dev>,
        Jiri Kosina <jikos@...nel.org>,
        Benjamin Tissoires <benjamin.tissoires@...hat.com>,
        <linux-input@...r.kernel.org>,
        Masahiro Yamada <masahiroy@...nel.org>,
        "Nick Desaulniers" <ndesaulniers@...gle.com>
Subject: [fortify] ab66e7d1d8:
 BUG:kernel_failed_in_early-boot_stage,last_printk:Booting_the_kernel

Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: ab66e7d1d8a90f6addac0da9b3ae13d77f095f76 ("[PATCH 2/3] fortify: cosmetic cleanups to __compiletime_strlen")
url: https://github.com/intel-lab-lkp/linux/commits/Nick-Desaulniers/Fix-FORTIFY-y-UBSAN_LOCAL_BOUNDS-y/20220831-045536
base: https://git.kernel.org/cgit/linux/kernel/git/kees/linux.git for-next/hardening
patch link: https://lore.kernel.org/linux-hardening/20220830205309.312864-3-ndesaulniers@google.com

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

early console in setup code
Probing EDD (edd=off to disable)... ok
No EFI environment detected.
early console in extract_kernel
input_data: 0x0000000003bad40d
input_len: 0x0000000001246049
output: 0x0000000001000000
output_len: 0x0000000003a31a00
kernel_total_size: 0x0000000003e28000
needed_size: 0x0000000004000000
trampoline_32bit: 0x000000000009d000

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
convert early boot stage from hang to failed
BUG: kernel failed in early-boot stage, last printk: Booting the kernel.
Linux version 6.0.0-rc2-00005-gab66e7d1d8a9 #1



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <yujie.liu@...el.com>


To reproduce:

         # build kernel
	cd linux
	cp config-6.0.0-rc2-00005-gab66e7d1d8a9 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


         git clone https://github.com/intel/lkp-tests.git
         cd lkp-tests
         bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

         # if come across any failure that blocks the test,
         # please remove ~/.lkp and /lkp dir to run from a clean state.


-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config-6.0.0-rc2-00005-gab66e7d1d8a9" of type "text/plain" (189100 bytes)

View attachment "job-script" of type "text/plain" (5261 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (1436 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ