From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63230C43331 for ; Fri, 3 Apr 2020 12:34:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 31FAC2077D for ; Fri, 3 Apr 2020 12:34:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728172AbgDCMeo (ORCPT ); Fri, 3 Apr 2020 08:34:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:52182 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727882AbgDCMen (ORCPT ); Fri, 3 Apr 2020 08:34:43 -0400 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jKLWq-0002W5-GD; Fri, 03 Apr 2020 12:34:32 +0000 Date: Fri, 3 Apr 2020 14:34:31 +0200 From: Christian Brauner To: "Michael Kerrisk (man-pages)" Cc: Dmitry Safonov , Andrei Vagin , Adrian Reber , "Eric W. Biederman" , Andrei Vagin , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Thomas Gleixner , Vincenzo Frascino , Andy Lutomirski , Cyrill Gorcunov , Containers Subject: Re: [PATCH] ns: Fix time_for_children symlink Message-ID: <20200403123431.tsvj6alagg3ee356@wittgenstein> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 03, 2020 at 02:11:39PM +0200, Michael Kerrisk (man-pages) wrote: > Dmitry, Andrei, > > Looking at the contents of the /proc/PID/ns/time_for_children > symlink shows an anomaly: > > $ ls -l /proc/self/ns/* |awk '{print $9, $10, $11}' > ... > /proc/self/ns/pid -> pid:[4026531836] > /proc/self/ns/pid_for_children -> pid:[4026531836] > /proc/self/ns/time -> time:[4026531834] > /proc/self/ns/time_for_children -> time_for_children:[4026531834] > /proc/self/ns/user -> user:[4026531837] > ... > > The reference for 'time_for_children' should be a 'time' namespace, > just as the reference for 'pid_for_children' is a 'pid' namespace. > In other words, I think the above time_for_children link should read: > > /proc/self/ns/time_for_children -> time:[4026531834] > > If you agree with this patch, then it should be marked for > stable@vger.kernel.org. > > Signed-off-by: Michael Kerrisk Yeah, that just seems like an oversight. Acked-by: Christian Brauner