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-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 11 Jul 2022 16:38:47 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Jonathan McDowell <noodles@...com>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        linux-fsdevel@...r.kernel.org, lkp@...ts.01.org,
        "linux-integrity@...r.kernel.org" <linux-integrity@...r.kernel.org>,
        "linux-security-module@...r.kernel.org" 
        <linux-security-module@...r.kernel.org>,
        "kexec@...ts.infradead.org" <kexec@...ts.infradead.org>,
        Alexander Viro <viro@...iv.linux.org.uk>,
        Mimi Zohar <zohar@...ux.ibm.com>,
        Dmitry Kasatkin <dmitry.kasatkin@...il.com>,
        James Morris <jmorris@...ei.org>,
        "Serge E. Hallyn" <serge@...lyn.com>,
        Matthew Garrett <mjg59@...f.ucam.org>,
        Dmitrii Potoskuev <dpotoskuev@...com>
Subject: [lib/cpio]  0e4846b4e7: Initramfs_unpacking_failed



Greeting,

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

commit: 0e4846b4e75c2955b6c8636560fb84da7a2ef2d8 ("[RFC PATCH 3/7] lib/cpio: use non __init filesystem related functions")
url: https://github.com/intel-lab-lkp/linux/commits/Jonathan-McDowell/ima-Support-measurement-of-kexec-initramfs-components/20220708-181443
base: https://git.kernel.org/cgit/linux/kernel/git/zohar/linux-integrity.git next-integrity
patch link: https://lore.kernel.org/lkml/4b9ed0a326cec3752792792a3de1ae6e5270ca78.1657272362.git.noodles@fb.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):


+----------------------------------------------------------------------------+------------+------------+
|                                                                            | 17c49fd1ed | 0e4846b4e7 |
+----------------------------------------------------------------------------+------------+------------+
| boot_successes                                                             | 17         | 0          |
| boot_failures                                                              | 0          | 16         |
| Initramfs_unpacking_failed                                                 | 0          | 16         |
| Kernel_panic-not_syncing:VFS:Unable_to_mount_root_fs_on_unknown-block(#,#) | 0          | 16         |
+----------------------------------------------------------------------------+------------+------------+


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


[    0.683660][    T1] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.683674][    T1] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.683686][    T1] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.683749][    T1] PCI: CLS 0 bytes, default 64
[    0.683810][   T33] Trying to unpack rootfs image as initramfs...
[    0.684019][   T33] Initramfs unpacking failed: write error
[    0.713122][   T33] Freeing initrd memory: 111740K
[    0.717054][    T1] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.717056][    T1] software IO TLB: mapped [mem 0x00000000b52c1000-0x00000000b92c1000] (64MB)
[    0.717392][    T1] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x228374dae5d, max_idle_ns: 440795268352 ns
[    0.726743][    T1] Initialise system trusted keyrings
...
[    4.370642][    T1] /dev/root: Can't open blockdev
[    4.370646][    T1] VFS: Cannot open root device "ram0" or unknown-block(0,0): error -6
[    4.370648][    T1] Please append a correct "root=" boot option; here are the available partitions:
[    4.370650][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    4.385545][    T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.19.0-rc2-00006-g0e4846b4e75c #1
[    4.386771][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[    4.388115][    T1] Call Trace:
[    4.388633][    T1]  <TASK>
[    4.389110][    T1]  dump_stack_lvl+0x34/0x44
[    4.389820][    T1]  panic+0x107/0x28f
[    4.390386][    T1]  mount_block_root+0x13f/0x1d5
[    4.391037][    T1]  prepare_namespace+0x13b/0x16a
[    4.391714][    T1]  kernel_init_freeable+0x179/0x19e
[    4.392409][    T1]  ? rest_init+0x100/0x100
[    4.393033][    T1]  kernel_init+0x16/0x140
[    4.393657][    T1]  ret_from_fork+0x22/0x30
[    4.394283][    T1]  </TASK>
[    4.394913][    T1] Kernel Offset: 0x2ce00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)


To reproduce:

        # build kernel
	cd linux
	cp config-5.19.0-rc2-00006-g0e4846b4e75c .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-5.19.0-rc2-00006-g0e4846b4e75c" of type "text/plain" (163962 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ