Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp2345683rba; Sun, 24 Mar 2024 12:42:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYpX0mref8xyaEP+S+7N8lpZ6NMOYmbzjYRdDjn4RFRJmMAlsY+OwkPNTlJhU337KFxHEDkoyp9DtZotReGpIsXumv6cd50Nienvc46g== X-Google-Smtp-Source: AGHT+IEweBUj0lB4JN0XnRN3hh3VkLkcwb5SYZ/qFKTYR6uvz9z8sS6/zUAj2zf+FfD0pM+x4snw X-Received: by 2002:a05:6a00:1825:b0:6e5:faca:3683 with SMTP id y37-20020a056a00182500b006e5faca3683mr7094591pfa.26.1711309373548; Sun, 24 Mar 2024 12:42:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711309373; cv=pass; d=google.com; s=arc-20160816; b=klONNkS1H4o4B0IkPAOlP6YiS8efCpy7e6tX7JsWb5t1OiZJa+c7RCbW9mi5/ezrhj B+MBR8p4DVT8XsmXfYQM7do4heoctapow9o6Ufmcx3QVWKjZ3fDXvxUI/MoMVUi8rd3a UFglDTrcdf0oWcTBhGL3yORrHzL72qciAq7tQFqpbG7OZuHWqzb4koPXcnEC3qhucMTs 2pirFwk89iJt43wpnIsEmS8/pl2qPoIqKpLo9W9yz4QQfFSXZEi1tY5xkEeCd/2udJ4h z3OsOdcgtvW8DnRfKQ8QaOOkEzM4mQWWM1n/xT5AZT941MJCp+kMY826H2yKB0fWjux7 e5PQ== 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=g9m7dqjRragZ2LXLmicF4jS3fSntPHPxFqJlJMPfl5M=; fh=vU8Iv73wC4t9MCEf47yHhr/tqQCLOw0cMftYOVuzFoo=; b=YNt2rS/EMPamBIexZ6lLo0T1wj6dA8uk1qc/1tjnOqoiqjePeMQoIsR+PIVsJBrJ5r MfLogpETZkVlrCro1Mji0R2qR4yW3sotC9iu9/jpwYFg8vXCHkem4KVoyBP33Zz/nbA3 TBoA8Z3a3BT2Phtb2WdDoFcL98e18dqoby/zeBRXR1Fe5nQB8eGBLJcXV8JTeWVRk1N4 M+7zVrHEvC1WgXT0DUc3ctOw2JxuBTnbsN6hL0nY/QcpjTizaxc4N7qA67xQyEjndefN Zjitp4njMFWJXeXSDD5bZU1gSJfA8EXMe3tAFd6FzRrMkqdiNXEOV1ylCa1IBSWiDcXY KW8w==; 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-112827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q12-20020aa7982c000000b006e68194dcb7si3836493pfl.401.2024.03.24.12.42.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 12:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-112827-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112827-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 36852281004 for ; Sun, 24 Mar 2024 19:42:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13965DF51; Sun, 24 Mar 2024 19:42:45 +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 9AAE3D2F0 for ; Sun, 24 Mar 2024 19:42:42 +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=1711309364; cv=none; b=jk17Xvo5tTmBzp6+Z0r5mwk0E6l0VUfRMHDQF6oYJGReRhYLUU7q+R4VnYfjKunZrc+PqvXXEaNMgJynbefS5IhP7acvcrS40dlgSl+BVJWBgwmpVzEDvhBEo2Igf/XvxgQYGrq3x0kzLtvCJTpq2eEsJFYS2E30T4sqhZIcrJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711309364; c=relaxed/simple; bh=g9m7dqjRragZ2LXLmicF4jS3fSntPHPxFqJlJMPfl5M=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=Baqn5BcvL9Fb8KRwEg4mHQMpJRdS22XPSHp+3PluRKzLs6m11LZbElfiNXiwaR9Yddo6niu+ZpNu5ftvSZuVRxqT4xwz/SuoR5y7heMv/mug/nVzYh+9ZQBTf6gQNiEzd0oj+R5iSwyVXl5szAre/ORsVVSAIELHYUxmAa8rT4k= 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-167-cBerPzxMMvq7r4HSCZcRYg-1; Sun, 24 Mar 2024 19:42:32 +0000 X-MC-Unique: cBerPzxMMvq7r4HSCZcRYg-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 19:42:01 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sun, 24 Mar 2024 19:42:01 +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: AQHaeh3F9DUQSIkEB0u5Xt52XMTyX7FHT0cA Date: Sun, 24 Mar 2024 19:42:01 +0000 Message-ID: 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 Li4uDQo+IFRoZSB1c2Ugb2YgYWx0ZXJuYXRpdmVzIGFsbG93cyB0byByZXR1cm4gcmlnaHQgYXdh eSBpZiB0aGUgYnVmZmVyIGlzDQo+IGJleW9uZCB0aGUgdXNhYmxlIHVzZXIgYWRkcmVzcyBzcGFj ZSwgYW5kIGl0J3Mgbm90IGp1c3QgInNsaWdodGx5DQo+IGZhc3RlciIgZm9yIHNvbWUgY2FzZXMg KGEgdmVyeSBsYXJnZSBidWZmZXIgd2l0aCBvbmx5IGEgZmV3IGJ5dGVzIGJlaW5nDQo+IGJleW9u ZCB0aGUgbGltaXQgb3Igc29tZW9uZSBjb3VsZCBmYXVsdC1pbiBhbGwgdGhlIHVzZXIgcGFnZXMg YW5kIGZhaWwNCj4gdmVyeSBsYXRlLi4uZXRjKS4gYWNjZXNzX29rKCkgaXMgaGVyZSB0byBndWFy YW50ZWUgdGhhdCBzdWNoIHNpdHVhdGlvbnMNCj4gZG9uJ3QgaGFwcGVuLCBzbyBhY3R1YWxseSBp dCBtYWtlcyBtb3JlIHNlbnNlIHRvIHVzZSBhbiBhbHRlcm5hdGl2ZSB0bw0KPiBhdm9pZCB0aGF0 Lg0KDQpJcyBpdCByZWFsbHkgd29ydGggZG9pbmcgQU5ZIG9wdGltaXNhdGlvbnMgZm9yIHRoZSAt RUZBVUxUIHBhdGg/DQpUaGV5IHJlYWxseSBkb24ndCBoYXBwZW4uDQoNClRoZSBvbmx5IGZhdWx0 IHBhdGggdGhhdCBtYXR0ZXJzIGlzIHRoZSBvbmUgdGhhdCBoYXMgdG8gcGFnZSBpbg0KZGF0YSBm cm9tIHNvbWV3aGVyZS4NCg0KUHJvdmlkZWQg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