Skip to content

Commit 4b82acb

Browse files
committed
Merge tag 'v5.4.132' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroid-5.4.y
This is the 5.4.132 stable release Change-Id: I7a6e893730d6f9ec4ed1dcbfa32dd8f1f2a31604
2 parents 136d4a8 + 7c76bd6 commit 4b82acb

File tree

379 files changed

+2313
-1243
lines changed

Some content is hidden

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

379 files changed

+2313
-1243
lines changed

Documentation/ABI/testing/evm

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,30 @@ Description:
4242
modification of EVM-protected metadata and
4343
disable all further modification of policy
4444

45-
Note that once a key has been loaded, it will no longer be
46-
possible to enable metadata modification.
45+
Echoing a value is additive, the new value is added to the
46+
existing initialization flags.
47+
48+
For example, after::
49+
50+
echo 2 ><securityfs>/evm
51+
52+
another echo can be performed::
53+
54+
echo 1 ><securityfs>/evm
55+
56+
and the resulting value will be 3.
57+
58+
Note that once an HMAC key has been loaded, it will no longer
59+
be possible to enable metadata modification. Signaling that an
60+
HMAC key has been loaded will clear the corresponding flag.
61+
For example, if the current value is 6 (2 and 4 set)::
62+
63+
echo 1 ><securityfs>/evm
64+
65+
will set the new value to 3 (4 cleared).
66+
67+
Loading an HMAC key is the only way to disable metadata
68+
modification.
4769

4870
Until key loading has been signaled EVM can not create
4971
or validate the 'security.evm' xattr, but returns

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,12 @@
567567
loops can be debugged more effectively on production
568568
systems.
569569

570+
clocksource.max_cswd_read_retries= [KNL]
571+
Number of clocksource_watchdog() retries due to
572+
external delays before the clock will be marked
573+
unstable. Defaults to three retries, that is,
574+
four attempts to read the clock under test.
575+
570576
clearcpuid=BITNUM[,BITNUM...] [X86]
571577
Disable CPUID feature X for the kernel. See
572578
arch/x86/include/asm/cpufeatures.h for the valid bit

Documentation/hwmon/max31790.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Sysfs entries
3838
fan[1-12]_input RO fan tachometer speed in RPM
3939
fan[1-12]_fault RO fan experienced fault
4040
fan[1-6]_target RW desired fan speed in RPM
41-
pwm[1-6]_enable RW regulator mode, 0=disabled, 1=manual mode, 2=rpm mode
42-
pwm[1-6] RW fan target duty cycle (0-255)
41+
pwm[1-6]_enable RW regulator mode, 0=disabled (duty cycle=0%), 1=manual mode, 2=rpm mode
42+
pwm[1-6] RW read: current pwm duty cycle,
43+
write: target pwm duty cycle (0-255)
4344
================== === =======================================================

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 5
33
PATCHLEVEL = 4
4-
SUBLEVEL = 131
4+
SUBLEVEL = 132
55
EXTRAVERSION =
66
NAME = Kleptomaniac Octopus
77

@@ -937,7 +937,7 @@ LDFLAGS_vmlinux += $(call ld-option, -X,)
937937
endif
938938

939939
ifeq ($(CONFIG_RELR),y)
940-
LDFLAGS_vmlinux += --pack-dyn-relocs=relr
940+
LDFLAGS_vmlinux += --pack-dyn-relocs=relr --use-android-relr-tags
941941
endif
942942

943943
# make the checker run with the right architecture

arch/arm/boot/dts/sama5d4.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@
914914
0xffffffff 0x3ffcfe7c 0x1c010101 /* pioA */
915915
0x7fffffff 0xfffccc3a 0x3f00cc3a /* pioB */
916916
0xffffffff 0x3ff83fff 0xff00ffff /* pioC */
917-
0x0003ff00 0x8002a800 0x00000000 /* pioD */
917+
0xb003ff00 0x8002a800 0x00000000 /* pioD */
918918
0xffffffff 0x7fffffff 0x76fff1bf /* pioE */
919919
>;
920920

arch/arm/kernel/perf_event_v7.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,10 +773,10 @@ static inline void armv7pmu_write_counter(struct perf_event *event, u64 value)
773773
pr_err("CPU%u writing wrong counter %d\n",
774774
smp_processor_id(), idx);
775775
} else if (idx == ARMV7_IDX_CYCLE_COUNTER) {
776-
asm volatile("mcr p15, 0, %0, c9, c13, 0" : : "r" (value));
776+
asm volatile("mcr p15, 0, %0, c9, c13, 0" : : "r" ((u32)value));
777777
} else {
778778
armv7_pmnc_select_counter(idx);
779-
asm volatile("mcr p15, 0, %0, c9, c13, 2" : : "r" (value));
779+
asm volatile("mcr p15, 0, %0, c9, c13, 2" : : "r" ((u32)value));
780780
}
781781
}
782782

arch/arm64/boot/dts/marvell/armada-37xx.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134

135135
uart0: serial@12000 {
136136
compatible = "marvell,armada-3700-uart";
137-
reg = <0x12000 0x200>;
137+
reg = <0x12000 0x18>;
138138
clocks = <&xtalclk>;
139139
interrupts =
140140
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/include/asm/asm-uaccess.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
.macro __uaccess_ttbr0_disable, tmp1
1616
mrs \tmp1, ttbr1_el1 // swapper_pg_dir
1717
bic \tmp1, \tmp1, #TTBR_ASID_MASK
18-
sub \tmp1, \tmp1, #RESERVED_TTBR0_SIZE // reserved_ttbr0 just before swapper_pg_dir
18+
sub \tmp1, \tmp1, #PAGE_SIZE // reserved_pg_dir just before swapper_pg_dir
1919
msr ttbr0_el1, \tmp1 // set reserved TTBR0_EL1
2020
isb
21-
add \tmp1, \tmp1, #RESERVED_TTBR0_SIZE
21+
add \tmp1, \tmp1, #PAGE_SIZE
2222
msr ttbr1_el1, \tmp1 // set reserved ASID
2323
isb
2424
.endm

arch/arm64/include/asm/kernel-pgtable.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,6 @@
8989
#define INIT_DIR_SIZE (PAGE_SIZE * EARLY_PAGES(KIMAGE_VADDR + TEXT_OFFSET, _end))
9090
#define IDMAP_DIR_SIZE (IDMAP_PGTABLE_LEVELS * PAGE_SIZE)
9191

92-
#ifdef CONFIG_ARM64_SW_TTBR0_PAN
93-
#define RESERVED_TTBR0_SIZE (PAGE_SIZE)
94-
#else
95-
#define RESERVED_TTBR0_SIZE (0)
96-
#endif
97-
9892
/* Initial memory map size */
9993
#if ARM64_SWAPPER_USES_SECTION_MAPS
10094
#define SWAPPER_BLOCK_SHIFT SECTION_SHIFT

arch/arm64/include/asm/mmu_context.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ static inline void contextidr_thread_switch(struct task_struct *next)
3636
}
3737

3838
/*
39-
* Set TTBR0 to empty_zero_page. No translations will be possible via TTBR0.
39+
* Set TTBR0 to reserved_pg_dir. No translations will be possible via TTBR0.
4040
*/
4141
static inline void cpu_set_reserved_ttbr0(void)
4242
{
43-
unsigned long ttbr = phys_to_ttbr(__pa_symbol(empty_zero_page));
43+
unsigned long ttbr = phys_to_ttbr(__pa_symbol(reserved_pg_dir));
4444

4545
write_sysreg(ttbr, ttbr0_el1);
4646
isb();
@@ -184,9 +184,9 @@ static inline void update_saved_ttbr0(struct task_struct *tsk,
184184
return;
185185

186186
if (mm == &init_mm)
187-
ttbr = __pa_symbol(empty_zero_page);
187+
ttbr = phys_to_ttbr(__pa_symbol(reserved_pg_dir));
188188
else
189-
ttbr = virt_to_phys(mm->pgd) | ASID(mm) << 48;
189+
ttbr = phys_to_ttbr(virt_to_phys(mm->pgd)) | ASID(mm) << 48;
190190

191191
WRITE_ONCE(task_thread_info(tsk)->ttbr0, ttbr);
192192
}

0 commit comments

Comments
 (0)