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>] [day] [month] [year] [list]
Message-ID: <20150306060535.GC28187@wfg-t540p.sh.intel.com>
Date:	Fri, 6 Mar 2015 14:05:35 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Rusty Russell <rusty@...tcorp.com.au>
Cc:	fengguang.wu@...el.com, LKP <lkp@...org>,
	linux-kernel@...r.kernel.org
Subject: [cpumask] WARNING: CPU: 0 PID: 0 at lib/list_debug.c:29 __list_add()

Greetings,

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

git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux.git

commit f754909a13e848900abee1014ca29b9b4e33b6ff
Author:     Rusty Russell <rusty@...tcorp.com.au>
AuthorDate: Thu Mar 5 10:49:19 2015 +1030
Commit:     Rusty Russell <rusty@...tcorp.com.au>
CommitDate: Thu Mar 5 13:37:09 2015 +1030

    cpumask: only allocate nr_cpumask_bits.
    
    Now we'll find out the hard way if anyone has CPUMASK_OFFSTACK and is
    returning these or assigning them.
    
    Signed-off-by: Rusty Russell <rusty@...tcorp.com.au>

+------------------------------------------------------------------+------------+------------+------------+
|                                                                  | 7928baeec5 | f754909a13 | e9d45bb15b |
+------------------------------------------------------------------+------------+------------+------------+
| boot_successes                                                   | 44         | 0          | 0          |
| boot_failures                                                    | 16         | 20         | 12         |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 16         |            |            |
| backtrace:serio_handle_event                                     | 16         |            |            |
| backtrace:__kmalloc                                              | 1          |            |            |
| backtrace:device_private_init                                    | 1          |            |            |
| WARNING:at_lib/list_debug.c:#__list_add()                        | 0          | 20         | 12         |
| BUG:unable_to_handle_kernel                                      | 0          | 20         | 12         |
| Oops                                                             | 0          | 20         | 12         |
| RIP:arch_early_ioapic_init                                       | 0          | 20         | 12         |
| Kernel_panic-not_syncing:Fatal_exception                         | 0          | 20         | 12         |
| backtrace:kmem_cache_create                                      | 0          | 20         | 12         |
| backtrace:idr_init_cache                                         | 0          | 20         | 12         |
| backtrace:arch_early_ioapic_init                                 | 0          | 20         | 12         |
| backtrace:arch_early_irq_init                                    | 0          | 20         | 12         |
| backtrace:early_irq_init                                         | 0          | 20         | 12         |
+------------------------------------------------------------------+------------+------------+------------+

[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Memory: 290172K/327160K available (5970K kernel code, 1525K rwdata, 2844K rodata, 788K init, 13824K bss, 36988K reserved, 0K cma-reserved)
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at lib/list_debug.c:29 __list_add+0x70/0xd0()
[    0.000000] list_add corruption. next->prev should be prev (ffffffff83ba0240), but was           (null). (next=ffff880013401030).
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.0.0-rc2-00166-gf754909 #35
[    0.000000]  ffffffff83a064f0 ffffffff83aa3e18 ffffffff837c9478 0000000000000000
[    0.000000]  ffffffff83aa3e68 ffffffff83aa3e58 ffffffff83249530 ffffffff83aa3e48
[    0.000000]  ffff880013402050 ffff880013401030 ffffffff83ba0240 0000000000000000
[    0.000000] Call Trace:
[    0.000000]  [<ffffffff837c9478>] dump_stack+0x4f/0x7b
[    0.000000]  [<ffffffff83249530>] warn_slowpath_common+0x80/0xc0
[    0.000000]  [<ffffffff832495b1>] warn_slowpath_fmt+0x41/0x50
[    0.000000]  [<ffffffff83569830>] __list_add+0x70/0xd0
[    0.000000]  [<ffffffff832fa116>] kmem_cache_create+0xf6/0x1f0
[    0.000000]  [<ffffffff83c5041b>] idr_init_cache+0x1f/0x28
[    0.000000]  [<ffffffff83c30d4e>] start_kernel+0x276/0x50e
[    0.000000]  [<ffffffff83c30120>] ? early_idt_handlers+0x120/0x120
[    0.000000]  [<ffffffff83c304b3>] x86_64_start_reservations+0x2a/0x2c
[    0.000000]  [<ffffffff83c305b2>] x86_64_start_kernel+0xfd/0x10c
[    0.000000] ---[ end trace cb88537fdc8fa200 ]---
[    0.000000] Preemptible hierarchical RCU implementation.

git bisect start e9d45bb15ba89a3ef7b6dde0d12d15d4964e74de 13a7a6ac0a11197edcd0f756a035f472b42cdf8b --
git bisect good 584c906002a75a94306bb1532e5c9d0a64ce6379  # 12:23     20+      0  Merge 'nfs/devel' into devel-snb-smoke-201503051145
git bisect good a0f973d320468f2c5d72bc9d12bc5493723c17d1  # 12:38     20+      0  Merge 'rusty/virtio-next' into devel-snb-smoke-201503051145
git bisect  bad ab49e5a43e09fc7540085082485fceb22b02d5e5  # 12:45      0-     20  Merge 'rusty/cpumask-next' into devel-snb-smoke-201503051145
git bisect good e6f4c1436a8d2a38c1c2246074837b20387edc44  # 13:03     20+     20  mips: fix up obsolete cpu function usage.
git bisect good c3fa335e22078976dcdb6f3a9228ccd000c3b53e  # 13:14     20+      3  blackfin: fix up obsolete cpu function usage.
git bisect good c099221e5944e36612c4079d888a38530a667645  # 13:27     20+     20  cpumask: remove deprecated functions.
git bisect  bad f754909a13e848900abee1014ca29b9b4e33b6ff  # 13:34      0-     20  cpumask: only allocate nr_cpumask_bits.
git bisect good 7928baeec50516d4f632f2b9a66925a3fc1126b0  # 13:56     20+      0  Fix weird uses of num_online_cpus().
# first bad commit: [f754909a13e848900abee1014ca29b9b4e33b6ff] cpumask: only allocate nr_cpumask_bits.
git bisect good 7928baeec50516d4f632f2b9a66925a3fc1126b0  # 13:58     60+     16  Fix weird uses of num_online_cpus().
# extra tests with DEBUG_INFO
git bisect good f754909a13e848900abee1014ca29b9b4e33b6ff  # 14:15     60+     60  cpumask: only allocate nr_cpumask_bits.
# extra tests on HEAD of linux-devel/devel-snb-smoke-201503051145
git bisect  bad e9d45bb15ba89a3ef7b6dde0d12d15d4964e74de  # 14:15      0-     12  0day head guard for 'devel-snb-smoke-201503051145'
# extra tests on tree/branch rusty/cpumask-next
git bisect  bad f754909a13e848900abee1014ca29b9b4e33b6ff  # 14:23      0-     20  cpumask: only allocate nr_cpumask_bits.
# extra tests with first bad commit reverted
# extra tests on tree/branch linus/master
git bisect good 6587457b4b3d663b237a0f95ddf6e67d1828c8ea  # 14:32     60+     20  Merge tag 'dma-buf-for-4.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/sumits/dma-buf
# extra tests on tree/branch next/master
git bisect good cbbf783608bd1f177fd8b1f6498bb2481116beed  # 14:52     60+     60  Add linux-next specific files for 20150305


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-2:20150305133310:x86_64-randconfig-s0-03031804:4.0.0-rc2-00166-gf754909:35" of type "text/plain" (15945 bytes)

View attachment "config-4.0.0-rc2-00166-gf754909" of type "text/plain" (74319 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ