Received: by 2002:a19:ef0c:0:0:0:0:0 with SMTP id n12csp950962lfh; Tue, 1 Feb 2022 12:53:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXT7KVLXmgUqOxSGTz83H9fnjniAjdrnUo4DsQivwoi40DblFfxZUyJY2JjaTto3nqECPT X-Received: by 2002:a05:6a00:8c5:: with SMTP id s5mr26739825pfu.34.1643748679534; Tue, 01 Feb 2022 12:51:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748679; cv=none; d=google.com; s=arc-20160816; b=Y+VpjuYK6bU9gf5mKb0zHDmxwKNKEyOGnZz3jOfvu3WZNXXwn2ze69x2ATMpv7QK5y EJfpZhYu4MwLn1RlIup8YsT582qYtU8nadqGqoA56YCdp8LdcCa4rdEenFS6OtgdnaDB TJAbkaxpY0Rh3IlGT3wX0gmhXDeUwdhLoqgw5BJ0UywprKORCc5T1n6JgR6yJBCmbAVJ fmBp/ONLfTBerNn6HrQ42HmAcO89r2TQtbA5EmofEtOoFQExdJxnHkLjF6PYml6F/E1S z7IBgiZ2sQ4H7q618ebPqZ0Sj6Rn9grdwTqnYbeWOQi8GkrljKm/S1l0e/zfS7ff+3WZ Nrcg== 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:subject:cc:to:from:date :dkim-signature; bh=wAosrMZ1OC2P1Ycb5Bw4kYJt8JZcNN6jWKqCDVqBaXk=; b=kKHOVkYUyZdCv6yFPzG72jdfTFmNNVC07PdxQPgLztRpSB0tr1thFQwYYg8SXhnhi6 WdoIi3Ds1t+PL57lbgZeINOiW8lfz2By/cV7Jixvpo0uNMbV8IPIOYYBSsgEwQZaeP7s DmtB+bU3ryxu9a8q4QqHvYCERRCCxanTsdUJW7aT0KcSZPAo6JZW/UAu+ZxKr5DCZsGN oaVzwnv2oxv58wnndNkb8TAR5DFinWUIy+cW27aoGl4MKpH4ND+0BiLReQVXoJavImPw Cu+UgPODuTABdoxlmYe9zMyP3M7kFfbfUNBaOMI3rZ0KVqt52xTGwea0NdKaSSbzAqKc 8LfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=ddqgOcAO; 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 j191si17370754pge.528.2022.02.01.12.51.07; Tue, 01 Feb 2022 12:51:19 -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=korg header.b=ddqgOcAO; 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 S230075AbiAaV7v (ORCPT + 99 others); Mon, 31 Jan 2022 16:59:51 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:54776 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiAaV7o (ORCPT ); Mon, 31 Jan 2022 16:59:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 70E1961581; Mon, 31 Jan 2022 21:59:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55909C340E8; Mon, 31 Jan 2022 21:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1643666381; bh=vNlLgrPBYYVLtyrSiMdjfL/qJCb4K3K6IhJIJV2Y96U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ddqgOcAOpEQDMmnkqDH9mzjGwcK0/itBNcvh7267A1cu82AEZgDp2XVFoUkWCSqJs 22jOnS9lho9WOAKWSJ0xmydlBWAs9YjhMVXTneKGEWiP2NEMeqO05sZiir4V9mEdrW +oS4crPs0fdnLGL4EFqaUDEwmhclMXIqcKvly5vc= Date: Mon, 31 Jan 2022 13:59:40 -0800 From: Andrew Morton To: Christian Brauner Cc: Matthew Wilcox , kernel test robot , Kees Cook , Ariadne Conill , 0day robot , Michael Kerrisk , Rich Felker , Eric Biederman , Alexander Viro , LKML , lkp@lists.01.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org Subject: Re: [fs/exec] 80bd5afdd8: xfstests.generic.633.fail Message-Id: <20220131135940.20790cff1747e79dd855aaf4@linux-foundation.org> In-Reply-To: <20220131171344.77iifun5wdilbqdz@wittgenstein> References: <20220127000724.15106-1-ariadne@dereferenced.org> <20220131144352.GE16385@xsang-OptiPlex-9020> <20220131150819.iuqlz3rz6q7cheap@wittgenstein> <20220131153707.oe45h7tuci2cbfuv@wittgenstein> <20220131161415.wlvtsd4ecehyg3x5@wittgenstein> <20220131171344.77iifun5wdilbqdz@wittgenstein> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Jan 2022 18:13:44 +0100 Christian Brauner wrote: > > in other words, the changes that you see CMD_ARGS[0] == NULL for > > execveat() seem higher than for path-based exec. > > > > To counter that we should probably at least update the execveat() > > manpage with a recommendation what CMD_ARGS[0] should be set to if it > > isn't allowed to be set to NULL anymore. This is why was asking what > > argv[0] is supposed to be if the binary doesn't take any arguments. > > Sent a fix to our fstests now replacing the argv[0] as NULL with "". As we hit this check so quickly, I'm thinking that Ariadne's patch "fs/exec: require argv[0] presence in do_execveat_common()" (which added the check) isn't something we'll be able to merge into mainline?