Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp898094pxb; Tue, 1 Feb 2022 12:43:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWG+2A0yVrUkSITePvg/0WFYSHRcD9ob+LSjDih+hoQ1qEKdbpTE9srdvULA6oQ0lUNoEa X-Received: by 2002:a17:902:9a88:: with SMTP id w8mr27793269plp.20.1643748193655; Tue, 01 Feb 2022 12:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748193; cv=none; d=google.com; s=arc-20160816; b=lFHicqXGF6wZ8vq2qiDJgDssyEuWRCcO+pqsgheAbitihg3vmrPma7g9oJMDkTGXup McgJ/mtPG1nht+0UhvaTvu7U25HLyiP9bdVQ+CCzvKASSAExvluj6FICqf170WUJIx8h ausD8RACGwQG8NmgxtpvOT6SxvNRkBvbPrVsXB5ahgS9DeJ180/74HxyYMwjTu0cyAav XJcpacPg7+Qr951IMZMSOJ80Y2Sx3NLpdk4A/c7jNS80ZLYTRKSB9gmQOz7tc+AaTca+ YqaMx/S67rxb7PrHnHMGpu5UDOf0grCEphYPvK+Obup1r51Qd4EuqTNUsC4qTOrWuHCm RznA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X5Q5MeJDTPKbLPeAN2MtOT5sSDrTeYy1qnQ5DDAxIaY=; b=WB1q+oJ0jFTV294EovHLQnWkY5Y4sLrgv08UNnR1E6Tjn++Su1TRfKB8EOewqIkx9c r/Rlsb4dlry8nzThJJB22xolNhHGS+HCNbZhfyvRWA+3vHNubEIdw0+QwqRYoycdRLOh EgstybOXn23P7424kpeAjDR9NUiArAgGSl283QZ067g4OOGa93W3Nj09Ll7YtIjL7oJL Ttxo4yFkpHf919qldEU3SUU4k3L20kM1zQaqdWHVzlrNcFwUYBinwshM99UfF5PAmns7 AshSiF+IkdbsQdnufTmboM+0ayGv+poCEX6BCe3sg4+kcDcxIhsXVuydIta61G2WtSFL CNeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=tweIhqfF; 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 y13si15260028pfe.380.2022.02.01.12.43.02; Tue, 01 Feb 2022 12:43:13 -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=@infradead.org header.s=casper.20170209 header.b=tweIhqfF; 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 S1358630AbiAaPT6 (ORCPT + 99 others); Mon, 31 Jan 2022 10:19:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359325AbiAaPT4 (ORCPT ); Mon, 31 Jan 2022 10:19:56 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F9BEC061714; Mon, 31 Jan 2022 07:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=X5Q5MeJDTPKbLPeAN2MtOT5sSDrTeYy1qnQ5DDAxIaY=; b=tweIhqfFo7IPJLtRc+U6X4zRG/ yGm17K8r35WfAR1Z3Pp5jZxTwu9pS7l19D8MHHoo5lF5gnMczM/vo5M83IEWaQh8VV5t3juB2KeUi FosS5h8/Iy9TMCHzNWSo1qVBt8JU+YzraXxCN5TExHIZ1HqlVL5IcM6O61ZztEHlFHrtqIbHmwcT9 wIR367tJqAZz5kaPc8FgVVfgeZhphtApIxBizRqkI+DK9dejx2UTl04bqKRd6F05qMYG8niBfwh0Q RlDz4gojjsluqPiWShSfQRBoez5P6tZEIwL2XRyRrJN280TOC7AHKMqGn5gdCPBure6k7Mzj1qiDf 1AxoS7vQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEYSg-00A1w0-Mx; Mon, 31 Jan 2022 15:19:22 +0000 Date: Mon, 31 Jan 2022 15:19:22 +0000 From: Matthew Wilcox To: Christian Brauner Cc: kernel test robot , Kees Cook , Ariadne Conill , 0day robot , Michael Kerrisk , Rich Felker , Eric Biederman , Alexander Viro , LKML , lkp@lists.01.org, Andrew Morton , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org Subject: Re: [fs/exec] 80bd5afdd8: xfstests.generic.633.fail Message-ID: References: <20220127000724.15106-1-ariadne@dereferenced.org> <20220131144352.GE16385@xsang-OptiPlex-9020> <20220131150819.iuqlz3rz6q7cheap@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220131150819.iuqlz3rz6q7cheap@wittgenstein> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 31, 2022 at 04:08:19PM +0100, Christian Brauner wrote: > On Mon, Jan 31, 2022 at 10:43:52PM +0800, kernel test robot wrote: > I can fix this rather simply in our upstream fstests with: > > static char *argv[] = { > "", > }; > > I guess. > > But doesn't > > static char *argv[] = { > NULL, > }; > > seem something that should work especially with execveat()? The problem is that the exec'ed program sees an argc of 0, which is the problem we're trying to work around in the kernel (instead of leaving it to ld.so to fix for suid programs).