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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150106230611.GA19001@wfg-t540p.sh.intel.com>
Date:	Tue, 6 Jan 2015 15:06:11 -0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Yao Dongdong <yaodongdong@...wei.com>
Cc:	Peter Zijlstra <peterz@...radead.org>, LKP <lkp@...org>,
	linux-kernel@...r.kernel.org
Subject: [sched/core] WARNING: CPU: 0 PID: 0 at
 arch/x86/kernel/cpu/common.c:1431 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/peterz/queue.git sched/core

commit bb82635917a34bfb73b837b2ce34f59e08b3930b
Author:     Yao Dongdong <yaodongdong@...wei.com>
AuthorDate: Mon Dec 29 14:41:43 2014 +0800
Commit:     Peter Zijlstra <peterz@...radead.org>
CommitDate: Tue Jan 6 13:53:08 2015 +0100

    sched/core: remove check of p->sched_class
    
    Search all usage of p->sched_class in sched/core.c, no one check it
    before use, so it seems that every task must belong to one sched_class.
    
    Cc: <mingo@...hat.com>
    Cc: <peterz@...radead.org>
    Signed-off-by: Yao Dongdong <yaodongdong@...wei.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
    Link: http://lkml.kernel.org/r/1419835303-28958-1-git-send-email-yaodongdong@huawei.com

+------------------------------------------------------------------+------------+------------+------------+
|                                                                  | 8f121c2c3f | bb82635917 | 13cbadbc55 |
+------------------------------------------------------------------+------------+------------+------------+
| 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:do_set_cpus_allowed                                          | 0          | 20         | 12         |
| Kernel_panic-not_syncing:Fatal_exception                         | 0          | 20         | 12         |
| backtrace:async_page_fault                                       | 0          | 20         | 12         |
| backtrace:init_idle                                              | 0          | 20         | 12         |
| backtrace:sched_init                                             | 0          | 20         | 12         |
+------------------------------------------------------------------+------------+------------+------------+

[    0.000000] Memory: 261516K/327160K available (4837K kernel code, 1692K rwdata, 2680K rodata, 2800K init, 15584K bss, 65644K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1431 warn_pre_alternatives+0x1e/0x20()
[    0.000000] You're using static_cpu_has before alternatives have run!
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.19.0-rc2-gbb82635 #20
[    0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[    0.000000]  0000000000000009 ffffffff81a03bc8 ffffffff814ada0f ffffffff81a12580
[    0.000000]  ffffffff81a03c18 ffffffff81a03c08 ffffffff81090381 ffffffff81601ac0
[    0.000000]  ffffffff81010178 ffffffff81a03e08 0000000000000068 0000000000000000
[    0.000000] Call Trace:
[    0.000000]  [<ffffffff814ada0f>] dump_stack+0x4c/0x6e
[    0.000000]  [<ffffffff81090381>] warn_slowpath_common+0x97/0xb1
[    0.000000]  [<ffffffff81010178>] ? warn_pre_alternatives+0x1e/0x20
[    0.000000]  [<ffffffff810903dc>] warn_slowpath_fmt+0x41/0x43
[    0.000000]  [<ffffffff814b6307>] ? native_iret+0x7/0x7
[    0.000000]  [<ffffffff81010178>] warn_pre_alternatives+0x1e/0x20
[    0.000000]  [<ffffffff810314b4>] __do_page_fault+0x13f/0x51c
[    0.000000]  [<ffffffff8100e86d>] ? save_stack_trace+0x27/0x43
[    0.000000]  [<ffffffff810c3712>] ? save_trace+0x3c/0x9d
[    0.000000]  [<ffffffff810c5b6b>] ? mark_lock+0x49e/0x5aa
[    0.000000]  [<ffffffff810b4f57>] ? sched_clock_cpu+0x12/0xbc
[    0.000000]  [<ffffffff810c7f03>] ? __lock_acquire+0x820/0x1bf2
[    0.000000]  [<ffffffff810318c7>] do_page_fault+0x36/0x64
[    0.000000]  [<ffffffff8102c716>] do_async_page_fault+0x2d/0x97
[    0.000000]  [<ffffffff814b6e18>] async_page_fault+0x28/0x30
[    0.000000]  [<ffffffff810b2082>] ? do_set_cpus_allowed+0x11/0x56
[    0.000000]  [<ffffffff8102ca9f>] ? kvm_clock_read+0x25/0x37
[    0.000000]  [<ffffffff810b26f5>] init_idle+0x72/0x1b7
[    0.000000]  [<ffffffff81d93a48>] sched_init+0x319/0x389
[    0.000000]  [<ffffffff81d7cce4>] start_kernel+0x238/0x433
[    0.000000]  [<ffffffff81d7c120>] ? early_idt_handlers+0x120/0x120
[    0.000000]  [<ffffffff81d7c4a2>] x86_64_start_reservations+0x2a/0x2c
[    0.000000]  [<ffffffff81d7c597>] x86_64_start_kernel+0xf3/0x102
[    0.000000] ---[ end trace 16da607dead22108 ]---
[    0.000000] BUG: unable to handle kernel NULL pointer dereference at 0000000000000068

git bisect start 13cbadbc55d04c7f902c2ee5b0560696dadb7ccf b1940cd21c0f4abdce101253e860feff547291b0 --
git bisect  bad bd916ec18e4be73b1e1874704eb017a35022186e  # 23:08      0-     20  Merge 'amirv/for-upstream' into devel-athens-smoke-201501062225
git bisect  bad 5bab749367f003a08ab1a9ab60710eaef00f145c  # 23:15      0-     10  Merge 'peterz-queue/sched/core' into devel-athens-smoke-201501062225
git bisect good 54e2ef65748fffd6aaff6b7712e32ba6328f1d1f  # 23:26     20+      0  Merge 'peterz-queue/locking/urgent' into devel-athens-smoke-201501062225
git bisect good 604da8d78c39cb3ddeb0b7e93a9ee7d551f0760f  # 23:34     20+      0  Merge 'peterz-queue/perf/core' into devel-athens-smoke-201501062225
git bisect good e29bf0e70103ff7e7c50a0ed204c0424825cbc11  # 23:41     20+      0  Merge 'peterz-queue/perf/urgent' into devel-athens-smoke-201501062225
git bisect good bc55ee242867b7fe61d64af0ff2beddc0c9f6f00  # 23:47     20+      0  sched: Fix potential call to __ffs(0) in sched_show_task()
git bisect  bad bb82635917a34bfb73b837b2ce34f59e08b3930b  # 23:49      0-     20  sched/core: remove check of p->sched_class
git bisect good 8f121c2c3fff740ecb97ab1ff1a8aff8a8104989  # 23:52     20+      0  sched/fair: Fix sched_entity::avg::decay_count initialization
# first bad commit: [bb82635917a34bfb73b837b2ce34f59e08b3930b] sched/core: remove check of p->sched_class
git bisect good 8f121c2c3fff740ecb97ab1ff1a8aff8a8104989  # 23:54     60+      0  sched/fair: Fix sched_entity::avg::decay_count initialization
# extra tests with DEBUG_INFO
git bisect  bad bb82635917a34bfb73b837b2ce34f59e08b3930b  # 23:59      0-     60  sched/core: remove check of p->sched_class
# extra tests on HEAD of linux-devel/devel-athens-smoke-201501062225
git bisect  bad 13cbadbc55d04c7f902c2ee5b0560696dadb7ccf  # 23:59      0-     12  0day head guard for 'devel-athens-smoke-201501062225'
# extra tests on tree/branch peterz-queue/sched/core
git bisect  bad bb82635917a34bfb73b837b2ce34f59e08b3930b  # 23:59      0-     20  sched/core: remove check of p->sched_class
# extra tests on tree/branch linus/master
git bisect good b1940cd21c0f4abdce101253e860feff547291b0  # 00:01     60+      0  Linux 3.19-rc3
# extra tests on tree/branch next/master
git bisect good dc0bee272d5803ff1a0f7cf71748cec66fd9cf58  # 00:09     60+      0  Add linux-next specific files for 20150106


This script may reproduce the error.

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

kernel=$1

kvm=(
	qemu-system-x86_64
	-cpu kvm64
	-enable-kvm
	-kernel $kernel
	-m 320
	-smp 2
	-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
	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-quantal-ivb41-87:20150106234803:x86_64-randconfig-a0-01031533:3.19.0-rc2-gbb82635:20" of type "text/plain" (16431 bytes)

View attachment "config-3.19.0-rc2-gbb82635" of type "text/plain" (86011 bytes)

_______________________________________________
LKP mailing list
LKP@...ux.intel.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ