Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp861819pxu; Thu, 3 Dec 2020 14:45:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzO9MXFVww2AKdKGKgDi5P7RTEgDbM7HMAh4Vb6+y0xS1Ej3h+SO5vZnzTFiLVHBwbbV8UE X-Received: by 2002:a17:907:60a:: with SMTP id wp10mr4624480ejb.205.1607035522011; Thu, 03 Dec 2020 14:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607035522; cv=none; d=google.com; s=arc-20160816; b=QIweMFOR/yx1T9NxOCfEup7CN15eEkZGqff54p2tWVpZw0KIgovCZM+S0pwEkoZ7AE DD+Ya+98e0J28FToE7tthNLZtL3P7Jk/uQ8sJyETXU9vPE5nh4GTFk0krR/RxK8ciMqJ oBTLFNOy3/wxaYLX1wrVxemh3pSZ/pxZuFWT/d32D037S2xTrqsz+5o22kdf4U02SBvl MDPZ7n6TDH8Pg0LPLttxbD2riqfNkzkMCtjvD2dOWkvVcSjICv3AnOEijZzDFHE9JyrV HNRViQaoDbAQlqDqWMuIVSXzOEv3JyNSe2Y4KUZ2qFlzXC1Bn7eBrIoEsEgHnK6cukss 9D8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=b6HZoKAKXfWMxfU/sB53UHJz3iKRYedHUIbkt4F2tQ4=; b=0QEvzrz52kR79oswFcKtatU6vy6XbFZijWqA6NDr2NU/XC+wE5IlTQjxsuZZf89Rag ydlNJd+4Shj6VQtawX5aRSWPnd/AS9VqWemMJhfk2Pld6Zl/e8b8wF6NyCRG0zssEmBE V+NSywoR2lFgG/BV/793nVWRRS86NwZC7H7AKVQU8pNNTN0z4z/KRA8qpEQRg3SlfmQR 983vyjUvsduPAudhB3YB34/Dz4R+s2HDh05eAGma+VWeoMvnnHu5e+7TtMYcDFKoVl6m GfWVl1nimLC/5SbTlaq5OJt26Hve/ZcpPbAXfA+YXA0bV1kCwWqM2Re8zNsemmuhprAK WY4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FXgEvTio; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id am1si246435ejc.463.2020.12.03.14.44.59; Thu, 03 Dec 2020 14:45:21 -0800 (PST) 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=@linux-foundation.org header.s=google header.b=FXgEvTio; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387876AbgLCWn1 (ORCPT + 99 others); Thu, 3 Dec 2020 17:43:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387830AbgLCWn1 (ORCPT ); Thu, 3 Dec 2020 17:43:27 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83EF5C061A51 for ; Thu, 3 Dec 2020 14:42:46 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id s9so4354413ljo.11 for ; Thu, 03 Dec 2020 14:42:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b6HZoKAKXfWMxfU/sB53UHJz3iKRYedHUIbkt4F2tQ4=; b=FXgEvTiozWuHL7VjqfhnP5ZwC5eh3FdULVsXN1geI/iVQtMvQF2Fn/djko7AgtjOsu W1ePOh4ZVfJc0ryBDq7ChRIzm4UlWYKPrE0K4/utf36lE99NqnvgFNAc8ViCZ+W34tEz Lm26XV7aiEIgXhwFrMHVq8zRRMImUv7lVMg+g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b6HZoKAKXfWMxfU/sB53UHJz3iKRYedHUIbkt4F2tQ4=; b=UeUw5XU5A8miyvyjRAVLL8XhWAeeYwEAE0tGjxad36ejUA6mONWdHU1kKR8U9Ew8jr wJXEGln+d4rhycU+HCDQzo3OYwpwdyrIXMGDXoS/cxducAIx/kF+DFaT0q9aglNvRGa0 S8imXAItbxptjcywKWzmyTp6SgnCYw2tbPNLINzqwXpV5SC2pndMJbgPg36msi8dzcav PnA5Yvo9821oc190YV6dya1DtzacmXwhXDHtDBrOMwzNKcs7WbAKy3nNPIqz35Ss+tVu Ybr19ILG0kc6AMwdiySZ/8exptjX/mJipxK1HQxQYacTjIN6GI0sbmLvV6p9B3Vnx44X JfQg== X-Gm-Message-State: AOAM532XoYGLrciu9UEFwttisSP1EwvWHEXCuK+N8OhDBlfnKU+oWahn SpWkPvn4avIbLV6arqr33g86mi2aT4DIAg== X-Received: by 2002:a2e:878c:: with SMTP id n12mr2137133lji.319.1607035364851; Thu, 03 Dec 2020 14:42:44 -0800 (PST) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id s19sm902588ljs.17.2020.12.03.14.42.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2020 14:42:43 -0800 (PST) Received: by mail-lf1-f42.google.com with SMTP id a9so5113310lfh.2 for ; Thu, 03 Dec 2020 14:42:43 -0800 (PST) X-Received: by 2002:a19:ed0f:: with SMTP id y15mr2076947lfy.352.1607035362851; Thu, 03 Dec 2020 14:42:42 -0800 (PST) MIME-Version: 1.0 References: <87tut2bqik.fsf@x220.int.ebiederm.org> In-Reply-To: <87tut2bqik.fsf@x220.int.ebiederm.org> From: Linus Torvalds Date: Thu, 3 Dec 2020 14:42:26 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/3] exec: Transform exec_update_mutex into a rw_semaphore To: "Eric W. Biederman" , Waiman Long , Davidlohr Bueso Cc: Linux Kernel Mailing List , Peter Zijlstra , Ingo Molnar , Will Deacon , Jann Horn , Vasiliy Kulikov , Al Viro , Bernd Edlinger , Oleg Nesterov , Christopher Yeoh , Cyrill Gorcunov , Sargun Dhillon , Christian Brauner , Arnd Bergmann , Arnaldo Carvalho de Melo Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 12:10 PM Eric W. Biederman wrote: > > The simplest and most robust solution appears to be making > exec_update_mutex a read/write lock and having everything execept for > exec take the lock for read. Looks sane to me. I'd like the locking people to look at the down_read_*() functions, even if they look simple. Adding Waiman and Davidlohr to the cc just in case they would look at that too, since they've worked on that code. Linus