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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Thu, 24 Dec 2020 14:33:48 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Lai Jiangshan <jiangshanlai@...il.com>
Cc:     0day robot <lkp@...el.com>, Peter Zijlstra <peterz@...radead.org>,
        Tejun Heo <tj@...nel.org>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org, Valentin Schneider <valentin.schneider@....com>,
        Qian Cai <cai@...hat.com>,
        Vincent Donnefort <vincent.donnefort@....com>,
        Lai Jiangshan <laijs@...ux.alibaba.com>,
        Lai Jiangshan <jiangshanlai@...il.com>
Subject: [workqueue]  6094661b16:
 WARNING:at_kernel/sched/core.c:#__set_cpus_allowed_ptr


Greeting,

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

commit: 6094661b1679bd1d59eb620371dfbf327e9feca7 ("[PATCH -tip V2 04/10] workqueue: don't set the worker's cpumask when kthread_bind_mask()")
url: https://github.com/0day-ci/linux/commits/Lai-Jiangshan/workqueue-break-affinity-initiatively/20201219-001548
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git a409ed156a90093a03fe6a93721ddf4c591eac87

in testcase: will-it-scale
version: will-it-scale-x86_64-b695a1b-1_20201217
with following parameters:

	nr_task: 50%
	mode: process
	test: context_switch1
	cpufreq_governor: performance
	ucode: 0x2006a08

test-description: Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two.
test-url: https://github.com/antonblanchard/will-it-scale


on test machine: 104 threads Skylake with 192G memory

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 <oliver.sang@...el.com>


kern  :warn  : [    2.900184] WARNING: CPU: 26 PID: 140 at kernel/sched/core.c:2379 __set_cpus_allowed_ptr+0x1c4/0x1e0
kern  :warn  : [    2.900184] Modules linked in:
kern  :warn  : [    2.900184] CPU: 26 PID: 140 Comm: cpuhp/26 Not tainted 5.10.0-11829-g6094661b1679 #1
kern  :warn  : [    2.900184] RIP: 0010:__set_cpus_allowed_ptr+0x1c4/0x1e0
kern  :warn  : [    2.900184] Code: 74 99 8b 15 d2 d6 ad 01 48 c7 c6 a0 30 bf 82 4c 89 f7 e8 8f bd 48 00 85 c0 75 80 41 83 bc 24 c0 03 00 00 01 0f 84 71 ff ff ff <0f> 0b e9 6a ff ff ff e8 b0 5c ac 00 66 66 2e 0f 1f 84 00 00 00 00
kern  :warn  : [    2.900184] RSP: 0000:ffffc9000cebfd00 EFLAGS: 00010006
kern  :warn  : [    2.900184] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000ffffff98
kern  :warn  : [    2.900184] RDX: 00000000ffffff98 RSI: 0000000000000000 RDI: ffff889846721ed0
kern  :warn  : [    2.900184] RBP: ffffc9000cebfd40 R08: 0000000000000001 R09: 0000000000000002
kern  :warn  : [    2.900184] R10: ffff889846721ed0 R11: ffffc9010cebfcd7 R12: ffff889846730000
kern  :warn  : [    2.900184] R13: ffff8897e042b040 R14: ffff889846721ed0 R15: 000000000000001a
kern  :warn  : [    2.900184] FS:  0000000000000000(0000) GS:ffff88afbc600000(0000) knlGS:0000000000000000
kern  :warn  : [    2.900184] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kern  :warn  : [    2.900184] CR2: 0000000000000000 CR3: 000000303e20a001 CR4: 00000000007706e0
kern  :warn  : [    2.900184] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kern  :warn  : [    2.900184] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kern  :warn  : [    2.900184] PKRU: 55555554
kern  :warn  : [    2.900184] Call Trace:
kern  :warn  : [    2.900184]  worker_attach_to_pool+0x33/0xa0
kern  :warn  : [    2.900184]  create_worker+0xff/0x1a0
kern  :warn  : [    2.900184]  alloc_unbound_pwq+0x444/0x460
kern  :warn  : [    2.900184]  wq_update_unbound_numa+0x1a3/0x1e0
kern  :warn  : [    2.900184]  workqueue_online_cpu+0x1eb/0x240
kern  :warn  : [    2.900184]  ? workqueue_prepare_cpu+0x80/0x80
kern  :warn  : [    2.900184]  cpuhp_invoke_callback+0x82/0x440
kern  :warn  : [    2.900184]  ? smpboot_thread_fn+0x26/0x1e0
kern  :warn  : [    2.900184]  cpuhp_thread_fun+0xa4/0x100
kern  :warn  : [    2.900184]  smpboot_thread_fn+0x10b/0x1e0
kern  :warn  : [    2.900184]  ? sort_range+0x20/0x20
kern  :warn  : [    2.900184]  kthread+0x116/0x160
kern  :warn  : [    2.900184]  ? kthread_park+0xa0/0xa0
kern  :warn  : [    2.900184]  ret_from_fork+0x22/0x30
kern  :warn  : [    2.900184] ---[ end trace ee287c8df3029920 ]---


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp install job.yaml  # job file is attached in this email
        bin/lkp run     job.yaml



Thanks,
Oliver Sang


View attachment "config-5.10.0-11829-g6094661b1679" of type "text/plain" (172280 bytes)

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

Download attachment "kmsg.xz" of type "application/x-xz" (30200 bytes)

View attachment "will-it-scale" of type "text/plain" (202 bytes)

View attachment "job.yaml" of type "text/plain" (5130 bytes)

View attachment "reproduce" of type "text/plain" (347 bytes)

Powered by blists - more mailing lists