Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp965523yba; Fri, 3 May 2019 13:31:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZgBOjlDbJRiaEoZehRZ5+CHHg8NrDCdq0m8sB/ipDxtntgLm379Nje3icXiZxw/bLWOwO X-Received: by 2002:a63:2b41:: with SMTP id r62mr13164646pgr.403.1556915472697; Fri, 03 May 2019 13:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556915472; cv=none; d=google.com; s=arc-20160816; b=kUv1vBSgThGDRieFuVw8aZlgHsGOsM261wC9wPhcTsp/RWJ3278N4zdwSeuUgpJBTB d4g7kCshpcmxBPpX8vTNWbDP82+KSz0K3SesUuXB+OStf8xr6EbcMmSohCmDaxc/lAK6 x6zRSbpLe2EPgJZHq6yYxkd3qOj/X+pGSMhXHDGb9j1ox6knQOc4GQ3qEm80rTT+i8oO MNFAZ7jSJP8W8yqiM4+4kVNm++KynDaJl5nGeUHLrVm7uPPRyit6kMTRqhtthZK061z6 P0Fw2WbY35BcDGVO+FJJWOZpCRQN5zgsxMgSsQ/G1KwhAKl/CFtw1jbFrpQm6OHBWxMk K/wg== 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=IUH9CilTTPNEPOSdHYW06jSCSf+SgSQDCIvlgqquLUE=; b=IQJEUu0GmSs8atTcn6Kr7z1Pqqko0acuFBhWbOYSDYnWLrpc3dMq4mH521KbcZX74X FAio1kRWm5WJ9E2Pa2WIaruD5OWuH9sxKBLiJciUO8g03AmnvklnkYyl1fAY9LfSdTxj CSTvkH35fK1XuJHCZKg0v8YcO6YWZ2UvRZevs1/JMr3kydoYOjwy0N8AQAdPxia/Lun1 XHuLnPXugThW8UMct22v8X/b/8yq8uraIceIt8lYk4/ZRkKFyS43nmIPkUyvpJH4KXZo LY58EGmQ3HwEICa4t4rAeI1U0ruwcWcWjc2TMQ3KhR3Kovu22+tJnOd0byXBWpM0AHTg djYg== 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 r7si3939910pfd.256.2019.05.03.13.30.57; Fri, 03 May 2019 13:31:12 -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 S1728665AbfECSMW (ORCPT + 99 others); Fri, 3 May 2019 14:12:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19665 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728619AbfECSMT (ORCPT ); Fri, 3 May 2019 14:12:19 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ED9636147C; Fri, 3 May 2019 18:12:18 +0000 (UTC) Received: from jsavitz.bos.com (dhcp-17-237.bos.redhat.com [10.18.17.237]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0DE6B60BFC; Fri, 3 May 2019 18:12:16 +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 , Yury Norov , David Laight Subject: [PATCH v3 2/2] prctl.2: Document the new PR_GET_TASK_SIZE option Date: Fri, 3 May 2019 14:10:21 -0400 Message-Id: <1556907021-29730-3-git-send-email-jsavitz@redhat.com> In-Reply-To: <1556907021-29730-1-git-send-email-jsavitz@redhat.com> References: <1556907021-29730-1-git-send-email-jsavitz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 03 May 2019 18:12:19 +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. Suggested-by: David Laight Signed-off-by: Joel Savitz --- man2/prctl.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/man2/prctl.2 b/man2/prctl.2 index 06d8e13c7..cae582726 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-03 Joel Savitz, document PR_GET_TASK_SIZE .\" .\" .TH PRCTL 2 2019-03-06 "Linux" "Linux Programmer's Manual" @@ -1375,6 +1376,15 @@ 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 "(unsigned long\ *) arg2" . +This value represents the highest virtual address available +to the current process. Return +.B EFAULT +if this operation fails. + .SH RETURN VALUE On success, .BR PR_GET_DUMPABLE , -- 2.18.1