Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: 63a3c2fa9545cff5419ff2ec2458cbb41d838d97 ("serial: 8250: implement write_atomic")
https://git.kernel.org/cgit/linux/kernel/git/rt/linux-rt-devel.git linux-5.18.y-rt-rebase
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>
[ 10.820244][ T1] ------------[ cut here ]------------
[ 10.820274][ T1] raw_local_irq_restore() called with IRQs enabled
[ 10.820321][ T1] WARNING: CPU: 0 PID: 1 at kernel/locking/irqflag-debug.c:10 warn_bogus_irq_restore+0x24/0x30
[ 10.820344][ T1] Modules linked in:
[ 10.820349][ T1] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 5.18.0-rc4-00017-g63a3c2fa9545 #3
[ 10.820353][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 10.820358][ T1] EIP: warn_bogus_irq_restore+0x24/0x30
[ 10.820362][ T1] Code: cc cc cc cc cc cc 80 3d 48 7d d8 d9 00 74 07 31 c0 c3 8d 74 26 00 55 c6 05 48 7d d8 d9 01 89 e5 68 dc 99 80 d9 e8 d0 bc f7 ff <0f> 0b 58 89 ec 5d 31 c0 c3 cc cc cc 55 83 fa 07 89 e5 53 89 d3 0f
[ 10.820365][ T1] EAX: 00000000 EBX: da747b20 ECX: 00000000 EDX: 00000000
[ 10.820371][ T1] ESI: 00000200 EDI: 00000004 EBP: c10b9ea4 ESP: c10b9ea0
[ 10.820373][ T1] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010246
[ 10.820376][ T1] CR0: 80050033 CR2: ff99a000 CR3: 19fe2000 CR4: 000406d0
[ 10.820380][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 10.820382][ T1] DR6: fffe0ff0 DR7: 00000400
[ 10.820384][ T1] Call Trace:
[ 10.820387][ T1] autoconfig_irq+0x365/0x370
[ 10.820394][ T1] serial8250_config_port+0xdf/0x150
[ 10.820398][ T1] uart_add_one_port+0x1d5/0x360
[ 10.820401][ T1] serial8250_init+0x16a/0x1e5
[ 10.820406][ T1] ? univ8250_console_init+0x55/0x55
[ 10.820410][ T1] do_one_initcall+0x54/0x2b0
[ 10.820413][ T1] ? rdinit_setup+0x71/0x71
[ 10.820418][ T1] do_initcalls+0x13f/0x186
[ 10.820421][ T1] kernel_init_freeable+0xff/0x150
[ 10.820424][ T1] ? rest_init+0x270/0x270
[ 10.820428][ T1] kernel_init+0x12/0xf0
[ 10.820443][ T1] ret_from_fork+0x19/0x30
[ 10.820447][ T1] irq event stamp: 244031
[ 10.820449][ T1] hardirqs last enabled at (244037): [<d8ae2f4a>] console_trylock_spinning+0x19a/0x1d0
[ 10.820455][ T1] hardirqs last disabled at (244042): [<d8ae2f05>] console_trylock_spinning+0x155/0x1d0
[ 10.820459][ T1] softirqs last enabled at (243574): [<d94e8561>] __do_softirq+0x281/0x448
[ 10.820466][ T1] softirqs last disabled at (243563): [<d8a261fd>] do_softirq_own_stack+0x1d/0x30
[ 10.820473][ T1] ---[ end trace 0000000000000000 ]---
To reproduce:
# build kernel
cd linux
cp config-5.18.0-rc4-00017-g63a3c2fa9545 .config
make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 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