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: <Z2MHKe3UpjdwaCkt@localhost.localdomain>
Date: Wed, 18 Dec 2024 18:32:25 +0100
From: Frederic Weisbecker <frederic@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Costa Shulyupin <costa.shul@...hat.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Yury Norov <yury.norov@...il.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Valentin Schneider <vschneid@...hat.com>,
	Neeraj Upadhyay <neeraj.upadhyay@...nel.org>,
	linux-kernel@...r.kernel.org, Waiman Long <longman@...hat.com>,
	x86@...nel.org
Subject: Re: [RFC PATCH v1] stop_machine: Add stop_housekeeping_cpuslocked()

Le Wed, Dec 18, 2024 at 06:27:54PM +0100, Peter Zijlstra a écrit :
> On Wed, Dec 18, 2024 at 07:15:31PM +0200, Costa Shulyupin wrote:
> 
> > Which synchronizations do these functions require instead of stop_machine?
> 
> *sigh*, so you're asking us to do your homework?
> 
> But clearly you're not realizing the scope of the thing: stop_machine()
> serializes against every preempt_disable() region in the entire kernel.
> 
> So you're telling me there isn't a single preempt_disable() region in
> the kernel that depends on being before stop_machine() in its entirety?
> 
> I know for a fact I've written some in the past 20 years -- what I don't
> know if any of them still live and are still relying on it, because I've
> also added synchronize_rcu_sched(), which later became synchronize_rcu()
> which implies the same, in various parts of the hotplug machinery.
> 
> Anyway, without you doing some proper analysis, your patches are going
> exactly nowhere.

And so given the cost of such analysis and resulting possible patches, here
is an important question: is it worth the effort? What is the usecase of
shutting down a CPU while other isolated CPUs run critical isolated stuff?

Thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ