Skip to content

Commit 3fb1c8d

Browse files
kiryltorvalds
authored andcommitted
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>
1 parent af4459d commit 3fb1c8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎include/linux/sched/sysctl.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ enum { sysctl_hung_task_timeout_secs = 0 };
2525
* Because the kernel adds some informative sections to a image of program at
2626
* generating coredump, we need some margin. The number of extra sections is
2727
* 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.
2832
*/
2933
#define MAPCOUNT_ELF_CORE_MARGIN (5)
3034
#define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN)

0 commit comments

Comments
 (0)