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  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 4 Oct 2017 09:04:23 +0800
From:   Fengguang Wu <fengguang.wu@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     LKP <lkp@...org>, linux-kernel@...r.kernel.org,
        Ingo Molnar <mingo@...nel.org>
Subject: Re: d82fed7529 ("locking/lockdep/selftests: Fix mixed read-write
 .."):  BUG:  -1 unexpected failures (out of 262) - debugging disabled! |

On Wed, Aug 30, 2017 at 09:41:59AM +0200, Peter Zijlstra wrote:
>On Wed, Aug 30, 2017 at 08:29:47AM +0200, Peter Zijlstra wrote:
>> On Wed, Aug 30, 2017 at 11:37:21AM +0800, kernel test robot wrote:
>>
>> > [    0.004000] -----------------------------------------------------------------
>> > [    0.004000] BUG:  -1 unexpected failures (out of 262) - debugging disabled! |
>> > [    0.004000] -----------------------------------------------------------------
>>
>> lol.. however did that happen.. /me goes look.
>
>Ah, I think this should cure..

It works!

Tested-by: Fengguang Wu <fengguang.wu@...el.com>

>---
>diff --git a/lib/locking-selftest.c b/lib/locking-selftest.c
>index cd0b5c964bd0..2b827b8a1d8c 100644
>--- a/lib/locking-selftest.c
>+++ b/lib/locking-selftest.c
>@@ -2031,11 +2031,13 @@ void locking_selftest(void)
> 	print_testname("mixed read-lock/lock-write ABBA");
> 	pr_cont("             |");
> 	dotest(rlock_ABBA1, FAILURE, LOCKTYPE_RWLOCK);
>+#ifdef CONFIG_PROVE_LOCKING
> 	/*
> 	 * Lockdep does indeed fail here, but there's nothing we can do about
> 	 * that now.  Don't kill lockdep for it.
> 	 */
> 	unexpected_testcase_failures--;
>+#endif
>
> 	pr_cont("             |");
> 	dotest(rwsem_ABBA1, FAILURE, LOCKTYPE_RWSEM);

Powered by blists - more mailing lists