Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 5.4-2.1.x-imx to v5.4.61 from stable #110

Merged
merged 110 commits into from
Aug 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
97eab9a
Documentation/llvm: add documentation on building w/ Clang/LLVM
nickdesaulniers Feb 26, 2020
f781285
Documentation/llvm: fix the name of llvm-size
MaskRay Apr 2, 2020
c7c239c
net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding …
masahir0y Mar 26, 2020
c173511
net: wan: wanxl: use $(M68KCC) instead of $(M68KAS) for rebuilding fi…
masahir0y Mar 26, 2020
fa84d9f
x86/boot: kbuild: allow readelf executable to be specified
tpimh Dec 4, 2019
fed0609
kbuild: remove PYTHON2 variable
masahir0y Jan 6, 2020
244d902
kbuild: remove AS variable
masahir0y Mar 26, 2020
c7d8f67
kbuild: replace AS=clang with LLVM_IAS=1
masahir0y Apr 8, 2020
6235304
kbuild: support LLVM=1 to switch the default tools to Clang/LLVM
masahir0y Apr 8, 2020
e42c75e
drm/vgem: Replace opencoded version of drm_gem_dumb_map_offset()
ickle Jul 8, 2020
18a640d
gfs2: Improve mmap write vs. punch_hole consistency
Sep 6, 2019
888d9b8
gfs2: Never call gfs2_block_zero_range with an open transaction
AstralBob Jul 24, 2020
8043d5e
perf probe: Fix memory leakage when the probe point is not found
mhiramat Jul 10, 2020
9a05b77
khugepaged: khugepaged_test_exit() check mmget_still_valid()
Aug 7, 2020
9f4f7c0
khugepaged: adjust VM_BUG_ON_MM() in __khugepaged_enter()
Aug 21, 2020
b407539
bcache: avoid nr_stripes overflow in bcache_device_init()
Jul 25, 2020
038580b
btrfs: export helpers for subvolume name/id resolution
marcosps Feb 21, 2020
de88b7e
btrfs: don't show full path of bind mounts in subvol=
josefbacik Jul 22, 2020
7451483
btrfs: return EROFS for BTRFS_FS_STATE_ERROR cases
josefbacik Jul 21, 2020
84bfb4b
btrfs: add wrapper for transaction abort predicate
kdave Feb 5, 2020
4fe52a8
ALSA: hda/realtek: Add quirk for Samsung Galaxy Flex Book
Aug 14, 2020
055c65c
ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion
Aug 18, 2020
60be148
can: j1939: transport: j1939_session_tx_dat(): fix use-after-free rea…
olerem Aug 7, 2020
143df6b
can: j1939: socket: j1939_sk_bind(): make sure ml_priv is allocated
olerem Aug 7, 2020
3e538c5
spi: Prevent adding devices below an unregistering controller
l1k Aug 3, 2020
19a77c9
romfs: fix uninitialized memory leak in romfs_dev_read()
thejh Aug 21, 2020
fa2e0d4
kernel/relay.c: fix memleak on destroy relay channel
Aug 21, 2020
e9e3ec0
uprobes: __replace_page() avoid BUG in munlock_vma_page()
Aug 21, 2020
5663159
mm: include CMA pages in lowmem_reserve at boot
Aug 21, 2020
0cfb932
mm, page_alloc: fix core hung in free_pcppages_bulk()
Aug 21, 2020
59af075
RDMA/hfi1: Correct an interlock issue for TID RDMA WRITE request
kwan-intc Aug 11, 2020
2bc54ba
ext4: fix checking of directory entry validity for inline directories
jankara Jul 31, 2020
b4062a4
jbd2: add the missing unlock_buffer() in the error path of jbd2_write…
zhangyi089 Jun 20, 2020
f45ab6e
scsi: zfcp: Fix use-after-free in request timeout handlers
steffen-maier Aug 13, 2020
6f3bff3
drm/amdgpu/display: use GFP_ATOMIC in dcn20_validate_bandwidth_internal
q66 Aug 8, 2020
1f3cfa9
drm/amd/display: Fix EDID parsing after resume from suspend
Jul 28, 2020
504fe0a
drm/amd/display: fix pow() crashing when given base 0
Aug 6, 2020
52d322f
kthread: Do not preempt current task if it is going to call schedule()
Mar 6, 2020
10e99c3
opp: Enable resources again if they were disabled earlier
Aug 10, 2020
59d587c
scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devices
Jun 12, 2020
62b8c76
scsi: target: tcmu: Fix crash in tcmu_flush_dcache_range on ARM
BStroesser Jun 18, 2020
85ad0d5
media: budget-core: Improve exception handling in budget_register()
WillLester Jun 5, 2020
f948f1d
rtc: goldfish: Enable interrupt in set_alarm() when necessary
chenhuacai Jun 20, 2020
06d4d9a
media: vpss: clean up resources in init
eunovm Jul 10, 2020
5594a54
Input: psmouse - add a newline when printing 'proto' by sysfs
fenghusthu Jul 22, 2020
1a718d4
MIPS: Fix unable to reserve memory for Crash kernel
MQ-mengqing Jul 25, 2020
7aca2f7
m68knommu: fix overwriting of bits in ColdFire V3 cache control
Jun 13, 2020
8fe5e38
svcrdma: Fix another Receive buffer leak
chucklever Jun 30, 2020
711f568
xfs: fix inode quota reservation checks
djwong Jul 14, 2020
04aeb88
drm/ttm: fix offset in VMAs with a pg_offs in ttm_bo_vm_access
fxkamd Jul 28, 2020
2524bb0
jffs2: fix UAF problem
Jun 19, 2020
2bd8ba3
ceph: fix use-after-free for fsc->mdsc
lxbsz Jul 23, 2020
cca58a1
swiotlb-xen: use vmalloc_to_page on vmalloc virt addresses
Jul 10, 2020
28850b8
cpufreq: intel_pstate: Fix cpuinfo_max_freq when MSR_TURBO_RATIO_LIMI…
spandruvada Aug 3, 2020
34f8368
scsi: libfc: Free skb in fc_disc_gpn_id_resp() for valid cases
javed-h Jul 29, 2020
0572434
virtio_ring: Avoid loop when vq is broken in virtqueue_poll
Aug 2, 2020
10b2bb1
media: camss: fix memory leaks on error handling paths in probe
eunovm Jul 23, 2020
4591461
tools/testing/selftests/cgroup/cgroup_util.c: cg_read_strcmp: fix nul…
gaurav1086 Aug 7, 2020
538c74a
xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_init
Etsukata Aug 6, 2020
e4f952b
alpha: fix annotation of io{read,write}{16,32}be()
lucvoo Aug 12, 2020
2585402
fs/signalfd.c: fix inconsistent return codes for signalfd4
hdeller Aug 12, 2020
ea54176
ext4: fix potential negative array index in do_split()
Jun 17, 2020
3473fa1
ext4: don't allow overlapping system zones
jankara Jul 28, 2020
666d1d1
netfilter: nf_tables: nft_exthdr: the presence return value should be…
ssuryaextr Aug 4, 2020
233d6f2
spi: stm32: fixes suspend/resume management
ADESTM Aug 10, 2020
aaa6e69
ASoC: q6afe-dai: mark all widgets registers as SND_SOC_NOPM
Srinivas-Kandagatla Aug 11, 2020
ece9ca5
ASoC: q6routing: add dummy register read/write function
Srinivas-Kandagatla Aug 11, 2020
6e0bc94
bpf: sock_ops sk access may stomp registers when dst_reg = src_reg
jrfastab Aug 11, 2020
ff723ef
can: j1939: fix kernel-infoleak in j1939_sk_sock2sockaddr_can()
Aug 13, 2020
3bfd139
can: j1939: transport: j1939_simple_recv(): ignore local J1939 messag…
olerem Aug 7, 2020
154ccf6
can: j1939: transport: add j1939_session_skb_find_by_offset() function
olerem Aug 7, 2020
e2a8d44
i40e: Set RX_ONLY mode for unicast promiscuous on VLAN
Kaaame Aug 6, 2020
c0e04d0
i40e: Fix crash during removing i40e driver
gszczurx Aug 11, 2020
1b9dee2
net: fec: correct the error path for regulator disable in probe
fugangduan Aug 13, 2020
5dc0c1c
bonding: show saner speed for broadcast mode
jarodwilson Aug 13, 2020
5159a0a
can: j1939: fix support for multipacket broadcast message
Aug 5, 2020
d0dc3d2
can: j1939: cancel rxtimer on multipacket broadcast session complete
Aug 5, 2020
d7ab964
can: j1939: abort multipacket broadcast session when timeout occurs
Aug 5, 2020
8a49739
can: j1939: add rxtimer for multipacket broadcast session
Aug 5, 2020
cc215d2
bonding: fix a potential double-unregister
congwang Aug 15, 2020
d35f24b
s390/runtime_instrumentation: fix storage key handling
hcahca Aug 12, 2020
e9849a6
s390/ptrace: fix storage key handling
hcahca Aug 12, 2020
8aeb112
ASoC: msm8916-wcd-analog: fix register Interrupt offset
Srinivas-Kandagatla Aug 11, 2020
503176f
ASoC: intel: Fix memleak in sst_media_open
dinghaoliu Aug 13, 2020
667a59a
vfio/type1: Add proper error unwind for vfio_iommu_replay()
awilliam Aug 17, 2020
46713f3
kvm: x86: Toggling CR4.SMAP does not load PDPTEs in PAE mode
jsmattsonjr Aug 17, 2020
6e2aa03
kvm: x86: Toggling CR4.PKE does not load PDPTEs in PAE mode
jsmattsonjr Aug 17, 2020
da1069e
Revert "scsi: qla2xxx: Disable T10-DIF feature with FC-NVMe during pr…
Aug 6, 2020
51d85e7
kconfig: qconf: do not limit the pop-up menu to the first row
masahir0y Aug 7, 2020
d3ca317
kconfig: qconf: fix signal connection to invalid slots
masahir0y Aug 17, 2020
7cc9812
efi: avoid error message when booting under Xen
jgross1 Jul 10, 2020
dc0d58e
Fix build error when CONFIG_ACPI is not set/enabled:
rddunlap Aug 20, 2020
140ac93
RDMA/bnxt_re: Do not add user qps to flushlist
selvintxavier Aug 6, 2020
278eb88
afs: Fix NULL deref in afs_dynroot_depopulate()
dhowells Aug 21, 2020
542a493
ARM64: vdso32: Install vdso32 from vdso_install
bebarino Aug 18, 2020
f4ed9ed
bonding: fix active-backup failover for current ARP slave
jiriwiesner Aug 16, 2020
f4adc64
net: ena: Prevent reset after device destruction
ShayAgros Aug 19, 2020
2dd00ae
net: gemini: Fix missing free_netdev() in error path of gemini_ethern…
Aug 19, 2020
83236e6
hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit()
haiyangz Aug 20, 2020
dafae06
net: dsa: b53: check for timeout
Aug 21, 2020
13b1fc6
powerpc/pseries: Do not initiate shutdown when system is running on UPS
Aug 20, 2020
5167f19
efi: add missed destroy_workqueue when efisubsys_init fails
Jul 20, 2020
b158e91
epoll: Keep a reference on files added to the check list
Aug 19, 2020
4269491
do_epoll_ctl(): clean the failure exits up a bit
Aug 22, 2020
d6bca2a
mm/hugetlb: fix calculation of adjust_range_if_pmd_sharing_possible
xzpeter Aug 7, 2020
744fde5
xen: don't reschedule in preemption off sections
jgross1 Aug 20, 2020
e1818ff
KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()
willdeacon Aug 11, 2020
d316d52
KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set
willdeacon Aug 11, 2020
6576d69
Linux 5.4.61
gregkh Aug 26, 2020
498d644
Merge tag 'v5.4.61' into 5.4-2.1.x-imx
zandrey Aug 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/kbuild/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Kernel Build System

issues
reproducible-builds
llvm

.. only:: subproject and html

Expand Down
5 changes: 5 additions & 0 deletions Documentation/kbuild/kbuild.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,8 @@ KBUILD_BUILD_USER, KBUILD_BUILD_HOST
These two variables allow to override the user@host string displayed during
boot and in /proc/version. The default value is the output of the commands
whoami and host, respectively.

LLVM
----
If this variable is set to 1, Kbuild will use Clang and LLVM utilities instead
of GCC and GNU binutils to build the kernel.
87 changes: 87 additions & 0 deletions Documentation/kbuild/llvm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
==============================
Building Linux with Clang/LLVM
==============================

This document covers how to build the Linux kernel with Clang and LLVM
utilities.

About
-----

The Linux kernel has always traditionally been compiled with GNU toolchains
such as GCC and binutils. Ongoing work has allowed for `Clang
<https://clang.llvm.org/>`_ and `LLVM <https://llvm.org/>`_ utilities to be
used as viable substitutes. Distributions such as `Android
<https://www.android.com/>`_, `ChromeOS
<https://www.chromium.org/chromium-os>`_, and `OpenMandriva
<https://www.openmandriva.org/>`_ use Clang built kernels. `LLVM is a
collection of toolchain components implemented in terms of C++ objects
<https://www.aosabook.org/en/llvm.html>`_. Clang is a front-end to LLVM that
supports C and the GNU C extensions required by the kernel, and is pronounced
"klang," not "see-lang."

Clang
-----

The compiler used can be swapped out via `CC=` command line argument to `make`.
`CC=` should be set when selecting a config and during a build.

make CC=clang defconfig

make CC=clang

Cross Compiling
---------------

A single Clang compiler binary will typically contain all supported backends,
which can help simplify cross compiling.

ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang

`CROSS_COMPILE` is not used to prefix the Clang compiler binary, instead
`CROSS_COMPILE` is used to set a command line flag: `--target <triple>`. For
example:

clang --target aarch64-linux-gnu foo.c

LLVM Utilities
--------------

LLVM has substitutes for GNU binutils utilities. Kbuild supports `LLVM=1`
to enable them.

make LLVM=1

They can be enabled individually. The full list of the parameters:

make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \\
OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \\
READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \\
HOSTLD=ld.lld

Currently, the integrated assembler is disabled by default. You can pass
`LLVM_IAS=1` to enable it.

Getting Help
------------

- `Website <https://clangbuiltlinux.github.io/>`_
- `Mailing List <https://groups.google.com/forum/#!forum/clang-built-linux>`_: <clang-built-linux@googlegroups.com>
- `Issue Tracker <https://github.com/ClangBuiltLinux/linux/issues>`_
- IRC: #clangbuiltlinux on chat.freenode.net
- `Telegram <https://t.me/ClangBuiltLinux>`_: @ClangBuiltLinux
- `Wiki <https://github.com/ClangBuiltLinux/linux/wiki>`_
- `Beginner Bugs <https://github.com/ClangBuiltLinux/linux/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22>`_

Getting LLVM
-------------

- http://releases.llvm.org/download.html
- https://github.com/llvm/llvm-project
- https://llvm.org/docs/GettingStarted.html
- https://llvm.org/docs/CMake.html
- https://apt.llvm.org/
- https://www.archlinux.org/packages/extra/x86_64/llvm/
- https://github.com/ClangBuiltLinux/tc-build
- https://github.com/ClangBuiltLinux/linux/wiki/Building-Clang-from-source
- https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4028,6 +4028,7 @@ B: https://github.com/ClangBuiltLinux/linux/issues
C: irc://chat.freenode.net/clangbuiltlinux
S: Supported
K: \b(?i:clang|llvm)\b
F: Documentation/kbuild/llvm.rst

CLEANCACHE API
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Expand Down
40 changes: 28 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 4
SUBLEVEL = 60
SUBLEVEL = 61
EXTRAVERSION =
NAME = Kleptomaniac Octopus

Expand Down Expand Up @@ -394,8 +394,13 @@ HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null)
HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null)
HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)

HOSTCC = gcc
HOSTCXX = g++
ifneq ($(LLVM),)
HOSTCC = clang
HOSTCXX = clang++
else
HOSTCC = gcc
HOSTCXX = g++
endif
KBUILD_HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \
-fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS) \
$(HOSTCFLAGS)
Expand All @@ -404,16 +409,28 @@ KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)

# Make variables (CC, etc...)
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
CC = $(CROSS_COMPILE)gcc
CPP = $(CC) -E
ifneq ($(LLVM),)
CC = clang
LD = ld.lld
AR = llvm-ar
NM = llvm-nm
OBJCOPY = llvm-objcopy
OBJDUMP = llvm-objdump
READELF = llvm-readelf
OBJSIZE = llvm-size
STRIP = llvm-strip
else
CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
READELF = $(CROSS_COMPILE)readelf
OBJSIZE = $(CROSS_COMPILE)size
STRIP = $(CROSS_COMPILE)strip
endif
PAHOLE = pahole
LEX = flex
YACC = bison
Expand All @@ -422,7 +439,6 @@ INSTALLKERNEL := installkernel
DEPMOD = /sbin/depmod
PERL = perl
PYTHON = python
PYTHON2 = python2
PYTHON3 = python3
CHECK = sparse
BASH = bash
Expand Down Expand Up @@ -471,9 +487,9 @@ KBUILD_LDFLAGS :=
GCC_PLUGINS_CFLAGS :=
CLANG_FLAGS :=

export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE AS LD CC
export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE PAHOLE LEX YACC AWK INSTALLKERNEL
export PERL PYTHON PYTHON2 PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE READELF PAHOLE LEX YACC AWK INSTALLKERNEL
export PERL PYTHON PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
export KBUILD_HOSTCXXFLAGS KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS LDFLAGS_MODULE

export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS KBUILD_LDFLAGS
Expand Down Expand Up @@ -534,7 +550,7 @@ endif
ifneq ($(GCC_TOOLCHAIN),)
CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN)
endif
ifeq ($(shell $(AS) --version 2>&1 | head -n 1 | grep clang),)
ifneq ($(LLVM_IAS),1)
CLANG_FLAGS += -no-integrated-as
endif
CLANG_FLAGS += -Werror=unknown-warning-option
Expand Down
8 changes: 4 additions & 4 deletions arch/alpha/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,10 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
}
#endif

#define ioread16be(p) be16_to_cpu(ioread16(p))
#define ioread32be(p) be32_to_cpu(ioread32(p))
#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
#define ioread16be(p) swab16(ioread16(p))
#define ioread32be(p) swab32(ioread32(p))
#define iowrite16be(v,p) iowrite16(swab16(v), (p))
#define iowrite32be(v,p) iowrite32(swab32(v), (p))

#define inb_p inb
#define inw_p inw
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ int __kvm_arm_vcpu_set_events(struct kvm_vcpu *vcpu,

#define KVM_ARCH_WANT_MMU_NOTIFIER
int kvm_unmap_hva_range(struct kvm *kvm,
unsigned long start, unsigned long end);
unsigned long start, unsigned long end, unsigned flags);
int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);

unsigned long kvm_arm_num_regs(struct kvm_vcpu *vcpu);
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ zinstall install:
PHONY += vdso_install
vdso_install:
$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@
$(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso32 $@

# We use MRPROPER_FILES and CLEAN_FILES now
archclean:
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ int __kvm_arm_vcpu_set_events(struct kvm_vcpu *vcpu,

#define KVM_ARCH_WANT_MMU_NOTIFIER
int kvm_unmap_hva_range(struct kvm *kvm,
unsigned long start, unsigned long end);
unsigned long start, unsigned long end, unsigned flags);
int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end);
int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/vdso32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ quiet_cmd_vdsosym = VDSOSYM $@
cmd_vdsosym = $(NM) $< | $(gen-vdsosym) | LC_ALL=C sort > $@

# Install commands for the unstripped file
quiet_cmd_vdso_install = INSTALL $@
quiet_cmd_vdso_install = INSTALL32 $@
cmd_vdso_install = cp $(obj)/$@.dbg $(MODLIB)/vdso/vdso32.so

vdso.so: $(obj)/vdso.so.dbg
Expand Down
6 changes: 3 additions & 3 deletions arch/m68k/include/asm/m53xxacr.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@
* coherency though in all cases. And for copyback caches we will need
* to push cached data as well.
*/
#define CACHE_INIT CACR_CINVA
#define CACHE_INVALIDATE CACR_CINVA
#define CACHE_INVALIDATED CACR_CINVA
#define CACHE_INIT (CACHE_MODE + CACR_CINVA - CACR_EC)
#define CACHE_INVALIDATE (CACHE_MODE + CACR_CINVA)
#define CACHE_INVALIDATED (CACHE_MODE + CACR_CINVA)

#define ACR0_MODE ((CONFIG_RAMBASE & 0xff000000) + \
(0x000f0000) + \
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ enum kvm_mips_fault_result kvm_trap_emul_gva_fault(struct kvm_vcpu *vcpu,

#define KVM_ARCH_WANT_MMU_NOTIFIER
int kvm_unmap_hva_range(struct kvm *kvm,
unsigned long start, unsigned long end);
unsigned long start, unsigned long end, unsigned flags);
int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end);
int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ static void __init mips_parse_crashkernel(void)
if (ret != 0 || crash_size <= 0)
return;

if (!memblock_find_in_range(crash_base, crash_base + crash_size, crash_size, 0)) {
if (!memblock_find_in_range(crash_base, crash_base + crash_size, crash_size, 1)) {
pr_warn("Invalid memory region reserved for crash kernel\n");
return;
}
Expand Down
3 changes: 2 additions & 1 deletion arch/mips/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ static int kvm_unmap_hva_handler(struct kvm *kvm, gfn_t gfn, gfn_t gfn_end,
return 1;
}

int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end)
int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end,
unsigned flags)
{
handle_hva_to_gpa(kvm, start, end, &kvm_unmap_hva_handler, NULL);

Expand Down
3 changes: 2 additions & 1 deletion arch/powerpc/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
#define KVM_ARCH_WANT_MMU_NOTIFIER

extern int kvm_unmap_hva_range(struct kvm *kvm,
unsigned long start, unsigned long end);
unsigned long start, unsigned long end,
unsigned flags);
extern int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end);
extern int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
extern int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
Expand Down
3 changes: 2 additions & 1 deletion arch/powerpc/kvm/book3s.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,8 @@ void kvmppc_core_commit_memory_region(struct kvm *kvm,
kvm->arch.kvm_ops->commit_memory_region(kvm, mem, old, new, change);
}

int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end)
int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end,
unsigned flags)
{
return kvm->arch.kvm_ops->unmap_hva_range(kvm, start, end);
}
Expand Down
3 changes: 2 additions & 1 deletion arch/powerpc/kvm/e500_mmu_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,8 @@ static int kvm_unmap_hva(struct kvm *kvm, unsigned long hva)
return 0;
}

int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end)
int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end,
unsigned flags)
{
/* kvm_unmap_hva flushes everything anyways */
kvm_unmap_hva(kvm, start);
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/platforms/pseries/ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ static void handle_system_shutdown(char event_modifier)
case EPOW_SHUTDOWN_ON_UPS:
pr_emerg("Loss of system power detected. System is running on"
" UPS/battery. Check RTAS error log for details\n");
orderly_poweroff(true);
break;

case EPOW_SHUTDOWN_LOSS_OF_CRITICAL_FUNCTIONS:
Expand Down
7 changes: 5 additions & 2 deletions arch/s390/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,6 @@ static bool is_ri_cb_valid(struct runtime_instr_cb *cb)
cb->pc == 1 &&
cb->qc == 0 &&
cb->reserved2 == 0 &&
cb->key == PAGE_DEFAULT_KEY &&
cb->reserved3 == 0 &&
cb->reserved4 == 0 &&
cb->reserved5 == 0 &&
Expand Down Expand Up @@ -1347,7 +1346,11 @@ static int s390_runtime_instr_set(struct task_struct *target,
kfree(data);
return -EINVAL;
}

/*
* Override access key in any case, since user space should
* not be able to set it, nor should it care about it.
*/
ri_cb.key = PAGE_DEFAULT_KEY >> 4;
preempt_disable();
if (!target->thread.ri_cb)
target->thread.ri_cb = data;
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/kernel/runtime_instr.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void init_runtime_instr_cb(struct runtime_instr_cb *cb)
cb->k = 1;
cb->ps = 1;
cb->pc = 1;
cb->key = PAGE_DEFAULT_KEY;
cb->key = PAGE_DEFAULT_KEY >> 4;
cb->v = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ vmlinux-objs-$(CONFIG_EFI_MIXED) += $(obj)/efi_thunk_$(BITS).o
quiet_cmd_check_data_rel = DATAREL $@
define cmd_check_data_rel
for obj in $(filter %.o,$^); do \
${CROSS_COMPILE}readelf -S $$obj | grep -qF .rel.local && { \
$(READELF) -S $$obj | grep -qF .rel.local && { \
echo "error: $$obj has data relocations!" >&2; \
exit 1; \
} || true; \
Expand Down
3 changes: 2 additions & 1 deletion arch/x86/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,8 @@ asmlinkage void kvm_spurious_fault(void);
_ASM_EXTABLE(666b, 667b)

#define KVM_ARCH_WANT_MMU_NOTIFIER
int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end);
int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end,
unsigned flags);
int kvm_age_hva(struct kvm *kvm, unsigned long start, unsigned long end);
int kvm_test_age_hva(struct kvm *kvm, unsigned long hva);
int kvm_set_spte_hva(struct kvm *kvm, unsigned long hva, pte_t pte);
Expand Down
3 changes: 2 additions & 1 deletion arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,8 @@ static int kvm_handle_hva(struct kvm *kvm, unsigned long hva,
return kvm_handle_hva_range(kvm, hva, hva + 1, data, handler);
}

int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end)
int kvm_unmap_hva_range(struct kvm *kvm, unsigned long start, unsigned long end,
unsigned flags)
{
return kvm_handle_hva_range(kvm, start, end, 0, kvm_unmap_rmapp);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4)
{
unsigned long old_cr4 = kvm_read_cr4(vcpu);
unsigned long pdptr_bits = X86_CR4_PGE | X86_CR4_PSE | X86_CR4_PAE |
X86_CR4_SMEP | X86_CR4_SMAP | X86_CR4_PKE;
X86_CR4_SMEP;

if (kvm_valid_cr4(vcpu, cr4))
return 1;
Expand Down
Loading