Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp188739yba; Fri, 3 May 2019 23:58:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzsT5J2yFKK0FxGfmAFg2H6aou6OpX9Ld4w/ToPDc8SfIi6l7LqSt7+qISD+EMDDUnimt0 X-Received: by 2002:a17:902:b095:: with SMTP id p21mr16582033plr.40.1556953118053; Fri, 03 May 2019 23:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556953118; cv=none; d=google.com; s=arc-20160816; b=mgRXCj0wPXEMF+YfNh4eaWu8i0ntFbLFxenwU42Uz+S4k3NbAjNDDKZH9XlCnblmK0 R3Wjcqtqxc2uhwDtjcpdy/iKxsgpWe1GtokB75KZdh9VRZ5x6D5KPjNUwX/z20SrVrav oqRn5QX99rn44vvxUm6k/CLMvz0YBzgTtGKmaC/tHKrUgvodKfAv7kPJQtvqDw4McIrJ UPrWDH0qbOS1rj5Aq5EhPxT6UIG4/LXxKQLRW7bosWwGA5TfKWKmD4sARxeiOlPjgjEA /ESJ+QbZvAsi1TR6mAeN+AKtnF7e6q4OLbXSOvb0hjYo+ZJpsq+ADVChErzq6M0XM9/P 9oZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h6HmZn6f8FxosixHM79+I4jh/Dsytwl+YRpeHiqpaiQ=; b=Aa8Eg7LlQIksdJAAJ/P+y131fmP4nkIaCuz+0EQtMQJX7LApnlISekdre5KZnYTLJ4 CzifAs4SHQNyCYumW5+ri/Sm66kw9HSKp0D59Y43JR/KIv1ppc7W9h9yqWlW5dW/eAX0 WCcPNryPq6JUQqZlJmlWijOlVt/SozkYsxUel51RrCmtDcybV3S+PrEWXvkP6hxqyNc0 1UZcSUVL1/lzKHdY/VL0Z/spe35LBHItKDgN15t87zTIXPT8BbNO9yFKrMrhohLcph9b WBmahxAkcfvpVKrFUKZHsa17pZU0HG3E9UOWBPk4FLH7Go0ERw8qcioI+pDWgflZwOqt DgDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qpFDpgQF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si5446131pgv.586.2019.05.03.23.58.22; Fri, 03 May 2019 23:58:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qpFDpgQF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726789AbfEDG5G (ORCPT + 99 others); Sat, 4 May 2019 02:57:06 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:43786 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbfEDG5G (ORCPT ); Sat, 4 May 2019 02:57:06 -0400 Received: by mail-lf1-f68.google.com with SMTP id u27so5595275lfg.10 for ; Fri, 03 May 2019 23:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=h6HmZn6f8FxosixHM79+I4jh/Dsytwl+YRpeHiqpaiQ=; b=qpFDpgQFfRqt2vxujIdX/p70aXZ406OKP/jAnakQQVsYxkvZwBSq/wkxlu88c8Gxpi nolmmaCmD8qxmtxRTmC+Kv0AJ9uFNP1k8HnhCbZvz8HZ0GytEfNkwiiX6L4mLZFim9be kZjYCGgATWqQw8ie66Tp6JWslFRseEZIseZMqmcb6r0gv/YCbauJj99gyB5lDw6WtB8W MUqq8r/tftKjTemN75MQRUECBHYViXtQY/eCJ+I4CJSPP4n9PM9oH2jAuEvn9osAYcV4 FFCZxYSq9AOhEvBJe5vnrmhoWJ4rOAD5LpXOizFgrK7ZP6uOtCV/s8z0cWNCBBLyA98b 9xpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=h6HmZn6f8FxosixHM79+I4jh/Dsytwl+YRpeHiqpaiQ=; b=SL6xHYgb1pxP1CMRofyKJJDM2dng9+Bu0Gn/DVMMYcBtGPGhyvg6p7jdiG8xGGly6X NOvIGZhLprM+eRYKTYVIgwi78dsmNaTElBqKDXEUitzgL05nUjDLESAsFtYYaTSpWbhr Ycrmw1A7eCJbrd9GPsYN/ukDaIDMt20s83Qc6cbt8UbDw95TzgpJf3W4Z7S/BXJU5EQA c7FqsmlVqwswUPtRMH+B6AbD+Ybp2SN0iA7u0QqtqyFy70V50kF9KUH2D6vHhNaoqG63 fB61ExSb1iW++I6xGZKgrTWxpGgU3EkZC06TT8EX30v5l2ZYwEjzSJ9JiU3Cilm+ZtTl XuFg== X-Gm-Message-State: APjAAAWyZ0ECZx5KgcRN+BjZBHoLgnh40sLcx4bUywklpqTliaX4lz3q j4Sm+AwsHZIbymFn4QlRoQ== X-Received: by 2002:a19:7d04:: with SMTP id y4mr7321456lfc.153.1556953024592; Fri, 03 May 2019 23:57:04 -0700 (PDT) Received: from avx2 ([46.53.254.98]) by smtp.gmail.com with ESMTPSA id c19sm791498lfj.96.2019.05.03.23.57.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 23:57:03 -0700 (PDT) Date: Sat, 4 May 2019 09:56:59 +0300 From: Alexey Dobriyan To: Joel Savitz Cc: linux-kernel@vger.kernel.org, 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 , Rafael Aquini , Michael Kerrisk , Yury Norov , David Laight Subject: Re: [PATCH v3 1/2] kernel/sys: add PR_GET_TASK_SIZE option to prctl(2) Message-ID: <20190504065659.GA4156@avx2> References: <1556907021-29730-1-git-send-email-jsavitz@redhat.com> <1556907021-29730-2-git-send-email-jsavitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1556907021-29730-2-git-send-email-jsavitz@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 03, 2019 at 02:10:20PM -0400, Joel Savitz wrote: > +/* Get the process virtual memory size (i.e. the highest usable VM address) */ > +#define PR_GET_TASK_SIZE 55 TASK_SIZE is in fact the lowest _un_usable address. :^)