From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rapoport Subject: Re: [PATCH man-pages 1/5] ioctl_userfaultfd.2: update description of shared memory areas Date: Tue, 2 May 2017 12:31:11 +0300 Message-ID: <20170502093110.GA5910@rapoport-lnx> References: <1493617399-20897-1-git-send-email-rppt@linux.vnet.ibm.com> <1493617399-20897-2-git-send-email-rppt@linux.vnet.ibm.com> <7ec5dfc0-9d84-e142-bfaa-d96383acbee9@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <7ec5dfc0-9d84-e142-bfaa-d96383acbee9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Michael Kerrisk (man-pages)" Cc: Andrea Arcangeli , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org On Mon, May 01, 2017 at 08:33:31PM +0200, Michael Kerrisk (man-pages) wrote: > Hello Mike, > > I've applied this patch, but have a question. > > On 05/01/2017 07:43 AM, Mike Rapoport wrote: > > Signed-off-by: Mike Rapoport > > --- > > man2/ioctl_userfaultfd.2 | 13 +++++++++++-- > > 1 file changed, 11 insertions(+), 2 deletions(-) > > > > diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 > > index 889feb9..6edd396 100644 > > --- a/man2/ioctl_userfaultfd.2 > > +++ b/man2/ioctl_userfaultfd.2 > > @@ -181,8 +181,17 @@ virtual memory areas > > .TP > > .B UFFD_FEATURE_MISSING_SHMEM > > If this feature bit is set, > > -the kernel supports registering userfaultfd ranges on tmpfs > > -virtual memory areas > > +the kernel supports registering userfaultfd ranges on shared memory areas. > > +This includes all kernel shared memory APIs: > > +System V shared memory, > > +tmpfs, > > +/dev/zero, > > +.BR mmap(2) > > +with > > +.I MAP_SHARED > > +flag set, > > +.BR memfd_create (2), > > +etc. > > > > The returned > > .I ioctls > > Does the change in this patch represent a change that occurred in > Linux 4.11? If so, I think this needs to be said explicitly in the text. The patch only extends the description of UFFD_FEATURE_MISSING_SHMEM. The feature is indeed available from 4.11, but that is said a few lives above (line 136 in ioctl_userfaultfd.2) > Cheers, > > Michael > > > > -- > Michael Kerrisk > Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ > Linux/UNIX System Programming Training: http://man7.org/training/ > -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f69.google.com (mail-wm0-f69.google.com [74.125.82.69]) by kanga.kvack.org (Postfix) with ESMTP id D79686B0317 for ; Tue, 2 May 2017 05:31:28 -0400 (EDT) Received: by mail-wm0-f69.google.com with SMTP id i7so1004348wmf.19 for ; Tue, 02 May 2017 02:31:28 -0700 (PDT) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id t190si505665wme.72.2017.05.02.02.31.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 02:31:27 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v4294Jqp125322 for ; Tue, 2 May 2017 05:31:26 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2a6g76d8fk-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 02 May 2017 05:31:26 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 2 May 2017 10:31:23 +0100 Date: Tue, 2 May 2017 12:31:11 +0300 From: Mike Rapoport Subject: Re: [PATCH man-pages 1/5] ioctl_userfaultfd.2: update description of shared memory areas References: <1493617399-20897-1-git-send-email-rppt@linux.vnet.ibm.com> <1493617399-20897-2-git-send-email-rppt@linux.vnet.ibm.com> <7ec5dfc0-9d84-e142-bfaa-d96383acbee9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ec5dfc0-9d84-e142-bfaa-d96383acbee9@gmail.com> Message-Id: <20170502093110.GA5910@rapoport-lnx> Sender: owner-linux-mm@kvack.org List-ID: To: "Michael Kerrisk (man-pages)" Cc: Andrea Arcangeli , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-man@vger.kernel.org On Mon, May 01, 2017 at 08:33:31PM +0200, Michael Kerrisk (man-pages) wrote: > Hello Mike, > > I've applied this patch, but have a question. > > On 05/01/2017 07:43 AM, Mike Rapoport wrote: > > Signed-off-by: Mike Rapoport > > --- > > man2/ioctl_userfaultfd.2 | 13 +++++++++++-- > > 1 file changed, 11 insertions(+), 2 deletions(-) > > > > diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 > > index 889feb9..6edd396 100644 > > --- a/man2/ioctl_userfaultfd.2 > > +++ b/man2/ioctl_userfaultfd.2 > > @@ -181,8 +181,17 @@ virtual memory areas > > .TP > > .B UFFD_FEATURE_MISSING_SHMEM > > If this feature bit is set, > > -the kernel supports registering userfaultfd ranges on tmpfs > > -virtual memory areas > > +the kernel supports registering userfaultfd ranges on shared memory areas. > > +This includes all kernel shared memory APIs: > > +System V shared memory, > > +tmpfs, > > +/dev/zero, > > +.BR mmap(2) > > +with > > +.I MAP_SHARED > > +flag set, > > +.BR memfd_create (2), > > +etc. > > > > The returned > > .I ioctls > > Does the change in this patch represent a change that occurred in > Linux 4.11? If so, I think this needs to be said explicitly in the text. The patch only extends the description of UFFD_FEATURE_MISSING_SHMEM. The feature is indeed available from 4.11, but that is said a few lives above (line 136 in ioctl_userfaultfd.2) > Cheers, > > Michael > > > > -- > Michael Kerrisk > Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ > Linux/UNIX System Programming Training: http://man7.org/training/ > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751560AbdEBJb3 (ORCPT ); Tue, 2 May 2017 05:31:29 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41177 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751049AbdEBJb1 (ORCPT ); Tue, 2 May 2017 05:31:27 -0400 Date: Tue, 2 May 2017 12:31:11 +0300 From: Mike Rapoport To: "Michael Kerrisk (man-pages)" Cc: Andrea Arcangeli , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-man@vger.kernel.org Subject: Re: [PATCH man-pages 1/5] ioctl_userfaultfd.2: update description of shared memory areas References: <1493617399-20897-1-git-send-email-rppt@linux.vnet.ibm.com> <1493617399-20897-2-git-send-email-rppt@linux.vnet.ibm.com> <7ec5dfc0-9d84-e142-bfaa-d96383acbee9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7ec5dfc0-9d84-e142-bfaa-d96383acbee9@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17050209-0040-0000-0000-0000037B4295 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17050209-0041-0000-0000-00002530849C Message-Id: <20170502093110.GA5910@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705020055 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 01, 2017 at 08:33:31PM +0200, Michael Kerrisk (man-pages) wrote: > Hello Mike, > > I've applied this patch, but have a question. > > On 05/01/2017 07:43 AM, Mike Rapoport wrote: > > Signed-off-by: Mike Rapoport > > --- > > man2/ioctl_userfaultfd.2 | 13 +++++++++++-- > > 1 file changed, 11 insertions(+), 2 deletions(-) > > > > diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 > > index 889feb9..6edd396 100644 > > --- a/man2/ioctl_userfaultfd.2 > > +++ b/man2/ioctl_userfaultfd.2 > > @@ -181,8 +181,17 @@ virtual memory areas > > .TP > > .B UFFD_FEATURE_MISSING_SHMEM > > If this feature bit is set, > > -the kernel supports registering userfaultfd ranges on tmpfs > > -virtual memory areas > > +the kernel supports registering userfaultfd ranges on shared memory areas. > > +This includes all kernel shared memory APIs: > > +System V shared memory, > > +tmpfs, > > +/dev/zero, > > +.BR mmap(2) > > +with > > +.I MAP_SHARED > > +flag set, > > +.BR memfd_create (2), > > +etc. > > > > The returned > > .I ioctls > > Does the change in this patch represent a change that occurred in > Linux 4.11? If so, I think this needs to be said explicitly in the text. The patch only extends the description of UFFD_FEATURE_MISSING_SHMEM. The feature is indeed available from 4.11, but that is said a few lives above (line 136 in ioctl_userfaultfd.2) > Cheers, > > Michael > > > > -- > Michael Kerrisk > Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ > Linux/UNIX System Programming Training: http://man7.org/training/ >