public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [RFC] Add the "icebox"
Date: Thu, 8 Nov 2007 00:32:06 +0100	[thread overview]
Message-ID: <200711080032.06972.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0711071726590.8406-100000@iolanthe.rowland.org>

On Wednesday, 7 of November 2007, Alan Stern wrote:
> On Wed, 7 Nov 2007, Rafael J. Wysocki wrote:
> 
> > > P.S.: What about mutual exclusion in kernel/power/user.c?  If we stop 
> > > freezing user tasks, there's nothing to prevent more than one task 
> > > holding an open file reference to the snapshot file and submitting 
> > > ioctls concurrently.  Maybe the regions covered by pm_mutex should be 
> > > expanded.
> > 
> > /dev/snapshot can only be open once at a time.
> 
> What if a process opens /dev/snapshot and then forks a child?  Can't
> the parent and child processes make concurrent ioctl calls?

Well, that would be shooting yourself in a foot.

You can do many stupid things as root and this one is probably not the worst of
them after all. ;-)

Greetings,
Rafael

  reply	other threads:[~2007-11-07 23:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 21:27 [RFC] Add the "icebox" Alan Stern
2007-11-05 22:11 ` Rafael J. Wysocki
2007-11-06 15:08   ` Alan Stern
2007-11-07 17:16   ` Alan Stern
2007-11-07 22:31     ` Rafael J. Wysocki
2007-11-07 22:28       ` Alan Stern
2007-11-07 23:32         ` Rafael J. Wysocki [this message]
2007-11-07  8:58 ` Johannes Berg
2007-11-07 15:47   ` Alan Stern
2007-11-07 15:54     ` Johannes Berg
2007-11-07 16:47       ` Alan Stern
2007-11-07 16:53         ` Johannes Berg
2007-11-07 19:49 ` Mark Gross
2007-11-07 20:02   ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200711080032.06972.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox