lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 22 Oct 2014 19:54:46 +0400
From:	Kirill Smelkov <kirr@...edi.com>
To:	Jonathan Corbet <corbet@....net>
Cc:	Ken Chen <kenchen@...gle.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH,RESEND] hugetlbfs: document that sticky mounts are allowed

 (resending to new documentation maintainer, as the original patch
  seemingly got lost)

Jonathan,

Please apply the below patch documenting that hugetlbfs can be sticky-mounted.

Thanks beforehand,
Kirill

On Thu, Sep 04, 2014 at 10:14:31AM -0700, Ken Chen wrote:
> On Thu, Sep 4, 2014 at 6:20 AM, Kirill Smelkov <kirr@...edi.com> wrote:
> > Commit 75897d60 (hugetlb: allow sticky directory mount option) added
> > support for mounting hugetlbfs with sticky option set, like /tmp is
> > usually mounted, but forgot to document that.
> >
> > Cc: Ken Chen <kenchen@...gle.com>
> > Signed-off-by: Kirill Smelkov <kirr@...edi.com>
> > ---
> >  Documentation/vm/hugetlbpage.txt | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt
> > index bdd4bb9..b64e0af 100644
> > --- a/Documentation/vm/hugetlbpage.txt
> > +++ b/Documentation/vm/hugetlbpage.txt
> > @@ -274,7 +274,7 @@ This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
> >  /mnt/huge.  Any files created on /mnt/huge uses huge pages.  The uid and gid
> >  options sets the owner and group of the root of the file system.  By default
> >  the uid and gid of the current process are taken.  The mode option sets the
> > -mode of root of file system to value & 0777.  This value is given in octal.
> > +mode of root of file system to value & 01777.  This value is given in octal.
> >  By default the value 0755 is picked. The size option sets the maximum value of
> >  memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
> >  rounded down to HPAGE_SIZE.  The option nr_inodes sets the maximum number of
> 
> Acked-by: Ken Chen <kenchen@...gle.com>

---- 8< ----
From: Kirill Smelkov <kirr@...edi.com>
Date: Thu, 4 Sep 2014 17:13:00 +0400
Subject: [PATCH] hugetlbfs: document that sticky mounts are allowed

Commit 75897d60 (hugetlb: allow sticky directory mount option) added
support for mounting hugetlbfs with sticky option set, like /tmp is
usually mounted, but forgot to document that.

Cc: Ken Chen <kenchen@...gle.com>
Signed-off-by: Kirill Smelkov <kirr@...edi.com>
Acked-by: Ken Chen <kenchen@...gle.com>
---
 Documentation/vm/hugetlbpage.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt
index bdd4bb9..b64e0af 100644
--- a/Documentation/vm/hugetlbpage.txt
+++ b/Documentation/vm/hugetlbpage.txt
@@ -274,7 +274,7 @@ This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
 /mnt/huge.  Any files created on /mnt/huge uses huge pages.  The uid and gid
 options sets the owner and group of the root of the file system.  By default
 the uid and gid of the current process are taken.  The mode option sets the
-mode of root of file system to value & 0777.  This value is given in octal.
+mode of root of file system to value & 01777.  This value is given in octal.
 By default the value 0755 is picked. The size option sets the maximum value of
 memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
 rounded down to HPAGE_SIZE.  The option nr_inodes sets the maximum number of
-- 
2.1.0.61.g11be0d6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ