Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2317775lqp; Sun, 24 Mar 2024 13:05:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVi2axb/y6GDxE6jovhMJAeKAoh5S05HJLC2z7O0qom0qyHdi0x0AL1uz7Rm35jIJCNpvYhb29pfPNAfGLxwAe0T/nqYSKFLxncyIwS+w== X-Google-Smtp-Source: AGHT+IHz1MQaKkrZgRg6ztrUXu7jIlgobAQRXzyFMqa6Xk342baVSbIL9+uYU8xywoGginwEoYma X-Received: by 2002:a05:6870:a8b1:b0:221:bcde:29cc with SMTP id eb49-20020a056870a8b100b00221bcde29ccmr4836636oab.21.1711310738668; Sun, 24 Mar 2024 13:05:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711310738; cv=pass; d=google.com; s=arc-20160816; b=dIio/mwKcftCBUqv2ckGcuAXtcK63zsga3vQsuKpsffTOVyo6hBE7Kje8vq0etSX5f 6oyCJgskT1iBtyVRmyNjf+7Qn5V4r3TUX3jClqWivkJG6FX9FWZG751H8NyVAyfJ347v bO0yJ6aJZwHcpbWPSiqrQtLDN5eozKpUoJF30ihbhtgPcPEzPewSXaM8xkdZCgCC3MXV rJehBgVqhDHCahDkHGwaOwsphBAgJOpJ1fVNULa09F8cD1LHzy51pEGjhogsJ4sQzDYo hcX1pM0RcZQvfagUAGOdlKFWskahGFM6nIBRR1FBiw0ofQfjDsVIU9y9ky4fSRwMEzhk Yvmw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=IvfySWcVa3xtvUCqNnf2m8MSm9ibBjQP1xVDPkMxZhA=; fh=Tc0yB3/GUovAk3XwqsRgi8pYzCQvGK77LC0gjI8aYMs=; b=EeeOCl+jVMErlvAdiGqXsmKRvuhOT6OZGl+ByEtFw/QXYLa1mbdm4FNy9dOK3E1Fkr aFLEYlV2dPzMfWPYWNjkqmWS3rVd6SDohX+QYDTFfBogAUDue7tlC98psVxxgeGEZJyV DocHXqwdSjq0UwphRFMpnA6j6cGjLuQpIpT2lE2dMav9bB7upLo+xb1CELF1r4NzJkE1 7zdDXjw199zH1ddlB5cf+QGQ3ZkluuoUM3gwnnmQpbokYwH5+/5mjD6qntmqRI9E0kxd EihrGj3/Z5aeiC0CzvaVIh+YgYK9LbDeHlCBMAvNg3mPhwIfYzODFmSHbjItsRXUqDUy sF6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-112830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fw10-20020a05622a4a8a00b004314986286bsi2672568qtb.603.2024.03.24.13.05.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 13:05:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-112830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F30C1C20A85 for ; Sun, 24 Mar 2024 20:05:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1AF010957; Sun, 24 Mar 2024 20:05:27 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87CBEDF58 for ; Sun, 24 Mar 2024 20:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.86.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711310727; cv=none; b=FY5REkPVJSjYjb4jrVY+D6aixba0d16mV4uT3HxN8460cZkiNPsyWMZ9j4Ilao/o3e+ZXe7qpABzozFqQqi/ClXQblUyW0CCCQJBp+pMnqzOMQTuKzY916CyC81QyjqFtmrhEve+AO48BlxZ2SX0hEi1x/B0OPTlz8hGdM6pRtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711310727; c=relaxed/simple; bh=IvfySWcVa3xtvUCqNnf2m8MSm9ibBjQP1xVDPkMxZhA=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=jTHhsmww12A3Acdfl57mHCqjXDhSX0WvFH10G862o/gB+W3ScGg7J61RpBh0qlZsjGhF3mYYxQIw+RVudlyk/ZGYOriB3wZxcvoZfSFjWOvs2zP3lOXWLs82iS29JM3iq0hp7MsT5s1ZWtsckCVVXPZKcb167KUx1ZxpCpn3Rlg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM; spf=pass smtp.mailfrom=aculab.com; arc=none smtp.client-ip=185.58.86.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-31-9M3ZnYw6P76jOK7te1drUg-1; Sun, 24 Mar 2024 20:05:19 +0000 X-MC-Unique: 9M3ZnYw6P76jOK7te1drUg-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 24 Mar 2024 20:04:48 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sun, 24 Mar 2024 20:04:48 +0000 From: David Laight To: 'Alexei Starovoitov' , Puranjay Mohan , Ilya Leoshkevich CC: "David S. Miller" , David Ahern , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , "Yonghong Song" , John Fastabend , "KP Singh" , Stanislav Fomichev , Hao Luo , Jiri Olsa , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , Jean-Philippe Brucker , Network Development , bpf , LKML Subject: RE: [PATCH bpf] bpf: verifier: prevent userspace memory access Thread-Topic: [PATCH bpf] bpf: verifier: prevent userspace memory access Thread-Index: AQHae1YhECDY/uuUVEW0JBnf8hxKG7FHVPhw Date: Sun, 24 Mar 2024 20:04:48 +0000 Message-ID: <1686adb401b34adaa3b703ec1a8ffe49@AcuMS.aculab.com> References: <20240320105436.4781-1-puranjay12@gmail.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 RnJvbTogQWxleGVpIFN0YXJvdm9pdG92DQo+IFNlbnQ6IDIxIE1hcmNoIDIwMjQgMDY6MDgNCj4g DQo+IE9uIFdlZCwgTWFyIDIwLCAyMDI0IGF0IDM6NTXigK9BTSBQdXJhbmpheSBNb2hhbiA8cHVy YW5qYXkxMkBnbWFpbC5jb20+IHdyb3RlOg0KPiA+DQo+ID4gVGhlIEpJVHMgbmVlZCB0byBpbXBs ZW1lbnQgYnBmX2FyY2hfdWFkZHJlc3NfbGltaXQoKSB0byBkZWZpbmUgd2hlcmUNCj4gPiB0aGUg dXNlcnNwYWNlIGFkZHJlc3NlcyBlbmQgZm9yIHRoYXQgYXJjaGl0ZWN0dXJlIG9yIFRBU0tfU0la RSBpcyB0YWtlbg0KPiA+IGFzIGRlZmF1bHQuDQo+ID4NCj4gPiBUaGUgaW1wbGVtZW50YXRpb24g aXMgYXMgZm9sbG93czoNCj4gPg0KPiA+IFJFR19BWCA9ICBTUkNfUkVHDQo+ID4gaWYob2Zmc2V0 KQ0KPiA+ICAgICAgICAgUkVHX0FYICs9IG9mZnNldDsNCj4gPiBSRUdfQVggPj49IDMyOw0KPiA+ IGlmIChSRUdfQVggPD0gKHVhZGRyZXNzX2xpbWl0ID4+IDMyKSkNCj4gPiAgICAgICAgIERTVF9S RUcgPSAwOw0KPiA+IGVsc2UNCj4gPiAgICAgICAgIERTVF9SRUcgPSAqKHNpemUgKikoU1JDX1JF RyArIG9mZnNldCk7DQo+IA0KPiBUaGUgcGF0Y2ggbG9va3MgZ29vZCw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