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: Tue, 2 Jan 2024 15:47:12 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Gregory Price <gourry.memverge@...il.com>
Cc: linux-mm@...ck.org, linux-doc@...r.kernel.org, 
	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org, 
	linux-api@...r.kernel.org, x86@...nel.org, akpm@...ux-foundation.org, 
	arnd@...db.de, tglx@...utronix.de, luto@...nel.org, mingo@...hat.com, 
	bp@...en8.de, dave.hansen@...ux.intel.com, hpa@...or.com, mhocko@...nel.org, 
	tj@...nel.org, ying.huang@...el.com, gregory.price@...verge.com, 
	corbet@....net, rakie.kim@...com, hyeongtak.ji@...com, honggyu.kim@...com, 
	vtavarespetr@...ron.com, peterz@...radead.org, jgroves@...ron.com, 
	ravis.opensrc@...ron.com, sthanneeru@...ron.com, emirakhur@...ron.com, 
	Hasan.Maruf@....com, seungjun.ha@...sung.com, Michal Hocko <mhocko@...e.com>, 
	Frank van der Linden <fvdl@...gle.com>
Subject: Re: [PATCH v5 10/11] mm/mempolicy: add the mbind2 syscall

On Sat, Dec 23, 2023 at 7:14 PM Gregory Price <gourry.memverge@...il.com> wrote:
> mbind2 is an extensible mbind interface which allows a user to
> set the mempolicy for one or more address ranges.
>
> Defined as:
>
> mbind2(unsigned long addr, unsigned long len, struct mpol_args *args,
>        size_t size, unsigned long flags)
>
> addr:         address of the memory range to operate on
> len:          length of the memory range
> flags:        MPOL_MF_HOME_NODE + original mbind() flags
>
> Input values include the following fields of mpol_args:
>
> mode:         The MPOL_* policy (DEFAULT, INTERLEAVE, etc.)
> mode_flags:   The MPOL_F_* flags that were previously passed in or'd
>               into the mode.  This was split to hopefully allow future
>               extensions additional mode/flag space.
> home_node:    if (flags & MPOL_MF_HOME_NODE), set home node of policy
>               to this otherwise it is ignored.
> pol_maxnodes: The max number of nodes described by pol_nodes
> pol_nodes:    the nodemask to apply for the memory policy
>
> The semantics are otherwise the same as mbind(), except that
> the home_node can be set.
>
> Suggested-by: Michal Hocko <mhocko@...e.com>
> Suggested-by: Frank van der Linden <fvdl@...gle.com>
> Suggested-by: Vinicius Tavares Petrucci <vtavarespetr@...ron.com>
> Suggested-by: Rakie Kim <rakie.kim@...com>
> Suggested-by: Hyeongtak Ji <hyeongtak.ji@...com>
> Suggested-by: Honggyu Kim <honggyu.kim@...com>
> Signed-off-by: Gregory Price <gregory.price@...verge.com>
> Co-developed-by: Vinicius Tavares Petrucci <vtavarespetr@...ron.com>

>  arch/m68k/kernel/syscalls/syscall.tbl         |  1 +

Acked-by: Geert Uytterhoeven <geert@...ux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ