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: <Pine.LNX.4.44L0.0803061656180.19564-100000@iolanthe.rowland.org>
Date:	Thu, 6 Mar 2008 16:58:31 -0500 (EST)
From:	Alan Stern <stern@...land.harvard.edu>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
cc:	pm list <linux-pm@...ts.linux-foundation.org>,
	Alexey Starikovskiy <astarikovskiy@...e.de>,
	Pavel Machek <pavel@....cz>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC][PATCH] PM: Make PM core handle device registrations
 concurrent with suspend/hibernation

On Thu, 6 Mar 2008, Rafael J. Wysocki wrote:

> > > Well, can it happen in practice?  If it can, then what way can it happen?
> > 
> > Yes, it can happen in practice when a new module is loaded.  In some 
> > ways, modules' init routines are like probe methods.
> 
> Hmm, I'm not sure if it really is possible to load a module when all devices
> have been suspended.  Never mind, though.

You can load the module before devices are suspended, and then its init 
routine can run while the suspend is starting.

> > To be safe, I think we should make system sleep mutually exclusive with 
> > module loading.
> 
> Okay, is the (yet another) version of the patch below fine by you?

Yes, it's fine.  Mutual exclusion with module loading can be added 
later.  (Ironically, it may require putting pm_sleep_rwsem back!)

Alan Stern

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