Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3114022ybk; Mon, 18 May 2020 18:28:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymDQu1u7iFI/jyyvOOr9a4KveKkNHXV3ZcscQCyf5RrT+pP/I9hoxwONw8wC+kGed/hCNY X-Received: by 2002:a17:906:f6c7:: with SMTP id jo7mr8533019ejb.364.1589851683940; Mon, 18 May 2020 18:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589851683; cv=none; d=google.com; s=arc-20160816; b=Hw7ohvQa1GuYT7LB7fESzN8X84ViQjHIBbYHb8FICFxSL2DIgmVzDuwwfMZXDfHfis gVr+YpMoK6C9CoX5kZENQ8qA076Kw/MDkZdNqz2MTFXJFAICICT0pw4donID8z6sfqBh RDDzyO2r9/yp4q46VYahnsIk5HIO41Q6xQwrhETcxlqkeqH5R4n7ytDOsq9XoWWidieR Hd18zl/EBYvFlIxFQzVtid+Otm9JIWZwZklapDmkFIdg5mi+4GOxkU64BcNTKmnACaOP 94EQZp+aN4koRokvXC3ppMJIdkb+HjqB9aCvrV0oPwh0N2doK+zWVdRD1NmUb4DiLpJJ JDQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Gs7dtmXWSFHCtE6SJeh0R5WhnxNGei8hq4y5MyR6ZaI=; b=EA931D6hpSA/BYZG4GzqA/vWWlkAyZSYNDze5yi1ku6i+h4Y6NjxYlmI8XoiNeu/oF Va61f99xnrrrMx7Ot6uqOKIuqUZ/IUIOjxIHmJOHGCcZyenTguw1Zx6sZLcv9wRXRyJB lE1wMukSHdc75rbF7Qt0/1TcNLY1tcvWdrlVgxtVaUQuSLhXESQaiTz13IhnkP3kvXCh d/TQyNx24N109V4YWRA90Er7CcjjwwS0GoycF8K/Rst0BjD740+2vFw288FPUQCbNd8W z5+PlwH0LCxGXCdFvw3TIjzAANMQwuh6lL9u4hr8XijWFDwKyp7ec0nsQ+ZlJ8YmBpIu S+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=g6f+fSpW; 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 p1si7412316ejd.333.2020.05.18.18.27.39; Mon, 18 May 2020 18:28:03 -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=@linux-foundation.org header.s=google header.b=g6f+fSpW; 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 S1726920AbgESB0T (ORCPT + 99 others); Mon, 18 May 2020 21:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbgESB0S (ORCPT ); Mon, 18 May 2020 21:26:18 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1EBC061A0C for ; Mon, 18 May 2020 18:26:18 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id z6so932528ljm.13 for ; Mon, 18 May 2020 18:26:18 -0700 (PDT) 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=Gs7dtmXWSFHCtE6SJeh0R5WhnxNGei8hq4y5MyR6ZaI=; b=g6f+fSpWv+q0J5qWk4vTM3N0tr/FDbfKxShNQ1hBeIUmG0ft9K/mDofqKrLzKT0ANb lccujvLSk+oHzhGNg8Ix24CcEu7WM3qPYVudg6Y7P+hECP8QDLjckalGWIXkWioVLqav 8RZdGRZ+c6ZskkaTAd9COiMlvaDxFA8w4xaaE= 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=Gs7dtmXWSFHCtE6SJeh0R5WhnxNGei8hq4y5MyR6ZaI=; b=hLLEuN0/uS42bvl/awDEBJfjOjP5dVvgWG7XXoX5gRBku+IDcHv8BZotwX+EpXrNif mu435GoY+G7ZcIfBI/JY4Oppp7Y5CZUP5eFO84Wk5ndk/1f8DBCJnx94dwlGnGZTrXr/ LbNndD2Ho68BusaclDOnqTtKR5QRj+F44hkBqIZIo5lRMYU+o6FkElQh5aiBA6v6QUBj EVBePO4ZQofJqJYp4FgKiRHrfRSs6R6iAfA5gD11t4peuPxFyqVy6+z5QG2ucc7iHfF0 r6Xb+NuToQdSjXsGYd3KpOSx1D3Cc/nOto+l3mXS+0UrExqW5osLv/me7FMj7E+FiMsi 34ww== X-Gm-Message-State: AOAM533fX5+XtAvjvukOZF8XdURwz19aiN4mdhmRAExVrfS/QbyZWe4I XiTmvVB6x+0kIN77zy4ymf7xCV6oDNg= X-Received: by 2002:a2e:b5a2:: with SMTP id f2mr5145481ljn.261.1589851576035; Mon, 18 May 2020 18:26:16 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id j133sm5827733lfd.58.2020.05.18.18.26.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 May 2020 18:26:15 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id u6so11914296ljl.6 for ; Mon, 18 May 2020 18:26:14 -0700 (PDT) X-Received: by 2002:a2e:9641:: with SMTP id z1mr12188170ljh.201.1589851574208; Mon, 18 May 2020 18:26:14 -0700 (PDT) MIME-Version: 1.0 References: <87h7wujhmz.fsf@x220.int.ebiederm.org> <87sgga6ze4.fsf@x220.int.ebiederm.org> <87v9l4zyla.fsf_-_@x220.int.ebiederm.org> <877dx822er.fsf_-_@x220.int.ebiederm.org> In-Reply-To: <877dx822er.fsf_-_@x220.int.ebiederm.org> From: Linus Torvalds Date: Mon, 18 May 2020 18:25:58 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/8] exec: Control flow simplifications To: "Eric W. Biederman" Cc: Linux Kernel Mailing List , Oleg Nesterov , Jann Horn , Kees Cook , Greg Ungerer , Rob Landley , Bernd Edlinger , linux-fsdevel , Al Viro , Alexey Dobriyan , Andrew Morton , Casey Schaufler , LSM List , James Morris , "Serge E. Hallyn" , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 5:32 PM Eric W. Biederman wrote: > > It is hard to follow the control flow in exec.c as the code has evolved over > time and something that used to work one way now works another. This set of > changes attempts to address the worst of that, to remove unnecessary work > and to make the code a little easier to follow. It is indeed hard to follow, and maybe I missed something, but from what I can tell, your series looks all sane. It certainly seems to make things much more straightforward. Of course, exactly _because_ it's such a messy area, maybe it introduces something odd, but all the patches look relatively straightforward. And you remove more lines of code than you add, which is always nice to see. So ack from me. Oleg? Jann? Anybody? Do you see anything strange that I missed? Linus