[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220412100340.GB2642@xsang-OptiPlex-9020>
Date: Tue, 12 Apr 2022 18:03:40 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Ingo Molnar <mingo@...nel.org>, lkp@...ts.01.org, lkp@...el.com,
LKML <linux-kernel@...r.kernel.org>, aubrey.li@...ux.intel.com,
yu.c.chen@...el.com
Subject: [freezer,sched] d97bfb5c8b:
WARNING:at_kernel/kthread.c:#__kthread_bind_mask
Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: d97bfb5c8b833363ad581ccd1c242d1f3641ff2f ("freezer,sched: Rewrite core freezer logic")
https://git.kernel.org/cgit/linux/kernel/git/peterz/queue.git sched/wip.freezer
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):
please be noted we found the issue not always happen, but rate is high.
also see some other random issues. parent keeps clean
f088bb97d58692c1 d97bfb5c8b833363ad581ccd1c2
---------------- ---------------------------
fail:runs %reproduction fail:runs
| | |
:56 75% 42:56 dmesg.RIP:__kthread_bind_mask
:56 9% 5:56 dmesg.RIP:kthread_set_per_cpu
:56 7% 4:56 dmesg.RIP:process_one_work
:56 75% 42:56 dmesg.WARNING:at_kernel/kthread.c:#__kthread_bind_mask
:56 9% 5:56 dmesg.WARNING:at_kernel/kthread.c:#kthread_set_per_cpu
:56 7% 4:56 dmesg.WARNING:at_kernel/workqueue.c:#process_one_work
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>
[ 0.789910][ T7] ------------[ cut here ]------------
[ 0.790890][ T7] WARNING: CPU: 0 PID: 7 at kernel/kthread.c:524 __kthread_bind_mask+0x1d/0x5b
[ 0.792498][ T7] Modules linked in:
[ 0.793212][ T7] CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 5.18.0-rc1-00099-gd97bfb5c8b83 #8
[ 0.794724][ T7] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 0.796386][ T7] RIP: 0010:__kthread_bind_mask+0x1d/0x5b
[ 0.798274][ T7] Code: fa ff ff 48 85 c0 74 f3 48 8b 40 60 c3 0f 1f 44 00 00 41 55 41 54 49 89 f4 89 d6 55 53 48 89 fb e8 ee cc 00 00 48 85 c0 75 09 <
0f> 0b 5b 5d 41 5c 41 5d c3 4c 8d ab 64 07 00 00 4c 89 ef e8 9a 7f
[ 0.801415][ T7] RSP: 0000:ffffc90000043e88 EFLAGS: 00010246
[ 0.802477][ T7] RAX: 0000000000000000 RBX: ffff88810d180f40 RCX: 0000000000000000
[ 0.803828][ T7] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88810d180f40
[ 0.805228][ T7] RBP: ffff88810c87c000 R08: 000000000000000c R09: 00000000313a3475
[ 0.806664][ T7] R10: ffff88810d1aba80 R11: fefefefefefefeff R12: ffff88810c878428
[ 0.808022][ T7] R13: 0000000000000001 R14: ffff88810c87c2c0 R15: ffffc90000013de0
[ 0.809407][ T7] FS: 0000000000000000(0000) GS:ffff88842fc00000(0000) knlGS:0000000000000000
[ 0.810932][ T7] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.812011][ T7] CR2: ffff88843ffff000 CR3: 0000000002612000 CR4: 00000000000406f0
[ 0.815679][ T7] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 0.817106][ T7] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 0.818444][ T7] Call Trace:
[ 0.819064][ T7] <TASK>
[ 0.819628][ T7] create_worker+0x108/0x179
[ 0.820459][ T7] worker_thread+0xdb/0x230
[ 0.821240][ T7] ? rescuer_thread+0x29b/0x29b
[ 0.822091][ T7] kthread+0xd2/0xda
[ 0.822839][ T7] ? kthread_complete_and_exit+0x1b/0x1b
[ 0.823849][ T7] ret_from_fork+0x22/0x30
[ 0.824639][ T7] </TASK>
[ 0.825231][ T7] ---[ end trace 0000000000000000 ]---
To reproduce:
# build kernel
cd linux
cp config-5.18.0-rc1-00099-gd97bfb5c8b83 .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.18.0-rc1-00099-gd97bfb5c8b83" of type "text/plain" (123171 bytes)
View attachment "job-script" of type "text/plain" (4516 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (12580 bytes)
Powered by blists - more mailing lists