The patch titled Subject: fs/binfmt_elf.c: coredump: delete duplicated overflow check has been added to the -mm tree. Its filename is elf-coredump-delete-duplicated-overflow-check.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/elf-coredump-delete-duplicated-overflow-check.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/elf-coredump-delete-duplicated-overflow-check.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: Alexey Dobriyan <adobriyan@xxxxxxxxx> Subject: fs/binfmt_elf.c: coredump: delete duplicated overflow check array_size() macro will do overflow check anyway. Link: http://lkml.kernel.org/r/20191222144009.GB24341@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/binfmt_elf.c | 2 -- 1 file changed, 2 deletions(-) --- a/fs/binfmt_elf.c~elf-coredump-delete-duplicated-overflow-check +++ a/fs/binfmt_elf.c @@ -2257,8 +2257,6 @@ static int elf_core_dump(struct coredump dataoff = offset = roundup(offset, ELF_EXEC_PAGESIZE); - if (segs - 1 > ULONG_MAX / sizeof(*vma_filesz)) - goto end_coredump; vma_filesz = kvmalloc(array_size(sizeof(*vma_filesz), (segs - 1)), GFP_KERNEL); if (ZERO_OR_NULL_PTR(vma_filesz)) _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are ramfs-support-o_tmpfile.patch elf-smaller-code-generation-around-auxv-vector-fill.patch elf-fix-start_code-calculation.patch elf-dont-copy-elf-header-around.patch elf-better-codegen-around-current-mm.patch elf-make-bad_addr-unlikely.patch elf-coredump-allocate-core-elf-header-on-stack.patch elf-coredump-delete-duplicated-overflow-check.patch execve-warn-if-process-starts-with-executable-stack.patch