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, 28 Apr 2020 09:15:41 +1000
From:   Stephen Rothwell <sfr@...b.auug.org.au>
To:     Randy Dunlap <rdunlap@...radead.org>
Cc:     akpm@...ux-foundation.org, broonie@...nel.org,
        linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-mm@...ck.org, linux-next@...r.kernel.org, mhocko@...e.cz,
        mm-commits@...r.kernel.org, Minchan Kim <minchan@...nel.org>
Subject: Re: mmotm 2020-04-26-00-15 uploaded (mm/madvise.c)

Hi all,

On Sun, 26 Apr 2020 15:48:35 -0700 Randy Dunlap <rdunlap@...radead.org> wrote:
>
> I had to add 2 small patches to have clean madvise.c builds:
> 
> 
> ---
>  include/linux/syscalls.h |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> --- mmotm-2020-0426-0015.orig/include/linux/syscalls.h
> +++ mmotm-2020-0426-0015/include/linux/syscalls.h
> @@ -876,9 +876,9 @@ asmlinkage long sys_munlockall(void);
>  asmlinkage long sys_mincore(unsigned long start, size_t len,
>  				unsigned char __user * vec);
>  asmlinkage long sys_madvise(unsigned long start, size_t len, int behavior);
> -
> -asmlinkage long sys_process_madvise(int which, pid_t pid, unsigned long start,
> -			size_t len, int behavior, unsigned long flags);
> +asmlinkage long sys_process_madvise(int which, pid_t upid,
> +		const struct iovec __user *vec, unsigned long vlen,
> +		int behavior, unsigned long flags);
>  asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size,
>  			unsigned long prot, unsigned long pgoff,
>  			unsigned long flags);
> 
> ---
> and
> ---
>  mm/madvise.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> --- mmotm-2020-0426-0015.orig/mm/madvise.c
> +++ mmotm-2020-0426-0015/mm/madvise.c
> @@ -23,12 +23,14 @@
>  #include <linux/file.h>
>  #include <linux/blkdev.h>
>  #include <linux/backing-dev.h>
> +#include <linux/compat.h>
>  #include <linux/pagewalk.h>
>  #include <linux/swap.h>
>  #include <linux/swapops.h>
>  #include <linux/shmem_fs.h>
>  #include <linux/mmu_notifier.h>
>  #include <linux/sched/mm.h>
> +#include <linux/uio.h>
>  
>  #include <asm/tlb.h>
>  

I added these to linux-next today.

-- 
Cheers,
Stephen Rothwell

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ