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: <20150218033623.GA12562@wfg-t540p.sh.intel.com>
Date:	Wed, 18 Feb 2015 11:36:23 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc:	LKP <lkp@...org>, linux-kernel@...r.kernel.org
Subject: [rcu] [    0.081483] [ INFO: suspicious RCU usage. ]

Greetings,

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

git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/dev

commit 4da4e28818f5017c96f0fde72d643e965ac78253
Author:     Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
AuthorDate: Mon Feb 16 17:20:57 2015 -0800
Commit:     Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
CommitDate: Mon Feb 16 17:20:57 2015 -0800

    Squash with 287f7a10372c (rcu: Process offlining and onlining only at grace-period start)
    
    ->oflmask and ->onlmask replaced by ->qsmaskinitnext
    
    Signed-off-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>

+----------------------------------------------------------------+------------+------------+------------+
|                                                                | 414341d2c2 | 4da4e28818 | 4da4e28818 |
+----------------------------------------------------------------+------------+------------+------------+
| boot_successes                                                 | 60         | 0          | 0          |
| boot_failures                                                  | 0          | 12         | 12         |
| INFO:suspicious_RCU_usage                                      | 0          | 12         | 12         |
| RCU_used_illegally_from_offline_CPU                            | 0          | 12         | 12         |
| WARNING:at_kernel/rcu/tree_plugin.h:#rcu_note_context_switch() | 0          | 12         | 12         |
| backtrace:kthread_create_on_node                               | 0          | 2          | 2          |
| backtrace:kernel_init_freeable                                 | 0          | 3          | 3          |
| backtrace:build_sched_domains                                  | 0          | 2          | 2          |
| backtrace:sched_init_smp                                       | 0          | 2          | 2          |
| backtrace:do_fork                                              | 0          | 10         | 10         |
| backtrace:kthreadd                                             | 0          | 10         | 10         |
| backtrace:kill_pid_info                                        | 0          | 7          | 7          |
| backtrace:SyS_kill                                             | 0          | 7          | 7          |
| backtrace:populate_rootfs                                      | 0          | 1          | 1          |
+----------------------------------------------------------------+------------+------------+------------+

[    0.080336] 
[    0.080669] ===============================
[    0.080669] ===============================
[    0.081483] [ INFO: suspicious RCU usage. ]
[    0.081483] [ INFO: suspicious RCU usage. ]
[    0.082283] 3.19.0-rc1-00098-g4da4e28 #79 Not tainted
[    0.082283] 3.19.0-rc1-00098-g4da4e28 #79 Not tainted
[    0.083267] -------------------------------
[    0.083267] -------------------------------
[    0.084068] kernel/sched/fair.c:4737 suspicious rcu_dereference_check() usage!
[    0.084068] kernel/sched/fair.c:4737 suspicious rcu_dereference_check() usage!
[    0.085733]
[    0.085733] other info that might help us debug this:
[    0.085733]
[    0.085733]
[    0.085733] other info that might help us debug this:
[    0.085733]
[    0.087275]
[    0.087275] RCU used illegally from offline CPU!
[    0.087275] rcu_scheduler_active = 1, debug_locks = 0      
[    0.087275]
[    0.087275] RCU used illegally from offline CPU!
[    0.087275] rcu_scheduler_active = 1, debug_locks = 0
[    0.089395] 2 locks held by swapper/0/1:
[    0.089395] 2 locks held by swapper/0/1:
[    0.090000]  #0:
[    0.090000]  #0:  ( (&p->pi_lock&p->pi_lock){-.....}){-.....}, at: , at: [<c105160e>] try_to_wake_up+0x20/0x278
[<c105160e>] try_to_wake_up+0x20/0x278
[    0.090000]  #1:
[    0.090000]  #1:  ( (rcu_read_lockrcu_read_lock){......}){......}, at: , at: [<c105676c>] select_task_rq_fair+0x63/0x859
[<c105676c>] select_task_rq_fair+0x63/0x859


git bisect start 4da4e28818f5017c96f0fde72d643e965ac78253 97bf6af1f928216fd6c5a66e8a57bfa95a659672 --
git bisect good 6109b00d083775e7f884e0e6562c7cc502fb701b  # 11:26     20+      0  rcu: Improve diagnostics for blocked critical sections in irq
git bisect good 287f7a10372c77a6ae9bb5efaa51a48291bfaa35  # 11:28     20+      0  rcu: Process offlining and onlining only at grace-period start
git bisect good c99d87408752d8d76d5af4ceb1a8d68cb36ab902  # 11:57     20+      0  rcu: Reverse rcu_dereference_check() conditions
git bisect good 61d642e9d1b66a46626ba3a77ef39fdb3aa6fbf4  # 11:58     20+      0  rcu: Remove unnecessary condition check in rcu_qsctr_help()
git bisect good 807079420046dd96282c0f755b13869d8dff35f8  # 12:00     20+      0  rcu: Remove fastpath from __rcu_process_callbacks()
git bisect good 414341d2c2f7efa9564b45ccdd86ffd498b53c05  # 12:02     20+      0  rcu: Add grace-period initialization check for proper ->qsmask values
# first bad commit: [4da4e28818f5017c96f0fde72d643e965ac78253] Squash with 287f7a10372c (rcu: Process offlining and onlining only at grace-period start)
git bisect good 414341d2c2f7efa9564b45ccdd86ffd498b53c05  # 12:05     60+      0  rcu: Add grace-period initialization check for proper ->qsmask values
# extra tests with DEBUG_INFO
git bisect  bad 4da4e28818f5017c96f0fde72d643e965ac78253  # 12:29      0-      5  Squash with 287f7a10372c (rcu: Process offlining and onlining only at grace-period start)
# extra tests on HEAD of rcu/rcu/dev
git bisect  bad 4da4e28818f5017c96f0fde72d643e965ac78253  # 12:29      0-     12  Squash with 287f7a10372c (rcu: Process offlining and onlining only at grace-period start)
# extra tests on tree/branch rcu/rcu/dev
git bisect  bad 4da4e28818f5017c96f0fde72d643e965ac78253  # 12:29      0-     12  Squash with 287f7a10372c (rcu: Process offlining and onlining only at grace-period start)
# extra tests with first bad commit reverted
# extra tests on tree/branch linus/master
git bisect good 796e1c55717e9a6ff5c81b12289ffa1ffd919b6f  # 12:47     60+      0  Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
# extra tests on tree/branch next/master
git bisect good 272788cded4e29bc1f1cc97784b90364e6038639  # 13:20     60+      0  Add linux-next specific files for 20150216


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
	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-quantal-ivb41-33:20150217110840:i386-randconfig-r2-0217:3.19.0-rc1-00098-g4da4e28:79" of type "text/plain" (111628 bytes)

View attachment "config-3.19.0-rc1-00098-g4da4e28" of type "text/plain" (80539 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ