Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4841815rwl; Wed, 28 Dec 2022 09:30:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtg6ROYA3aOE4BlhPCHiiZX75LllhbNygkYLXjafprO1HrrqQUjRXWgNphGYInqy1ruR9g2 X-Received: by 2002:a17:903:4293:b0:18f:9b12:35b5 with SMTP id ju19-20020a170903429300b0018f9b1235b5mr27570639plb.13.1672248627134; Wed, 28 Dec 2022 09:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672248627; cv=none; d=google.com; s=arc-20160816; b=mjbiaiCOvYX/tCVE4Kf5JBYn9Oy8EZ4EWXlHcPVky+M/j5LryqxuC+RE0YXntpqKMH +mGDDXXpmgOkzsvPSHiQ2IZZX7ueOsK8LLOE3YfH9CC/Bch1UPfd/6Kvfhf/l1JJxBBX dQKuo7Q0g0yaMQV41aawVQsCOOghtT2FvuohrK/Vlxs+y3LMFTMlswV9xYgoJNIhOPO1 ggIjbkKBC0MYNsHVkDDRxKHwGhjWUMOYYLmK4/ohNuFF7h//po0HuFEnQt9OsYdISCqT i6aTkuSebDPsoag03oLkU7sorQ7N9pCUeZqwPCjES5/51k8HZVOseVNAuXD24Du1hC1G iXIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=LbyzdQr3DcLAm93n+IHuzVGT76IUFJDnRfxf5+GOBjw=; b=Mu8sUUEp/hY2ITasP34qslTnpAu035rwRlCW+Q98gywVh9BDt1je4Ln/9c5nF6kzkI NRUgnihZa72lb7KAhtrBsb9upoSdgR1DsW4f0U7vj+7uvvV3AHFSdf+s+Y7mank3z/Cw ldttRH5p+/XZZTUBRwlr+JsE95jouJupDyg3oIffgY7mfuciKWYdJchPqOxw1AE8gddX GoOZ6fvFSJIaljG44LrNrx1CYN/m2tzqMffQwbHEm4D7aLgZ2lqZGDsRnSaCZm5tw5k+ /EOk125lYe8nGK/R9FdI1l0385uUf3QjaXZcS+CXtJdAhovPKqfQrmslM+sLhTMlCYTw dklA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w21-20020a1709029a9500b0017ef8bf8a91si5751122plp.439.2022.12.28.09.30.18; Wed, 28 Dec 2022 09:30:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234232AbiL1RJb (ORCPT + 63 others); Wed, 28 Dec 2022 12:09:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233822AbiL1RJ3 (ORCPT ); Wed, 28 Dec 2022 12:09:29 -0500 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C20E2AB; Wed, 28 Dec 2022 09:09:24 -0800 (PST) Received: by a3.inai.de (Postfix, from userid 25121) id 692E059654580; Wed, 28 Dec 2022 18:09:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 55C14621FDF9D; Wed, 28 Dec 2022 18:09:21 +0100 (CET) Date: Wed, 28 Dec 2022 18:09:21 +0100 (CET) From: Jan Engelhardt To: oss-security@lists.openwall.com cc: Alejandro Colomar , Michael Kerrisk , linux-kernel@vger.kernel.org, linux-man@vger.kernel.org Subject: Re: [oss-security] [patch] proc.5: tell how to parse /proc/*/stat correctly In-Reply-To: Message-ID: <99n882p8-41oq-9763-314-24r434o4549o@vanv.qr> References: <1a1963aa1036ba07@orthanc.ca> <20221228152458.6xyksrxunukjrtzx@mutt-hbsd> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 2022-12-28 17:47, Demi Marie Obenour wrote: >> Examples: >> >> 1. /proc/pid/stats.json >> 2. /proc/pid/stats.xml >> 3. /proc/pid/stats.yaml_shouldnt_be_a_thing > >A binary format would be even better. No risk of ambiguity. So like EBML?