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-prev] [day] [month] [year] [list]
Message-ID: <20171218121925.GA22866@bombadil.infradead.org>
Date:   Mon, 18 Dec 2017 04:19:25 -0800
From:   Matthew Wilcox <willy@...radead.org>
To:     Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>
Cc:     linux-mm@...ck.org, linux-kernel@...r.kernel.org,
        syzkaller@...glegroups.com, Ingo Molnar <mingo@...hat.com>,
        Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] lockdep: Print number of locks held by running tasks.

On Mon, Dec 18, 2017 at 09:09:55PM +0900, Tetsuo Handa wrote:
>  		 */
> -		if (p->state == TASK_RUNNING && p != current)
> +		if (p->state == TASK_RUNNING && p != current) {
> +			const int depth = p->lockdep_depth;

READ_ONCE()?

> +			if (depth)
> +				printk("%d lock%s held by %s/%d:\n",
> +				       depth, depth > 1 ? "s" : "", p->comm,
> +				       task_pid_nr(p));
>  			continue;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ