Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2734770lqp; Mon, 25 Mar 2024 07:54:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWy86wMVr7To7uhOy/TnfFa/bxXA3OMK/q86f/U7vfocJbss5LosH2/KP5flHA1FFh50P2tX0EUZlJ8ig5JnhWhlLhTdIJJeelsim/elg== X-Google-Smtp-Source: AGHT+IEj+wmh22lZyNpIcYhIo0pD+1/xHLqBSrqtLlR7dZtltmiA5ATCIQ5oz/pst1hJ63TVEgpC X-Received: by 2002:a92:c081:0:b0:366:99ee:f14a with SMTP id h1-20020a92c081000000b0036699eef14amr7581787ile.22.1711378443228; Mon, 25 Mar 2024 07:54:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711378443; cv=pass; d=google.com; s=arc-20160816; b=JLAfaWZJOiVXLj+RQYRgtAp5BCrUZR5G3DX17BiHjEiBDF1mdbNnIF54Cm86pehYF/ Sm/5xLj14ixpOWXUcvyfHSo59YifUqSSReEl0aviMW+MtSKT5xmWjJPwl/PuXfGamA66 ATeUVGodsZk5MmFyHCBj/0kM8uSPq+kEjTmc2nbGk7amXO/GFEdn6iGg9JuizCJKFIFQ 2EBq9RMhvqHMd7eP8X3MEN7sUdeSj7vvlFm5B700w6lsXUhK399HyLCi1UEmZALaAA0a jduFdpTVHfakBVhLnCYQ0sbzXPbPpVRt13pC8QLRXwb7zqemw5YOKpvTH081ActJSuHQ oyfA== 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=6MCJQoh3AEDiIGV9Lu8V8DTDxHy6tYRCy/3KwuPvlLw=; fh=vU8Iv73wC4t9MCEf47yHhr/tqQCLOw0cMftYOVuzFoo=; b=PVNPebGhUVDEWGYywBIjBjxDwUWNHhxE0a3Pf3F5YOlHYc9C+E4D4l42MIK8MoqQcr hyF7foisiyIFJR+aDxrTlrdDluvEkqDfmn44OjmUUzBgwi3oohSJtVnuKbXC/UtcdEuq ecJeHzaQXV7klKYe8h9Otfv5hg9/DK+2nGMTyLh9fYRX8o7oJU1JTCXZkOj4HQ/4EMUL saX3uav6wvDmm3mN3cMKaYkDDJo8i2/po8f2EHAhOK2dvNwD6bqyz8vbhlx6PT62yIvN bFs2jPMsHQLvt/sd5hcw2ZqHUVNDRpf8wL7+SO6nD9ornm7++AriIQrpJ2akkFb5+ugo 9UjQ==; 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-116752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a6-20020a656546000000b005cf0abea01dsi4195464pgw.114.2024.03.25.07.54.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:54:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-116752-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116752-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CEF2CB3D5F6 for ; Mon, 25 Mar 2024 13:57:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A8BF16E87B; Mon, 25 Mar 2024 10:37:07 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.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 1975F16E887 for ; Mon, 25 Mar 2024 09:30:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.85.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711359060; cv=none; b=jdnbYfIPmOpcS/3kAnjf3MFnFH07e3cfaqYjSqlpZcqljNkfOkm8Be/avEDUHT1/gFe5zWuRXJYpODmmtUZpZKF0bz/exU6zsRmZ0xEL38nL0/dYkDmBNTYssBvsrOJStVYqlMjFAxiLLCszBtnBY5kTl30mrR0ryPnxJL5pu2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711359060; c=relaxed/simple; bh=6MCJQoh3AEDiIGV9Lu8V8DTDxHy6tYRCy/3KwuPvlLw=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=qr3CTa7jiOO+RkXp0SHgYitfoF6ZNKNEowGe2tkneRPVIwNUKPVh3lCvszejS/tfajMZh7Qa2a3NJ+etvgtRz4CgOAeLYcVSY2S5LcqWeKpXNLQPzL3tv0iQ2A5R6YOTaLziCMVdCp7wfUAyWWAHJ94g+sLzDr1WHvzcfJh1c5Y= 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.85.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-198-vdeQgxrwP92fV7WlkXqR2A-1; Mon, 25 Mar 2024 09:30:56 +0000 X-MC-Unique: vdeQgxrwP92fV7WlkXqR2A-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 25 Mar 2024 09:30:23 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 25 Mar 2024 09:30:23 +0000 From: David Laight To: 'Alexandre Ghiti' , Samuel Holland , Alexandre Ghiti CC: Palmer Dabbelt , "linux-riscv@lists.infradead.org" , Albert Ou , "Andrew Morton" , Charlie Jenkins , Guo Ren , Jisheng Zhang , Kemeng Shi , "Matthew Wilcox (Oracle)" , "Mike Rapoport (IBM)" , Paul Walmsley , Xiao Wang , Yangyu Chen , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] riscv: Define TASK_SIZE_MAX for __access_ok() Thread-Topic: [PATCH] riscv: Define TASK_SIZE_MAX for __access_ok() Thread-Index: AQHaeh3F9DUQSIkEB0u5Xt52XMTyX7FHT0cAgADJJoCAAB400A== Date: Mon, 25 Mar 2024 09:30:23 +0000 Message-ID: <5c027cbf6b8741e4a8147963b07a8ac4@AcuMS.aculab.com> References: <20240313180010.295747-1-samuel.holland@sifive.com> <88de4a1a-047e-4be9-b5b0-3e53434dc022@sifive.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 RnJvbTogQWxleGFuZHJlIEdoaXRpDQo+IFNlbnQ6IDI1IE1hcmNoIDIwMjQgMDc6MzENCj4gDQo+ IEhpIERhdmlkLA0KPiANCj4gT24gMjQvMDMvMjAyNCAyMDo0MiwgRGF2aWQgTGFpZ2h0IHdyb3Rl Og0KPiA+IC4uLg0KPiA+PiBUaGUgdXNlIG9mIGFsdGVybmF0aXZlcyBhbGxvd3MgdG8gcmV0dXJu IHJpZ2h0IGF3YXkgaWYgdGhlIGJ1ZmZlciBpcw0KPiA+PiBiZXlvbmQgdGhlIHVzYWJsZSB1c2Vy IGFkZHJlc3Mgc3BhY2UsIGFuZCBpdCdzIG5vdCBqdXN0ICJzbGlnaHRseQ0KPiA+PiBmYXN0ZXIi IGZvciBzb21lIGNhc2VzIChhIHZlcnkgbGFyZ2UgYnVmZmVyIHdpdGggb25seSBhIGZldyBieXRl cyBiZWluZw0KPiA+PiBiZXlvbmQgdGhlIGxpbWl0IG9yIHNvbWVvbmUgY291bGQgZmF1bHQtaW4g YWxsIHRoZSB1c2VyIHBhZ2VzIGFuZCBmYWlsDQo+ID4+IHZlcnkgbGF0ZS4uLmV0YykuIGFjY2Vz c19vaygpIGlzIGhlcmUgdG8gZ3VhcmFudGVlIHRoYXQgc3VjaCBzaXR1YXRpb25zDQo+ID4+IGRv bid0IGhhcHBlbiwgc28gYWN0dWFsbHkgaXQgbWFrZXMgbW9yZSBzZW5zZSB0byB1c2UgYW4gYWx0 ZXJuYXRpdmUgdG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