Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5533897pxb; Wed, 26 Jan 2022 14:21:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCvxNPtmoGoOFPH+Rc4TDdIQU2/8/sIl6ZZC0WcdRyB59yqcHswpbEeMJlhoBKpbJw2KIK X-Received: by 2002:a17:907:1c0e:: with SMTP id nc14mr577627ejc.667.1643235700908; Wed, 26 Jan 2022 14:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643235700; cv=none; d=google.com; s=arc-20160816; b=vGcGJ0OS5NlwOVRw74kAQWNa5uoZw8dBVwHEFVaWdqBu3a9IFy6e2aBDtzSXfhcWDG AHUQ7VJxjJhCaIJSW5qEvETvmBYUkMfFt5XXmMuIujocsWC3gf1PtHayLpIRG7vOeAvG mcoHwXDtsXpd8HLKgZmC+i+OLaBps4FtoOqBo26/GKzH4zS/Tzr8RZd4s5+Ucq/GWsmh qjXuD5qhiQ7KVhgeRH/Aom7F6NieOZpcixcEdatb2fEOz5xaG6mH40xfAMcSpoLVucQ2 2A5fBR8kO3NMHq8HZRf+QFR8WZVhHTcQ7ljv3QcRcnfH69lnkvgMYTI8qC6Ee0p89bVn XDTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=MavzWnTILYL8RRSiK6TgtUn6FSHi5iIRGPOcmnG+bDY=; b=GqMmxXrCYXMAYa85nCg/U5QBElbiwiNXlRj1X2KlW0YMTJ5ox2iEmNRQT43Z8B6adq 8dZZXuq6VDtqZWyhXq4CaK/j2FJsMGUkI4kODo4B/W0VdONKG7I/iY0S+2IJjT6Nqa5Y omqOkVxI1LtO0pPt1gzyGMjEHHOCmbBAwIbaxxw7wazx+KX6LDSEmanKSjOX2pW/OlvR AmELlB/Jiu9CLHJupL4L8nuKVx8behgaReGR9T6ejmat1Lv4X1IDN9Yom+hXsZcgx18f 8sx7NDPqSYv2pTEi/4Dk7t3y33B1gWeGcuiEUogp30YeCBurU8B0dl1Mk9zlRlD/giM5 WI2Q== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si263640edi.520.2022.01.26.14.21.16; Wed, 26 Jan 2022 14:21:40 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243407AbiAZRAA (ORCPT + 99 others); Wed, 26 Jan 2022 12:00:00 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:27640 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243314AbiAZQ76 (ORCPT ); Wed, 26 Jan 2022 11:59:58 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-129-QMbyePlyM1eBDjptTIuy9g-1; Wed, 26 Jan 2022 16:59:55 +0000 X-MC-Unique: QMbyePlyM1eBDjptTIuy9g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Wed, 26 Jan 2022 16:59:53 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Wed, 26 Jan 2022 16:59:53 +0000 From: David Laight To: 'Kees Cook' , Ariadne Conill CC: "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "Eric Biederman" , Alexander Viro Subject: RE: [PATCH] fs/exec: require argv[0] presence in do_execveat_common() Thread-Topic: [PATCH] fs/exec: require argv[0] presence in do_execveat_common() Thread-Index: AQHYEoZGG+gndwPty0OW8qRUEed8Eax1hgpA Date: Wed, 26 Jan 2022 16:59:53 +0000 Message-ID: References: <20220126043947.10058-1-ariadne@dereferenced.org> <202201252241.7309AE568F@keescook> <39480927-B17F-4573-B335-7FCFD81AB997@chromium.org> In-Reply-To: <39480927-B17F-4573-B335-7FCFD81AB997@chromium.org> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogS2VlcyBDb29rDQo+IFNlbnQ6IDI2IEphbnVhcnkgMjAyMiAwNzoyOA0KLi4uDQo+ID4N Cj4gPlRoZXJlIHNob3VsZG4ndCBiZSBhbnl0aGluZyBsZWdpdGltYXRlIGFjdHVhbGx5IGRvaW5n IHRoaXMgaW4gdXNlcnNwYWNlLg0KPiANCj4gSSBzcG9rZSB0b28gc29vbi4NCj4gDQo+IFVuZm9y dHVuYXRl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