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] [day] [month] [year] [list]
Date:   Mon, 28 Jun 2021 09:47:53 +0800
From:   chenweilong <chenweilong@...wei.com>
To:     Greg KH <gregkh@...uxfoundation.org>
CC:     <viro@...iv.linux.org.uk>, <keescook@...omium.org>,
        <linux-kernel@...r.kernel.org>
Subject: Re: [linux-next] rootfs: rootflags take effect when mount rootfs

On 2021/6/27 18:46, Greg KH wrote:
> On Sat, Jun 26, 2021 at 09:16:55AM +0800, Weilong Chen wrote:
>> The kernel root filesystem may use the rootflags parameters
>> when mount, especially for tmpfs, to setup a variety of features.
>>
>> For example:
>> 1. Add 'rootflags=huge=always' to boot args.
>> 2. When the OS bootup:
>> rootfs on / type rootfs (..., huge=always)
>> Then we can get the hugepage performance improvement of tmpfs.
>>
>> Signed-off-by: Weilong Chen <chenweilong@...wei.com>
>> ---
>>  fs/namespace.c       | 5 +++--
>>  include/linux/init.h | 2 +-
>>  init/do_mounts.c     | 4 +++-
>>  3 files changed, 7 insertions(+), 4 deletions(-)
> No documentation update for this new user/kernel api you added?

There is already relevant documents (Documentation/admin-guide/kernel-parameters.txt)

description:

    rootflags=      [KNL] Set root filesystem mount option string

This patch make it work for tmpfs.

> .


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ