Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: update comment for DEFAULT_MAX_MAP_COUNT

With ELF extended numbering 16-bit bound is not hard limit any more.

[akpm@linux-foundation.org: fix typo]
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kirill A. Shutemov and committed by
Linus Torvalds
3fb1c8dc af4459d3

+4
+4
include/linux/sched/sysctl.h
··· 25 25 * Because the kernel adds some informative sections to a image of program at 26 26 * generating coredump, we need some margin. The number of extra sections is 27 27 * 1-3 now and depends on arch. We use "5" as safe margin, here. 28 + * 29 + * ELF extended numbering allows more than 65535 sections, so 16-bit bound is 30 + * not a hard limit any more. Although some userspace tools can be surprised by 31 + * that. 28 32 */ 29 33 #define MAPCOUNT_ELF_CORE_MARGIN (5) 30 34 #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN)