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: <200705122314.57458.rjw@sisk.pl>
Date:	Sat, 12 May 2007 23:14:56 +0200
From:	"Rafael J. Wysocki" <rjw@...k.pl>
To:	Linus Torvalds <torvalds@...ux-foundation.org>
Cc:	Pavel Machek <pavel@....cz>, Gautham R Shenoy <ego@...ibm.com>,
	Oleg Nesterov <oleg@...sign.ru>,
	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFD] Freezing of kernel threads

On Saturday, 12 May 2007 20:25, Linus Torvalds wrote:
> 
> On Sat, 12 May 2007, Rafael J. Wysocki wrote:
> > 
> > Of course, that would also require us to rewrite the freezer itself quite a
> > bit, but IMO it's worthy of doing.
> > 
> > Thoughts?
> 
> I'd much prefer it. One of the reasons I hate the freezer so much is that 
> it ends up affecting things it really has no business affecting. Why 
> should a random kernel thread have to havecode NOT to care? So it makes 
> much more sense to default to "I don't care about the freezer", and then 
> people who do care can say so and add their own code.
> 
> That said, I also suspect that suspend should depend less on the freezer 
> in the first place, and depend more on just shutting up specific actions.

Well, I think that could be the next step.

> The freezer is kind of a blunt instrument that just stops everything, 
> without actually understanding *what* it stops. As a result (since it 
> really doesn't know what it's doing), it ends up having all the issues 
> with "ok, I don't know what I'm doing, but that guy says I shouldn't do 
> it, so I won't".
> 
> Blunt instruments are often _easier_ (compare with the global kernel lock 
> in SMP), but they end up being very inflexible and hard to get rid of 
> later when you want to do something more intelligent. 

I generally agree, but as far as the hibernation/suspend is concerned, I'm not
at the point of doing things more intelligently yet.  Someone who's been
developing the kernel for the last 15 years surely can do this, but not me.

OTOH, I think I can change the freezer so that it works as I outlined in the
previous message and I'd like to be able to make some progress in a direction
that's more-or-less acceptable to everyone.

Frankly, I don't see much point in developing things that you object to very
strongly, because that ultimately would lead to a loss of time, mine as well as
yours.

Greetings,
Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ