From: Philipp Rumpf <prumpf@uzix.org>
To: Andrew Morton <andrewm@uow.edu.au>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: sys_exit() and zap_page_range()
Date: Mon, 10 Jul 2000 10:34:07 -0700 [thread overview]
Message-ID: <20000710103407.C3826@fruits.uzix.org> (raw)
In-Reply-To: <3969ED88.7238630B@uow.edu.au>
On Tue, Jul 11, 2000 at 01:36:40AM +1000, Andrew Morton wrote:
> Philipp Rumpf wrote:
> >
> > On Sun, Jul 09, 2000 at 11:54:54PM +0000, Andrew Morton wrote:
> > > Philipp Rumpf wrote:
> > > Hi, Philipp.
> > >
> > > > Here's a simple way:
> > >
> > > Already done it :) It's apparent that not _all_ callers of z_p_r need
> > > this treatment, so I've added an extra 'do_reschedule' flag. I've also
> > > moved the TLB flushing into this function.
> >
> > It is ? I must be missing something, but it looks to me like all calls
> > to z_p_r can be done out of syscalls, with pretty much any size the user
> > wants.
>
> Possibly - but I don't want to put reschedules into places unless
> they're demonstrated to cause scheduling stalls.
I disagree with that. It's a complicated rule. "Anything a malicious user
can cause to take a lot of time" is a simple rule, and certainly includes
all instances of z_p_r.
> Probably just haven't run the right tests :(
map = mmap(NULL, 0x80000000, PROT_READ|PROT_WRITE, MAP_PRIVATE,
open("/dev/zero", O_RDONLY), 0);
switch(test) {
case 0:
munmap(map);
break;
case 1:
exit(0);
break;
case 2:
read(open("/dev/zero", O_RDONLY), map, 0x8000000);
break;
}
Philipp Rumpf
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-07-10 17:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-07 14:43 Andrew Morton
2000-07-07 16:42 ` Manfred Spraul
2000-07-09 17:30 ` Philipp Rumpf
2000-07-09 17:42 ` Arjan van de Ven
2000-07-09 23:54 ` Andrew Morton
2000-07-10 9:53 ` Philipp Rumpf
2000-07-10 15:36 ` Andrew Morton
2000-07-10 17:34 ` Philipp Rumpf [this message]
2000-07-11 8:39 ` Stephen C. Tweedie
2000-07-11 11:24 ` Andrew Morton
2000-07-11 13:35 ` Stephen C. Tweedie
2000-07-11 15:23 ` Richard Guenther
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=20000710103407.C3826@fruits.uzix.org \
--to=prumpf@uzix.org \
--cc=andrewm@uow.edu.au \
--cc=linux-mm@kvack.org \
/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