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: <alpine.LFD.0.98.0704261608160.9964@woody.linux-foundation.org>
Date:	Thu, 26 Apr 2007 16:15:39 -0700 (PDT)
From:	Linus Torvalds <torvalds@...ux-foundation.org>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
cc:	nigel@...el.suspend2.net,
	Andrew Morton <akpm@...ux-foundation.org>,
	Xavier Bestel <xavier.bestel@...e.fr>,
	Pekka Enberg <penberg@...helsinki.fi>,
	LKML <linux-kernel@...r.kernel.org>, Pavel Machek <pavel@....cz>
Subject: Re: Back to the future.



On Fri, 27 Apr 2007, Rafael J. Wysocki wrote:
> 
> Well, I think that much of what Linus is saying indicates that he hasn't tried
> to write any such thing himself. ;-)

That's definitely true. The only interaction I ever had with "hibernation" 
(and yes, we should just call it that) is when I was working on s2ram and 
cleaning up the PCI device suspend/resume in particular, and trying 
(_mostly_ successfully - I think I broke it once or twice mainly due to 
interactions with the console, but on the whole I think it mostly worked) 
to not break hibernation in the process without actually running it.

> Now that I know much more than before, I can say I agree with Linus on his
> opinion about the separation of s2ram form the snapshot/restore functionality
> (I'll call it 'hibernation' for simplicity from now on).

So my strong opinion on it literally comes from the other end (ie _not_ 
knowing about hibernation, but trying to work with s2ram, and cursing the 
mixups).

> It should be done, because it would make things simpler and cleaner.  
> Still, it will be difficult to do without screwing users en masse and 
> that's my main concern here.

I do agree. It will inevitably affect a lot of devices. That's always 
painful.

> I don't agree that we don't need the tasks freezer for suspending and
> hibernation.  We need it, because we need to be sure that the (other) tasks
> will not get us in the way, and that also applies to kernel threads (and I
> don't think the tasks freezer is 'screwing' them, BTW).

I actually feel much less strongly about that, because just separating out 
s2ram and hibernate entirely from each other would already really get the 
thing _I_ care about taken care of - being able to work on one of the 
other without fear of breaking the other one.

And besides, I actually came into the whole discussion because I'm not a 
huge fan of thinking that user-land is "better". If the thing can sanely 
be done in kernel, I'm actually all for that. What drives me wild is 
having three different things, and nobody driving.

It needs somebody who (a) cares (b) has good taste and (c) has enough time 
and personal karma to burn that he can actually take the (obviously) 
inevitable heat from just doing things right, and convincing people to 
select *one* implementation.

That kind of person is really really hard to find. And if you're it, 
you're in for some pain ;)

		Linus
-
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