elf-fix-nt_file-integer-overflow.patch removed from -mm tree
The patch titled
Subject: elf: fix NT_FILE integer overflow
has been removed from the -mm tree. Its filename was
elf-fix-nt_file-integer-overflow.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Alexey Dobriyan <[email protected]>
Subject: elf: fix NT_FILE integer overflow
If vm.max_map_count bumped above 2^26 (67+ mil) and system has enough RAM to allocate all the VMAs (~12.8 GB on Fedora 27 with 200-byte VMAs), then it should be possible to overflow 32-bit "size", pass paranoia check, allocate very little vmalloc space and oops while writing into vmalloc guard page...
But I didn't test this, only coredump of regular process.
---
fs/binfmt_elf.c | 2 ++ 1 file changed, 2 insertions(+)
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~elf-fix-nt_file-integer-overflow +2 -0
@@ -1599,6 +1599,8 @@ static int fill_files_note(struct memelf/* *Estimated* file count and total data size needed */ count = current->mm->map_count; +if (count >UINT_MAX /64 ) +return -EINVAL ; size = count *64 ; names_ofs = (2 +3 * count) *sizeof (data[0 ]);
_
Patches currently in -mm which might be from [email protected] are
seq_file-delete-small-value-optimization.patch