Skip to content

Commit cd9b44f

Browse files
committed
Merge branch 'akpm' (patches from Andrew)
Merge more updates from Andrew Morton: - the rest of MM - procfs updates - various misc things - more y2038 fixes - get_maintainer updates - lib/ updates - checkpatch updates - various epoll updates - autofs updates - hfsplus - some reiserfs work - fatfs updates - signal.c cleanups - ipc/ updates * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (166 commits) ipc/util.c: update return value of ipc_getref from int to bool ipc/util.c: further variable name cleanups ipc: simplify ipc initialization ipc: get rid of ids->tables_initialized hack lib/rhashtable: guarantee initial hashtable allocation lib/rhashtable: simplify bucket_table_alloc() ipc: drop ipc_lock() ipc/util.c: correct comment in ipc_obtain_object_check ipc: rename ipcctl_pre_down_nolock() ipc/util.c: use ipc_rcu_putref() for failues in ipc_addid() ipc: reorganize initialization of kern_ipc_perm.seq ipc: compute kern_ipc_perm.id under the ipc lock init/Kconfig: remove EXPERT from CHECKPOINT_RESTORE fs/sysv/inode.c: use ktime_get_real_seconds() for superblock stamp adfs: use timespec64 for time conversion kernel/sysctl.c: fix typos in comments drivers/rapidio/devices/rio_mport_cdev.c: remove redundant pointer md fork: don't copy inconsistent signal handler state to child signal: make get_signal() return bool signal: make sigkill_pending() return bool ...
2 parents df2def4 + 2a9d648 commit cd9b44f

182 files changed

Lines changed: 3192 additions & 2270 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/admin-guide/cgroup-v2.rst‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,24 @@ PAGE_SIZE multiple when read back.
10721072
high limit is used and monitored properly, this limit's
10731073
utility is limited to providing the final safety net.
10741074

1075+
memory.oom.group
1076+
A read-write single value file which exists on non-root
1077+
cgroups. The default value is "0".
1078+
1079+
Determines whether the cgroup should be treated as
1080+
an indivisible workload by the OOM killer. If set,
1081+
all tasks belonging to the cgroup or to its descendants
1082+
(if the memory cgroup is not a leaf cgroup) are killed
1083+
together or not at all. This can be used to avoid
1084+
partial kills to guarantee workload integrity.
1085+
1086+
Tasks with the OOM protection (oom_score_adj set to -1000)
1087+
are treated as an exception and are never killed.
1088+
1089+
If the OOM killer is invoked in a cgroup, it's not going
1090+
to kill any tasks outside of this cgroup, regardless
1091+
memory.oom.group values of ancestor cgroups.
1092+
10751093
memory.events
10761094
A read-only flat-keyed file which exists on non-root cgroups.
10771095
The following entries are defined. Unless specified

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3041,8 +3041,9 @@
30413041
on: enable the feature
30423042

30433043
page_poison= [KNL] Boot-time parameter changing the state of
3044-
poisoning on the buddy allocator.
3045-
off: turn off poisoning
3044+
poisoning on the buddy allocator, available with
3045+
CONFIG_PAGE_POISONING=y.
3046+
off: turn off poisoning (default)
30463047
on: turn on poisoning
30473048

30483049
panic= [KNL] Kernel behaviour on panic: delay <timeout>

‎Documentation/filesystems/proc.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ Committed_AS: 100056 kB
870870
VmallocTotal: 112216 kB
871871
VmallocUsed: 428 kB
872872
VmallocChunk: 111088 kB
873+
Percpu: 62080 kB
873874
HardwareCorrupted: 0 kB
874875
AnonHugePages: 49152 kB
875876
ShmemHugePages: 0 kB
@@ -962,6 +963,8 @@ Committed_AS: The amount of memory presently allocated on the system.
962963
VmallocTotal: total size of vmalloc memory area
963964
VmallocUsed: amount of vmalloc area which is used
964965
VmallocChunk: largest contiguous block of vmalloc area which is free
966+
Percpu: Memory allocated to the percpu allocator used to back percpu
967+
allocations. This stat excludes the cost of metadata.
965968

966969
..............................................................................
967970

‎Documentation/sysctl/kernel.txt‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ show up in /proc/sys/kernel:
3838
- hung_task_panic
3939
- hung_task_check_count
4040
- hung_task_timeout_secs
41+
- hung_task_check_interval_secs
4142
- hung_task_warnings
4243
- hyperv_record_panic_msg
4344
- kexec_load_disabled
@@ -355,7 +356,7 @@ This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.
355356

356357
hung_task_timeout_secs:
357358

358-
Check interval. When a task in D state did not get scheduled
359+
When a task in D state did not get scheduled
359360
for more than this value report a warning.
360361
This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.
361362

@@ -364,6 +365,18 @@ Possible values to set are in range {0..LONG_MAX/HZ}.
364365

365366
==============================================================
366367

368+
hung_task_check_interval_secs:
369+
370+
Hung task check interval. If hung task checking is enabled
371+
(see hung_task_timeout_secs), the check is done every
372+
hung_task_check_interval_secs seconds.
373+
This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.
374+
375+
0 (default): means use hung_task_timeout_secs as checking interval.
376+
Possible values to set are in range {0..LONG_MAX/HZ}.
377+
378+
==============================================================
379+
367380
hung_task_warnings:
368381

369382
The maximum number of warnings to report. During a check interval
@@ -451,7 +464,8 @@ Notes:
451464
1) kernel doesn't guarantee, that new object will have desired id. So,
452465
it's up to userspace, how to handle an object with "wrong" id.
453466
2) Toggle with non-default value will be set back to -1 by kernel after
454-
successful IPC object allocation.
467+
successful IPC object allocation. If an IPC object allocation syscall
468+
fails, it is undefined if the value remains unmodified or is reset to -1.
455469

456470
==============================================================
457471

‎Documentation/sysctl/vm.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ and don't use much of it.
691691
The default value is 0.
692692

693693
See Documentation/vm/overcommit-accounting.rst and
694-
mm/mmap.c::__vm_enough_memory() for more information.
694+
mm/util.c::__vm_enough_memory() for more information.
695695

696696
==============================================================
697697

‎arch/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,16 @@ config REFCOUNT_FULL
841841
against various use-after-free conditions that can be used in
842842
security flaw exploits.
843843

844+
config HAVE_ARCH_PREL32_RELOCATIONS
845+
bool
846+
help
847+
May be selected by an architecture if it supports place-relative
848+
32-bit relocations, both in the toolchain and in the module loader,
849+
in which case relative references can be used in special sections
850+
for PCI fixup, initcalls etc which are only half the size on 64 bit
851+
architectures, and don't require runtime relocation on relocatable
852+
kernels.
853+
844854
source "kernel/gcov/Kconfig"
845855

846856
source "scripts/gcc-plugins/Kconfig"

‎arch/arm/kernel/process.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,16 +330,15 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
330330
* atomic helpers. Insert it into the gate_vma so that it is visible
331331
* through ptrace and /proc/<pid>/mem.
332332
*/
333-
static struct vm_area_struct gate_vma = {
334-
.vm_start = 0xffff0000,
335-
.vm_end = 0xffff0000 + PAGE_SIZE,
336-
.vm_flags = VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYEXEC,
337-
};
333+
static struct vm_area_struct gate_vma;
338334

339335
static int __init gate_vma_init(void)
340336
{
341337
vma_init(&gate_vma, NULL);
342338
gate_vma.vm_page_prot = PAGE_READONLY_EXEC;
339+
gate_vma.vm_start = 0xffff0000;
340+
gate_vma.vm_end = 0xffff0000 + PAGE_SIZE;
341+
gate_vma.vm_flags = VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYEXEC;
343342
return 0;
344343
}
345344
arch_initcall(gate_vma_init);

‎arch/arm64/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ config ARM64
108108
select HAVE_ARCH_KGDB
109109
select HAVE_ARCH_MMAP_RND_BITS
110110
select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
111+
select HAVE_ARCH_PREL32_RELOCATIONS
111112
select HAVE_ARCH_SECCOMP_FILTER
112113
select HAVE_ARCH_STACKLEAK
113114
select HAVE_ARCH_THREAD_STRUCT_WHITELIST

‎arch/powerpc/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ config PPC
177177
select HAVE_ARCH_KGDB
178178
select HAVE_ARCH_MMAP_RND_BITS
179179
select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT
180+
select HAVE_ARCH_PREL32_RELOCATIONS
180181
select HAVE_ARCH_SECCOMP_FILTER
181182
select HAVE_ARCH_TRACEHOOK
182183
select HAVE_CBPF_JIT if !PPC64

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ config X86
124124
select HAVE_ARCH_MMAP_RND_BITS if MMU
125125
select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
126126
select HAVE_ARCH_COMPAT_MMAP_BASES if MMU && COMPAT
127+
select HAVE_ARCH_PREL32_RELOCATIONS
127128
select HAVE_ARCH_SECCOMP_FILTER
128129
select HAVE_ARCH_THREAD_STRUCT_WHITELIST
129130
select HAVE_ARCH_TRACEHOOK

0 commit comments

Comments
 (0)