Hi Jeremy,
On 9/13/2021 11:52 AM, Jeremy Kerr wrote:
Hi LKPers,
> FYI, we noticed the following commit (built with gcc-9):
[snip]
> To reproduce:
>
> # build kernel
> cd linux
> cp config-5.14.0-rc2-00609-g831119f88781 .config
> make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare
> modules_prepare bzImage
>
> git clone
https://github.com/intel/lkp-tests.git
> cd lkp-tests
> bin/lkp qemu -k <bzImage> job-script # job-script is attached
> in this email
This gives me:
[jk@pecola lkp-tests]$ bin/lkp qemu -o results -k bzImage job-script
11 blocks
downloading initrds ...
/usr/bin/wget -q --timeout=1800 --tries=1 --local-encoding=UTF-8
https://download.01.org/0day-ci/lkp-qemu/osimage/debian/debian-10.4-x86_6... -N
-P /home/jk/.lkp/cache/osimage/debian
440459 blocks
/usr/bin/wget -q --timeout=1800 --tries=1 --local-encoding=UTF-8
https://download.01.org/0day-ci/lkp-qemu/osimage/deps/debian-10.4-x86_64-...
-N -P /home/jk/.lkp/cache/osimage/deps/debian-10.4-x86_64-20200603.cgz
1773 blocks
/usr/bin/wget -q --timeout=1800 --tries=1 --local-encoding=UTF-8
https://download.01.org/0day-ci/lkp-qemu/osimage/deps/debian-10.4-x86_64-...
-N -P /home/jk/.lkp/cache/osimage/deps/debian-10.4-x86_64-20200603.cgz
2321 blocks
/usr/bin/wget -q --timeout=1800 --tries=1 --local-encoding=UTF-8
https://download.01.org/0day-ci/lkp-qemu/osimage/deps/debian-10.4-x86_64-...
-N -P /home/jk/.lkp/cache/osimage/deps/debian-10.4-x86_64-20200603.cgz
6856 blocks
/usr/bin/wget -q --timeout=1800 --tries=1 --local-encoding=UTF-8
https://download.01.org/0day-ci/lkp-qemu/osimage/pkg/debian-10.4-x86_64-2...
-N -P /home/jk/.lkp/cache/osimage/pkg/debian-10.4-x86_64-20200603.cgz
Failed to download
osimage/pkg/debian-10.4-x86_64-20200603.cgz/trinity-x86_64-b1a0aef9-1_20210908.cg >
I'm seeing a 404 on that URL: there's no
trinity-x86_64-b1a0aef9-1_20210908.cgz in the
osimage/pkg/debian-<version>/ directory there, only a 20210905 one.
Sorry, this is because latest trinity package is not uploaded to website yet.
Please kindly edit the job-script and change trinity package to 20210905 at 'export
bm_initrd=...' line.
If I modify the job-script to use that 20210905 payload instead to
get
things working, it looks like no tests are run, as we're missing some
lkp init infrastructure too:
Starting LKP bootstrap...
[ 239.132159] rc.local[723]: /etc/init.d/lkp-bootstrap: 75:
/etc/init.d/lkp-bootstrap: /lkp/root/src/bin/lkp-setup-rootfs: not found
is there something on the host-side that I've missed?
We can successfully run the test following reproduce steps in the mail, seems no extra
steps are needed on the host.
Below is a brief log:
Starting Permit User Sessions...
Starting OpenBSD Secure Shell server...
Starting /etc/rc.local Compatibility...
Starting LKP bootstrap...
[FAILED] Failed to start LSB: OpenIPMI Driver init script. <--- this fail doesn't
matter
See 'systemctl status openipmi.service' for details.
[ OK ] Started Permit User Sessions.
[ 216.378128] rc.local[726]:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/lkp/root/src/bin
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ 216.422868] rc.local[726]: export VM_VIRTFS=1 due to result service 9p/virtfs_mount
LKP: HOSTNAME vm-snb-237, MAC 42:55:24:2a:81:15, kernel 5.14.0-rc2-00609-g831119f88781 1,
serial console /dev/ttyS0
[ 216.760299][ T738] _warn_unseeded_randomness: 603 callbacks suppressed
[ 216.760307][ T738] random: get_random_u64 called from dup_task_struct+0x1b3/0x540 with
crng_init=1
[ 216.850417][ T765] random: get_random_u64 called from arch_rnd+0x3c/0x80 with
crng_init=1
[ 216.850440][ T765] random: get_random_u64 called from randomize_stack_top+0x5c/0xc0
with crng_init=1
[ 217.774439][ T738] _warn_unseeded_randomness: 155 callbacks suppressed
[ 217.774448][ T738] random: get_random_u64 called from dup_task_struct+0x1b3/0x540 with
crng_init=1
[ 217.780597][ T794] random: get_random_u64 called from arch_rnd+0x3c/0x80 with
crng_init=1
[ 217.780620][ T794] random: get_random_u64 called from randomize_stack_top+0x5c/0xc0
with crng_init=1
[ 218.776862][ T820] _warn_unseeded_randomness: 180 callbacks suppressed
[ 218.776870][ T820] random: get_random_u64 called from arch_rnd+0x3c/0x80 with
crng_init=1
[ 218.776887][ T820] random: get_random_u64 called from randomize_stack_top+0x5c/0xc0
with crng_init=1
[ 218.776943][ T820] random: get_random_u64 called from arch_rnd+0x3c/0x80 with
crng_init=1
[ 219.083660][ C0] random: crng init done
[ 219.089610][ C0] random: 49 get_random_xx warning(s) missed due to ratelimiting
[ 219.095610][ C0] random: 7 urandom warning(s) missed due to ratelimiting
[ 219.186829][ T725]
[ 219.191898][ T725] =============================
[ 219.197231][ T725] WARNING: suspicious RCU usage
[ 219.202465][ T725] 5.14.0-rc2-00609-g831119f88781 #1 Not tainted
[ 219.207757][ T725] -----------------------------
[ 219.213151][ T725] security/smack/smack_lsm.c:2358 RCU-list traversed in non-reader
section!!
[ 219.218681][ T725]
[ 219.218681][ T725] other info that might help us debug this:
[ 219.218681][ T725]
[ 219.233431][ T725]
[ 219.233431][ T725] rcu_scheduler_active = 2, debug_locks = 1
[ 219.243147][ T725] no locks held by sshd/725.
[ 219.248059][ T725]
[ 219.248059][ T725] stack backtrace:
[ 219.257521][ T725] CPU: 0 PID: 725 Comm: sshd Not tainted
5.14.0-rc2-00609-g831119f88781 #1 d8798897a8ecdebd81bae013182e40e47651cdde
[ 219.267715][ T725] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.14.0-2 04/01/2014
[ 219.273243][ T725] Call Trace:
[ 219.278254][ T725] dump_stack_lvl+0xf9/0x169
[ 219.283277][ T725] smack_ipv6host_label+0x1ae/0x1c0
[ 219.288302][ T725] smack_socket_connect+0xf4/0x140
[ 219.293293][ T725] security_socket_connect+0x3c/0x80
[ 219.298186][ T725] __sys_connect_file+0x67/0xc0
[ 219.303009][ T725] __sys_connect+0xd2/0x100
[ 219.307700][ T725] ? tracer_hardirqs_on+0x33/0x340
[ 219.312414][ T725] ? syscall_enter_from_user_mode+0x83/0x100
[ 219.317184][ T725] ? syscall_enter_from_user_mode+0x8a/0x100
[ 219.321807][ T725] ? lockdep_hardirqs_on+0x77/0x100
[ 219.326295][ T725] ? syscall_enter_from_user_mode+0x8a/0x100
[ 219.330916][ T725] __x64_sys_connect+0x1f/0x40
[ 219.336457][ T725] do_syscall_64+0x5d/0xc0
[ 219.341929][ T725] ? syscall_exit_to_user_mode+0x48/0x80
[ 219.347402][ T725] ? syscall_exit_to_user_mode+0x48/0x80
[ 219.351673][ T725] ? __sanitizer_cov_trace_pc+0x1d/0x80
[ 219.355889][ T725] ? trace_hardirqs_on_prepare+0x7b/0x3c0
[ 219.360151][ T725] ? lockdep_hardirqs_on+0x77/0x100
[ 219.364226][ T725] ? do_syscall_64+0x6b/0xc0
[ 219.368176][ T725] ? asm_exc_page_fault+0x8/0x30
[ 219.372115][ T725] ? __sanitizer_cov_trace_pc+0x1d/0x80
[ 219.376176][ T725] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 219.380198][ T725] RIP: 0033:0x7fc2f95f84d4
Here we give detailed reproduce steps for your reference:
(Ubuntu 20.04 environment)
# build kernel
cd linux
git checkout 831119f8878173adbf31f1151adf0f4627c05e01
cp <config-5.14.0-rc2-00609-g831119f88781> .config # config file is attached in
this mail
make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage
...
Kernel: arch/x86/boot/bzImage is ready
# run test
sudo apt install qemu-system-x86
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
# job-script is attached in this mail, and we have modified the trinity package date.
sudo ./bin/lkp qemu -o result -k <path/to/bzImage> job-script
If come across any further issues of reproducing, please kindly drop us a mail.
Regards,
Yujie