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]
Date:	Sat, 27 Aug 2011 12:51:22 +0200
From:	"Rafael J. Wysocki" <rjw@...k.pl>
To:	Tejun Heo <tj@...nel.org>
Cc:	Oleg Nesterov <oleg@...hat.com>, menage@...gle.com,
	linux-kernel@...r.kernel.org, arnd@...db.de
Subject: Re: [PATCH 06/16] freezer: make exiting tasks properly unfreezable

Hi Tejun,

On Saturday, August 27, 2011, Tejun Heo wrote:
> Hello, Rafael.
> 
> On Fri, Aug 26, 2011 at 11:09:38PM +0200, Rafael J. Wysocki wrote:
> > > One thing I'm curious about is how many drivers do we have left which
> > > depend on freezer as opposed to implementing proper quiescing
> > > mechanism using PM hooks?  Are there still a lot left?
> > 
> > There is a number of drivers that use freezable workqueues and that's
> > prefectly valid in my view.  Beyond that, may suspend/resume routines
> > depend on the freezer to some extent, because they assume that user
> > space won't talk to the driver while they are being run.
> > 
> > Do you mean any other kind of dependence?
> 
> I still feel a bit unsure about depending on freezer as escaping them
> unintentionally seems a bit too easy (e.g. schedule_work() for delayed
> processing) and as drivers need to implement responses to PM events
> anyway, I think implementing the support explicitly has lesser chance
> of causing obscure bugs which are difficult to reproduce.  Anyways,
> something to discuss some other day, I guess.

It seems that you are confusing two things - the interactions between the
drivers and kernel subsystems that can happen at any time, even during suspend
and resume, which can be taken care of with the help of various synchronization
mechanisms _inside_ of the kernel, and the interactions between the drivers
and user space resulting from user space using sysfs, ioctls, mmap,
proc, debugfs, sysv IPC, open/close, read/write and so on and so on.
The freezer's job is to take the second type of interactions out of the
picture for suspend/resume.

_Some_ drivers may want to use the freezer for their own purposes (e.g.
by using a freezable workqueue to avoid their own work items from being
executed in parallel with suspend/resume routines), but obviously they
have to know what they are doing.

Thanks,
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