Thread (8 messages) 8 messages, 5 authors, 2017-02-07

Re: [PATCH v9] fs: clear file privilege bits when mmap writing

From: Kees Cook <hidden>
Date: 2017-02-07 20:18:54
Also in: lkml

On Fri, Jan 27, 2017 at 7:47 PM, Andy Lutomirski [off-list ref] wrote:
On Wed, May 25, 2016 at 2:49 PM, Al Viro [off-list ref] wrote:
quoted
On Wed, May 25, 2016 at 02:36:57PM -0700, Kees Cook wrote:
quoted
Hm, this didn't end up getting picked up. (This jumped out at me again
because i_mutex just vanished...)

Al, what's the right way to update the locking in this patch?
->i_mutex is dealt with just by using lock_inode(inode)/unlock_inode(inode);
I hadn't looked at the rest of the locking in there.
Ping?

If this is too messy, I'm wondering if we could get away with a much
simpler approach: clear the suid and sgid bits when the file is opened
for write.
I think that'll break something, but I don't have any actual examples.
Regardless, I'd still like to see this hole fixed...

-Kees

-- 
Kees Cook
Pixel Security

--
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-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help