Re: frequent lockups in 3.18rc4

From: Linus Torvalds
Date: Mon Dec 01 2014 - 13:36:12 EST


On Mon, Dec 1, 2014 at 10:25 AM, Kirill A. Shutemov
<kirill@xxxxxxxxxxxxx> wrote:
>
> No idea about oom_score, but kernel happily accepts chmod on any file
> under /proc/PID/net/.

/proc used to accept that fairly widely, but no, we tightened things
down, and core /proc files end up not accepting chmod. See
'proc_setattr()':

if (attr->ia_valid & ATTR_MODE)
return -EPERM;

although particular /proc files could choose to not use 'proc_setattr'
if they want to.

The '/proc/pid/net' subtree is obviously not doing that. No idea why,
and probably for no good reason.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/