Re: [RFC] better visibility into kworkers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 16, 2018 at 1:45 PM Carlos O'Donell <carlos@xxxxxxxxxx> wrote:

> Do we care at all that userspace has been wanting a safe interface for
> setproctitle() for a long time? Particularly one without a 16-byte limit.
> Might we solve two problems at once?

Note that we'll inevitably always have *some* limit, so I doubt we'll ever
get over that.

And we actually do have a way to fill comm. Writing to /proc/<pid>/comm
already does exactly that. It obviously will truncate to whatever the
current limit is, but you can write anything you want.

You do have to be in the same thread group, but in particular you can write
to it yourself.

So just what more would you want? You can edit your own argv[], and you can
edit your own "comm[]". Both quite safely.

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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux