Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: b4ad8182a9a6cadba67b7441e9294486b43df30e ("random32: add noise from network
and scheduling activity")
https://git.kernel.org/cgit/linux/kernel/git/wtarreau/prandom.git 20200901-siphash-noise
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 8G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+----------------------------------------------------------+------------+------------+
| | f6be36dddf | b4ad8182a9 |
+----------------------------------------------------------+------------+------------+
| boot_successes | 6 | 0 |
| boot_failures | 0 | 7 |
| BUG:using__this_cpu_read()in_preemptible[#]code:swapper | 0 | 7 |
| BUG:using__this_cpu_write()in_preemptible[#]code:swapper | 0 | 7 |
+----------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp(a)intel.com>
[ 9.056198] BUG: using __this_cpu_read() in preemptible [00000000] code: swapper/0/1
[ 9.057934] caller is __this_cpu_preempt_check+0xf/0x11
[ 9.058992] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.9.0-rc3-00002-gb4ad8182a9a6ca
#1
[ 9.060712] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1
04/01/2014
[ 9.061912] Call Trace:
[ 9.061912] dump_stack+0x54/0x6e
[ 9.061912] check_preemption_disabled+0xb1/0xc0
[ 9.061912] __this_cpu_preempt_check+0xf/0x11
[ 9.065516] __igt_reserve+0x91/0x580
[ 9.065516] igt_reserve+0x5b/0xc0
[ 9.065516] test_drm_mm_init+0x78/0xa9
[ 9.065516] ? drm_kms_helper_init+0xa/0xa
[ 9.065516] do_one_initcall+0x34/0x12f
[ 9.069409] ? parse_args+0xf0/0x280
[ 9.069409] ? do_initcalls+0x7c/0xc4
[ 9.069409] do_initcalls+0xa1/0xc4
[ 9.069409] kernel_init_freeable+0x88/0xb2
[ 9.069409] ? rest_init+0xfd/0xfd
[ 9.073368] kernel_init+0x8/0xe3
[ 9.073368] ret_from_fork+0x19/0x24
To reproduce:
# build kernel
cd linux
cp config-5.9.0-rc3-00002-gb4ad8182a9a6ca .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 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
Thanks,
lkp