Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7659216yba; Thu, 2 May 2019 13:55:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVCEyqQwy1knZ4oSxn9FUnBJVqDMac0FvdLy9AWI4GlNjkg70mrd8qqbrPx9fnhrp+0hmP X-Received: by 2002:aa7:8455:: with SMTP id r21mr6547978pfn.253.1556830514630; Thu, 02 May 2019 13:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556830514; cv=none; d=google.com; s=arc-20160816; b=Y7DfA44ZOAHUuf6Hge/8+JVZx/pUvB9LTLB0xCipfE5iTIZYvtE+KQEFcanJkE3clM sSCA6z9bL5tuWHp6EYsStXKiATerThvTC+6FPYgUcOn7HYM8p1QKmJm1uu1tzlx2dokT 8n/6qO7mFv3r/0Q35G71c1i+8QIeN0sAz5DufREnoAq5Z23AGuoNp0dD8074Wffq3s5/ ghO2bZ6SuDf0M3nVf3cbyDPEnydoismqLg82OCR7QR+UjaRlH0Eu2aHYCniJna0AEdbC kbqW72dMUkAplMYO3LmUG5gneszhO+6RhMfXRVzZxfImfXze0XIPEVN+4LPLfkpdO0C0 SIMQ== 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=Dkhf9/ajBI5sSpA4iws/Cnaw8i+5r+/5A67G+trj2tk=; b=zgSw2Oep9reXl5T/+h2NNHiGCI6UnzhBGW6Cuc6PZcFAQwMwOo9k69e+oUq634uX9F oxahuI6uAIGZ8Cyx/GrvWLMeyTic1mXjaIESsWbkqMIWyHX0Zjr1d7SUKKnqNCrbN2zE vQF+zfpFmQ6/qu4tKsqK9SkpcBvImdg8AMW68JeN3xBDkGUTzJrlNuzXTefj9+GRdtoy aPTeOMqwK2E5rml32BjDouVLcGPs0FIdQRp17n/kRPyQOFdHJy8f2dcjHhNbhe3N70Hu 4jU+CoqMrEkVfdoZp+eUI25ne+4+Cg1GUfg4Iey713VBMcjXJhFp6qz2bd1++CN/l5oO Ga2g== 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 i9si49434pgl.571.2019.05.02.13.54.58; Thu, 02 May 2019 13:55:14 -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 S1726454AbfEBUwo (ORCPT + 99 others); Thu, 2 May 2019 16:52:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57998 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbfEBUwn (ORCPT ); Thu, 2 May 2019 16:52:43 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7980C05681F; Thu, 2 May 2019 20:52:42 +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 19B4A5DA34; Thu, 2 May 2019 20:52:41 +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 Subject: [PATCH v2 2/2] prctl.2: Document the new PR_GET_TASK_SIZE option Date: Thu, 2 May 2019 16:52:22 -0400 Message-Id: <1556830342-32307-3-git-send-email-jsavitz@redhat.com> In-Reply-To: <1556830342-32307-1-git-send-email-jsavitz@redhat.com> References: <1556830342-32307-1-git-send-email-jsavitz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 02 May 2019 20:52:43 +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 "(unsigned long\ *) arg2" . +Return +.B EFAULT +if this operation fails. + .SH RETURN VALUE On success, .BR PR_GET_DUMPABLE , -- 2.18.1