Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 26 Sep 2013 15:43:24 -0500
From: Kees Cook <>
To: Djalal Harouni <>
Cc: "Eric W. Biederman" <>, Al Viro <>, 
	Andrew Morton <>, Linus Torvalds <>, 
	Ingo Molnar <>, "Serge E. Hallyn" <>, 
	Cyrill Gorcunov <>, LKML <>, 
	"" <>, 
	"" <>,
Subject: Re: [PATCH 06/12] procfs: make /proc/*/stack 0400

On Wed, Sep 25, 2013 at 3:14 PM, Djalal Harouni <> wrote:
> The /proc/*/stack contains sensitive information and currently its mode
> is 0444. Change this to 0400 so the VFS will be able to block
> unprivileged processes to get file descriptors on arbitrary privileged
> /proc/*/stack files.
> The /proc/*/stack is a /procfs ONE file that shares the same ->open()
> file operation with other ONE files. Doing a ptrace_may_access() check
> during open() might break userspace from accessing other ONE files
> like /proc/*/stat and /proc/*/statm.
> Therfore make it 0400 for now, and improve its check during ->read()
> in the next following patch.
> Cc: Kees Cook <>
> Cc: Eric W. Biederman <>
> Signed-off-by: Djalal Harouni <>

While the rest of the series is being discussed, I think it would be
nice to at least get this into the tree. Fixing this reduces which
processes are exposed to ASLR leaks. The rest of the series closes the
remaining holes.

I would if it would be valuable adding a test for the identified leak
conditions to some test suite? LTP perhaps?


Kees Cook
Chrome OS Security

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.