Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp72570pxx; Mon, 26 Oct 2020 03:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydlqwq4wHh5vwrbTJ9zUpvNaoLmh5BspVK0mD2cjLGNsKhdX+tfGWcnl9ogrNrjwPYBlQe X-Received: by 2002:a17:906:4d03:: with SMTP id r3mr14020020eju.364.1603709041525; Mon, 26 Oct 2020 03:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603709041; cv=none; d=google.com; s=arc-20160816; b=bs+vWAIwl1xd9DuFKGIuyloeYCu87xgfWSaK84TgNM+pm7qJoeqMgIiVGHDskLan7M zfUi2QI2nNNe6mhdnNOkry/vHYKXzCaWE+7l3mdR1yCe4GD10GBzVco0Pi/HRFweVALN j/Y7Fxx8pQMw7seL8K41NQTrb4ocxCd4HLq57rdF0qgcDVoHFIJLMgD9Rm08Ilf3hBfw Sd4RoIgG6IGkQd1I2McK2pVks5fsm+YiCzCRUQ5WfhIJT+5iqdxU2X/vANMp4H95Z8C0 qdW8PfkLrj4h0bOQnvD4BMz/HRXaD0xU7MYrp7NbiFBtc0UKARXUWAaF8gLa5Dhs6muH amOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=c5fTWk6slj+E7imkK9HrK7ftFSS9/gEK4mhZa60fVww=; b=rDOzZdkvmEoHN+zVZUT1pu3QF5ryb6eFHdZRNcm9pDhOT+KSqxYRHY1Hu+GDnSG7eD B/0ZiE1Uk6hQmq9jbBP+pQu+Aco0oO2hwr42QF/9ARh/pWthJ4EKEcJ6xSn5OTn2vloO BE7GLIpCGjqEpiOMlIH8SpN8gcSsHChY6Bte9NpALM2L8WACVntkDV31UlY5OwqnYtMP HYXViLm+4Z3HMbubPZTFmUFcC6o/DQT/0/6ZVXQ+xPGIIt47e9tQDgWtaDUvmnsT55Wj 1ae/Tp+8zUbpGqOdNLH+8z83KB3iJI5d2XAF5Sb/5YiLo//AHit4goL2qG0zc+qIjIKC Rltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=a59eYWCj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si3311986ejh.243.2020.10.26.03.43.39; Mon, 26 Oct 2020 03:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=a59eYWCj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1769743AbgJZK2j (ORCPT + 99 others); Mon, 26 Oct 2020 06:28:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38970 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1768430AbgJZK2j (ORCPT ); Mon, 26 Oct 2020 06:28:39 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603708117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c5fTWk6slj+E7imkK9HrK7ftFSS9/gEK4mhZa60fVww=; b=a59eYWCjVaoI70IOQEnbNuzuWBVg+sv/beJmPWWVAZoa7wTcySRitCjwTg8UDoCOtLLljk 4LOVX1/a5bgJc0LAdJr8FwZrsnCJ1LF2EoyRl1pIaTBUTG2kcfLEOZ5nwr0BO6++sDnPFR JxFoC0CPIJ7dBZI/cTDiB7RH+xPYl5XoAKOauL6gs/USy2ZXPwnX0wn6H0dzk7MVPlqDrN P10oyZjMBUg0WPBxiYc2cyzNxSQbCPH0Vmx2A8lzbzG4A6G81R5qoqhOjkJrAPn1Q+cNxC acY+xgZF9A7PxwhUXC819G4r7vHduvm2GjMj3dZqLi6hxGd/t8IZZcxM8VH5gA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603708117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c5fTWk6slj+E7imkK9HrK7ftFSS9/gEK4mhZa60fVww=; b=7HGCcKJw8egDLGjooY9uyvL/oAjzh0Cg+iV5QgyFo4Ggn9x20kUVnvK0CPmUtkpxcoZ49w C+sQtg7wAE42b3Bg== To: Michael =?utf-8?Q?Wei=C3=9F?= , Andrei Vagin , Christian Brauner Cc: Dmitry Safonov <0x7f454c46@gmail.com>, linux-kernel@vger.kernel.org, "J . Bruce Fields" , Chuck Lever , Trond Myklebust , Anna Schumaker , Michael =?utf-8?Q?Wei=C3=9F?= Subject: Re: [PATCH v4 2/3] fs/proc: apply the time namespace offset to /proc/stat btime In-Reply-To: <20201019195257.10728-3-michael.weiss@aisec.fraunhofer.de> References: <20201019195257.10728-1-michael.weiss@aisec.fraunhofer.de> <20201019195257.10728-3-michael.weiss@aisec.fraunhofer.de> Date: Mon, 26 Oct 2020 11:28:37 +0100 Message-ID: <87eell46y2.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19 2020 at 21:52, Michael Wei=C3=9F wrote: > '/proc/stat' provides the field 'btime' which states the time stamp of > system boot in seconds. In case of time namespaces, the offset to the > boot time stamp was not applied earlier. However, in container > runtimes which utilize time namespaces to virtualize boottime of a > container, this leaks information about the host system boot time. Not sure if that qualifies as a leak. The point is that it confuses the tasks which are in a different time universe. Thanks, tglx