[lkml]   [2011]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] sched: share task comm length value to userspace
    On Fri, 9 Sep 2011 16:41:30 -0700
    Andrew Morton <> wrote:

    > if (prctl(PR_GET_NAME, (unsigned long)comm2, 0, 0, 0) < 0) {

    Actually, if we were ever to increase sizeof(task_struct.comm),
    existing code which does

    char comm[16];
    prctl(PR_GET_NAME, comm, ...)

    will get its stack scribbled on.

    So we _could_ increase it, but we'd need to retain the old 16-char
    interfaces and add new prctl() modes. And if we did that, we'd design
    them in such a way that userspace wouldn't need to assume a fixed

     \ /
      Last update: 2011-09-10 01:53    [W:0.043 / U:1.396 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site