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: <20190422001404.GC21035@shao2-debian>
Date:   Mon, 22 Apr 2019 08:14:04 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Waiman Long <longman@...hat.com>
Cc:     Ingo Molnar <mingo@...nel.org>,
        Davidlohr Bueso <dave@...olabs.net>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Tim Chen <tim.c.chen@...ux.intel.com>,
        Will Deacon <will.deacon@....com>,
        huang ying <huang.ying.caritas@...il.com>,
        LKML <linux-kernel@...r.kernel.org>,
        "H. Peter Anvin" <hpa@...or.com>, tipbuild@...or.com, lkp@...org
Subject: [locking/rwsem] 21471c203e:
 WARNING:at_kernel/locking/rwsem.c:#downgrade_write

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

commit: 21471c203eb7f02124c15127f806f1b145e8d663 ("locking/rwsem: Disable reader optimistic spinning adaptively")
https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git WIP.locking/core

in testcase: boot

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

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


+----------------------------------------------------+------------+------------+
|                                                    | ce474d0a73 | 21471c203e |
+----------------------------------------------------+------------+------------+
| boot_successes                                     | 35         | 19         |
| boot_failures                                      | 1          | 17         |
| IP-Config:Auto-configuration_of_network_failed     | 1          |            |
| WARNING:at_kernel/locking/rwsem.c:#downgrade_write | 0          | 16         |
| RIP:downgrade_write                                | 0          | 16         |
| WARNING:at_net/sched/sch_generic.c:#dev_watchdog   | 0          | 1          |
| RIP:dev_watchdog                                   | 0          | 1          |
+----------------------------------------------------+------------+------------+


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


[  184.736582] WARNING: CPU: 0 PID: 260 at kernel/locking/rwsem.c:1453 downgrade_write+0x161/0x2b9
[  184.739158] CPU: 0 PID: 260 Comm: in:imuxsock Not tainted 5.1.0-rc4-00088-g21471c2 #1
[  184.741175] RIP: 0010:downgrade_write+0x161/0x2b9
[  184.742351] Code: 00 48 8b 13 4c 8b 4c 24 08 48 89 e9 4c 8b 04 24 48 c7 c6 80 a2 c6 82 48 c7 c7 20 a1 c6 82 e8 7d 62 f5 ff 48 ff 05 a7 ba cd 04 <0f> 0b 48 ff 05 a6 ba cd 04 e9 0a 01 00 00 48 c7 c7 98 e5 ac 83 48
[  184.747015] RSP: 0000:ffff88804fd4fd50 EFLAGS: 00010202
[  184.748361] RAX: 0000000000000000 RBX: ffff8880557e32b8 RCX: 0000000000000000
[  184.750147] RDX: 000000835cf46100 RSI: ffffffff811e19a8 RDI: ffffed1009fa9f9f
[  184.752181] RBP: ffff88805cf46102 R08: ffffed100d07ccd9 R09: 0000000000000007
[  184.754022] R10: ffffed100aafc658 R11: ffffed100d07ccd8 R12: 1ffff11009fa9fac
[  184.755826] R13: ffff8880557e3318 R14: ffff8880557e32c0 R15: ffff88804fe06aa8
[  184.757646] FS:  00007fdfee986700(0000) GS:ffff888068200000(0000) knlGS:0000000000000000
[  184.759599] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  184.761147] CR2: 00007f81d536b6e0 CR3: 000000004f1e5000 CR4: 00000000000006f0
[  184.762891] Call Trace:
[  184.763579]  ? up_write+0x1eb/0x1eb
[  184.764599]  ? vma_compute_subtree_gap+0x139/0x141
[  184.765784]  ? __vma_rb_erase+0x4c3/0x534
[  184.766955]  ? vma_compute_subtree_gap+0x139/0x141
[  184.768170]  __do_munmap+0x612/0x77b
[  184.769080]  __vm_munmap+0xd9/0x149
[  184.770009]  ? __do_munmap+0x77b/0x77b
[  184.771061]  ? mark_held_locks+0x92/0xa8
[  184.772061]  __se_sys_munmap+0x35/0x41
[  184.773037]  __x64_sys_munmap+0x33/0x3d
[  184.774136]  do_syscall_64+0xb2/0x3bd
[  184.775128]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[  184.776364] RIP: 0033:0x7fdfefcd94a7
[  184.777377] Code: c7 c0 ff ff ff ff eb 8d 48 8b 15 ec 49 2b 00 f7 d8 64 89 02 e9 5b ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c1 49 2b 00 f7 d8 64 89 01 48
[  184.781760] RSP: 002b:00007fdfee985c78 EFLAGS: 00000206 ORIG_RAX: 000000000000000b
[  184.783625] RAX: ffffffffffffffda RBX: 00007fdfe8000000 RCX: 00007fdfefcd94a7
[  184.785364] RDX: 0000000000000000 RSI: 0000000001e7b000 RDI: 00007fdfe6185000
[  184.787183] RBP: 0000000000023000 R08: ffffffffffffffff R09: 0000000000000000
[  184.788862] R10: 0000000000004022 R11: 0000000000000206 R12: 0000000001e7b000
[  184.790694] R13: 00007fffab1ef6cf R14: 0000000000000000 R15: 00007fdff1213040
[  184.792370] irq event stamp: 132
[  184.793270] hardirqs last  enabled at (131): [<ffffffff811deaa6>] console_unlock+0xa36/0xa9c
[  184.795376] hardirqs last disabled at (132): [<ffffffff810023f1>] trace_hardirqs_off_thunk+0x1a/0x1c
[  184.797645] softirqs last  enabled at (128): [<ffffffff82a00735>] __do_softirq+0x735/0x7a7
[  184.799642] softirqs last disabled at (123): [<ffffffff8111bdc8>] irq_exit+0xba/0xff
[  184.801532] ---[ end trace 230952bfbdc12d4d ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.1.0-rc4-00088-g21471c2 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage


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



Thanks,
eywa


View attachment "config-5.1.0-rc4-00088-g21471c2" of type "text/plain" (107441 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ