[rfcomm_run] WARNING: CPU: 1 PID: 79 at kernel/sched/core.c:7156 __might_sleep()
by Fengguang Wu
Hi Peter,
We possibly find a rfcomm bug (maintainers CCed) exposed by your debug patch
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wait
commit ef8f0b7b2be43e1bacd1d360376710bf9eafc449
Author: Peter Zijlstra <peterz(a)infradead.org>
AuthorDate: Mon Aug 4 11:14:16 2014 +0200
Commit: Peter Zijlstra <peterz(a)infradead.org>
CommitDate: Wed Sep 24 15:26:42 2014 +0200
sched: Debug nested sleeps
Validate we call might_sleep() with TASK_RUNNING, which catches places
where we nest blocking primitives, eg. mutex usage in a wait loop.
Since all blocking is arranged through task_struct::state, nesting
this will cause the inner primitive to set TASK_RUNNING and the outer
will thus not block.
Another observed problem is calling a blocking function from
schedule()->sched_submit_work()->blk_schedule_flush_plug() which will
then destroy the task state for the actual __schedule() call that
comes after it.
Signed-off-by: Peter Zijlstra (Intel) <peterz(a)infradead.org>
Link: http://lkml.kernel.org/n/tip-fdnodofnu7b3d371n1rhhfpt@git.kernel.org
+----------------------------------------------------+------------+------------+------------+
| | 24c2eceb88 | ef8f0b7b2b | 60e671868a |
+----------------------------------------------------+------------+------------+------------+
| boot_successes | 60 | 0 | 0 |
| boot_failures | 0 | 20 | 312 |
| WARNING:at_kernel/sched/core.c:__might_sleep() | 0 | 20 | 312 |
| BUG:kernel_boot_hang | 0 | 20 | 312 |
| backtrace:rfcomm_run | 0 | 15 | 250 |
| WARNING:CPU:PID:at_kernel/sched/core.c:__might_sle | 0 | 0 | 3 |
| WARNING:CPU:PID:at_kernel/sched/core | 0 | 0 | 1 |
| WARNING:CPU:PID:at/kbuild/src/i | 0 | 0 | 1 |
| WARNING:CPU:PID:at/kbuild | 0 | 0 | 1 |
| WARNING:CPU:PID:at_kernel/sched/core.c | 0 | 0 | 1 |
+----------------------------------------------------+------------+------------+------------+
[ 1.861895] NET: Registered protocol family 5
[ 1.862978] Bluetooth: RFCOMM TTY layer initialized
[ 1.863099] ------------[ cut here ]------------
[ 1.863105] WARNING: CPU: 1 PID: 79 at kernel/sched/core.c:7156 __might_sleep+0x17d/0x1a1()
[ 1.863112] do not call blocking ops when !TASK_RUNNING; state=1 set at [<c14dc381>] rfcomm_run+0xdf/0x130e
** 276 printk messages dropped **
[ 1.863591] [<c1058b73>] ? kthread_stop+0x53/0x53
** 848 printk messages dropped **
[ 1.864906] [<c155a411>] dump_stack+0x48/0x60
** 812 printk messages dropped **
[ 1.866298] [<c14dc381>] ? rfcomm_run+0xdf/0x130e
** 808 printk messages dropped **
[ 1.867741] [<c107e6b1>] ? trace_hardirqs_on+0xb/0xd
** 828 printk messages dropped **
[ 1.868867] [<c105ce5f>] ? __might_sleep+0x17d/0x1a1
** 847 printk messages dropped **
[ 1.870053] [<c155cee7>] ? __schedule+0x347/0x797
** 734 printk messages dropped **
[ 1.871034] [<c14dc381>] ? rfcomm_run+0xdf/0x130e
** 521 printk messages dropped **
[ 1.871737] Call Trace:
** 522 printk messages dropped **
[ 1.872447] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
** 1273 printk messages dropped **
[ 1.874513] c17145f4 0000026d d31e7e10 c1042315 00000009 d31e7e08 c1713c10 d31e7e24
** 1405 printk messages dropped **
[ 1.876764] [<c155ec0c>] mutex_lock_nested+0x1e/0x371
** 1189 printk messages dropped **
[ 1.878443] ------------[ cut here ]------------
** 805 printk messages dropped **
[ 1.879520] ------------[ cut here ]------------
** 1056 printk messages dropped **
[ 1.880979] Modules linked in:
** 561 printk messages dropped **
[ 1.881786] d31e7e24 0000004f c1713c5c 00001bf4 c105ce5f 00001bf4 c105ce5f c14dc381
** 1063 printk messages dropped **
[ 1.883712] [<c14dc381>] ? rfcomm_run+0xdf/0x130e
** 835 printk messages dropped **
[ 1.884868] [<c105ce5f>] __might_sleep+0x17d/0x1a1
** 828 printk messages dropped **
[ 1.886019] c17145f4 0000026d d31e7e10 c1042315 00000009 d31e7e08 c1713c10 d31e7e24
** 876 printk messages dropped **
[ 1.887195] [<c14dc381>] ? rfcomm_run+0xdf/0x130e
** 522 printk messages dropped **
[ 1.887909] [<c105ce5f>] ? __might_sleep+0x17d/0x1a1
** 821 printk messages dropped **
[ 1.889005] [<c1058b73>] ? kthread_stop+0x53/0x53
** 812 printk messages dropped **
[ 1.890349] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
** 929 printk messages dropped **
[ 1.891985] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
** 886 printk messages dropped **
[ 1.893158] [<c107e6b1>] ? trace_hardirqs_on+0xb/0xd
** 852 printk messages dropped **
[ 1.894327] Call Trace:
** 1446 printk messages dropped **
[ 1.896290] ---[ end trace 9a6d324c192a7894 ]---
** 804 printk messages dropped **
git bisect start 60e671868a8db4341b97eb6e1abb476050d524c9 0f33be009b89d2268e94194dc4fd01a7851b6d51 --
git bisect bad c28ffc6253260048374200516cd10378f74f94e0 # 23:47 0- 20 Merge 'peterz-queue/sched/wait' into devel-roam-i386-201409242231
git bisect good 2edb726d3d9e0bbff56d166702909ba648c737ce # 00:29 20+ 0 Merge 'pci/pci/host-generic' into devel-roam-i386-201409242231
git bisect good 11440ee344f23f35286a8ad07eb2e30df65d67dc # 00:52 20+ 0 Merge 'peterz-queue/perf/core' into devel-roam-i386-201409242231
git bisect good 9184a45f611d2c4807afc32d6c1bcb767554ffac # 01:10 20+ 0 Merge 'peterz-queue/sched/core' into devel-roam-i386-201409242231
git bisect good f060c7651c4037d084746cd6547559d7bb44619b # 02:18 20+ 0 rwlock, x86: delete unused asm/rwlock.h and rwlock.S
git bisect good 98d91c72b75abd2706cdc2f11c78d62a70f3e438 # 02:41 20+ 0 wait: Add might_sleep()
git bisect good 5f58f71c7e9887484edba13607600f99a85c5cb4 # 04:10 20+ 0 smp: Correctly deal with nested sleeps
git bisect good 24c2eceb88fee04d0c409229960f0a96e6ae329f # 05:26 20+ 0 net: Clean up sk_wait_event() vs might_sleep()
git bisect bad c59b2cd0732145398b9c945d3b7ab1d1b5bb2d69 # 06:37 0- 3 sched: Exclude cond_resched() from nested sleep test
git bisect bad ef8f0b7b2be43e1bacd1d360376710bf9eafc449 # 07:24 0- 10 sched: Debug nested sleeps
# first bad commit: [ef8f0b7b2be43e1bacd1d360376710bf9eafc449] sched: Debug nested sleeps
git bisect good 24c2eceb88fee04d0c409229960f0a96e6ae329f # 07:37 60+ 0 net: Clean up sk_wait_event() vs might_sleep()
git bisect bad 60e671868a8db4341b97eb6e1abb476050d524c9 # 07:37 0- 312 0day head guard for 'devel-roam-i386-201409242231'
git bisect good c6ff6486e5b306f76bf60b0dbfc63a6ed70d0a78 # 10:04 60+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
git bisect good 4d8426f9ac601db2a64fa7be64051d02b9c9fe01 # 10:49 60+ 60 Add linux-next specific files for 20140926
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-i386.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[compiler/gcc4] a9f180345f5: -100.0% last_state.is_incomplete_run
by Fengguang Wu
Hi Steven,
FYI, we noticed that your commit a9f180345f5378ac87d80ed0bea55ba421d83859
("compiler/gcc4: Make quirk for asm_volatile_goto() unconditional") fixed
a number of machine boot failures in our LKP test farm. This is really helpful!
Our gcc version is 4.9.1 (Debian 4.9.1-11).
569d6557ab957d6 a9f180345f5378ac87d80ed0b
--------------- -------------------------
%stddev %change %stddev
\ | /
1 ± 0% -100.0% 0 ± 0% lkp-st02/dd-write/5m-11HDD-RAID5-cfq-btrfs-100dd
1 ± 0% -100.0% 0 ± 0% TOTAL dmesg.kernel_BUG_at_fs/nfs/pagelist.c
569d6557ab957d6 a9f180345f5378ac87d80ed0b
--------------- -------------------------
1 ± 0% -100.0% 0 ± 0% lkp-st02/dd-write/5m-11HDD-RAID5-cfq-btrfs-100dd
1 ± 0% -100.0% 0 ± 0% TOTAL dmesg.Kernel_panic-not_syncing:Fatal_exception
569d6557ab957d6 a9f180345f5378ac87d80ed0b
--------------- -------------------------
1 ± 0% -100.0% 0 ± 0% lkp-st02/dd-write/5m-11HDD-RAID5-cfq-btrfs-100dd
1 ± 0% -100.0% 0 ± 0% TOTAL dmesg.invalid_opcode
569d6557ab957d6 a9f180345f5378ac87d80ed0b
--------------- -------------------------
1 ± 0% -100.0% 0 ± 0% ivb42/will-it-scale/futex4
1 ± 0% -100.0% 0 ± 0% ivb44/fsmark/1x-1t-1HDD-xfs-4M-60G-NoSync
1 ± 0% -100.0% 0 ± 0% ivb44/fsmark/1x-64t-1BRD_48G-btrfs-4M-40G-fsyncBeforeClose
1 ± 0% -100.0% 0 ± 0% lkp-bdw01/blogbench/1SSD-btrfs
1 ± 0% -100.0% 0 ± 0% lkp-hsw01/vm-scalability/300s-anon-rx-rand-mt
1 ± 0% -100.0% 0 ± 0% lkp-sbx04/will-it-scale/futex3
1 ± 0% -100.0% 0 ± 0% lkp-sbx04/will-it-scale/page_fault3
1 ± 0% -100.0% 0 ± 0% lkp-st02/dd-write/5m-11HDD-RAID5-cfq-btrfs-100dd
8 ± 0% -100.0% 0 ± 0% TOTAL last_state.is_incomplete_run
569d6557ab957d6 a9f180345f5378ac87d80ed0b
--------------- -------------------------
1 ± 0% -100.0% 0 ± 0% ivb42/will-it-scale/futex4
1 ± 0% -100.0% 0 ± 0% ivb44/fsmark/1x-1t-1HDD-xfs-4M-60G-NoSync
1 ± 0% -100.0% 0 ± 0% ivb44/fsmark/1x-64t-1BRD_48G-btrfs-4M-40G-fsyncBeforeClose
1 ± 0% -100.0% 0 ± 0% lkp-bdw01/blogbench/1SSD-btrfs
1 ± 0% -100.0% 0 ± 0% lkp-hsw01/vm-scalability/300s-anon-rx-rand-mt
1 ± 0% -100.0% 0 ± 0% lkp-sbx04/will-it-scale/futex3
1 ± 0% -100.0% 0 ± 0% lkp-sbx04/will-it-scale/page_fault3
1 ± 0% -100.0% 0 ± 0% lkp-st02/dd-write/5m-11HDD-RAID5-cfq-btrfs-100dd
8 ± 0% -100.0% 0 ± 0% TOTAL last_state.booting
Thanks,
Fengguang
6 years, 6 months
[mm/slab] BUG: unable to handle kernel paging request at 00010023
by Fengguang Wu
Hi Joonsoo,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 36fbfebe776eb5871d61e7a755c9feb1c96cc4aa
Author: Joonsoo Kim <iamjoonsoo.kim(a)lge.com>
AuthorDate: Tue Sep 23 11:52:35 2014 +1000
Commit: Stephen Rothwell <sfr(a)canb.auug.org.au>
CommitDate: Tue Sep 23 11:52:35 2014 +1000
mm/slab: support slab merge
Slab merge is good feature to reduce fragmentation. If new creating slab
have similar size and property with exsitent slab, this feature reuse it
rather than creating new one. As a result, objects are packed into fewer
slabs so that fragmentation is reduced.
Below is result of my testing.
* After boot, sleep 20; cat /proc/meminfo | grep Slab
<Before>
Slab: 25136 kB
<After>
Slab: 24364 kB
We can save 3% memory used by slab.
For supporting this feature in SLAB, we need to implement SLAB specific
kmem_cache_flag() and __kmem_cache_alias(), because SLUB implements some
SLUB specific processing related to debug flag and object size change on
these functions.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim(a)lge.com>
Cc: Christoph Lameter <cl(a)linux.com>
Cc: Pekka Enberg <penberg(a)kernel.org>
Cc: David Rientjes <rientjes(a)google.com>
Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org>
+----------------------------------------------+------------+------------+---------------+
| | 8c087489b8 | 36fbfebe77 | next-20140923 |
+----------------------------------------------+------------+------------+---------------+
| boot_successes | 60 | 0 | 1 |
| boot_failures | 0 | 20 | 314 |
| BUG:unable_to_handle_kernel | 0 | 20 | 312 |
| Oops | 0 | 20 | 312 |
| EIP_is_at_kernfs_link_sibling | 0 | 4 | 14 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 20 | 312 |
| backtrace:acpi_bus_scan | 0 | 4 | 14 |
| backtrace:acpi_scan_init | 0 | 20 | 45 |
| backtrace:acpi_init | 0 | 20 | 45 |
| backtrace:kernel_init_freeable | 0 | 20 | 312 |
| EIP_is_at_kernfs_add_one | 0 | 16 | 298 |
| backtrace:kobject_add_internal | 0 | 16 | 31 |
| backtrace:kobject_init_and_add | 0 | 16 | 31 |
| backtrace:acpi_scan_add_handler_with_hotplug | 0 | 16 | 31 |
| backtrace:acpi_pci_root_init | 0 | 16 | 31 |
| backtrace:tty_register_driver | 0 | 0 | 106 |
| backtrace:pty_init | 0 | 0 | 106 |
| backtrace:acpi_bus_register_driver | 0 | 0 | 1 |
| backtrace:acpi_button_driver_init | 0 | 0 | 1 |
| BUG:kernel_boot_crashed | 0 | 0 | 1 |
| BUG:kernel_test_crashed | 0 | 0 | 1 |
| backtrace:subsys_system_register | 0 | 0 | 160 |
| backtrace:container_dev_init | 0 | 0 | 160 |
| backtrace:driver_init | 0 | 0 | 160 |
+----------------------------------------------+------------+------------+---------------+
[ 0.463788] ACPI: (supports S0 S5)
[ 0.464003] ACPI: Using IOAPIC for interrupt routing
[ 0.464738] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.466034] BUG: unable to handle kernel paging request at 00010023
[ 0.466989] IP: [<c117dcf9>] kernfs_add_one+0x89/0x130
[ 0.467812] *pdpt = 0000000000000000 *pde = f000ff53f000ff53
[ 0.468000] Oops: 0002 [#1] SMP
[ 0.468000] Modules linked in:
[ 0.468000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.17.0-rc6-00089-g36fbfeb #1
[ 0.468000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.468000] task: d303ec90 ti: d3040000 task.ti: d3040000
[ 0.468000] EIP: 0060:[<c117dcf9>] EFLAGS: 00010286 CPU: 0
[ 0.468000] EIP is at kernfs_add_one+0x89/0x130
[ 0.468000] EAX: 542572cb EBX: 00010003 ECX: 00000008 EDX: 2c8de598
[ 0.468000] ESI: d311de10 EDI: d311de70 EBP: d3041dd8 ESP: d3041db4
[ 0.468000] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 0.468000] CR0: 8005003b CR2: 00010023 CR3: 01a8a000 CR4: 000006f0
[ 0.468000] Stack:
[ 0.468000] d3006f00 00000202 d311de70 d311de10 d3041dd8 c117dba0 d311de10 c159a5c0
[ 0.468000] c1862a00 d3041df0 c117f0f2 00000000 c18629f4 d311de70 00000000 d3041e2c
[ 0.468000] c117f8b5 00001000 00000000 c159a5c0 c18629f4 00000000 00000001 c1862a00
[ 0.468000] Call Trace:
[ 0.468000] [<c117dba0>] ? kernfs_new_node+0x30/0x40
[ 0.468000] [<c117f0f2>] __kernfs_create_file+0x92/0xc0
[ 0.468000] [<c117f8b5>] sysfs_add_file_mode_ns+0x95/0x190
[ 0.468000] [<c117f9d7>] sysfs_create_file_ns+0x27/0x40
[ 0.468000] [<c1252ef6>] kobject_add_internal+0x136/0x2c0
[ 0.468000] [<c125e360>] ? kvasprintf+0x40/0x50
[ 0.468000] [<c1252a92>] ? kobject_set_name_vargs+0x42/0x60
[ 0.468000] [<c12530b5>] kobject_init_and_add+0x35/0x50
[ 0.468000] [<c12ad04f>] acpi_sysfs_add_hotplug_profile+0x24/0x4a
[ 0.468000] [<c12a7280>] acpi_scan_add_handler_with_hotplug+0x21/0x28
[ 0.468000] [<c18df524>] acpi_pci_root_init+0x20/0x22
[ 0.468000] [<c18df0e1>] acpi_scan_init+0x24/0x16d
[ 0.468000] [<c18def73>] acpi_init+0x20c/0x224
[ 0.468000] [<c18ded67>] ? acpi_sleep_init+0xab/0xab
[ 0.468000] [<c100041e>] do_one_initcall+0x7e/0x1b0
[ 0.468000] [<c18ded67>] ? acpi_sleep_init+0xab/0xab
[ 0.468000] [<c18b24ba>] ? repair_env_string+0x12/0x54
[ 0.468000] [<c18b24a8>] ? initcall_blacklist+0x7c/0x7c
[ 0.468000] [<c105e100>] ? parse_args+0x160/0x3f0
[ 0.468000] [<c18b2bd1>] kernel_init_freeable+0xfc/0x179
[ 0.468000] [<c156782b>] kernel_init+0xb/0xd0
[ 0.468000] [<c1574601>] ret_from_kernel_thread+0x21/0x30
[ 0.468000] [<c1567820>] ? rest_init+0xb0/0xb0
[ 0.468000] Code: 26 00 83 e1 10 75 5b 8b 46 24 e8 b3 ea ff ff 89 46 38 89 f0 e8 d9 f9 ff ff 85 c0 89 c3 75 ca 8b 5f 5c 85 db 74 11 e8 97 90 f1 ff <89> 43 20 89 53 24 89 43 28 89 53 2c b8 c0 2f 85 c1 e8 d1 36 3f
[ 0.468000] EIP: [<c117dcf9>] kernfs_add_one+0x89/0x130 SS:ESP 0068:d3041db4
[ 0.468000] CR2: 0000000000010023
[ 0.468000] ---[ end trace 4fa173691404b63f ]---
[ 0.468000] Kernel panic - not syncing: Fatal exception
git bisect start 55f21306900abf9f9d2a087a127ff49c6d388ad2 0f33be009b89d2268e94194dc4fd01a7851b6d51 --
git bisect good 18c13e2d9b75e2760e6520f2fde00401192956f3 # 17:56 20+ 0 Merge remote-tracking branch 'bluetooth/master'
git bisect good abf79495f38ba66f750566b3f0a8da8dd94b4dc3 # 18:03 20+ 0 Merge remote-tracking branch 'ftrace/for-next'
git bisect good 0bed22034e26a3c37ee4407fccffa8c095d5e144 # 18:09 20+ 0 Merge remote-tracking branch 'pinctrl/for-next'
git bisect good 15c9281a15ed7718868d115d4d00619b0b7a2624 # 18:14 20+ 0 Merge remote-tracking branch 'clk/clk-next'
git bisect good 50939531dea1b913b7fa29f9bbc69feafefd090c # 18:23 20+ 0 Merge branch 'rd-docs/master'
git bisect good aa881e3c5e87c8aa23519f40554897d56f32b935 # 18:49 20+ 0 Merge remote-tracking branch 'powerpc-mpe/next'
git bisect bad 81b63d14db32bd7706c955d1e04e65b152b2277a # 18:57 0- 2 Merge branch 'akpm-current/current'
git bisect bad f313ca82d72066a3c44fd6c66cee57b25de43aa9 # 19:31 0- 1 introduce-dump_vma-fix
git bisect good 2c5fe9213048c5640b8e46407f5614038c03ad93 # 20:16 20+ 0 mm: fix kmemcheck.c build errors
git bisect bad 69454f8be7f621ac8c3c6c9763bb70e116988942 # 20:35 0- 18 block_dev: implement readpages() to optimize sequential read
git bisect bad 66a31d528a1e3d483be2b1c993ec1268412f0074 # 20:40 0- 1 memory-hotplug-add-sysfs-zones_online_to-attribute-fix-2
git bisect good 5e8acb68610c077b08cb3f16305aa3cc22e5d2a8 # 21:07 20+ 0 kernel/kthread.c: partial revert of 81c98869faa5 ("kthread: ensure locality of task_struct allocations")
git bisect bad 36fbfebe776eb5871d61e7a755c9feb1c96cc4aa # 22:06 0- 10 mm/slab: support slab merge
git bisect good 11e57381eced875ef5a6fea4005fdf72b6f68eff # 22:19 20+ 0 mm/slab_common: commonize slab merge logic
git bisect good 8c087489b8a32b9235f7f9417390c62d93aba522 # 22:24 20+ 0 mm/slab_common: fix build failure if CONFIG_SLUB
# first bad commit: [36fbfebe776eb5871d61e7a755c9feb1c96cc4aa] mm/slab: support slab merge
git bisect good 8c087489b8a32b9235f7f9417390c62d93aba522 # 22:26 60+ 0 mm/slab_common: fix build failure if CONFIG_SLUB
git bisect bad 55f21306900abf9f9d2a087a127ff49c6d388ad2 # 22:26 0- 314 Add linux-next specific files for 20140923
git bisect good f4cb707e7ad9727a046b463232f2de166e327d3e # 22:32 60+ 0 Merge tag 'pm+acpi-3.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect bad 4d8426f9ac601db2a64fa7be64051d02b9c9fe01 # 22:36 0- 60 Add linux-next specific files for 20140926
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
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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[hw_breakpoint] WARNING: at kernel/trace/trace_kprobe.c:1393 kprobe_trace_self_tests_init()
by Fengguang Wu
Hi Oleg,
0day kernel testing robot got the below dmesg and the first bad commit is
commit 8b4d801b2b123b6c09742f861fe44a8527b84d47
Author: Oleg Nesterov <oleg(a)redhat.com>
AuthorDate: Thu Jun 20 17:50:06 2013 +0200
Commit: Ingo Molnar <mingo(a)kernel.org>
CommitDate: Thu Jun 20 17:57:00 2013 +0200
hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
trinity fuzzer triggered WARN_ONCE("Can't find any breakpoint
slot") in arch_install_hw_breakpoint() but the problem is not
arch-specific.
The problem is, task_bp_pinned(cpu) checks "cpu == iter->cpu"
but this doesn't account the "all cpus" events with iter->cpu <
0.
This means that, say, register_user_hw_breakpoint(tsk) can
happily create the arbitrary number > HBP_NUM of breakpoints
which can not be activated. toggle_bp_task_slot() is equally
wrong by the same reason and nr_task_bp_pinned[] can have
negative entries.
Simple test:
# perl -e 'sleep 1 while 1' &
# perf record -e mem:0x10,mem:0x10,mem:0x10,mem:0x10,mem:0x10 -p `pidof perl`
Before this patch this triggers the same problem/WARN_ON(),
after the patch it correctly fails with -ENOSPC.
Reported-by: Vince Weaver <vincent.weaver(a)maine.edu>
Signed-off-by: Oleg Nesterov <oleg(a)redhat.com>
Acked-by: Frederic Weisbecker <fweisbec(a)gmail.com>
Cc: <stable(a)vger.kernel.org>
Link: http://lkml.kernel.org/r/20130620155006.GA6324@redhat.com
Signed-off-by: Ingo Molnar <mingo(a)kernel.org>
+-----------------------------------------------------------------------+------------+------------+------------------+
| | 003002e04e | 8b4d801b2b | v3.17-rc7_093000 |
+-----------------------------------------------------------------------+------------+------------+------------------+
| boot_successes | 60 | 0 | 0 |
| boot_failures | 0 | 20 | 11 |
| WARNING:at_kernel/trace/trace_kprobe.c:kprobe_trace_self_tests_init() | 0 | 20 | 11 |
| backtrace:kprobe_trace_self_tests_init | 0 | 20 | 11 |
| backtrace:warn_slowpath_null | 0 | 20 | 11 |
| backtrace:kernel_init_freeable | 0 | 20 | 11 |
+-----------------------------------------------------------------------+------------+------------+------------------+
[ 4.188679] Testing kprobe tracing:
[ 4.189810] Could not insert probe at kprobe_trace_selftest_target+0: -22
[ 4.191076] ------------[ cut here ]------------
[ 4.191542] WARNING: at kernel/trace/trace_kprobe.c:1393 kprobe_trace_self_tests_init+0x69/0x7f0()
[ 4.192999] Modules linked in:
[ 4.193314] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.0-rc3-00006-g8b4d801 #1
[ 4.193998] 0000000000000009 ffff880013881e78 ffffffff814f4abd ffff880013881eb0
[ 4.194733] ffffffff81075481 ffffffff81aa2570 0000000000000007 0000000000000000
[ 4.195469] 0000000000000000 0000000000000000 ffff880013881ec0 ffffffff810754ea
[ 4.196202] Call Trace:
[ 4.196513] [<ffffffff814f4abd>] dump_stack+0x27/0x30
[ 4.197399] [<ffffffff81075481>] warn_slowpath_common+0x91/0xd0
[ 4.197996] [<ffffffff81aa2570>] ? init_kprobe_trace+0xe8/0xe8
[ 4.198752] [<ffffffff810754ea>] warn_slowpath_null+0x2a/0x40
[ 4.199667] [<ffffffff81aa25d9>] kprobe_trace_self_tests_init+0x69/0x7f0
[ 4.200316] [<ffffffff81aa2570>] ? init_kprobe_trace+0xe8/0xe8
[ 4.200856] [<ffffffff8100031a>] do_one_initcall+0x16a/0x220
[ 4.201387] [<ffffffff81a824f5>] kernel_init_freeable+0x231/0x31b
[ 4.201948] [<ffffffff814ed750>] ? rest_init+0x160/0x160
[ 4.202458] [<ffffffff814ed766>] kernel_init+0x16/0x230
[ 4.202943] [<ffffffff8150897a>] ret_from_fork+0x7a/0xb0
[ 4.203813] [<ffffffff814ed750>] ? rest_init+0x160/0x160
[ 4.204530] ---[ end trace ecbec1edfe4cb96b ]---
[ 4.204957] error on probing function entry.
git bisect start v3.10 v3.9 --
git bisect good ff89acc563a0bd49965674f56552ad6620415fe2 # 05:50 20+ 0 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect good e4327859341f2d3a93b4b6fef2ea483eac1c270c # 08:08 20+ 0 Merge branch 'for-3.10' of git://git.samba.org/sfrench/cifs-2.6
git bisect good 2601ded7fd8827ddbcc450cbfb153b3f3c59b443 # 08:15 20+ 0 Merge tag 'sound-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect good 9e895ace5d82df8929b16f58e9f515f6d54ab82d # 08:19 20+ 0 Linux 3.10-rc7
git bisect bad 1a506e473576cdcb922d339aea76b67d0fe344f7 # 08:23 0- 20 Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect good 78750f1908869c3bfcbf2a1f1f00f078f2948271 # 08:39 20+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
git bisect bad 54faf77d065926adbcc2a49e6df3559094cc93ba # 11:54 0- 8 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good de6e1317f746fbc527a73976c58b4119e506ff7c # 11:59 20+ 0 Merge tag 'critical_fix_for_3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/rwlove/fcoe
git bisect good e3ff91143eb2a6eaaab4831c85a2837a95fbbea3 # 12:03 20+ 0 Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
git bisect bad 8b4d801b2b123b6c09742f861fe44a8527b84d47 # 12:09 0- 20 hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
git bisect good 003002e04ed38618fc37b92ba128f5ca79d39f4f # 12:12 20+ 0 kprobes: Fix arch_prepare_kprobe to handle copy insn failures
# first bad commit: [8b4d801b2b123b6c09742f861fe44a8527b84d47] hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
git bisect good 003002e04ed38618fc37b92ba128f5ca79d39f4f # 12:14 60+ 0 kprobes: Fix arch_prepare_kprobe to handle copy insn failures
git bisect bad 1866293290036c0e5f4843ec702392ad809a38ff # 12:17 0- 11 0day head guard for 'devel-hourly-2014093000'
git bisect bad fe82dcec644244676d55a1384c958d5f67979adb # 12:17 0- 20 Linux 3.17-rc7
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-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
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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[x86, kvm] WARNING: at arch/x86/kernel/pvclock.c:182 pvclock_init_vsyscall()
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
commit 3dc4f7cfb7441e5e0fed3a02fc81cdaabd28300a
Author: Marcelo Tosatti <mtosatti(a)redhat.com>
AuthorDate: Tue Nov 27 23:28:56 2012 -0200
Commit: Marcelo Tosatti <mtosatti(a)redhat.com>
CommitDate: Tue Nov 27 23:29:10 2012 -0200
x86: kvm guest: pvclock vsyscall support
Hook into generic pvclock vsyscall code, with the aim to
allow userspace to have visibility into pvclock data.
Signed-off-by: Marcelo Tosatti <mtosatti(a)redhat.com>
+--------------------------------------------------------------+------------+------------+------------+
| | 71056ae22d | 3dc4f7cfb7 | d778df51c0 |
+--------------------------------------------------------------+------------+------------+------------+
| boot_successes | 141 | 0 | 0 |
| boot_failures | 0 | 47 | 11 |
| WARNING:at_arch/x86/kernel/pvclock.c:pvclock_init_vsyscall() | 0 | 47 | 11 |
| backtrace:pvclock_init_vsyscall | 0 | 47 | 11 |
| backtrace:warn_slowpath_null | 0 | 47 | 11 |
| backtrace:kvm_setup_vsyscall_timeinfo | 0 | 47 | 11 |
| backtrace:kvm_guest_init | 0 | 47 | 11 |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 0 | 0 | 7 |
| BUG:kernel_boot_hang | 0 | 0 | 4 |
+--------------------------------------------------------------+------------+------------+------------+
[ 0.000000] mapped IOAPIC to ffffffffff5f9000 (fec00000)
[ 0.000000] nr_irqs_gsi: 40
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: at arch/x86/kernel/pvclock.c:182 pvclock_init_vsyscall+0x41/0x8e()
[ 0.000000] Hardware name: Standard PC (i440FX + PIIX, 1996)
[ 0.000000] Modules linked in:
[ 0.000000] Pid: 0, comm: swapper Not tainted 3.7.0-rc3-00112-g3dc4f7c #1
[ 0.000000] Call Trace:
[ 0.000000] [<ffffffff8104f750>] warn_slowpath_common+0x70/0xa0
[ 0.000000] [<ffffffff8104f83a>] warn_slowpath_null+0x1a/0x20
[ 0.000000] [<ffffffff8219a6af>] pvclock_init_vsyscall+0x41/0x8e
[ 0.000000] [<ffffffff8219a623>] kvm_setup_vsyscall_timeinfo+0x48/0x78
[ 0.000000] [<ffffffff8219a397>] kvm_guest_init+0x98/0xe1
[ 0.000000] [<ffffffff82190eb8>] setup_arch+0xa9b/0xb10
[ 0.000000] [<ffffffff818eeae8>] ? printk+0x4f/0x57
[ 0.000000] [<ffffffff8218e856>] start_kernel+0x93/0x388
[ 0.000000] [<ffffffff8218e120>] ? early_idt_handlers+0x120/0x120
[ 0.000000] [<ffffffff8218e2b4>] x86_64_start_reservations+0xb0/0xb3
[ 0.000000] [<ffffffff8218e3b9>] x86_64_start_kernel+0x102/0x10f
[ 0.000000] ---[ end trace c9f7d63dd24af7e7 ]---
[ 0.000000] KVM setup async PF for cpu 0
git bisect start v3.8 v3.7 --
git bisect bad 8d91a42e54eebc43f4d8f6064751ccba73528275 # 21:30 0- 5 Merge tag 'omap-late-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect bad 770b6cb4d21fb3e3df2a7a51e186a3c14db1ec30 # 21:35 0- 1 ARM: OMAP: Fix drivers to depend on omap for internal devices
git bisect good 9977d9b379cb77e0f67bd6f4563618106e58e11d # 21:40 30+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
git bisect bad e777d192ffb9f2929d547a2f8a5f65b7db7a9552 # 21:44 4- 26 Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
git bisect good 8b0cab14951fbf8126795ab301835a8f8126a988 # 22:00 30+ 0 Merge tag 'regulator-3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
git bisect good c7708fac5a878d6e0f2de0aa19f9749cff4f707f # 22:11 30+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
git bisect bad e05a1c6397a73d09389e033b6b2c25c954d2177c # 22:17 0- 1 Merge tag 'ktest-v3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest
git bisect good 896ea17d3da5f44b2625c9cda9874d7dfe447393 # 22:36 30+ 0 Merge tag 'stable/for-linus-3.8-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
git bisect bad 66cdd0ceaf65a18996f561b770eedde1d123b019 # 22:41 3- 3 Merge tag 'kvm-3.8-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm
git bisect good 8455d79e2163997e479931b8d5b7e60a92cd2b86 # 23:04 30+ 0 KVM: PPC: Book3S HV: Run virtual core whenever any vcpus in it can run
git bisect bad 78c634402a1825f1f5bef13077f0985f3b8a3212 # 23:11 3- 23 kvm: deliver msi interrupts from irq handler
git bisect good 189e11731aa858597095fbe1e6d243bad26bd96b # 23:19 30+ 0 x86: pvclock: add note about rdtsc barriers
git bisect bad b48aa97e38206a84bf8485e7c553412274708ce5 # 23:42 22- 8 KVM: x86: require matched TSC offsets for master clock
git bisect bad 886b470cb14733a0286e365c77f1844c240c33a4 # 00:28 2- 5 KVM: x86: pass host_tsc to read_l1_tsc
git bisect good 71056ae22d43f58d7e0f793af18ace2eaf5b74eb # 01:09 47+ 0 x86: pvclock: generic pvclock vsyscall initialization
git bisect bad 51c19b4f5927f5a646e93d69f73c7e89ea14e737 # 02:16 0- 1 x86: vdso: pvclock gettime support
git bisect bad 3dc4f7cfb7441e5e0fed3a02fc81cdaabd28300a # 02:45 0- 24 x86: kvm guest: pvclock vsyscall support
# first bad commit: [3dc4f7cfb7441e5e0fed3a02fc81cdaabd28300a] x86: kvm guest: pvclock vsyscall support
git bisect good 71056ae22d43f58d7e0f793af18ace2eaf5b74eb # 04:11 141+ 0 x86: pvclock: generic pvclock vsyscall initialization
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[torture] BUG: unable to handle kernel NULL pointer dereference at (null)
by Fengguang Wu
Hi Paul,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit 945fa9c631b04febe295a3a2a00c7e4a3cfb97db
Author: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
AuthorDate: Fri Mar 7 14:15:28 2014 -0800
Commit: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
CommitDate: Wed May 14 09:46:07 2014 -0700
torture: Dump ftrace buffer when the RCU grace period stalls
This commit adds a call to rcutorture_trace_dump() to dump the ftrace
buffer when the RCU grace period stalls in order to help debug the
stall. Note that this is different than the RCU CPU stall warning,
as it is rcutorture detecting the stall rather than the underlying RCU
implementation.
Signed-off-by: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh(a)joshtriplett.org>
===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
It does look like an unrelated warning.
+------------------------------------------------------+------------+------------+------------+
| | 499c632dce | 945fa9c631 | 0e980234c9 |
+------------------------------------------------------+------------+------------+------------+
| boot_successes | 131 | 0 | 0 |
| boot_failures | 9 | 20 | 40 |
| WARNING:at_kernel/events/core.c:perf_swevent_add() | 9 | | |
| BUG:unable_to_handle_kernel | 0 | 20 | 20 |
| Oops | 0 | 20 | 40 |
| RIP:print_trace_line | 0 | 20 | 40 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 20 | 40 |
| backtrace:rcu_torture_stats | 0 | 20 | 40 |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference | 0 | 0 | 20 |
+------------------------------------------------------+------------+------------+------------+
mount: mounting proc on /proc failed: No such device
[ 121.930088] Dumping ftrace buffer:
[ 121.930453] ---------------------------------
[ 121.930865] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 121.931644] IP: [<ffffffff8959b074>] print_trace_line+0x2b0/0x38a
[ 121.932194] PGD 10876067 PUD 10892067 PMD 0
[ 121.932613] Oops: 0000 [#1] PREEMPT SMP
[ 121.933069] CPU: 0 PID: 47 Comm: rcu_torture_sta Not tainted 3.15.0-rc1-00026-g945fa9c #24
[ 121.933837] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 121.934716] task: ffff880012388000 ti: ffff88001238a000 task.ti: ffff88001238a000
[ 121.935348] RIP: 0010:[<ffffffff8959b074>] [<ffffffff8959b074>] print_trace_line+0x2b0/0x38a
[ 121.936092] RSP: 0018:ffff88001238bca8 EFLAGS: 00010097
[ 121.936547] RAX: 0000000000000000 RBX: ffffffff8d12e600 RCX: 0000000000000000
[ 121.937159] RDX: 0000000000000001 RSI: ffffffff8ad13f33 RDI: 0000000000000000
[ 121.937770] RBP: ffff88001238bcd8 R08: 0000000000000009 R09: 00000000fffffff4
[ 121.938375] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000003bd1201
[ 121.938983] R13: ffff880012a82014 R14: ffffffff8d12f6fc R15: 0000000000000000
[ 121.939649] FS: 0000000000000000(0000) GS:ffff880013a00000(0000) knlGS:0000000000000000
[ 121.940013] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 121.940013] CR2: 0000000000000000 CR3: 0000000010994000 CR4: 00000000000006b0
[ 121.940013] Stack:
[ 121.940013] 00000000018c2d94 0000000000000286 0000000000000001 0000000000000000
[ 121.940013] ffffffff8d12f6fc 0000000000000000 ffff88001238bd08 ffffffff8959d169
[ 121.940013] ffff88001099814c ffffffff8d118d8c 00000000ffffffff ffff88001238bec8
[ 121.940013] Call Trace:
[ 121.940013] [<ffffffff8959d169>] ftrace_dump+0x180/0x21e
[ 121.940013] [<ffffffff89562d51>] rcutorture_trace_dump+0x5a/0x5c
[ 121.940013] [<ffffffff8956371d>] rcu_torture_printk+0x49d/0x4b8
[ 121.940013] [<ffffffff8956379d>] rcu_torture_stats_print+0x65/0x83
[ 121.940013] [<ffffffff895637bb>] ? rcu_torture_stats_print+0x83/0x83
[ 121.940013] [<ffffffff89563807>] rcu_torture_stats+0x4c/0x71
[ 121.940013] [<ffffffff8952745a>] kthread+0xf9/0x101
[ 121.940013] [<ffffffff89527361>] ? __kthread_parkme+0x86/0x86
[ 121.940013] [<ffffffff8a375c4c>] ret_from_fork+0x7c/0xb0
[ 121.940013] [<ffffffff89527361>] ? __kthread_parkme+0x86/0x86
[ 121.940013] Code: e9 e2 00 00 00 41 f7 c4 00 10 00 00 74 7d f6 83 d8 00 00 00 02 74 74 8b bb 20 21 00 00 4c 8b bb f0 10 00 00 e8 6d b8 ff ff 89 c0 <49> 0f a3 07 19 c0 85 c0 75 56 48 63 93 20 21 00 00 48 8b 43 10
[ 121.940013] RIP [<ffffffff8959b074>] print_trace_line+0x2b0/0x38a
[ 121.940013] RSP <ffff88001238bca8>
[ 121.940013] CR2: 0000000000000000
[ 121.940013] ---[ end trace 605ab88dfe93d9f3 ]---
[ 121.940013] Kernel panic - not syncing: Fatal exception
git bisect start 0e980234c97f98be6619b9281d83777f725b94ff v3.2 --
git bisect good f741656d646f7a5b56ba86765205b954237e7956 # 14:01 20+ 14 Merge tag 'stable/for-linus-3.8-rc7-tag-two' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
git bisect good 9538e10086bd1301fe915683b1ba0a1de66d7483 # 14:23 20+ 4 Merge git://www.linux-watchdog.org/linux-watchdog
git bisect good 83660b734bbbae4f15c1a9b14d0514d74f79dfd4 # 14:44 20+ 4 Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect good 1f8c538ed6a3323b06c2459e9ca36e0ae8bb0ebc # 15:09 20+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
git bisect good 3f583bc21977a608908b83d03ee2250426a5695c # 15:23 20+ 2 Merge tag 'iommu-updates-v3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
git bisect good 3e8072d48b2dd0898e99698018b2045f8cd49965 # 15:44 20+ 1 Merge git://git.infradead.org/users/willy/linux-nvme
git bisect good 9352ad13391d8948fa919b97ed5ad68c96378f92 # 16:03 20+ 2 torture: Add batch headers "--dryrun sched"
git bisect good 97dc0afed12b371f450d04cb406a8664437ec843 # 16:16 20+ 3 torture: Make config-fragment filtering RCU-independent
git bisect good fff35c4e9fbb0982aef6230cbf713c2492925eca # 16:33 20+ 2 torture: Report diagnostics from qemu
git bisect good f189cc8c9451aa88bc718c57aa0228d2a7555956 # 16:49 20+ 1 torture: Choose bzImage location based on architecture
git bisect bad 945fa9c631b04febe295a3a2a00c7e4a3cfb97db # 17:04 0- 6 torture: Dump ftrace buffer when the RCU grace period stalls
git bisect good 499c632dce47e95280f8b99540c5db294053c94c # 17:27 20+ 4 torture: Add tracing-enabled variant of TREE02
# first bad commit: [945fa9c631b04febe295a3a2a00c7e4a3cfb97db] torture: Dump ftrace buffer when the RCU grace period stalls
git bisect good 499c632dce47e95280f8b99540c5db294053c94c # 17:34 60+ 7 torture: Add tracing-enabled variant of TREE02
git bisect good 499c632dce47e95280f8b99540c5db294053c94c # 17:40 60+ 9 torture: Add tracing-enabled variant of TREE02
git bisect bad fc486b03cae382601b366ab460b05e1a01bf69cd # 17:56 0- 10 Merge tag 'stable/for-linus-3.17-b-rc4-arm-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
git bisect bad fcc8fd7117b3960d50439f2c4247f80d74974c95 # 18:07 2- 5 Add linux-next specific files for 20140912
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-kernel $kernel
-initrd $initrd
-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
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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[perf/x86/intel/uncore] WARNING: CPU: 3 PID: 1 at arch/x86/mm/ioremap.c:183 __ioremap_caller+0x24c/0x2d0()
by Fengguang Wu
Hi Stephane,
FYI, we noticed the below WARNING on
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 521e8bac67a71a6544274f39d5c61473e0e54ac0 ("perf/x86/intel/uncore: Update support for client uncore IMC PMU")
+-------------------------+------------+------------+
| | b10fc1c3e3 | 521e8bac67 |
+-------------------------+------------+------------+
| boot_successes | 10 | 1 |
| boot_failures | 0 | 9 |
| BUG:kernel_test_crashed | 0 | 9 |
+-------------------------+------------+------------+
[ 6.773342] software IO TLB [mem 0xa5015000-0xa9015000] (64MB) mapped at [ffff8800a5015000-ffff8800a9014fff]
[ 6.784010] resource sanity check: requesting [mem 0xfed10000-0xfed15fff], which spans more than reserved [mem 0xfed10000-0xfed13fff]
[ 6.784951] ------------[ cut here ]------------
[ 6.785331] WARNING: CPU: 3 PID: 1 at arch/x86/mm/ioremap.c:183 __ioremap_caller+0x24c/0x2d0()
[ 6.786149] Info: mapping multiple BARs. Your kernel is fine.
[ 6.786601] Modules linked in:
[ 6.787046] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 3.17.0-rc6-wl-ath-00314-g3ec2e1e #1
[ 6.787755] Hardware name: Intel Corporation 2012 Client Platform/LosLunas CRB, BIOS ACRVMBY1.86C.0054.B00.1107311147 07/31/2011
[ 6.788670] 0000000000000009 ffff880437e0bb00 ffffffff818571f9 ffff880437e0bb48
[ 6.789551] ffff880437e0bb38 ffffffff8106ef1d ffffc900018d0000 0000000000006000
[ 6.790349] ffffc900018d0000 ffffc900018d0000 00000000fed10000 ffff880437e0bb98
[ 6.791228] Call Trace:
[ 6.791552] [<ffffffff818571f9>] dump_stack+0x4d/0x66
[ 6.791961] [<ffffffff8106ef1d>] warn_slowpath_common+0x7d/0xa0
[ 6.792413] [<ffffffff8106ef8c>] warn_slowpath_fmt+0x4c/0x50
[ 6.792939] [<ffffffff8107544f>] ? iomem_map_sanity_check+0xcf/0xe0
[ 6.793425] [<ffffffff8105b82c>] __ioremap_caller+0x24c/0x2d0
[ 6.793955] [<ffffffff8105b8c7>] ioremap_nocache+0x17/0x20
[ 6.794394] [<ffffffff8103504d>] snb_uncore_imc_init_box+0x6d/0x90
[ 6.794951] [<ffffffff8103341c>] uncore_pci_probe+0xcc/0x1f0
[ 6.795388] [<ffffffff8142e8b5>] local_pci_probe+0x45/0xa0
[ 6.795902] [<ffffffff8142fba5>] ? pci_match_device+0xe5/0x110
[ 6.796352] [<ffffffff8142fce1>] pci_device_probe+0xd1/0x120
[ 6.796864] [<ffffffff815024c0>] driver_probe_device+0x90/0x3e0
[ 6.797327] [<ffffffff815028db>] __driver_attach+0x8b/0x90
[ 6.797839] [<ffffffff81502850>] ? __device_attach+0x40/0x40
[ 6.798287] [<ffffffff8150038b>] bus_for_each_dev+0x6b/0xb0
[ 6.798796] [<ffffffff81501f6e>] driver_attach+0x1e/0x20
[ 6.799222] [<ffffffff81501b60>] bus_add_driver+0x180/0x250
[ 6.799730] [<ffffffff81df6e52>] ? uncore_cpu_setup+0x13/0x13
[ 6.800184] [<ffffffff815030a4>] driver_register+0x64/0xf0
[ 6.800698] [<ffffffff8142e14c>] __pci_register_driver+0x4c/0x50
[ 6.801161] [<ffffffff81df6f19>] intel_uncore_init+0xc7/0x2ae
[ 6.801691] [<ffffffff81df6e52>] ? uncore_cpu_setup+0x13/0x13
[ 6.802142] [<ffffffff81002130>] do_one_initcall+0xc0/0x1f0
[ 6.802650] [<ffffffff8108d900>] ? parse_args+0x1c0/0x4e0
[ 6.803075] [<ffffffff81dea11b>] kernel_init_freeable+0x1b3/0x23b
[ 6.803628] [<ffffffff8184a930>] ? rest_init+0x90/0x90
[ 6.804034] [<ffffffff8184a93e>] kernel_init+0xe/0xf0
[ 6.804433] [<ffffffff8185fe3c>] ret_from_fork+0x7c/0xb0
[ 6.804928] [<ffffffff8184a930>] ? rest_init+0x90/0x90
[ 6.805336] ---[ end trace 31a6fa76e4d9f116 ]---
[ 6.808747] RAPL PMU detected, hw unit 2^-16 Joules, API unit is 2^-32 Joules, 3 fixed counters 163840 ms ovfl timer
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[mm] f1820361f83: -53.5% proc-vmstat.pgfault
by Fengguang Wu
Hi Kirill,
FYI, we noticed 53.5% reduction of page faults and more mmap pages on
commit f1820361f83d556a7f0a9f629100f3825e594328 ("mm: implement ->map_pages for page cache")
testbox/testcase/testparams: lituya/will-it-scale/brk1
8c6e50b0290c4c7 f1820361f83d556a7f0a9f629
--------------- -------------------------
1111649 ± 0% -53.5% 517160 ± 0% proc-vmstat.pgfault
42 ±15% -39.6% 25 ±22% sched_debug.cpu#0.load
21 ±23% +45.3% 30 ±20% sched_debug.cfs_rq[3]:/.runnable_load_avg
1907 ± 0% +56.4% 2983 ± 0% proc-vmstat.nr_mapped
7631 ± 0% +56.4% 11938 ± 0% meminfo.Mapped
5002 ± 0% +42.3% 7119 ± 0% time.maximum_resident_set_size
38824 ±17% +40.3% 54478 ±19% sched_debug.cpu#4.nr_load_updates
572834 ±18% +32.3% 757713 ±10% sched_debug.cpu#4.sched_count
563679 ±18% +32.3% 745714 ±11% sched_debug.cpu#4.nr_switches
280478 ±18% +32.3% 371078 ±11% sched_debug.cpu#4.sched_goidle
67648 ± 0% +25.6% 84935 ± 0% meminfo.Active(file)
16911 ± 0% +25.6% 21233 ± 0% proc-vmstat.nr_active_file
21 ± 9% +27.5% 27 ±17% sched_debug.cfs_rq[2]:/.runnable_load_avg
331375 ±18% +31.0% 434139 ± 9% sched_debug.cpu#4.ttwu_count
104185 ± 0% +16.6% 121516 ± 0% meminfo.Active
2716 ± 0% +15.5% 3138 ± 0% proc-vmstat.pgactivate
22227 ± 0% -40.5% 13227 ± 0% time.minor_page_faults
14852144 ± 3% +7.5% 15967380 ± 4% time.voluntary_context_switches
103047 ± 3% +7.1% 110336 ± 4% vmstat.system.cs
time.minor_page_faults
3000 ++------------------------------------------------------------------+
2800 *+*..*.*..*.*..*.*.*..*.*..*.*..*.*.*..*.*..*.*..*.*.*..*.*..*.*..*.*
| |
2600 ++ |
2400 ++ |
| |
2200 ++ |
2000 ++ |
1800 ++ |
| |
1600 ++ |
1400 ++ |
| |
1200 O+O O O O O O O O O O O O O O O O O O O O O O O O O O O |
1000 ++------------------------------------------------------------------+
[*] bisect-good sample
[O] bisect-bad sample
To reproduce:
apt-get install ruby ruby-oj
git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
cd lkp-tests
bin/setup-local job.yaml # the job file attached in this email
bin/run-local job.yaml
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[x86_64, vsyscall] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
by Fengguang Wu
Hi Andy,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/vsyscall
commit caae204be184a575af2c02b837d818278f921323
Author: Andy Lutomirski <luto(a)amacapital.net>
AuthorDate: Mon Jun 16 18:50:12 2014 -0700
Commit: Andy Lutomirski <luto(a)amacapital.net>
CommitDate: Tue Sep 23 10:02:10 2014 -0700
x86_64,vsyscall: Make vsyscall emulation configurable
This adds CONFIG_X86_VSYSCALL_EMULATION, guarded by CONFIG_EXPERT.
Turning it off completely disables vsyscall emulation, saving ~3.5k
for vsyscall_64.c, 4k for vsyscall_emu_64.S (the fake vsyscall
page), some tiny amount of core mm code that supports a gate area,
and possibly 4k for a wasted pagetable. The latter is because the
vsyscall addresses are misaligned and fit poorly in the fixmap.
Signed-off-by: Andy Lutomirski <luto(a)amacapital.net>
+-----------------------------------------------------------+------------+------------+------------------+
| | 2df87bdfa6 | caae204be1 | v3.17-rc6_092402 |
+-----------------------------------------------------------+------------+------------+------------------+
| boot_successes | 156 | 27 | 47 |
| boot_failures | 0 | 25 | 264 |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 0 | 25 | 264 |
+-----------------------------------------------------------+------------+------------+------------------+
[ 5.248382] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[ 5.356741] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff5e2eecf8 error 15
[ 5.357984] init[1]: segfault at ffffffffff600400 ip ffffffffff600400 sp 00007fff5e2ee1b8 error 15
[ 5.359253] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 5.359253]
[ 5.360439] CPU: 0 PID: 1 Comm: init Not tainted 3.17.0-rc1-00169-gcaae204 #1
[ 5.361364] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 5.362114] 0000000000000000 ffff88001284fcb0 ffffffff814a2ce5 ffff88001284fd30
[ 5.363152] ffffffff814a1c51 0000000000000010 ffff88001284fd40 ffff88001284fcd8
[ 5.363611] ffff88001284fd78 000000000000000b 0000000000000000 ffff880012848740
[ 5.363611] Call Trace:
[ 5.363611] [<ffffffff814a2ce5>] dump_stack+0x19/0x1b
[ 5.363611] [<ffffffff814a1c51>] panic+0xc4/0x1ef
[ 5.363611] [<ffffffff81090d2c>] do_exit+0x3bb/0x81e
[ 5.363611] [<ffffffff811198c5>] ? __kmem_cache_free+0x11/0x2e
[ 5.363611] [<ffffffff8111992c>] ? kmem_cache_free+0x31/0x33
[ 5.363611] [<ffffffff810962eb>] ? __sigqueue_free+0x33/0x36
[ 5.363611] [<ffffffff81091e90>] do_group_exit+0x45/0xbf
[ 5.363611] [<ffffffff81098df9>] get_signal+0x53d/0x568
[ 5.363611] [<ffffffff81043039>] ? bad_area_nosemaphore+0xe/0x10
[ 5.363611] [<ffffffff81028218>] do_signal+0x23/0x885
[ 5.363611] [<ffffffff814a0000>] ? free_area_init_node+0xac/0x36e
[ 5.363611] [<ffffffff81028a96>] do_notify_resume+0x1c/0x75
[ 5.363611] [<ffffffff814a927b>] retint_signal+0x48/0x8d
[ 5.363611] Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffff9fffffff)
Elapsed time: 10
git bisect start ddc5057b07ef7126431d5df5f5b176154896f560 0f33be009b89d2268e94194dc4fd01a7851b6d51 --
git bisect good ca66f746334c4a3abf469f758c9b0633987bc876 # 19:56 21+ 0 Merge 'linuxtv-media/devel-3.17-rc6' into devel-hourly-2014092402
git bisect good 46eba17a40aaafce6a606447c1fba1f316c331f7 # 20:09 21+ 0 Merge 'xen-tip/devel/for-linus-3.18' into devel-hourly-2014092402
git bisect good c68691d04897b6ecdeea62d994db0442388df6ff # 20:59 21+ 0 Merge 'pinctrl/devel' into devel-hourly-2014092402
git bisect bad 4c8c7dc7eaee7651e7f551879bcbf4bf47accc3d # 21:24 16- 5 Merge 'kgene-samsung/for-next' into devel-hourly-2014092402
git bisect good 351b6700979b25afd3bf9bac32ebad2d0d89a696 # 21:34 52+ 0 Merge 'pinctrl/for-next' into devel-hourly-2014092402
git bisect bad 34e91dce5b5a0df1dea8628d0ab8a349128a5d78 # 21:46 0- 52 Merge 'luto/x86/vsyscall' into devel-hourly-2014092402
git bisect good fcfee6f8749af14d96373a9e2656354ad0b95499 # 21:59 52+ 0 x86_64,vdso: Remove jiffies from the vvar page
git bisect good 2dee11c0eb4eb9a767fa87764c91fda18d14eff1 # 22:07 52+ 0 x86_64,vsyscall: Turn vsyscalls all the way off when vsyscall=none
git bisect bad caae204be184a575af2c02b837d818278f921323 # 22:14 0- 2 x86_64,vsyscall: Make vsyscall emulation configurable
git bisect good 2df87bdfa6ac9076ed80bb83764b8b0f3ec396bd # 22:22 52+ 0 x86_64,vsyscall: Rewrite comment and clean up headers in vsyscall code
# first bad commit: [caae204be184a575af2c02b837d818278f921323] x86_64,vsyscall: Make vsyscall emulation configurable
git bisect good 2df87bdfa6ac9076ed80bb83764b8b0f3ec396bd # 22:24 156+ 0 x86_64,vsyscall: Rewrite comment and clean up headers in vsyscall code
git bisect bad ddc5057b07ef7126431d5df5f5b176154896f560 # 22:24 0- 264 0day head guard for 'devel-hourly-2014092402'
git bisect good f4cb707e7ad9727a046b463232f2de166e327d3e # 23:06 156+ 0 Merge tag 'pm+acpi-3.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
git bisect good 4d8426f9ac601db2a64fa7be64051d02b9c9fe01 # 23:22 156+ 0 Add linux-next specific files for 20140926
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.cgz
wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu Haswell,+smep,+smap
-kernel $kernel
-initrd $initrd
-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
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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months
[x86, irq] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1430 warn_pre_alternatives()
by Fengguang Wu
Hi Gerry,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/jiangliu/linux.git irqdomain/p3v1
commit f2bb95f78a694f575ef41a9f65c003ee934fc263
Author: Jiang Liu <jiang.liu(a)linux.intel.com>
AuthorDate: Wed Jun 25 14:16:18 2014 +0800
Commit: Jiang Liu <jiang.liu(a)linux.intel.com>
CommitDate: Fri Sep 26 19:09:42 2014 +0800
x86, irq: Move IRQ initialization routines from io_apic.c into vector.c
Move IRQ initialization routines from io_apic.c into vector.c,
preparing for enabling hierarchy irqdomain.
Signed-off-by: Jiang Liu <jiang.liu(a)linux.intel.com>
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
It looks to me that the OOM errors in the parent commit is irrelevant.
+------------------------------------------------------------------+------------+------------+------------------+
| | 9d24b890d0 | f2bb95f78a | v3.17-rc6_092700 |
+------------------------------------------------------------------+------------+------------+------------------+
| boot_successes | 43 | 0 | 0 |
| boot_failures | 37 | 20 | 11 |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 37 | | |
| backtrace:serio_handle_event | 28 | | |
| backtrace:do_fork | 4 | | |
| backtrace:kthreadd | 4 | | |
| backtrace:rcu_torture_stats | 5 | | |
| WARNING:at_arch/x86/kernel/cpu/common.c:warn_pre_alternatives() | 0 | 20 | 11 |
| BUG:unable_to_handle_kernel | 0 | 20 | 11 |
| Oops | 0 | 20 | 11 |
| EIP_is_at_setup_irq | 0 | 20 | 11 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 20 | 11 |
+------------------------------------------------------------------+------------+------------+------------------+
[ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.000000] NR_IRQS:16 nr_irqs:16 0
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1430 warn_pre_alternatives+0x17/0x20()
[ 0.000000] You're using static_cpu_has before alternatives have run!
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.17.0-rc6-00208-gf2bb95f #2
[ 0.000000] c1a91eac c1a91eac c1a91e80 c175a430 c1a91e9c c1034c47 00000596 c100fb87
[ 0.000000] 0000003a c1a91f64 c1026fc0 c1a91eb4 c1034cb6 00000009 c1a91eac c198ecbc
[ 0.000000] c1a91ec8 c1a91ec8 c100fb87 c198ec6c 00000596 c198ecbc c1a91f44 c1029a4d
[ 0.000000] Call Trace:
[ 0.000000] [<c175a430>] dump_stack+0x16/0x18
[ 0.000000] [<c1034c47>] warn_slowpath_common+0x57/0x70
[ 0.000000] [<c100fb87>] ? warn_pre_alternatives+0x17/0x20
[ 0.000000] [<c1026fc0>] ? kvm_read_and_reset_pf_reason+0x20/0x20
[ 0.000000] [<c1034cb6>] warn_slowpath_fmt+0x26/0x30
[ 0.000000] [<c100fb87>] warn_pre_alternatives+0x17/0x20
[ 0.000000] [<c1029a4d>] __do_page_fault+0x19d/0x4a0
[ 0.000000] [<c105a657>] ? __lock_acquire+0x2f7/0xcb0
[ 0.000000] [<c1026fc0>] ? kvm_read_and_reset_pf_reason+0x20/0x20
[ 0.000000] [<c1029ee4>] do_page_fault+0x24/0x40
[ 0.000000] [<c1026fd2>] do_async_page_fault+0x12/0x80
[ 0.000000] [<c17618bd>] error_code+0x65/0x6c
[ 0.000000] [<c13c0000>] ? sg_scsi_ioctl+0x150/0x3a0
[ 0.000000] [<c1068edf>] ? setup_irq+0xf/0x80
[ 0.000000] [<c1c977ae>] native_init_IRQ+0x2ee/0x2fc
[ 0.000000] [<c1c974be>] init_IRQ+0x1f/0x21
[ 0.000000] [<c1c94976>] start_kernel+0x23b/0x389
[ 0.000000] [<c1c942cb>] i386_start_kernel+0x79/0x7d
[ 0.000000] ---[ end trace 4d5ff9f2f68c4233 ]---
[ 0.000000] BUG: unable to handle kernel NULL pointer dereference at 0000003a
git bisect start fe34ad1c7f6455ab6827d4cc84224b7f57eec1eb 0f33be009b89d2268e94194dc4fd01a7851b6d51 --
git bisect bad a3f28bd4c220897d58cba325209d64613f8a6d0a # 14:05 0- 20 Merge 'arm-soc/sunxi/rtc' into devel-hourly-2014092700
git bisect good a25102b03066c1e532fb15f9dc96fd4560e27718 # 14:11 20+ 12 Merge 'tomeu/clk-constraints' into devel-hourly-2014092700
git bisect good c3d8a4dadca4527de0c294fb3befba882fc4f116 # 14:15 20+ 7 Merge 'ljones-mfd/for-mfd-next' into devel-hourly-2014092700
git bisect bad c42622ecfc1b3ca7110002aa37fa37e0bc6e2bbf # 14:20 0- 10 Merge 'jiangliu/irqdomain/p1v2' into devel-hourly-2014092700
git bisect good 07c59feab0eab9e51d0306e5f254e6ec148b568b # 14:31 20+ 7 Merge 'gpio/devel' into devel-hourly-2014092700
git bisect good 452b6361c4d9baf6940adb7b1316e0f386c39799 # 14:48 20+ 9 Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
git bisect good 424fff7ae225da25606f2ba6aafc5df3df1e8b7f # 14:57 20+ 8 x86, irq: Kill fourth parameter of IO_APIC_get_PCI_irq_vector()
git bisect good 65bc21db96059f859a4e88676578bb485f2eb1b0 # 15:05 20+ 14 x86, irq: Move PCI MSI related code from io_apic.c into msi.c
git bisect bad 9a55fc663ec935de7912d8a649abdc6351bef2b9 # 15:08 0- 20 x86, irq: Make MSI and HT_IRQ indepenent of X86_IO_APIC
git bisect good 9d24b890d00698320c804c335673a5a5dad177bb # 16:40 20+ 8 x86, irq: Move IOAPIC related declarations from hw_irq.h into io_apic.h
git bisect bad f2bb95f78a694f575ef41a9f65c003ee934fc263 # 18:44 0- 20 x86, irq: Move IRQ initialization routines from io_apic.c into vector.c
# first bad commit: [f2bb95f78a694f575ef41a9f65c003ee934fc263] x86, irq: Move IRQ initialization routines from io_apic.c into vector.c
git bisect good 9d24b890d00698320c804c335673a5a5dad177bb # 18:48 60+ 37 x86, irq: Move IOAPIC related declarations from hw_irq.h into io_apic.h
git bisect bad fe34ad1c7f6455ab6827d4cc84224b7f57eec1eb # 18:48 0- 11 0day head guard for 'devel-hourly-2014092700'
git bisect good 1e3827bf8aebe29af2d6e49b89d85dfae4d0154f # 23:29 60+ 27 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
git bisect good 4d8426f9ac601db2a64fa7be64051d02b9c9fe01 # 00:23 60+ 22 Add linux-next specific files for 20140926
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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
6 years, 6 months