diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched/sysctl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index 8045a554cafb..596a0e007c62 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h | |||
| @@ -25,6 +25,10 @@ enum { sysctl_hung_task_timeout_secs = 0 }; | |||
| 25 | * Because the kernel adds some informative sections to a image of program at | 25 | * Because the kernel adds some informative sections to a image of program at |
| 26 | * generating coredump, we need some margin. The number of extra sections is | 26 | * generating coredump, we need some margin. The number of extra sections is |
| 27 | * 1-3 now and depends on arch. We use "5" as safe margin, here. | 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 | #define MAPCOUNT_ELF_CORE_MARGIN (5) | 33 | #define MAPCOUNT_ELF_CORE_MARGIN (5) |
| 30 | #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN) | 34 | #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN) |
