lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 26 Jan 2021 15:19:58 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Lai Jiangshan <jiangshanlai@...il.com>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org, Valentin Schneider <valentin.schneider@....com>,
        Peter Zijlstra <peterz@...radead.org>,
        Qian Cai <cai@...hat.com>,
        Vincent Donnefort <vincent.donnefort@....com>,
        Tejun Heo <tj@...nel.org>,
        "Paul E . McKenney" <paulmck@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Lai Jiangshan <laijs@...ux.alibaba.com>,
        Lai Jiangshan <jiangshanlai@...il.com>
Subject: [workqueue]  a1438771e1:
 WARNING:at_kernel/workqueue.c:#workqueue_online_cpu


Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: a1438771e19f8ab34a08c59d5ba2251b8ab438ab ("[PATCH] workqueue: keep unbound rescuer's cpumask to be default cpumask")
url: https://github.com/0day-ci/linux/commits/Lai-Jiangshan/workqueue-keep-unbound-rescuer-s-cpumask-to-be-default-cpumask/20210116-140244
base: https://git.kernel.org/cgit/linux/kernel/git/tj/wq.git for-next

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+-----------------------------------------------------+------------+------------+
|                                                     | ac87f8ff6c | a1438771e1 |
+-----------------------------------------------------+------------+------------+
| boot_successes                                      | 4          | 0          |
| boot_failures                                       | 0          | 4          |
| WARNING:at_kernel/workqueue.c:#workqueue_online_cpu | 0          | 4          |
| RIP:workqueue_online_cpu                            | 0          | 4          |
+-----------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[    0.490413] WARNING: CPU: 1 PID: 14 at kernel/workqueue.c:5107 workqueue_online_cpu (kbuild/src/consumer/kernel/workqueue.c:5107 kbuild/src/consumer/kernel/workqueue.c:5158) 
[    0.491392] Modules linked in:
[    0.491963] CPU: 1 PID: 14 Comm: cpuhp/1 Not tainted 5.10.0-rc5-ga1438771e19f #1
[    0.493359] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    0.494372] RIP: 0010:workqueue_online_cpu (kbuild/src/consumer/kernel/workqueue.c:5107 kbuild/src/consumer/kernel/workqueue.c:5158) 
[ 0.495206] Code: ee ff ff 8b 05 89 ae 1a 02 85 c0 0f 84 57 ff ff ff be ff ff ff ff 48 c7 c7 28 a0 89 98 e8 14 87 c0 00 85 c0 0f 85 3e ff ff ff <0f> 0b e9 37 ff ff ff 48 c7 c7 60 a0 89 98 e8 99 4a c1 00 48 8b 44
All code
========
   0:	ee                   	out    %al,(%dx)
   1:	ff                   	(bad)  
   2:	ff 8b 05 89 ae 1a    	decl   0x1aae8905(%rbx)
   8:	02 85 c0 0f 84 57    	add    0x57840fc0(%rbp),%al
   e:	ff                   	(bad)  
   f:	ff                   	(bad)  
  10:	ff                   	(bad)  
  11:	be ff ff ff ff       	mov    $0xffffffff,%esi
  16:	48 c7 c7 28 a0 89 98 	mov    $0xffffffff9889a028,%rdi
  1d:	e8 14 87 c0 00       	callq  0xc08736
  22:	85 c0                	test   %eax,%eax
  24:	0f 85 3e ff ff ff    	jne    0xffffffffffffff68
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	e9 37 ff ff ff       	jmpq   0xffffffffffffff68
  31:	48 c7 c7 60 a0 89 98 	mov    $0xffffffff9889a060,%rdi
  38:	e8 99 4a c1 00       	callq  0xc14ad6
  3d:	48                   	rex.W
  3e:	8b                   	.byte 0x8b
  3f:	44                   	rex.R

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	e9 37 ff ff ff       	jmpq   0xffffffffffffff3e
   7:	48 c7 c7 60 a0 89 98 	mov    $0xffffffff9889a060,%rdi
   e:	e8 99 4a c1 00       	callq  0xc14aac
  13:	48                   	rex.W
  14:	8b                   	.byte 0x8b
  15:	44                   	rex.R
[    0.497370] RSP: 0000:ffffafe580083e08 EFLAGS: 00010246
[    0.498302] RAX: 0000000000000000 RBX: ffff8b7c40056800 RCX: 0000000000000001
[    0.499370] RDX: 0000000000000000 RSI: ffffffff9818ef6f RDI: 0000000000000246
[    0.500366] RBP: 0000000000000001 R08: 0000000000000000 R09: ffff8b7c40400000
[    0.501366] R10: 0000000000000043 R11: 0000000000000005 R12: ffff8b7d77d2d828
[    0.502361] R13: 0000000000000001 R14: 0000000000000001 R15: ffff8b7d77d2d7e0
[    0.502361] FS:  0000000000000000(0000) GS:ffff8b7d77d00000(0000) knlGS:0000000000000000
[    0.503339] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.504369] CR2: 0000000000000000 CR3: 000000011aa26000 CR4: 00000000000406e0
[    0.505363] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.506331] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.507363] Call Trace:
[    0.507924] ? workqueue_prepare_cpu (kbuild/src/consumer/kernel/workqueue.c:5137) 
[    0.508377] cpuhp_invoke_callback (kbuild/src/consumer/kernel/cpu.c:173) 
[    0.509083] cpuhp_thread_fun (kbuild/src/consumer/kernel/cpu.c:711) 
[    0.510367] ? smpboot_thread_fn (kbuild/src/consumer/arch/x86/include/asm/preempt.h:102 (discriminator 4) kbuild/src/consumer/kernel/smpboot.c:164 (discriminator 4)) 
[    0.510969] ? smpboot_thread_fn (kbuild/src/consumer/kernel/smpboot.c:113) 
[    0.511359] smpboot_thread_fn (kbuild/src/consumer/kernel/smpboot.c:165 (discriminator 3)) 
[    0.512389] ? sort_range (kbuild/src/consumer/kernel/smpboot.c:108) 
[    0.513009] kthread (kbuild/src/consumer/kernel/kthread.c:292) 
[    0.513358] ? kthread_park (kbuild/src/consumer/kernel/kthread.c:245) 
[    0.514014] ret_from_fork (kbuild/src/consumer/arch/x86/entry/entry_64.S:302) 
[    0.517423] irq event stamp: 353
[    0.518063] hardirqs last enabled at (361): console_unlock (kbuild/src/consumer/kernel/printk/printk.c:2528 (discriminator 1)) 
[    0.521397] hardirqs last disabled at (370): console_unlock (kbuild/src/consumer/kernel/printk/printk.c:2443 (discriminator 1)) 
[    0.521397] softirqs last enabled at (0): copy_process (kbuild/src/consumer/include/linux/lockdep.h:195 kbuild/src/consumer/include/linux/lockdep.h:201 kbuild/src/consumer/include/linux/seqlock.h:78 kbuild/src/consumer/kernel/fork.c:2040) 
[    0.522339] softirqs last disabled at (0): 0x0 
[    0.522407] ---[ end trace 25430c6e7bf20648 ]---
[    0.523176] ------------[ cut here ]------------


To reproduce:

        # build kernel
	cd linux
	cp config-5.10.0-rc5-ga1438771e19f .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



Thanks,
Oliver Sang


View attachment "config-5.10.0-rc5-ga1438771e19f" of type "text/plain" (210750 bytes)

View attachment "job-script" of type "text/plain" (4595 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (14496 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ