Repository navigation
Commit a293980
exec: let do_coredump() limit the number of concurrent dumps to pipes
Introduce core pipe limiting sysctl.
Since we can dump cores to pipe, rather than directly to the filesystem,
we create a condition in which a user can create a very high load on the
system simply by running bad applications.
If the pipe reader specified in core_pattern is poorly written, we can
have lots of ourstandig resources and processes in the system.
This sysctl introduces an ability to limit that resource consumption.
core_pipe_limit defines how many in-flight dumps may be run in parallel,
dumps beyond this value are skipped and a note is made in the kernel log.
A special value of 0 in core_pipe_limit denotes unlimited core dumps may
be handled (this is the default value).
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reported-by: Earl Chew <earl_chew@agilent.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 725eae3 commit a293980
3 files changed
Lines changed: 49 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
138 | 160 | | |
139 | 161 | | |
140 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
1744 | 1745 | | |
1745 | 1746 | | |
1746 | 1747 | | |
1747 | | - | |
| 1748 | + | |
| 1749 | + | |
1748 | 1750 | | |
1749 | 1751 | | |
1750 | 1752 | | |
| |||
1826 | 1828 | | |
1827 | 1829 | | |
1828 | 1830 | | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
1829 | 1839 | | |
1830 | 1840 | | |
1831 | 1841 | | |
1832 | 1842 | | |
1833 | | - | |
| 1843 | + | |
1834 | 1844 | | |
1835 | 1845 | | |
1836 | 1846 | | |
1837 | 1847 | | |
1838 | 1848 | | |
1839 | | - | |
| 1849 | + | |
1840 | 1850 | | |
1841 | 1851 | | |
1842 | 1852 | | |
1843 | | - | |
| 1853 | + | |
1844 | 1854 | | |
1845 | 1855 | | |
1846 | 1856 | | |
1847 | 1857 | | |
1848 | 1858 | | |
1849 | 1859 | | |
1850 | | - | |
| 1860 | + | |
1851 | 1861 | | |
1852 | 1862 | | |
1853 | 1863 | | |
| |||
1877 | 1887 | | |
1878 | 1888 | | |
1879 | 1889 | | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
1880 | 1893 | | |
1881 | 1894 | | |
1882 | 1895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
426 | 435 | | |
427 | 436 | | |
428 | 437 | | |
| |||
0 commit comments