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: <20200527173918.GD706495@hirez.programming.kicks-ass.net>
Date:   Wed, 27 May 2020 19:39:18 +0200
From:   Peter Zijlstra <peterz@...radead.org>
To:     mingo@...nel.org, will@...nel.org, tglx@...utronix.de
Cc:     x86@...nel.org, linux-kernel@...r.kernel.org,
        a.darwish@...utronix.de, rostedt@...dmis.org, bigeasy@...utronix.de
Subject: Re: [PATCH 2/6] lockdep: Change hardirq{s_enabled,_context} to
 per-cpu variables

On Wed, May 27, 2020 at 05:45:29PM +0200, Peter Zijlstra wrote:
> -do {						\
> -	if (!current->hardirq_context++)	\
> -		current->hardirq_threaded = 0;	\
> +# define lockdep_hardirq_enter()			\
> +do {							\
> +	if (!this_cpu_inc_return(hardirq_context))	\

	this_cpu_inc_return(hardirq_context) == 1

or this_cpu_fetch_inc(), which we don't have.

> +		current->hardirq_threaded = 0;		\

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ