From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.1-rc1 affected?
Date: Tue, 06 Jan 2004 13:44:41 +0100 [thread overview]
Message-ID: <3FFAADB9.6030801@stud.feec.vutbr.cz> (raw)
In-Reply-To: <1aG5G-3mf-21@gated-at.bofh.it>
Linus Torvalds wrote:
> I'd actually personally prefer a stronger test than the one in 2.4.24, and
> my personal preference would be for just disallowing the degenerate cases
> entirely. I don't see a "mremap away" as being a valid thing to do, since
> if that is what you want, why not just do a "munmap()"?
>
I belive your fix isn't correct.
Should that test be:
if(!old_len || !new_len)
goto out;
?
The difference is when old_len!=0 and new_len==0:
With the fix that Marcelo merged, mremap does nothing and returns -1.
With your fix, mremap does do_munmap and then returns -1.
Michal Schmidt
next parent reply other threads:[~2004-01-06 12:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1aFW7-39l-11@gated-at.bofh.it>
[not found] ` <1aG5G-3mf-21@gated-at.bofh.it>
2004-01-06 12:44 ` Michal Schmidt [this message]
2004-01-05 16:31 2.6.1-rc1 affected? Markus Hästbacka
2004-01-05 16:46 ` Linus Torvalds
2004-01-05 18:14 ` Markus Hästbacka
2004-01-05 18:31 ` Linus Torvalds
2004-01-05 19:04 ` Markus Hästbacka
2004-01-05 19:38 ` GCS
2004-01-05 22:48 ` Tomas Szepe
2004-01-06 0:23 ` Bastiaan Spandaw
2004-01-06 1:09 ` Max Valdez
2004-01-06 1:25 ` Jesper Juhl
2004-01-06 1:31 ` Hugang
2004-01-06 1:43 ` Hugang
2004-01-06 2:47 ` szonyi calin
2004-01-06 3:24 ` Jonathan Higdon
2004-01-06 3:51 ` szonyi calin
2004-01-06 6:39 ` Jakob Oestergaard
2004-01-06 9:26 ` Giuliani Ivan
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=3FFAADB9.6030801@stud.feec.vutbr.cz \
--to=xschmi00@stud.feec.vutbr.cz \
--cc=linux-kernel@vger.kernel.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