Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7574800yba; Thu, 2 May 2019 12:16:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyCA21SdTu3x16oxGdZI+q6KNf1zNDql70mFsXKiHqdPE3CREB56ra5RSe2hAW5BGmhn4g X-Received: by 2002:a17:902:29ab:: with SMTP id h40mr5528501plb.269.1556824601487; Thu, 02 May 2019 12:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556824601; cv=none; d=google.com; s=arc-20160816; b=mdMsJI5fz2SpH0xL4EprTwlC6fzQbAW4jUCHh5yvFeTrmfq52X80eavT7B/v3MShgv PJSs4U4hfyW+oeoz4KdUP8e7VK+qJCUb7qoeY95NwKZ7jjBPZdCzycmGSvwt6ycrbQDs mR7QIh5jlrD4VHsO8KDFMk/t1ojb5M+7j9AGM1LcDt6RsYwfTq0qSZ0+zHIANrVlMY+1 UsNVIX5AxAHdwHrl2fNZ8/EyUfzQlX6pK31JMUweDoGNBjVhWDm2Edakgn2ZmPCU4zoe YA1rPArMPp42bK4mpLY6MNwBEtqM7lvDKNT5eBrS1N8rA9KEkNZN+0M86WQ7fDt6f3lH AkhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=oc1FhrvFg0Ej/9StCFCxpZW2h0Sih3ZrkyKC51yxmd0=; b=oggkfbFtPdFxa//rEQtyPzqQdlS0Q+EblvEVo8LmSLYUqoT0d5D9S1acldajoXUKGU MVJh0aMb4yMt4NhYWLUO7739UgVvBD/bxy1PnBggz1v4TL1C8ydmIUT39K08Yapf0afk UfqFg0sAfNBgf2zZ8ygzvn5MoNNcSXiENah2VP+F17L72BZwitb/7TH8wiXiUaWiItBY tEOa5Bd9sPCXXnmH50sl6yGQS6iAR8Btxl5RKOU5N8Ni1AQc5v5VEHSuxayc7Jzdzt/e /3iHJ6a+XtKQ6/IQoREP8i8HhEYExxbyTEk/fn93YR0VK7x7EZqNt7Fgt1lOVxuFyhhz hxdw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si2800155pgs.0.2019.05.02.12.16.25; Thu, 02 May 2019 12:16:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbfEBTOh (ORCPT + 99 others); Thu, 2 May 2019 15:14:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47852 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfEBTOg (ORCPT ); Thu, 2 May 2019 15:14:36 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79AF7811D8; Thu, 2 May 2019 19:14:36 +0000 (UTC) Received: from jsavitz.bos.com (dhcp-17-168.bos.redhat.com [10.18.17.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0EE01001DC1; Thu, 2 May 2019 19:14:29 +0000 (UTC) From: Joel Savitz To: linux-kernel@vger.kernel.org Cc: Joel Savitz , 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: [PATCH 2/2] prctl.2: Document the new PR_GET_TASK_SIZE option Date: Thu, 2 May 2019 15:13:11 -0400 Message-Id: <1556824391-24060-3-git-send-email-jsavitz@redhat.com> In-Reply-To: <1556824391-24060-1-git-send-email-jsavitz@redhat.com> References: <1556824391-24060-1-git-send-email-jsavitz@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 02 May 2019 19:14:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + .SH RETURN VALUE On success, .BR PR_GET_DUMPABLE , -- 2.18.1