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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251023153750.C6EU9NL6@linutronix.de>
Date: Thu, 23 Oct 2025 17:37:50 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Oleg Nesterov <oleg@...hat.com>
Cc: "Luis Claudio R. Goncalves" <lgoncalv@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	Clark Williams <clrkwllms@...nel.org>,
	Steven Rostedt <rostedt@...dmis.org>, Tejun Heo <tj@...nel.org>,
	David Vernet <dvernet@...a.com>, Barret Rhoden <brho@...gle.com>,
	Josh Don <joshdon@...gle.com>, Crystal Wood <crwood@...hat.com>,
	linux-kernel@...r.kernel.org, linux-rt-devel@...ts.linux.dev,
	Juri Lelli <juri.lelli@...hat.com>, Ben Segall <bsegall@...gle.com>,
	Dietmar Eggemann <dietmar.eggemann@....com>,
	Ingo Molnar <mingo@...hat.com>, Mel Gorman <mgorman@...e.de>,
	Valentin Schneider <vschneid@...hat.com>,
	Vincent Guittot <vincent.guittot@...aro.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Wander Lairson Costa <wander@...hat.com>
Subject: Re: usage of DEFINE_WAIT_OVERRIDE_MAP(LD_WAIT_SLEEP)

On 2025-10-23 17:29:43 [+0200], Oleg Nesterov wrote:
> Hmm. I'll recheck, quite possibly I missed something.
> 
> But. From include/linux/spinlock_types.h
> 
> 	/* PREEMPT_RT kernels map spinlock to rt_mutex */
> 	#include <linux/rtmutex.h>
> 
> 	typedef struct spinlock {
> 		struct rt_mutex_base	lock;
> 	#ifdef CONFIG_DEBUG_LOCK_ALLOC
> 		struct lockdep_map	dep_map;
> 	#endif
> 	} spinlock_t;
> 
> > rt_mutex is defined as LD_WAIT_SLEEP but this one is not the one we use
> > for spinlock_t.

I may need to update the comment then if this is the source of your of
confusion. The rtmutex.h header is required for the rtmutex bits which
does contain struct rt_mutex_base which is used below you see.
struct rt_mutex iself is not used here and has a different semantic
(this one does use SLEEP).

> Oleg.

Sebastian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ