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: <YuqOqJnNzmEDKRIB@xsang-OptiPlex-9020>
Date:   Wed, 3 Aug 2022 23:05:12 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     "Paul E. McKenney" <paulmck@...nel.org>
CC:     Neeraj Upadhyay <neeraj.iitr10@...il.com>,
        LKML <linux-kernel@...r.kernel.org>, <lkp@...ts.01.org>,
        <lkp@...el.com>
Subject: [rcutorture]  613b00fbe6:
 WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_fwd_prog_cr[rcutorture]


(please be noted we reported this since clean on parent, ~10% on this commit,
and found similar issue on latest maineline, e.g. v5.19)


Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: 613b00fbe64461f1c73e035e07c22cf3de65740b ("rcutorture: Add ability to limit callback-flood intensity")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: rcutorture
version: 
with following parameters:

	runtime: 300s
	test: default
	torture_type: tasks-tracing

test-description: rcutorture is rcutorture kernel module load/unload test.
test-url: https://www.kernel.org/doc/Documentation/RCU/torture.txt


on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+-------------------------------------------------------------------------+------------+------------+
|                                                                         | 82e310033d | 613b00fbe6 |
+-------------------------------------------------------------------------+------------+------------+
| WARNING:suspicious_RCU_usage                                            | 495        | 492        |
| net/mac80211/util.c:#RCU-list_traversed_in_non-reader_section           | 495        | 492        |
| WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_fwd_prog_cr[rcutorture] | 0          | 59         |
| RIP:rcu_torture_fwd_prog_cr[rcutorture]                                 | 0          | 59         |
+-------------------------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[  108.264694][  T609] ------------[ cut here ]------------
[  108.266289][  T609] WARNING: CPU: 1 PID: 609 at kernel/rcu/rcutorture.c:2424 rcu_torture_fwd_prog_cr+0x2b4/0x35b [rcutorture]
[  108.269234][  T609] Modules linked in: rcutorture torture
[  108.273815][  T609] CPU: 1 PID: 609 Comm: rcu_torture_fwd Not tainted 5.16.0-rc1-00017-g613b00fbe644 #1
[  108.278939][  T609] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[  108.284076][  T609] RIP: 0010:rcu_torture_fwd_prog_cr+0x2b4/0x35b [rcutorture]
[  108.287642][  T609] Code: 00 00 00 31 f6 48 83 fb 63 48 c7 c7 8c cf 3d c0 40 0f 9e c6 31 c9 31 d2 89 34 24 e8 d2 82 65 e1 48 83 fb 63 8b 34 24 7f 04 90 <0f> 0b 90 31 c9 31 d2 48 c7 c7 5c cf 3d c0 e8 b5 82 65 e1 48 8b 0d
[  108.292474][  T609] RSP: 0018:ffffbaa900e57e88 EFLAGS: 00010293
[  108.296403][  T609] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[  108.300220][  T609] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
[  108.304399][  T609] RBP: ffff8eb8aabf9000 R08: 0000000000000000 R09: 0000000000000000
[  108.308498][  T609] R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000c350
[  108.312397][  T609] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[  108.316445][  T609] FS:  0000000000000000(0000) GS:ffff8ebbafd00000(0000) knlGS:0000000000000000
[  108.318874][  T609] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  108.322154][  T609] CR2: 00007f252d395000 CR3: 0000000129f7d000 CR4: 00000000000406e0
[  108.326356][  T609] Call Trace:
[  108.327617][  T609]  <TASK>
[  108.329212][  T609]  rcu_torture_fwd_prog.cold+0x15/0x107 [rcutorture]
[  108.331042][  T609]  ? rcu_torture_fwd_cb_hist+0x130/0x130 [rcutorture]
[  108.334311][  T609]  kthread+0x174/0x190
[  108.337288][  T609]  ? set_kthread_struct+0x70/0x70
[  108.338564][  T609]  ret_from_fork+0x1f/0x30
[  108.344134][  T609]  </TASK>
[  108.345054][  T609] irq event stamp: 627031
[  108.347350][  T609] hardirqs last  enabled at (627041): [<ffffffffa1972173>] __up_console_sem+0x93/0xa0
[  108.351383][  T609] hardirqs last disabled at (627052): [<ffffffffa1972158>] __up_console_sem+0x78/0xa0
[  108.356154][  T609] softirqs last  enabled at (627068): [<ffffffffa3600418>] __do_softirq+0x418/0x6d2
[  108.360637][  T609] softirqs last disabled at (627061): [<ffffffffa18e79af>] irq_exit_rcu+0x7f/0xa0
[  108.363278][  T609] ---[ end trace e4e644c3e2ccc2ed ]---



To reproduce:

        # build kernel
	cd linux
	cp config-5.16.0-rc1-00017-g613b00fbe644 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-5.16.0-rc1-00017-g613b00fbe644" of type "text/plain" (149281 bytes)

View attachment "job-script" of type "text/plain" (5298 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (21748 bytes)

View attachment "rcutorture" of type "text/plain" (10104 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ