Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5568059rwi; Tue, 18 Oct 2022 00:32:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6i+EB7Kvi5tnt6FLw2yg4K93IFuOJKP3bOf+WDRvHNL7/0fRYcBWrLdiDamGK3qC39ov87 X-Received: by 2002:a17:906:9749:b0:782:287f:d217 with SMTP id o9-20020a170906974900b00782287fd217mr1260957ejy.259.1666078368161; Tue, 18 Oct 2022 00:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666078368; cv=none; d=google.com; s=arc-20160816; b=ZjUlbJA3lh+PqNoMMHdH6sfUprC0bTyiC8bHa/00Z82QUNWipwgH92Qwd7TxP0Weu+ 9t99IVyMuGaLhVLG6wqyNE8KvzO26aac89Du6hzatUxhiSPmjR/Wx14rXRzJ30DlkwHH /WJP5HQUjBcbJzTJdgS0pmuELW1Y/lXAHYUjOWGwWOyWuJbBAzjK4usfyOcmkjk+CQg7 RWnCzSqVSTP7IuoXe+O66z+b0g1CCNTxxvIb8/4WttXEKdscWsAnoZXWQLDj+yJqALrP 9C37gThNO0v0ZKXvj1PY1lMNDYce3AjP+VmB5wh9fLXDuTPj96kQlrDE6IZWPbsngmbS rEpQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MHkzj4kw1PI7WIoQnIPAYoIPTSQVIxc3IhT+lSvVULQ=; b=l7jmxXH3e4DLu7vKd6+jDOFAYgPTSZIQG2RHUSIwp8qFhrhu7WIHZr/CS0X9PHVAhk d3HIK9twvFRRdNX63btQX0VBe/pGN9kFVtoKK28VipCSqBRuZ8UEEB+8FK5jm0KJgK9i gPkvV1w5BSNrWN5wrI88yYdfxhgkMUB0YCKGx5wSQrlRTEebUtPTblNqDIHUPLoji4W5 eDUxIvJ/z6pYMPK3ZgUKEPu+KjAQfHJwcYUuCx9TmNGKA3UVfa1Xt6oE1IKYSoaYTetP 7xYpOVvLZhtEEhP1s67+5kLvvsLvVNg7U8L75dZrFAyHltW70IhhRg3sDQkOVoXaVsRh leDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YXFvKURO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a05640250d000b0045cf2d0357asi12778022edb.34.2022.10.18.00.32.21; Tue, 18 Oct 2022 00:32:48 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b=YXFvKURO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230290AbiJRHVq (ORCPT + 99 others); Tue, 18 Oct 2022 03:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbiJRHVi (ORCPT ); Tue, 18 Oct 2022 03:21:38 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA9A0AA35F for ; Tue, 18 Oct 2022 00:21:24 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id q1so12550262pgl.11 for ; Tue, 18 Oct 2022 00:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MHkzj4kw1PI7WIoQnIPAYoIPTSQVIxc3IhT+lSvVULQ=; b=YXFvKUROLbAcSMkQ8uN87Rd2wN/VVfxZTKYIlKGArSfGX6hCxTu5RSMDhDaJwsXXV6 ZlI+Pot58CkyWFqF/N4gEfumimSf6KY6j5eiF6KstkxcuysSW/pbF4CJetoBzWQN2SAP wJF9grZugBgGn9EaoxJcNV+EnyI9G9u8zBKkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MHkzj4kw1PI7WIoQnIPAYoIPTSQVIxc3IhT+lSvVULQ=; b=4mYF+fPXIIwGq+Jo63eR+dlrt5q8qmVqM/nxwS4mwYS1dZj0hs/9xZ3NSq+YCIyQOh V3kEi1UnMEAUvdqGN8Gbld6Op4KWvlkoquwyX7ZxA02Vg4V6zeZ85E/VWG9OifEMczWM 99Cjb++JmrrFfmjjt9iMt+99t5ibnWaF41D6PbHXC3JizmjEEz8IJDivn/iUESWCcHpB +vpmRysCYiSAzT+Q3LwC8fY8O/AeZ6TyHOx+ab5wc2bVwUUzRvygm0MeG5Qzb/wc3a9o mW3NNQ54gj+n+34nDSs3TuCavIcr1W0SynTvdVrNNgzJU/wZsMKaFi2cpSOBWik7C6QB SHhA== X-Gm-Message-State: ACrzQf14YZOxhOVnr35lGCKqzmU3vHcF0WHGyVfi/Gk9rOSIHm6aTmsD uT/S/R3Wb4JrxaGUHdc52cZfpA== X-Received: by 2002:a65:408b:0:b0:42a:55fb:60b0 with SMTP id t11-20020a65408b000000b0042a55fb60b0mr1533373pgp.431.1666077683914; Tue, 18 Oct 2022 00:21:23 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id x7-20020a170902a38700b0017bb38e4591sm7850809pla.41.2022.10.18.00.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 00:21:22 -0700 (PDT) From: Kees Cook To: avagin@google.com Cc: Kees Cook , fweimer@redhat.com, linux-kernel@vger.kernel.org, ebiederm@xmission.com, izbyshev@ispras.ru, avagin@gmail.com, 0x7f454c46@gmail.com, brauner@kernel.org Subject: Re: [PATCH 1/2] fs/exec: switch timens when a task gets a new mm Date: Tue, 18 Oct 2022 00:21:08 -0700 Message-Id: <166607766447.3775011.11893363509592656217.b4-ty@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220921003120.209637-1-avagin@google.com> References: <20220921003120.209637-1-avagin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Tue, 20 Sep 2022 17:31:19 -0700, Andrei Vagin wrote: > From: Andrei Vagin > > Changing a time namespace requires remapping a vvar page, so we don't want > to allow doing that if any other tasks can use the same mm. > > Currently, we install a time namespace when a task is created with a new > vm. exec() is another case when a task gets a new mm and so it can switch > a time namespace safely, but it isn't handled now. > > [...] Applied to for-next/execve, thanks! [1/2] fs/exec: switch timens when a task gets a new mm https://git.kernel.org/kees/c/f8e06046dd69 [2/2] selftests/timens: add a test for vfork+exit https://git.kernel.org/kees/c/de8517320d01 -- Kees Cook