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=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 C520AC433DB for ; Fri, 26 Mar 2021 15:13:12 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5082F61937 for ; Fri, 26 Mar 2021 15:13:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5082F61937 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4F6QTL5BXpz3c68 for ; Sat, 27 Mar 2021 02:13:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=arndb.de (client-ip=212.227.126.131; helo=mout.kundenserver.de; envelope-from=arnd@arndb.de; receiver=) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4F6QSz3LRmz30Bp for ; Sat, 27 Mar 2021 02:12:49 +1100 (AEDT) Received: from mail-oo1-f52.google.com ([209.85.161.52]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MfYHQ-1lsF4Y0BpI-00g0DN for ; Fri, 26 Mar 2021 16:12:46 +0100 Received: by mail-oo1-f52.google.com with SMTP id r17-20020a4acb110000b02901b657f28cdcso1368265ooq.6 for ; Fri, 26 Mar 2021 08:12:44 -0700 (PDT) X-Gm-Message-State: AOAM532Gp81auAoQbbFqGAsLyi5k5zdkUexOkSG+AeXdis/ZJcklAzjr AyUO15fB/okvVAWye4DyaEK8kdEt41ESlFy9w68= X-Google-Smtp-Source: ABdhPJyncRM6kyqeo61SxrePQvXeSUHXpMpeR3setGvzuR1f3RkPXPWDzfhUQ5b18mmh4AOwFayrXC4U1BBAx3fFL7s= X-Received: by 2002:a4a:304a:: with SMTP id z10mr11801529ooz.26.1616771563972; Fri, 26 Mar 2021 08:12:43 -0700 (PDT) MIME-Version: 1.0 References: <20210326143831.1550030-1-hch@lst.de> <20210326143831.1550030-5-hch@lst.de> In-Reply-To: <20210326143831.1550030-5-hch@lst.de> From: Arnd Bergmann Date: Fri, 26 Mar 2021 16:12:28 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] exec: move the call to getname_flags into do_execveat To: Christoph Hellwig Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:DbajlyCkUYy9vHuAb0o62XsbChwJIKDNoGR7cfPyGCpNYveUZSn noB1YzdvJZ7Bu9ltRDz4e1R5Nd7gOP9PXoCmc1mQ6p6/JXshNMEMENnQVcNPJr6IUQM3pE9 9gvhMlleZqjiz+b6gIOtNZiWj3H9HGbjN2Dbp/UaJfNf5VQ4WH1hj2F96PM3YOiGC6JlmVb cTPZ3fc1qDSpP5Fpk5pyQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:8Xg1rb4w/vs=:e9i1FO6DyB+lCeofN/owNz mWkZtERIkhMdPw0WMoIOmbAHkw/EvuG54y/6OKTaTomD5FeZIkhRxO2QHflboYt6y6V1nx84y 8iyWnMHFkUtrJOWfsfzxXuvkR1QGLfaGFlj2MLzISxri0m4KH73UnSeQxqgv4HTAMxSf0J1uX mutrA4x5G08HJyTCikVjzyOpPeorTmaAhSVy0EGGqbfsMqFNJ2if4AN6dqjQEvUb5KIzxH/Yj H4rGINjN5IPG3EiP/zolDSfzCxjBOaTkJcPcIBqGs3Xq3gBaE2BAXrphhnAmGS2xgN7IlzoAS bHPmip2+wNcSTgtPJWcRmoG3T/szCNlVd5udPNuzITyA7sd5oD14Y6NXEPX2cIjZtNleuk09F YjTyb/FdGRAzwWwPO14mByt3pZIJMvZyThANkjn7rLPm/2adDIZHJlQS46UEDAmiZAKRJ/tsR SNCU8bKDZSYPpA6/oRcJ6LRJ6YyUmf1SVOO0Y6VfNtbIcPJj7IC9JA5Q5T/wPEpWJzsEtjFN9 8nTFAzdVloNv6eK5wnYYZSlnmjhxBakqu/br6pmNONHYfKJc8BXdOYMcFJBrb0XLt5V9V4k9F 3GPWNVBzMk4yvGP9Y2kFGpI/BQm2zlLJej X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch , linux-s390 , Parisc List , Brian Gerst , the arch/x86 maintainers , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List , Linux FS-devel Mailing List , Luis Chamberlain , "Eric W. Biederman" , sparclinux , linuxppc-dev , Linux ARM , Al Viro Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri, Mar 26, 2021 at 3:38 PM Christoph Hellwig wrote: > > Remove the duplicated copying of the pathname into the common helper. > > Signed-off-by: Christoph Hellwig Looks correct, but > -static int do_execveat(int fd, struct filename *filename, > +static int do_execveat(int fd, const char __user *pathname, > const char __user *const __user *argv, > const char __user *const __user *envp, int flags) Maybe rename this to ksys_execveat() for consistency now? I think that is the current trend for functions that are essentially just the syscall. With or without that change Reviewed-by: Arnd Bergmann