Skip to contentSkip to conversation

Linux 4.14.113

DISCUSSION Greg KH 1 participant 2 messages Apr 20, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.113 kernel.

All users of the 4.14 kernel series must upgrade.

The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Makefile                                           |    2 
 arch/arc/configs/hsdk_defconfig                    |    1 
 arch/arc/kernel/head.S                             |    1 
 arch/arc/kernel/setup.c                            |    8 
 arch/arm/crypto/sha256-armv4.pl                    |    3 
 arch/arm/crypto/sha256-core.S_shipped              |    3 
 arch/arm/crypto/sha512-armv4.pl                    |    3 
 arch/arm/crypto/sha512-core.S_shipped              |    3 
 arch/arm/kernel/patch.c                            |    6 
 arch/arm/plat-samsung/Kconfig                      |    2 
 arch/powerpc/kernel/rtasd.c                        |   17 
 arch/x86/kernel/cpu/cyrix.c                        |   14 
 arch/x86/kernel/hpet.c                             |    2 
 arch/x86/kernel/hw_breakpoint.c                    |    1 
 arch/x86/kernel/mpparse.c                          |    4 
 arch/x86/kvm/vmx.c                                 |  173 ++
 drivers/acpi/ec.c                                  |   53 
 drivers/acpi/sbs.c                                 |    8 
 drivers/auxdisplay/hd44780.c                       |    2 
 drivers/base/node.c                                |    7 
 drivers/crypto/axis/artpec6_crypto.c               |   28 
 drivers/gpio/gpio-pxa.c                            |    6 
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   |   52 
 drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h |    1 
 drivers/gpu/drm/nouveau/nouveau_debugfs.c          |    2 
 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c  |    2 
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/Kbuild    |    1 
 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c   |   60 
 drivers/gpu/drm/panel/panel-innolux-p079zca.c      |   11 
 drivers/hid/i2c-hid/Makefile                       |    3 
 drivers/hid/i2c-hid/i2c-hid-core.c                 | 1299 +++++++++++++++++++++
 drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c           |  376 ++++++
 drivers/hid/i2c-hid/i2c-hid.c                      | 1279 --------------------
 drivers/hid/i2c-hid/i2c-hid.h                      |   20 
 drivers/hwtracing/coresight/coresight-cpu-debug.c  |    4 
 drivers/infiniband/hw/mlx4/alias_GUID.c            |    2 
 drivers/iommu/dmar.c                               |    2 
 drivers/iommu/intel-iommu.c                        |    3 
 drivers/irqchip/irq-mbigen.c                       |    3 
 drivers/md/dm-crypt.c                              |   10 
 drivers/md/dm-integrity.c                          |    4 
 drivers/media/usb/au0828/au0828-core.c             |    1 
 drivers/misc/lkdtm.h                               |    2 
 drivers/misc/lkdtm_core.c                          |    2 
 drivers/misc/lkdtm_perms.c                         |   36 
 drivers/mmc/host/davinci_mmc.c                     |    2 
 drivers/net/ethernet/netronome/nfp/bpf/verifier.c  |    9 
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  |    6 
 drivers/net/wireless/rsi/rsi_common.h              |    1 
 drivers/scsi/scsi_transport_iscsi.c                |    2 
 drivers/soc/tegra/pmc.c                            |    8 
 drivers/thermal/broadcom/bcm2835_thermal.c         |    9 
 drivers/thermal/int340x_thermal/int3400_thermal.c  |   21 
 drivers/thermal/intel_powerclamp.c                 |    4 
 drivers/tty/serial/xilinx_uartps.c                 |    2 
 fs/9p/v9fs.c                                       |   21 
 fs/9p/v9fs.h                                       |    1 
 fs/9p/vfs_dir.c                                    |    8 
 fs/9p/vfs_file.c                                   |    6 
 fs/cifs/inode.c                                    |   67 -
 fs/cifs/smb2maperror.c                             |    3 
 fs/ext4/ioctl.c                                    |    7 
 fs/ext4/resize.c                                   |   17 
 fs/f2fs/super.c                                    |   34 
 include/linux/atalk.h                              |   20 
 include/linux/bpf_verifier.h                       |   29 
 include/linux/compiler.h                           |    5 
 include/linux/filter.h                             |   10 
 include/linux/swap.h                               |    4 
 include/uapi/linux/netfilter/xt_cgroup.h           |   16 
 kernel/bpf/core.c                                  |   51 
 kernel/bpf/inode.c                                 |   32 
 kernel/bpf/map_in_map.c                            |   17 
 kernel/bpf/verifier.c                              |  804 +++++++++---
 kernel/events/core.c                               |    2 
 kernel/hung_task.c                                 |   30 
 lib/div64.c                                        |    4 
 net/9p/protocol.c                                  |    3 
 net/appletalk/atalk_proc.c                         |    2 
 net/appletalk/ddp.c                                |   37 
 net/appletalk/sysctl_net_atalk.c                   |    5 
 net/netfilter/xt_cgroup.c                          |   72 +
 sound/drivers/opl3/opl3_voice.h                    |    2 
 sound/isa/sb/sb8.c                                 |    4 
 sound/pci/echoaudio/echoaudio.c                    |    5 
 tools/perf/Documentation/perf-config.txt           |    2 
 tools/perf/builtin-top.c                           |    5 
 tools/perf/tests/evsel-tp-sched.c                  |    1 
 tools/perf/tests/expr.c                            |    5 
 tools/perf/tests/openat-syscall-all-cpus.c         |    4 
 tools/perf/util/build-id.c                         |    1 
 tools/perf/util/config.c                           |    3 
 tools/perf/util/evsel.c                            |    1 
 tools/perf/util/hist.c                             |    4 
 tools/perf/util/parse-events.c                     |    2 
 tools/power/x86/turbostat/turbostat.c              |    3 
 tools/testing/selftests/bpf/test_verifier.c        |    6 
 tools/usb/usbip/libsrc/vhci_driver.c               |    2 
 98 files changed, 3184 insertions(+), 1759 deletions(-)

Aditya Pakki (1):
x86/hpet: Prevent potential NULL pointer dereference

Alexei Starovoitov (3):
bpf: reduce verifier memory consumption
bpf: fix verifier memory leaks
bpf: fix stack state printing in verifier log

Andy Shevchenko (1):

      auxdisplay: hd44780: Fix memory leak on ->remove()

Ard Biesheuvel (2):
crypto: sha256/arm - fix crash bug in Thumb2 build
crypto: sha512/arm - fix crash bug in Thumb2 build

Arnaldo Carvalho de Melo (1):

      perf evsel: Free evsel->counts in perf_evsel__exit()

Arnd Bergmann (2):
mmc: davinci: remove extraneous __init annotation
appletalk: Fix compile regression

Balbir Singh (1):
bpf: Fix selftests are changes for CVE 2019-7308

Bartlomiej Zolnierkiewicz (1):
ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms

Brad Love (1):
media: au0828: cannot kfree dev before usb disconnect

Changbin Du (9):
perf list: Don't forget to drop the reference to the allocated thread_map perf config: Fix an error in the config template documentation
perf config: Fix a memory leak in collect_config()
perf build-id: Fix memory leak in print_sdt_events()
perf top: Fix error handling in cmd_top()
perf hist: Add missing map__put() in error case
perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test perf tests: Fix memory leak by expr__find_other() in test__expr()
perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()

Chao Yu (1):
f2fs: fix to do sanity check with current segment number

Christophe Leroy (2):
lkdtm: Print real addresses
lkdtm: Add tests for NULL pointer dereference

Colin Ian King (1):
ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration

Corentin Labbe (1):
arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM

Craig Gallek (1):
bpf: fix verifier NULL pointer dereference

Daniel Borkmann (12):
bpf: fix use after free in bpf_evict_inode
bpf: move {prev_,}insn_idx into verifier env
bpf: move tmp variable into ax register in interpreter
bpf: enable access to ax register also from verifier rewrite
bpf: restrict map value pointer arithmetic for unprivileged
bpf: restrict stack pointer arithmetic for unprivileged
bpf: restrict unknown scalars of mixed signed bounds for unprivileged
bpf: fix check_map_access smin_value test when pointer contains offset
bpf: prevent out of bounds speculation on pointer arithmetic
bpf: fix sanitation of alu op with pointer / scalar type from different paths
bpf: fix inner map masking to prevent oob under speculation
bpf: fix sanitation rewrite in case of non-pointers

Darrick J. Wong (1):
ext4: prohibit fstrim in norecovery mode

David Arcari (1):
tools/power turbostat: return the exit status of a command

Dinu-Razvan Chis-Serban (1):
9p locks: add mount option for lock retry interval

Dmitry Osipenko (1):
soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()

Eugeniy Paltsev (1):
ARC: u-boot args: check that magic number is correct

Gertjan Halkes (1):
9p: do not trust pdu content for stat item size

Greg Kroah-Hartman (1):

      Linux 4.14.113

Hsin-Yi, Wang (1):
drm/panel: panel-innolux: set display off in innolux_panel_unprepare

Ilia Mirkin (1):
drm/nouveau/volt/gf117: fix speedo readout register

Jack Morgenstein (1):
IB/mlx4: Fix race condition between catas error reset and aliasguid flows

Jianguo Chen (1):
irqchip/mbigen: Don't clear eventid when freeing an MSI

Julia Cartwright (1):
iommu/dmar: Fix buffer overflow during PCI bus notification

Julian Sax (1):
HID: i2c-hid: override HID descriptors for certain devices

Kangjie Lu (2):
ALSA: echoaudio: add a check for ioremap_nocache
ALSA: sb8: add a check for request_region

Kevin Wang (1):
drm/amdkfd: use init_mqd function to allocate object for hid_mqd (CI)

Konstantin Khlebnikov (1):
mm: hide incomplete nr_indirectly_reclaimable in sysfs

Lars Persson (2):
crypto: axis - fix for recursive locking from bottom half
net: stmmac: Set dma ring length before enabling the DMA

Leo Yan (1):
coresight: cpu-debug: Support for CA73 CPUs

Lu Baolu (1):
iommu/vt-d: Check capability before disabling protected memory

Luc Van Oostenryck (1):
thermal/intel_powerclamp: fix __percpu declaration of worker_data

Lukas Czerner (2):
ext4: add missing brelse() in add_new_gdb_meta_bg()
ext4: report real fs size after failed resize

Maciej Żenczykowski (1):
usbip: fix vhci_hcd controller counting

Matteo Croce (1):
x86/mm: Don't leak kernel addresses

Matthew Garrett (2):

      thermal/int340x_thermal: Add additional UUIDs
      thermal/int340x_thermal: fix mode setting

Matthew Whitehead (1):
x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors

Maurizio Lombardi (1):
scsi: iscsi: flush running unbind operations when removing a session

Michal Simek (1):
serial: uartps: console_setup() can't be placed to init section

Mikulas Patocka (1):
dm: disable CRYPTO_TFM_REQ_MAY_SLEEP to fix a GFP_KERNEL recursion deadlock

Nathan Chancellor (1):
x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error

Nathan Fontenot (1):
powerpc/pseries: Remove prrn_work workqueue

Pablo Neira Ayuso (1):
netfilter: xt_cgroup: shrink size of v2 path

Phil Elwell (1):
thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs

Pi-Hsun Shih (1):
include/linux/swap.h: use offsetof() instead of custom __swapoffset macro

Robert Jarzmik (1):
gpio: pxa: handle corner case of unprobed device

Ronald Tschalär (1):
ACPI / SBS: Fix GPE storm on recent MacBookPro's

Sean Christopherson (1):
KVM: nVMX: restore host state in nested_vmx_vmexit for VMFail

Siva Rebbagondla (1):
rsi: improve kernel thread handling to fix kernel panic

Stanislaw Gruszka (1):
lib/div64.c: off by one in shift

Stephane Eranian (1):
perf/core: Restore mmap record type correctly

Steve French (2):
fix incorrect error code mapping for OBJECTID_NOT_FOUND
cifs: fallback to older infolevels on findfirst queryinfo retry

Vitaly Kuznetsov (1):
kernel: hung_task.c: disable on suspend

Xu Yu (1):
bpf: do not restore dst_reg when cur_state is freed

Yang Shi (1):
ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t

YueHaibing (2):
drm/nouveau/debugfs: Fix check of pm_runtime_get_sync failure
appletalk: Fix use-after-free in atalk_proc_exit

Zhang Rui (2):
thermal/intel_powerclamp: fix truncated kthread name Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk"

[email protected] (1):
compiler.h: update definition of unreachable()

author maintainer
#1 lore raw
Makefile +1 -1
index 94673d2a6a27..fcfef30ca9a6 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 112
+SUBLEVEL = 113
 EXTRAVERSION =
 NAME = Petit Gorille
 
arch/arc/configs/hsdk_defconfig +1 -0
index 083560e9e571..4dac1169f528 100644
@@ -9,6 +9,7 @@ CONFIG_NAMESPACES=y
 # CONFIG_UTS_NS is not set
 # CONFIG_PID_NS is not set
 CONFIG_BLK_DEV_INITRD=y
+CONFIG_BLK_DEV_RAM=y
 CONFIG_EMBEDDED=y
 CONFIG_PERF_EVENTS=y
 # CONFIG_VM_EVENT_COUNTERS is not set
arch/arc/kernel/head.S +1 -0
index 1f945d0f40da..208bf2c9e7b0 100644
@@ -107,6 +107,7 @@ ENTRY(stext)
 	;    r2 = pointer to uboot provided cmdline or external DTB in mem
 	; These are handled later in handle_uboot_args()
 	st	r0, [@uboot_tag]
+	st      r1, [@uboot_magic]
 	st	r2, [@uboot_arg]
 #endif
 
arch/arc/kernel/setup.c +8 -0
index 709649e5f9bc..6b8d106e0d53 100644
@@ -35,6 +35,7 @@ unsigned int intr_to_DE_cnt;
 
 /* Part of U-boot ABI: see head.S */
 int __initdata uboot_tag;
+int __initdata uboot_magic;
 char __initdata *uboot_arg;
 
 const struct machine_desc *machine_desc;
@@ -433,6 +434,8 @@ static inline bool uboot_arg_invalid(unsigned long addr)
 #define UBOOT_TAG_NONE		0
 #define UBOOT_TAG_CMDLINE	1
 #define UBOOT_TAG_DTB		2
+/* We always pass 0 as magic from U-boot */
+#define UBOOT_MAGIC_VALUE	0
 
 void __init handle_uboot_args(void)
 {
@@ -448,6 +451,11 @@ void __init handle_uboot_args(void)
 		goto ignore_uboot_args;
 	}
 
+	if (uboot_magic != UBOOT_MAGIC_VALUE) {
+		pr_warn(IGNORE_ARGS "non zero uboot magic\n");
+		goto ignore_uboot_args;
+	}
+
 	if (uboot_tag != UBOOT_TAG_NONE &&
             uboot_arg_invalid((unsigned long)uboot_arg)) {
 		pr_warn(IGNORE_ARGS "invalid uboot arg: '%px'\n", uboot_arg);
arch/arm/crypto/sha256-armv4.pl +2 -1
index fac0533ea633..f64e8413ab9a 100644
@@ -205,10 +205,11 @@ K256:
 .global	sha256_block_data_order
 .type	sha256_block_data_order,%function
 sha256_block_data_order:
+.Lsha256_block_data_order:
 #if __ARM_ARCH__<7
 	sub	r3,pc,#8		@ sha256_block_data_order
 #else
-	adr	r3,sha256_block_data_order
+	adr	r3,.Lsha256_block_data_order
 #endif
 #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
 	ldr	r12,.LOPENSSL_armcap
arch/arm/crypto/sha256-core.S_shipped +2 -1
index 555a1a8eec90..72c248081d27 100644
@@ -86,10 +86,11 @@ K256:
 .global	sha256_block_data_order
 .type	sha256_block_data_order,%function
 sha256_block_data_order:
+.Lsha256_block_data_order:
 #if __ARM_ARCH__<7
 	sub	r3,pc,#8		@ sha256_block_data_order
 #else
-	adr	r3,sha256_block_data_order
+	adr	r3,.Lsha256_block_data_order
 #endif
 #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
 	ldr	r12,.LOPENSSL_armcap
arch/arm/crypto/sha512-armv4.pl +2 -1
index a2b11a844357..5fe336420bcf 100644
@@ -267,10 +267,11 @@ WORD64(0x5fcb6fab,0x3ad6faec, 0x6c44198c,0x4a475817)
 .global	sha512_block_data_order
 .type	sha512_block_data_order,%function
 sha512_block_data_order:
+.Lsha512_block_data_order:
 #if __ARM_ARCH__<7
 	sub	r3,pc,#8		@ sha512_block_data_order
 #else
-	adr	r3,sha512_block_data_order
+	adr	r3,.Lsha512_block_data_order
 #endif
 #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
 	ldr	r12,.LOPENSSL_armcap
arch/arm/crypto/sha512-core.S_shipped +2 -1
index 3694c4d4ca2b..de9bd7f55242 100644
@@ -134,10 +134,11 @@ WORD64(0x5fcb6fab,0x3ad6faec, 0x6c44198c,0x4a475817)
 .global	sha512_block_data_order
 .type	sha512_block_data_order,%function
 sha512_block_data_order:
+.Lsha512_block_data_order:
 #if __ARM_ARCH__<7
 	sub	r3,pc,#8		@ sha512_block_data_order
 #else
-	adr	r3,sha512_block_data_order
+	adr	r3,.Lsha512_block_data_order
 #endif
 #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
 	ldr	r12,.LOPENSSL_armcap
arch/arm/kernel/patch.c +3 -3
index a50dc00d79a2..d0a05a3bdb96 100644
@@ -16,7 +16,7 @@ struct patch {
 	unsigned int insn;
 };
 
-static DEFINE_SPINLOCK(patch_lock);
+static DEFINE_RAW_SPINLOCK(patch_lock);
 
 static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)
 	__acquires(&patch_lock)
@@ -33,7 +33,7 @@ static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)
 		return addr;
 
 	if (flags)
-		spin_lock_irqsave(&patch_lock, *flags);
+		raw_spin_lock_irqsave(&patch_lock, *flags);
 	else
 		__acquire(&patch_lock);
 
@@ -48,7 +48,7 @@ static void __kprobes patch_unmap(int fixmap, unsigned long *flags)
 	clear_fixmap(fixmap);
 
 	if (flags)
-		spin_unlock_irqrestore(&patch_lock, *flags);
+		raw_spin_unlock_irqrestore(&patch_lock, *flags);
 	else
 		__release(&patch_lock);
 }
arch/arm/plat-samsung/Kconfig +1 -1
index e8229b9fee4a..3265b8f86069 100644
@@ -258,7 +258,7 @@ config S3C_PM_DEBUG_LED_SMDK
 
 config SAMSUNG_PM_CHECK
 	bool "S3C2410 PM Suspend Memory CRC"
-	depends on PM
+	depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210)
 	select CRC32
 	help
 	  Enable the PM code's memory area checksum over sleep. This option
arch/powerpc/kernel/rtasd.c +3 -14
index 0f0b1b2f3b60..7caeae73348d 100644
@@ -274,27 +274,16 @@ void pSeries_log_error(char *buf, unsigned int err_type, int fatal)
 }
 
 #ifdef CONFIG_PPC_PSERIES
-static s32 prrn_update_scope;
-
-static void prrn_work_fn(struct work_struct *work)
+static void handle_prrn_event(s32 scope)
 {
 	/*
 	 * For PRRN, we must pass the negative of the scope value in
 	 * the RTAS event.
 	 */
-	pseries_devicetree_update(-prrn_update_scope);
+	pseries_devicetree_update(-scope);
 	numa_update_cpu_topology(false);
 }
 
-static DECLARE_WORK(prrn_work, prrn_work_fn);
-
-static void prrn_schedule_update(u32 scope)
-{
-	flush_work(&prrn_work);
-	prrn_update_scope = scope;
-	schedule_work(&prrn_work);
-}
-
 static void handle_rtas_event(const struct rtas_error_log *log)
 {
 	if (rtas_error_type(log) != RTAS_TYPE_PRRN || !prrn_is_enabled())
@@ -303,7 +292,7 @@ static void handle_rtas_event(const struct rtas_error_log *log)
 	/* For PRRN Events the extended log length is used to denote
 	 * the scope for calling rtas update-nodes.
 	 */
-	prrn_schedule_update(rtas_error_extended_log_length(log));
+	handle_prrn_event(rtas_error_extended_log_length(log));
 }
 
 #else
arch/x86/kernel/cpu/cyrix.c +7 -7
index 8949b7ae6d92..fa61c870ada9 100644
@@ -124,7 +124,7 @@ static void set_cx86_reorder(void)
 	setCx86(CX86_CCR3, (ccr3 & 0x0f) | 0x10); /* enable MAPEN */
 
 	/* Load/Store Serialize to mem access disable (=reorder it) */
-	setCx86_old(CX86_PCR0, getCx86_old(CX86_PCR0) & ~0x80);
+	setCx86(CX86_PCR0, getCx86(CX86_PCR0) & ~0x80);
 	/* set load/store serialize from 1GB to 4GB */
 	ccr3 |= 0xe0;
 	setCx86(CX86_CCR3, ccr3);
@@ -135,11 +135,11 @@ static void set_cx86_memwb(void)
 	pr_info("Enable Memory-Write-back mode on Cyrix/NSC processor.\n");
 
 	/* CCR2 bit 2: unlock NW bit */
-	setCx86_old(CX86_CCR2, getCx86_old(CX86_CCR2) & ~0x04);
+	setCx86(CX86_CCR2, getCx86(CX86_CCR2) & ~0x04);
 	/* set 'Not Write-through' */
 	write_cr0(read_cr0() | X86_CR0_NW);
 	/* CCR2 bit 2: lock NW bit and set WT1 */
-	setCx86_old(CX86_CCR2, getCx86_old(CX86_CCR2) | 0x14);
+	setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x14);
 }
 
 /*
@@ -153,14 +153,14 @@ static void geode_configure(void)
 	local_irq_save(flags);
 
 	/* Suspend on halt power saving and enable #SUSP pin */
-	setCx86_old(CX86_CCR2, getCx86_old(CX86_CCR2) | 0x88);
+	setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88);
 
 	ccr3 = getCx86(CX86_CCR3);
 	setCx86(CX86_CCR3, (ccr3 & 0x0f) | 0x10);	/* enable MAPEN */
 
 
 	/* FPU fast, DTE cache, Mem bypass */
-	setCx86_old(CX86_CCR4, getCx86_old(CX86_CCR4) | 0x38);
+	setCx86(CX86_CCR4, getCx86(CX86_CCR4) | 0x38);
 	setCx86(CX86_CCR3, ccr3);			/* disable MAPEN */
 
 	set_cx86_memwb();
@@ -296,7 +296,7 @@ static void init_cyrix(struct cpuinfo_x86 *c)
 		/* GXm supports extended cpuid levels 'ala' AMD */
 		if (c->cpuid_level == 2) {
 			/* Enable cxMMX extensions (GX1 Datasheet 54) */
-			setCx86_old(CX86_CCR7, getCx86_old(CX86_CCR7) | 1);
+			setCx86(CX86_CCR7, getCx86(CX86_CCR7) | 1);
 
 			/*
 			 * GXm : 0x30 ... 0x5f GXm  datasheet 51
@@ -319,7 +319,7 @@ static void init_cyrix(struct cpuinfo_x86 *c)
 		if (dir1 > 7) {
 			dir0_msn++;  /* M II */
 			/* Enable MMX extensions (App note 108) */
-			setCx86_old(CX86_CCR7, getCx86_old(CX86_CCR7)|1);
+			setCx86(CX86_CCR7, getCx86(CX86_CCR7)|1);
 		} else {
 			/* A 6x86MX - it has the bug. */
 			set_cpu_bug(c, X86_BUG_COMA);
arch/x86/kernel/hpet.c +2 -0
index afa1a204bc6d..df767e6de8dd 100644
@@ -909,6 +909,8 @@ int __init hpet_enable(void)
 		return 0;
 
 	hpet_set_mapping();
+	if (!hpet_virt_address)
+		return 0;
 
 	/*
 	 * Read the period and check for a sane value:
arch/x86/kernel/hw_breakpoint.c +1 -0
index 8771766d46b6..9954a604a822 100644
@@ -352,6 +352,7 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)
 #endif
 	default:
 		WARN_ON_ONCE(1);
+		return -EINVAL;
 	}
 
 	/*
arch/x86/kernel/mpparse.c +2 -2
index bc6bc6689e68..1c52acaa5bec 100644
@@ -596,8 +596,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
 			mpf_base = base;
 			mpf_found = true;
 
-			pr_info("found SMP MP-table at [mem %#010lx-%#010lx] mapped at [%p]\n",
-				base, base + sizeof(*mpf) - 1, mpf);
+			pr_info("found SMP MP-table at [mem %#010lx-%#010lx]\n",
+				base, base + sizeof(*mpf) - 1);
 
 			memblock_reserve(base, sizeof(*mpf));
 			if (mpf->physptr)
arch/x86/kvm/vmx.c +153 -20

203 lines not on this page · raw message

drivers/acpi/ec.c +53 -0

83 lines not on this page · raw message

drivers/acpi/sbs.c +6 -2
index a2428e9462dd..3c092f07d7e3 100644
@@ -441,9 +441,13 @@ static int acpi_ac_get_present(struct acpi_sbs *sbs)
 
 	/*
 	 * The spec requires that bit 4 always be 1. If it's not set, assume
-	 * that the implementation doesn't support an SBS charger
+	 * that the implementation doesn't support an SBS charger.
+	 *
+	 * And on some MacBooks a status of 0xffff is always returned, no
+	 * matter whether the charger is plugged in or not, which is also
+	 * wrong, so ignore the SBS charger for those too.
 	 */
-	if (!((status >> 4) & 0x1))
+	if (!((status >> 4) & 0x1) || status == 0xffff)
 		return -ENODEV;
 
 	sbs->charger_present = (status >> 15) & 0x1;
drivers/auxdisplay/hd44780.c +2 -0
index 036eec404289..2d927feb3db4 100644
@@ -302,6 +302,8 @@ static int hd44780_remove(struct platform_device *pdev)
 	struct charlcd *lcd = platform_get_drvdata(pdev);
 
 	charlcd_unregister(lcd);
+
+	kfree(lcd);
 	return 0;
 }
 
drivers/base/node.c +6 -1
index ee090ab9171c..5c39f14d15a5 100644
@@ -197,11 +197,16 @@ static ssize_t node_read_vmstat(struct device *dev,
 			     sum_zone_numa_state(nid, i));
 #endif
 
-	for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++)
+	for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) {
+		/* Skip hidden vmstat items. */
+		if (*vmstat_text[i + NR_VM_ZONE_STAT_ITEMS +
+				 NR_VM_NUMA_STAT_ITEMS] == '\0')
+			continue;
 		n += sprintf(buf+n, "%s %lu\n",
 			     vmstat_text[i + NR_VM_ZONE_STAT_ITEMS +
 			     NR_VM_NUMA_STAT_ITEMS],
 			     node_page_state(pgdat, i));
+	}
 
 	return n;
 }
drivers/crypto/axis/artpec6_crypto.c +23 -5
index 6eb5cb92b986..9f82e14983f6 100644
@@ -284,6 +284,7 @@ enum artpec6_crypto_hash_flags {
 
 struct artpec6_crypto_req_common {
 	struct list_head list;
+	struct list_head complete_in_progress;
 	struct artpec6_crypto_dma_descriptors *dma;
 	struct crypto_async_request *req;
 	void (*complete)(struct crypto_async_request *req);
@@ -2046,7 +2047,8 @@ static int artpec6_crypto_prepare_aead(struct aead_request *areq)
 	return artpec6_crypto_dma_map_descs(common);
 }
 
-static void artpec6_crypto_process_queue(struct artpec6_crypto *ac)
+static void artpec6_crypto_process_queue(struct artpec6_crypto *ac,
+	    struct list_head *completions)
 {
 	struct artpec6_crypto_req_common *req;
 
@@ -2057,7 +2059,7 @@ static void artpec6_crypto_process_queue(struct artpec6_crypto *ac)
 		list_move_tail(&req->list, &ac->pending);
 		artpec6_crypto_start_dma(req);
 
-		req->req->complete(req->req, -EINPROGRESS);
+		list_add_tail(&req->complete_in_progress, completions);
 	}
 
 	/*
@@ -2087,6 +2089,11 @@ static void artpec6_crypto_task(unsigned long data)
 	struct artpec6_crypto *ac = (struct artpec6_crypto *)data;
 	struct artpec6_crypto_req_common *req;
 	struct artpec6_crypto_req_common *n;
+	struct list_head complete_done;
+	struct list_head complete_in_progress;
+
+	INIT_LIST_HEAD(&complete_done);
+	INIT_LIST_HEAD(&complete_in_progress);
 
 	if (list_empty(&ac->pending)) {
 		pr_debug("Spurious IRQ\n");
@@ -2120,19 +2127,30 @@ static void artpec6_crypto_task(unsigned long data)
 
 		pr_debug("Completing request %p\n", req);
 
-		list_del(&req->list);
+		list_move_tail(&req->list, &complete_done);
 
 		artpec6_crypto_dma_unmap_all(req);
 		artpec6_crypto_copy_bounce_buffers(req);
 
 		ac->pending_count--;
 		artpec6_crypto_common_destroy(req);
-		req->complete(req->req);
 	}
 
-	artpec6_crypto_process_queue(ac);
+	artpec6_crypto_process_queue(ac, &complete_in_progress);
 
 	spin_unlock_bh(&ac->queue_lock);
+
+	/* Perform the completion callbacks without holding the queue lock
+	 * to allow new request submissions from the callbacks.
+	 */
+	list_for_each_entry_safe(req, n, &complete_done, list) {
+		req->complete(req->req);
+	}
+
+	list_for_each_entry_safe(req, n, &complete_in_progress,
+				 complete_in_progress) {
+		req->req->complete(req->req, -EINPROGRESS);
+	}
 }
 
 static void artpec6_crypto_complete_crypto(struct crypto_async_request *req)
drivers/gpio/gpio-pxa.c +6 -0
index 2943dfc4c470..822ad220f0af 100644
@@ -776,6 +776,9 @@ static int pxa_gpio_suspend(void)
 	struct pxa_gpio_bank *c;
 	int gpio;
 
+	if (!pchip)
+		return 0;
+
 	for_each_gpio_bank(gpio, c, pchip) {
 		c->saved_gplr = readl_relaxed(c->regbase + GPLR_OFFSET);
 		c->saved_gpdr = readl_relaxed(c->regbase + GPDR_OFFSET);
@@ -794,6 +797,9 @@ static void pxa_gpio_resume(void)
 	struct pxa_gpio_bank *c;
 	int gpio;
 
+	if (!pchip)
+		return;
+
 	for_each_gpio_bank(gpio, c, pchip) {
 		/* restore level with set/clear */
 		writel_relaxed(c->saved_gplr, c->regbase + GPSR_OFFSET);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c +1 -51

58 lines not on this page · raw message

drivers/gpu/drm/nouveau/include/nvkm/subdev/volt.h +1 -0
index 8a0f85f5fc1a..6a765682fbfa 100644
@@ -38,6 +38,7 @@ int nvkm_volt_set_id(struct nvkm_volt *, u8 id, u8 min_id, u8 temp,
 
 int nv40_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
 int gf100_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
+int gf117_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
 int gk104_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
 int gk20a_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
 int gm20b_volt_new(struct nvkm_device *, int, struct nvkm_volt **);
drivers/gpu/drm/nouveau/nouveau_debugfs.c +1 -1
index 9109b69cd052..9635704a1d86 100644
@@ -161,7 +161,7 @@ nouveau_debugfs_pstate_set(struct file *file, const char __user *ubuf,
 	}
 
 	ret = pm_runtime_get_sync(drm->dev);
-	if (IS_ERR_VALUE(ret) && ret != -EACCES)
+	if (ret < 0 && ret != -EACCES)
 		return ret;
 	ret = nvif_mthd(ctrl, NVIF_CONTROL_PSTATE_USER, &args, sizeof(args));
 	pm_runtime_put_autosuspend(drm->dev);
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +1 -1
index e096a5d9c292..f8dd78e21456 100644
@@ -1612,7 +1612,7 @@ nvd7_chipset = {
 	.pci = gf106_pci_new,
 	.therm = gf119_therm_new,
 	.timer = nv41_timer_new,
-	.volt = gf100_volt_new,
+	.volt = gf117_volt_new,
 	.ce[0] = gf100_ce_new,
 	.disp = gf119_disp_new,
 	.dma = gf119_dma_new,
drivers/gpu/drm/nouveau/nvkm/subdev/volt/Kbuild +1 -0
index bcd179ba11d0..146adcdd316a 100644
@@ -2,6 +2,7 @@ nvkm-y += nvkm/subdev/volt/base.o
 nvkm-y += nvkm/subdev/volt/gpio.o
 nvkm-y += nvkm/subdev/volt/nv40.o
 nvkm-y += nvkm/subdev/volt/gf100.o
+nvkm-y += nvkm/subdev/volt/gf117.o
 nvkm-y += nvkm/subdev/volt/gk104.o
 nvkm-y += nvkm/subdev/volt/gk20a.o
 nvkm-y += nvkm/subdev/volt/gm20b.o
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gf117.c new file +60 -0

60 lines not on this page · raw message

drivers/gpu/drm/panel/panel-innolux-p079zca.c +5 -6
index 6ba93449fcfb..58b67e0cc385 100644
@@ -40,7 +40,6 @@ static inline struct innolux_panel *to_innolux_panel(struct drm_panel *panel)
 static int innolux_panel_disable(struct drm_panel *panel)
 {
 	struct innolux_panel *innolux = to_innolux_panel(panel);
-	int err;
 
 	if (!innolux->enabled)
 		return 0;
@@ -48,11 +47,6 @@ static int innolux_panel_disable(struct drm_panel *panel)
 	innolux->backlight->props.power = FB_BLANK_POWERDOWN;
 	backlight_update_status(innolux->backlight);
 
-	err = mipi_dsi_dcs_set_display_off(innolux->link);
-	if (err < 0)
-		DRM_DEV_ERROR(panel->dev, "failed to set display off: %d\n",
-			      err);
-
 	innolux->enabled = false;
 
 	return 0;
@@ -66,6 +60,11 @@ static int innolux_panel_unprepare(struct drm_panel *panel)
 	if (!innolux->prepared)
 		return 0;
 
+	err = mipi_dsi_dcs_set_display_off(innolux->link);
+	if (err < 0)
+		DRM_DEV_ERROR(panel->dev, "failed to set display off: %d\n",
+			      err);
+
 	err = mipi_dsi_dcs_enter_sleep_mode(innolux->link);
 	if (err < 0) {
 		DRM_DEV_ERROR(panel->dev, "failed to enter sleep mode: %d\n",
drivers/hid/i2c-hid/Makefile +3 -0
index 832d8f9aaba2..099e1ce2f234 100644
@@ -3,3 +3,6 @@
 #
 
 obj-$(CONFIG_I2C_HID)				+= i2c-hid.o
+
+i2c-hid-objs					=  i2c-hid-core.o
+i2c-hid-$(CONFIG_DMI)				+= i2c-hid-dmi-quirks.o
drivers/hid/i2c-hid/i2c-hid-core.c new file +1299 -0

1,299 lines not on this page · raw message

drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c new file +376 -0

376 lines not on this page · raw message

drivers/hid/i2c-hid/i2c-hid.c deleted +0 -1279

487 lines not on this page · raw message

drivers/hid/i2c-hid/i2c-hid.h new file +20 -0
new file mode 100644
index 000000000000..a8c19aef5824

Lines of this file are not shown. View the raw message.

drivers/hwtracing/coresight/coresight-cpu-debug.c +4 -0
index 9cdb3fbc8c1f..2f6f46ea68e9 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/mlx4/alias_GUID.c +1 -1
index 155b4dfc0ae8..baab9afa9174 100644

Lines of this file are not shown. View the raw message.

drivers/iommu/dmar.c +1 -1
index c0d1c4db5794..38d0128b8135 100644

Lines of this file are not shown. View the raw message.

drivers/iommu/intel-iommu.c +3 -0
index 802ba7b16e09..fe935293fa7b 100644

Lines of this file are not shown. View the raw message.

drivers/irqchip/irq-mbigen.c +3 -0
index 567b29c47608..98b6e1d4b1a6 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-crypt.c +5 -5
index 0d2005e5b24c..94b8d81f6020 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-integrity.c +2 -2
index da4baea9cf83..036379a23499 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/au0828/au0828-core.c +0 -1
index cd363a2100d4..257ae0d8cfe2 100644

Lines of this file are not shown. View the raw message.

drivers/misc/lkdtm.h +2 -0
index 687a0dbbe199..614612325332 100644

Lines of this file are not shown. View the raw message.

drivers/misc/lkdtm_core.c +2 -0
index 981b3ef71e47..199271708aed 100644

Lines of this file are not shown. View the raw message.

drivers/misc/lkdtm_perms.c +27 -9
index 53b85c9d16b8..62f76d506f04 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/davinci_mmc.c +1 -1
index 351330dfb954..1bd1819cca7d 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/netronome/nfp/bpf/verifier.c +5 -4
index 5b783a91b115..8793fa57f844 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +3 -3
index 4a9dbee6f054..f2429ec07b57 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rsi/rsi_common.h +0 -1
index e579d694d13c..21986ba56a3c 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_transport_iscsi.c +2 -0
index f6542c159ed6..b4d06bd9ed51 100644

Lines of this file are not shown. View the raw message.

drivers/soc/tegra/pmc.c +1 -7
index 7e9ef3431bea..2422ed56895a 100644

Lines of this file are not shown. View the raw message.

drivers/thermal/broadcom/bcm2835_thermal.c +4 -5
index 24b006a95142..8646fb7425f2 100644

Lines of this file are not shown. View the raw message.

drivers/thermal/int340x_thermal/int3400_thermal.c +17 -4
index 43b90fd577e4..4a20f4d47b1d 100644

Lines of this file are not shown. View the raw message.

drivers/thermal/intel_powerclamp.c +2 -2
index d718cd179ddb..c3293fa2bb1b 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/xilinx_uartps.c +1 -1
index f438a2158006..b0da63737aa1 100644

Lines of this file are not shown. View the raw message.

fs/9p/v9fs.c +21 -0
index 8fb89ddc6cc7..c52f10efdc9c 100644

Lines of this file are not shown. View the raw message.

fs/9p/v9fs.h +1 -0
index 982e017acadb..129e5243a6bf 100644

Lines of this file are not shown. View the raw message.

fs/9p/vfs_dir.c +3 -5
index 48db9a9f13f9..cb6c4031af55 100644

Lines of this file are not shown. View the raw message.

fs/9p/vfs_file.c +5 -1
index af8cac975a74..89e69904976a 100644

Lines of this file are not shown. View the raw message.

fs/cifs/inode.c +37 -30

67 lines not on this page · raw message

fs/cifs/smb2maperror.c +2 -1
index d7e839cb773f..92c9cdf4704d 100644

Lines of this file are not shown. View the raw message.

fs/ext4/ioctl.c +7 -0
index 7917cc89ab21..3dbf4e414706 100644

Lines of this file are not shown. View the raw message.

fs/ext4/resize.c +14 -3
index 6f0acfe31418..333fba05e1a5 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/super.c +33 -1
index fc5c41257e68..4c169ba50c0f 100644

Lines of this file are not shown. View the raw message.

include/linux/atalk.h +15 -5
index 4d356e168692..03885e63f92b 100644

Lines of this file are not shown. View the raw message.

include/linux/bpf_verifier.h +26 -3
index 8458cc5fbce5..d8b3240cfe6e 100644

Lines of this file are not shown. View the raw message.

include/linux/compiler.h +4 -1
index a704d032713b..67c3934fb9ed 100644

Lines of this file are not shown. View the raw message.

include/linux/filter.h +3 -7
index 56d2cda9931b..ac2272778f2e 100644

Lines of this file are not shown. View the raw message.

include/linux/swap.h +2 -2
index 4fd1ab9565ba..e643866912b7 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/netfilter/xt_cgroup.h +16 -0
index e96dfa1b34f7..b74e370d6133 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/core.c +36 -15

51 lines not on this page · raw message

kernel/bpf/inode.c +18 -14
index be1dde967208..ccf9ffd5da78 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/map_in_map.c +15 -2
index 1da574612bea..c0c494b7647b 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/verifier.c +602 -202

804 lines not on this page · raw message

kernel/events/core.c +2 -0
index 92939b5397df..580616e6fcee 100644

Lines of this file are not shown. View the raw message.

kernel/hung_task.c +29 -1
index f9aaf4994062..2e4869fa66c9 100644

Lines of this file are not shown. View the raw message.

lib/div64.c +2 -2
index 58e2a404097e..a2688b882461 100644

Lines of this file are not shown. View the raw message.

net/9p/protocol.c +2 -1
index 9743837aebc6..766d1ef4640a 100644

Lines of this file are not shown. View the raw message.

net/appletalk/atalk_proc.c +1 -1
index af46bc49e1e9..b5f84f428aa6 100644

Lines of this file are not shown. View the raw message.

net/appletalk/ddp.c +31 -6
index 5d035c1f1156..d1b68cc7da89 100644

Lines of this file are not shown. View the raw message.

net/appletalk/sysctl_net_atalk.c +4 -1
index c744a853fa5f..d945b7c0176d 100644

Lines of this file are not shown. View the raw message.

net/netfilter/xt_cgroup.c +72 -0

72 lines not on this page · raw message

sound/drivers/opl3/opl3_voice.h +1 -1
index eaef435e0528..abf6c23a721c 100644

Lines of this file are not shown. View the raw message.

sound/isa/sb/sb8.c +4 -0
index d77dcba276b5..1eb8b61a185b 100644

Lines of this file are not shown. View the raw message.

sound/pci/echoaudio/echoaudio.c +5 -0
index d68f99e076a8..e1f0bcd45c37 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-config.txt +1 -1
index 5b4fff3adc4b..782a8966b721 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-top.c +3 -2
index 3103a33c13a8..133eb7949321 100644

Lines of this file are not shown. View the raw message.

tools/perf/tests/evsel-tp-sched.c +1 -0
index d0406116c905..926a8e1b5e94 100644

Lines of this file are not shown. View the raw message.

tools/perf/tests/expr.c +4 -1
index 01f0706995a9..9acc1e80b936 100644

Lines of this file are not shown. View the raw message.

tools/perf/tests/openat-syscall-all-cpus.c +3 -1
index c531e6deb104..493ecb611540 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/build-id.c +1 -0
index 7f8553630c4d..69910deab6e0 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/config.c +1 -2
index 4b893c622236..a0c9ff27c7bf 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/evsel.c +1 -0
index 44c2f62b47a3..0cf6f537f980 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/hist.c +3 -1
index 5d420209505e..5b8bc1fd943d 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/parse-events.c +2 -0
index d0b92d374ba9..29e2bb304168 100644

Lines of this file are not shown. View the raw message.

tools/power/x86/turbostat/turbostat.c +3 -0
index 7a1b20ec5216..d1b2348db0f9 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/test_verifier.c +6 -0
index a0591d06c61b..913539aea645 100644

Lines of this file are not shown. View the raw message.

tools/usb/usbip/libsrc/vhci_driver.c +1 -1
index ed8c9d360c0f..4225d462701d 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.