2022-06-22 07:18:09

by kernel test robot

[permalink] [raw]
Subject: [random] 31ac294037: BUG:kernel_reboot-without-warning_in_test_stage



Greeting,

FYI, we noticed the following commit (built with clang-15):

commit: 31ac294037be272967a4c8bc25d3178020580595 ("random: remove ratelimiting for in-kernel unseeded randomness")
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y

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):


we can reproduce 11 times out of 50 runs upon this commit, but cannot reproduce
from 50 runs upon parent.

b50f2830b3df0f50 31ac294037be272967a4c8bc25d
---------------- ---------------------------
fail:runs %reproduction fail:runs
| | |
:50 22% 11:50 dmesg.BUG:kernel_reboot-without-warning_in_test_stage



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>


[ 61.471397][ T855] random: get_random_u32 called from arch_align_stack+0x33/0x4e with crng_init=0
[ 61.471431][ T855] random: get_random_bytes called from create_elf_tables+0x14f/0x84c with crng_init=0
[ 61.471493][ T855] random: get_random_u64 called from randomize_page+0x7f/0x93 with crng_init=0
[ 61.474209][ T792] random: get_random_u32 called from arch_setup_additional_pages+0x9d/0xe1 with crng_init=0
[ 61.474251][ T792] random: get_random_u32 called from arch_align_stack+0x33/0x4e with crng_init=0
BUG: kernel reboot-without-warning in test stage

Kboot worker: lkp-worker06
Elapsed time: 120

kvm=(


To reproduce:

# build kernel
cd linux
cp config-5.10.118-00148-g31ac294037be .config
make HOSTCC=clang-15 CC=clang-15 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=clang-15 CC=clang-15 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



Attachments:
(No filename) (2.32 kB)
config-5.10.118-00148-g31ac294037be (139.62 kB)
job-script (4.84 kB)
dmesg.xz (45.70 kB)
Download all attachments

2022-06-22 09:54:03

by Jason A. Donenfeld

[permalink] [raw]
Subject: Re: [random] 31ac294037: BUG:kernel_reboot-without-warning_in_test_sta

On Wed, Jun 22, 2022 at 02:48:59PM +0800, kernel test robot wrote:
> [ 61.471397][ T855] random: get_random_u32 called from arch_align_stack+0x33/0x4e with crng_init=0
> [ 61.471431][ T855] random: get_random_bytes called from create_elf_tables+0x14f/0x84c with crng_init=0
> [ 61.471493][ T855] random: get_random_u64 called from randomize_page+0x7f/0x93 with crng_init=0
> [ 61.474209][ T792] random: get_random_u32 called from arch_setup_additional_pages+0x9d/0xe1 with crng_init=0
> [ 61.474251][ T792] random: get_random_u32 called from arch_align_stack+0x33/0x4e with crng_init=0

If the DEBUG option, CONFIG_WARN_ALL_UNSEEDED_RANDOM=y, is set, then
this is exactly the intended behavior. Looking at your .config, it is
set. So no issue here.

Jason