Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp415692yba; Fri, 3 May 2019 04:25:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/yFAFlvNOtc0IqSFxB0E3zpGGzuEfplAKBZks3Ykb4uxTosrGWzFo2c9CArZB1ESpeDhC X-Received: by 2002:a17:902:322:: with SMTP id 31mr5262058pld.204.1556882747225; Fri, 03 May 2019 04:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556882747; cv=none; d=google.com; s=arc-20160816; b=h9H2PKXmdDZIliIt1cLJYpYr8MXl1dztgWdu16ydNZqenTuJyHD6SIR4jkVg7d+5/p +LqLiRfM51dROsGg3y0xNjNGXyzZCftTA1eHYgH7aAJrwag0iCkcz+HZN3QVBPTwd0Ss l1lnJU31LwS9hV58xgkSAhlcBcytDWQ521Gk8lXGavvY+inB/1yiOAPjL56GcN0yo9+d tu9/aE/6vE2BCcm8Oi9M8FjrZqxMdJs7luOezIi8Z9vGxm0mCRTkzWLrpqo9mkJnrrC+ KGpgTU5Ol7C5paKOwbVFfTOZ8X5aKRKjhGiIr5rOAUwbJvdt9DBOSdTaV0fbLOy1vSoK XIsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=IkTjYQygV8jTKNDLrVd1XW6yqfoSHFxySs3CRRAVFVQ=; b=SULZP/YqHlHo9zyYcnwR6liiWtxl+PM5z6ynGGJYjy65278rFp+er776t8r5Uuvw5/ 37uEIQT+MIDvkT3/HvEb25WmUo2HUnGohiQaiXBpYFp/sXv/kvWwiBZY65fwZQswWQPH 9utJ7GbHwWRBkxDX5LFqnjaS/DFn3bsmNj4wY3185wBxVYGdRsJHobZE+XCpuBKkFak+ py18tDpLdQKZ3abb7RuKGTItJTqdxMXcgnTVYIthdLQD53vEuV2DJZDKQotIT8iuIP3f EGCK80IgoJLXEC1DzawSibsHrGf8QdfUjxjtL4OgWpcWriMu8NKfbCTsSSEm4MHlmbNU yXGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c29si1813003pgc.370.2019.05.03.04.25.32; Fri, 03 May 2019 04:25:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727261AbfECLUk convert rfc822-to-8bit (ORCPT + 99 others); Fri, 3 May 2019 07:20:40 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:22483 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbfECLUj (ORCPT ); Fri, 3 May 2019 07:20:39 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-147-uNDlfnUDNzGCnnkqEq6Diw-1; Fri, 03 May 2019 12:20:33 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 3 May 2019 12:20:32 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 3 May 2019 12:20:32 +0100 From: David Laight To: 'Joel Savitz' , "linux-kernel@vger.kernel.org" CC: Thomas Gleixner , Ingo Molnar , Masami Hiramatsu , Waiman Long , Mauro Carvalho Chehab , Kristina Martsenko , Andrew Morton , Cyrill Gorcunov , Kees Cook , "Gustavo A. R. Silva" , YueHaibing , Micah Morton , Yang Shi , Jann Horn , Alexey Dobriyan , Rafael Aquini , Michael Kerrisk Subject: RE: [PATCH 2/2] prctl.2: Document the new PR_GET_TASK_SIZE option Thread-Topic: [PATCH 2/2] prctl.2: Document the new PR_GET_TASK_SIZE option Thread-Index: AQHVARtLvJKGJytP2U6L8JAWp4DVLqZZQYQA Date: Fri, 3 May 2019 11:20:32 +0000 Message-ID: References: <1556824391-24060-1-git-send-email-jsavitz@redhat.com> <1556824391-24060-3-git-send-email-jsavitz@redhat.com> In-Reply-To: <1556824391-24060-3-git-send-email-jsavitz@redhat.com> Accept-Language: en-GB, en-US Content-Language: 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 X-MC-Unique: uNDlfnUDNzGCnnkqEq6Diw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joel Savitz > Sent: 02 May 2019 20:13 > Add a short explanation of the new PR_GET_TASK_SIZE option for the benefit > of future generations. > > Signed-off-by: Joel Savitz > --- > man2/prctl.2 | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/man2/prctl.2 b/man2/prctl.2 > index 06d8e13c7..35a6a3919 100644 > --- a/man2/prctl.2 > +++ b/man2/prctl.2 > @@ -49,6 +49,7 @@ > .\" 2013-01-10 Kees Cook, document PR_SET_PTRACER > .\" 2012-02-04 Michael Kerrisk, document PR_{SET,GET}_CHILD_SUBREAPER > .\" 2014-11-10 Dave Hansen, document PR_MPX_{EN,DIS}ABLE_MANAGEMENT > +.\" 2019-05-02 Joel Savitz, document PR_GET_TASK_SIZE > .\" > .\" > .TH PRCTL 2 2019-03-06 "Linux" "Linux Programmer's Manual" > @@ -1375,6 +1376,14 @@ system call on Tru64). > for information on versions and architectures) > Return unaligned access control bits, in the location pointed to by > .IR "(unsigned int\ *) arg2" . > +.TP > +.B PR_GET_TASK_SIZE > +Copy the value of TASK_SIZE to the userspace address in > +.IR "arg2" . > +Return > +.B EFAULT > +if this operation fails. > + Shouldn't this say what the value is? ISTR a recent patch to change the was the 'used to be constant' TASK_SIZE is defined. I think it might be 'The highest userspace virtual address the current process can use.' But I might be wrong. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)