aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-10-07 19:04:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-10-07 19:04:19 -0400
commiteda57a0e42998d1d403187844faa86c9a3ab2fd0 (patch)
treefd49b5f7b3c6dfb5cdd49ec8bed967d387452c3c /kernel
parentc512c69187197fe08026cb5bbe7b9709f4f89b73 (diff)
parent59bb47985c1db229ccff8c5deebecd54fc77d2a9 (diff)
Merge branch 'akpm' (patches from Andrew)
Merge misc fixes from Andrew Morton: "The usual shower of hotfixes. Chris's memcg patches aren't actually fixes - they're mature but a few niggling review issues were late to arrive. The ocfs2 fixes are quite old - those took some time to get reviewer attention. Subsystems affected by this patch series: ocfs2, hotfixes, mm/memcg, mm/slab-generic" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two) mm, sl[ou]b: improve memory accounting mm, memcg: make scan aggression always exclude protection mm, memcg: make memory.emin the baseline for utilisation determination mm, memcg: proportional memory.{low,min} reclaim mm/vmpressure.c: fix a signedness bug in vmpressure_register_event() mm/page_alloc.c: fix a crash in free_pages_prepare() mm/z3fold.c: claim page in the beginning of free kernel/sysctl.c: do not override max_threads provided by userspace memcg: only record foreign writebacks with dirty pages when memcg is not disabled mm: fix -Wmissing-prototypes warnings writeback: fix use-after-free in finish_writeback_work() mm/memremap: drop unused SECTION_SIZE and SECTION_MASK panic: ensure preemption is disabled during panic() fs: ocfs2: fix a possible null-pointer dereference in ocfs2_info_scan_inode_alloc() fs: ocfs2: fix a possible null-pointer dereference in ocfs2_write_end_nolock() fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry() ocfs2: clear zero in unaligned direct IO
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c4
-rw-r--r--kernel/panic.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 1f6c45f6a734..bcdf53125210 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2925,7 +2925,7 @@ int sysctl_max_threads(struct ctl_table *table, int write,
2925 struct ctl_table t; 2925 struct ctl_table t;
2926 int ret; 2926 int ret;
2927 int threads = max_threads; 2927 int threads = max_threads;
2928 int min = MIN_THREADS; 2928 int min = 1;
2929 int max = MAX_THREADS; 2929 int max = MAX_THREADS;
2930 2930
2931 t = *table; 2931 t = *table;
@@ -2937,7 +2937,7 @@ int sysctl_max_threads(struct ctl_table *table, int write,
2937 if (ret || !write) 2937 if (ret || !write)
2938 return ret; 2938 return ret;
2939 2939
2940 set_max_threads(threads); 2940 max_threads = threads;
2941 2941
2942 return 0; 2942 return 0;
2943} 2943}
diff --git a/kernel/panic.c b/kernel/panic.c
index 47e8ebccc22b..f470a038b05b 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -180,6 +180,7 @@ void panic(const char *fmt, ...)
180 * after setting panic_cpu) from invoking panic() again. 180 * after setting panic_cpu) from invoking panic() again.
181 */ 181 */
182 local_irq_disable(); 182 local_irq_disable();
183 preempt_disable_notrace();
183 184
184 /* 185 /*
185 * It's possible to come here directly from a panic-assertion and 186 * It's possible to come here directly from a panic-assertion and