[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121231211246.GA784@mail.hallyn.com>
Date: Mon, 31 Dec 2012 21:12:46 +0000
From: "Serge E. Hallyn" <serge@...lyn.com>
To: Cyrill Gorcunov <gorcunov@...nvz.org>
Cc: Eric Paris <eparis@...hat.com>,
Andrew Vagin <avagin@...allels.com>,
Andrey Vagin <avagin@...nvz.org>, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Kees Cook <keescook@...omium.org>,
Serge Hallyn <serge.hallyn@...onical.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
James Morris <jmorris@...ei.org>
Subject: Re: [PATCH] prctl: fix validation of an address
Quoting Cyrill Gorcunov (gorcunov@...nvz.org):
> > The kernel makes the decision on what is valid via security_mmap_addr().
> > Assuming there are no security fears of an untrusted application
> > tricking some priviledged application to set up these maps the answer is
> > just calling security_mmap_addr() instead of doing if(addr <
> > mmap_min_addr) return -EINVAL;
>
> If only I've not missed something obvious, the check for security_mmap_addr() here
> instead of poking the mmap_min_addr looks more correct for me. Andrew?
That sounds right to me as well.
-serge
--
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