From 99a43e14bef1cfd9548334398718e7a94e6df298 Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Wed, 14 May 2014 10:02:06 +1000 Subject: [PATCH] mm: update comment for DEFAULT_MAX_MAP_COUNT With ELF extended numbering 16-bit bound is not hard limit any more. Signed-off-by: Kirill A. Shutemov Signed-off-by: Andrew Morton --- include/linux/sched/sysctl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index 8045a554cafb..552a2db8b1f5 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h @@ -25,6 +25,10 @@ enum { sysctl_hung_task_timeout_secs = 0 }; * Because the kernel adds some informative sections to a image of program at * generating coredump, we need some margin. The number of extra sections is * 1-3 now and depends on arch. We use "5" as safe margin, here. + * + * ELF extended numbering allows more then 65535 sections, so 16-bit bound is + * not hard limit any more. Although some userspace tools can be surprised by + * that. */ #define MAPCOUNT_ELF_CORE_MARGIN (5) #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN) -- 2.39.5