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-next>] [day] [month] [year] [list]
Message-ID: <20150306055758.GA28187@wfg-t540p.sh.intel.com>
Date:	Fri, 6 Mar 2015 13:57:58 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Vladimir Davydov <vdavydov@...allels.com>
Cc:	fengguang.wu@...el.com, Tejun Heo <tj@...nel.org>,
	LKP <lkp@...org>, cgroups@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [cgroup] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1439
 warn_pre_alternatives()

Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git revert-295458e67284f57d154ec8156a22797c0cfb044a-295458e67284f57d154ec8156a22797c0cfb044a

commit 295458e67284f57d154ec8156a22797c0cfb044a
Author:     Vladimir Davydov <vdavydov@...allels.com>
AuthorDate: Thu Feb 19 17:34:46 2015 +0300
Commit:     Tejun Heo <tj@...nel.org>
CommitDate: Mon Mar 2 12:11:01 2015 -0500

    cgroup: call cgroup_subsys->bind on cgroup subsys initialization
    
    Currently, we call cgroup_subsys->bind only on unmount, remount, and
    when creating a new root on mount. Since the default hierarchy root is
    created in cgroup_init, we will not call cgroup_subsys->bind if the
    default hierarchy is freshly mounted. As a result, some controllers will
    behave incorrectly (most notably, the "memory" controller will not
    enable hierarchy support). Fix this by calling cgroup_subsys->bind right
    after initializing a cgroup subsystem.
    
    Signed-off-by: Vladimir Davydov <vdavydov@...allels.com>
    Signed-off-by: Tejun Heo <tj@...nel.org>

+------------------------------------------------------------------+------------+------------+------------+
|                                                                  | 283cb41f42 | 295458e672 | 65cf2c9599 |
+------------------------------------------------------------------+------------+------------+------------+
| boot_successes                                                   | 60         | 0          | 0          |
| boot_failures                                                    | 0          | 20         | 12         |
| WARNING:at_arch/x86/kernel/cpu/common.c:#warn_pre_alternatives() | 0          | 20         | 12         |
| BUG:unable_to_handle_kernel                                      | 0          | 20         | 12         |
| Oops                                                             | 0          | 20         | 12         |
| RIP:cpumask_copy                                                 | 0          | 20         | 12         |
| Kernel_panic-not_syncing:Fatal_exception                         | 0          | 20         | 12         |
| backtrace:async_page_fault                                       | 0          | 20         | 12         |
| backtrace:cgroup_init                                            | 0          | 20         | 12         |
+------------------------------------------------------------------+------------+------------+------------+

[    0.020009] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.021989] ------------[ cut here ]------------
[    0.021989] ------------[ cut here ]------------
[    0.022816] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1439 warn_pre_alternatives+0x25/0x2e()
[    0.022816] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1439 warn_pre_alternatives+0x25/0x2e()
[    0.024000] You're using static_cpu_has before alternatives have run!
[    0.024000] You're using static_cpu_has before alternatives have run!
[    0.024000] Modules linked in:
[    0.024000] Modules linked in:

[    0.024000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.0.0-rc1-00004-g295458e #455
[    0.024000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.0.0-rc1-00004-g295458e #455
[    0.024000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[    0.024000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[    0.024000]  0000000000000009
[    0.024000]  0000000000000009 ffffffff81e03cc8 ffffffff81e03cc8 ffffffff81674d02 ffffffff81674d02 ffffffff810ca88e ffffffff810ca88e

[    0.024000]  ffffffff81e03d18
[    0.024000]  ffffffff81e03d18 ffffffff81e03d08 ffffffff81e03d08 ffffffff81073d6f ffffffff81073d6f 0000000000000000 0000000000000000

[    0.024000]  ffffffff81018f79
[    0.024000]  ffffffff81018f79 ffffffff81e03e38 ffffffff81e03e38 0000000000000000 0000000000000000 0000000000000002 0000000000000002

[    0.024000] Call Trace:
[    0.024000] Call Trace:
[    0.024000]  [<ffffffff81674d02>] dump_stack+0xa0/0xd5
[    0.024000]  [<ffffffff81674d02>] dump_stack+0xa0/0xd5
[    0.024000]  [<ffffffff810ca88e>] ? console_unlock+0x496/0x4ef
[    0.024000]  [<ffffffff810ca88e>] ? console_unlock+0x496/0x4ef
[    0.024000]  [<ffffffff81073d6f>] warn_slowpath_common+0xc8/0xf7
[    0.024000]  [<ffffffff81073d6f>] warn_slowpath_common+0xc8/0xf7
[    0.024000]  [<ffffffff81018f79>] ? warn_pre_alternatives+0x25/0x2e
[    0.024000]  [<ffffffff81018f79>] ? warn_pre_alternatives+0x25/0x2e
[    0.024000]  [<ffffffff81073e6a>] warn_slowpath_fmt+0x4f/0x58
[    0.024000]  [<ffffffff81073e6a>] warn_slowpath_fmt+0x4f/0x58
[    0.024000]  [<ffffffff81680f47>] ? native_iret+0x7/0x7
[    0.024000]  [<ffffffff81680f47>] ? native_iret+0x7/0x7
[    0.024000]  [<ffffffff81018f79>] warn_pre_alternatives+0x25/0x2e
[    0.024000]  [<ffffffff81018f79>] warn_pre_alternatives+0x25/0x2e
[    0.024000]  [<ffffffff81039306>] __do_page_fault+0x2b4/0x7c2
[    0.024000]  [<ffffffff81039306>] __do_page_fault+0x2b4/0x7c2
[    0.024000]  [<ffffffff81039852>] do_page_fault+0x3e/0x4a
[    0.024000]  [<ffffffff81039852>] do_page_fault+0x3e/0x4a
[    0.024000]  [<ffffffff81034109>] do_async_page_fault+0x3a/0xb9
[    0.024000]  [<ffffffff81034109>] do_async_page_fault+0x3a/0xb9
[    0.024000]  [<ffffffff81681a28>] async_page_fault+0x28/0x30
[    0.024000]  [<ffffffff81681a28>] async_page_fault+0x28/0x30
[    0.024000]  [<ffffffff8110d870>] ? cpumask_copy+0x2c/0x2f
[    0.024000]  [<ffffffff8110d870>] ? cpumask_copy+0x2c/0x2f
[    0.024000]  [<ffffffff8110e174>] ? cpuset_bind+0x5b/0xc4
[    0.024000]  [<ffffffff8110e174>] ? cpuset_bind+0x5b/0xc4
[    0.024000]  [<ffffffff8234d780>] cgroup_init+0x2fa/0x3d3
[    0.024000]  [<ffffffff8234d780>] cgroup_init+0x2fa/0x3d3
[    0.024000]  [<ffffffff8232f5fe>] start_kernel+0x6ed/0x755
[    0.024000]  [<ffffffff8232f5fe>] start_kernel+0x6ed/0x755
[    0.024000]  [<ffffffff8232e120>] ? early_idt_handlers+0x120/0x120
[    0.024000]  [<ffffffff8232e120>] ? early_idt_handlers+0x120/0x120
[    0.024000]  [<ffffffff8232e585>] x86_64_start_reservations+0x46/0x4f
[    0.024000]  [<ffffffff8232e585>] x86_64_start_reservations+0x46/0x4f
[    0.024000]  [<ffffffff8232e73e>] x86_64_start_kernel+0x1b0/0x1c6
[    0.024000]  [<ffffffff8232e73e>] x86_64_start_kernel+0x1b0/0x1c6
[    0.024000] ---[ end trace 37d9a871c47a31bc ]---
[    0.024000] ---[ end trace 37d9a871c47a31bc ]---

git bisect start 65cf2c95998c3b0dc56fbc5a8d755516f46344c8 c517d838eb7d07bbe9507871fab3931deccff539 --
git bisect  bad 5c5d421c7911237ed09ec2d9026bff2e6b8c72d7  # 02:55      0-     20  Merge 'cgroup/for-4.1' into devel-snb-smoke-201503030223
git bisect good a8665ef94d4af88f49bf4c6a069862bfdf516ddd  # 03:19     20+      0  Merge 'slave-dma/fixes' into devel-snb-smoke-201503030223
git bisect good 917a4e19e45993f1c8edf7150b24e1aab006a005  # 03:39     20+      0  Merge 'slave-dma/for-linus' into devel-snb-smoke-201503030223
git bisect good 4666fafd7daeb18477d01a6692b78446060aaf92  # 03:45     20+      0  Merge 'slave-dma/next' into devel-snb-smoke-201503030223
git bisect good 79063bffc81f82689bd90e16da1b49408f3bf095  # 03:55     20+      0  cpuset: fix a warning when clearing configured masks in old hierarchy
git bisect  bad 295458e67284f57d154ec8156a22797c0cfb044a  # 04:12      0-     20  cgroup: call cgroup_subsys->bind on cgroup subsys initialization
git bisect good 283cb41f426b723a0255702b761b0fc5d1b53a81  # 04:27     20+      0  cpuset: Fix cpuset sched_relax_domain_level
# first bad commit: [295458e67284f57d154ec8156a22797c0cfb044a] cgroup: call cgroup_subsys->bind on cgroup subsys initialization
git bisect good 283cb41f426b723a0255702b761b0fc5d1b53a81  # 04:32     60+      0  cpuset: Fix cpuset sched_relax_domain_level
# extra tests with DEBUG_INFO
git bisect good 295458e67284f57d154ec8156a22797c0cfb044a  # 04:49     60+      0  cgroup: call cgroup_subsys->bind on cgroup subsys initialization
# extra tests on HEAD of linux-devel/devel-snb-smoke-201503030223
git bisect  bad 65cf2c95998c3b0dc56fbc5a8d755516f46344c8  # 04:49      0-     12  0day head guard for 'devel-snb-smoke-201503030223'
# extra tests on tree/branch cgroup/for-next
git bisect  bad 295458e67284f57d154ec8156a22797c0cfb044a  # 04:51      0-     20  cgroup: call cgroup_subsys->bind on cgroup subsys initialization
# extra tests with first bad commit reverted
# extra tests on tree/branch linus/master
git bisect good a38ecbbd0be025a6ecbbfd22d2575a5b46317117  # 05:18     60+      0  Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# extra tests on tree/branch next/master
git bisect good 8bcbe02ae769f1753eb19d57897d71c731d57772  # 05:20     60+      0  Add linux-next specific files for 20150302


This script may reproduce the error.

----------------------------------------------------------------------------
#!/bin/bash

kernel=$1

kvm=(
	qemu-system-x86_64
	-cpu kvm64
	-enable-kvm
	-kernel $kernel
	-m 320
	-smp 1
	-net nic,vlan=1,model=e1000
	-net user,vlan=1
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null 
)

append=(
	hung_task_panic=1
	earlyprintk=ttyS0,115200
	rd.udev.log-priority=err
	systemd.log_target=journal
	systemd.log_level=warning
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	panic=-1
	softlockup_panic=1
	nmi_watchdog=panic
	oops=panic
	load_ramdisk=2
	prompt_ramdisk=0
	console=ttyS0,115200
	console=tty0
	vga=normal
	root=/dev/ram0
	rw
	drbd.minor_count=8
)

"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------

Thanks,
Fengguang

View attachment "dmesg-yocto-client6-17:20150303041128:x86_64-randconfig-s0-03021957:4.0.0-rc1-00004-g295458e:455" of type "text/plain" (48133 bytes)

View attachment "config-4.0.0-rc1-00004-g295458e" of type "text/plain" (80039 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ