The patch titled Subject: fix up for "iov_iter: transparently handle compat iovecs in import_iovec" has been added to the -mm tree. Its filename is mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix-fix.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix-fix.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Subject: fix up for "iov_iter: transparently handle compat iovecs in import_iovec" Link: https://lkml.kernel.org/r/20200928212542.468e1fef@xxxxxxxxxxxxxxxx Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/madvise.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) --- a/mm/madvise.c~mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix-fix +++ a/mm/madvise.c @@ -7,7 +7,6 @@ */ #include <linux/mman.h> -#include <linux/compat.h> #include <linux/pagemap.h> #include <linux/syscalls.h> #include <linux/mempolicy.h> @@ -1189,15 +1188,7 @@ SYSCALL_DEFINE5(process_madvise, int, pi goto out; } -#ifdef CONFIG_COMPAT - if (in_compat_syscall()) - ret = compat_import_iovec(READ, - (struct compat_iovec __user *)vec, vlen, - ARRAY_SIZE(iovstack), &iov, &iter); - else -#endif - ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), - &iov, &iter); + ret = import_iovec(READ, vec, vlen, ARRAY_SIZE(iovstack), &iov, &iter); if (ret < 0) goto out; _ Patches currently in -mm which might be from sfr@xxxxxxxxxxxxxxxx are mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix.patch mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix-fix-fix-fix-fix-fix-fix-fix-fix.patch