From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2379 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan de Boyne Pollard Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: [RFC] prctl: (Please do not!) Deprecate non PR_SET_MM_MAP operations Date: Sun, 20 May 2018 14:36:02 +0100 Message-ID: <9329a166-7295-8d66-9e12-b31abc887724@NTLWorld.COM> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1526823245 17139 195.159.176.226 (20 May 2018 13:34:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 20 May 2018 13:34:05 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 To: Supervision Original-X-From: supervision-return-1970-gcsg-supervision=m.gmane.org@list.skarnet.org Sun May 20 15:34:00 2018 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fKOTE-0004Gi-Lg for gcsg-supervision@m.gmane.org; Sun, 20 May 2018 15:33:56 +0200 Original-Received: (qmail 31355 invoked by uid 89); 20 May 2018 13:36:33 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 31348 invoked from network); 20 May 2018 13:36:33 -0000 X-Originating-IP: [86.10.101.211] X-Authenticated-User: J.deBoynePollard-newsgroups@NTLWorld.COM X-Spam: 0 X-Authority: v=2.3 cv=Ipswjo3g c=1 sm=1 tr=0 a=FQ5CjUvp3JFI4KFGyeqcZw==:117 a=FQ5CjUvp3JFI4KFGyeqcZw==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=Ye9q-bpsAAAA:8 a=D19gQVrFAAAA:8 a=GHktJ7i9oWZqfUBKX9cA:9 a=QEXdDO2ut3YA:10 a=W4TVW4IDbPiebHqcZpNg:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1526823362; bh=rGiC+Dze+hDcVKvbh1lVimzAUMnxuvqyqAOP1ksLQNI=; h=Subject:References:To:From:Date:In-Reply-To; b=w3Eyeq/7wEDJWAZEzUMFlj8cbPHDpY2U37kCI1ks1Y0NkrKtaLJ6YJsU6dnCR0CHm 7nOtKUh7HLnZppUckKVmXcgh5OrD+jiCPBS5x5pSBacGvp1apLXmQIoVTG9tvLHihW kfjcsIZBGSSQz9Fd3J5jVrREB/p+dmJOGCR+VfOwC4iUeovQb3FOj0pRjHZJM6ze+p dF+NC5VfDtwd4auw5k2MV9B1ZE26lH1OyqG0asqtcsrHvR+OjcjKlGizBQcEXgGKEU W/a7ACo0OqPXxCzFMP16iCkoAoz8aUCv0Jpo+r5ofsXmRY4SYnLbswtYyktsixqEDQ 9g+JqGtThgDVg== In-Reply-To: X-CMAE-Envelope: MS4wfEFDh7ZcajC2aTv1ZVeCq5Qivygh2EgmSAxP8qkpR5GMBl3XE1N+Sk3eTo6XJz0XgGIQmFKUk34Q42sDMg3b2AXtwlSbLww3MYHW/W2756LR9q2dZ0PQ dD1/ksIO+LMMJTUUSi3/6RssTNI6JmEoRd9f2KZ7Zzkimd/u96C+omOgZhc7+xJw2RFQedgZqB2wPkiburXZSC+eujKzC4/0yX32wAMaV280fL7Pc8KTPV17 afj64JoPj1g2EVkF/U26tA== Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2379 Archived-At: In case you weren't aware, programs can make use of a facility on Linux to make their ps listings contain appropriate command-line arguments and environment strings. There's also a similar kernel API on FreeBSD. This is used by the built-ins in nosh to good effect, even more so in the forthcoming version 1.38, allowing system adminstrators to debug things more easily from ps listings by showing them the actually effective states of the chained argument and environment vectors rather than what they were at the beginning of a chain of built-in commands. * https://unix.stackexchange.com/a/438007/5132 * https://unix.stackexchange.com/a/432681/5132 The subject of deprecating and removing the API that permits this came up recently on the Linux Kernel Mailing List. I raised my concerns, and the Linux Kernel developers have been laudably responsive on the subject. As I said to them, I would welcome a better API, that allows setting these things atomically, start and length together as a pair. * https://lkml.org/lkml/2018/4/3/739 * https://lkml.org/lkml/2018/5/6/127 * https://lkml.org/lkml/2018/5/7/78 * https://lkml.org/lkml/2018/5/7/79 * https://lkml.org/lkml/2018/5/7/80 * https://lkml.org/lkml/2018/5/7/81