Skip to contentSkip to conversation

Linux 4.4.215

DISCUSSION Greg KH 1 participant 2 messages Mar 1, 2020 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.4.215 kernel.

All users of the 4.4 kernel series must upgrade.

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

thanks,

greg k-h

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

 Makefile                                            |    2 
 arch/arm/Kconfig                                    |    2 
 arch/arm/boot/dts/r8a7779.dtsi                      |    8 
 arch/microblaze/kernel/cpu/cache.c                  |    3 
 arch/mips/loongson64/loongson-3/platform.c          |    3 
 arch/s390/include/asm/timex.h                       |    2 
 arch/s390/kernel/mcount.S                           |   15 
 arch/sh/include/cpu-sh2a/cpu/sh7269.h               |   11 
 arch/x86/entry/vdso/vdso32-setup.c                  |    1 
 arch/x86/include/asm/cpufeatures.h                  |    1 
 arch/x86/include/asm/vgtod.h                        |    7 
 arch/x86/kernel/cpu/mcheck/mce_amd.c                |   17 
 arch/x86/kvm/cpuid.c                                |    7 
 arch/x86/kvm/emulate.c                              |   22 
 arch/x86/kvm/lapic.c                                |    4 
 arch/x86/kvm/vmx.c                                  |  102 
 arch/x86/kvm/vmx/vmx.c                              | 8033 --------------------
 arch/x86/platform/efi/efi.c                         |   13 
 drivers/acpi/acpica/dsfield.c                       |    2 
 drivers/acpi/acpica/dswload.c                       |   21 
 drivers/base/dd.c                                   |    5 
 drivers/block/brd.c                                 |   22 
 drivers/block/floppy.c                              |    7 
 drivers/clk/qcom/clk-rcg2.c                         |    3 
 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c        |   19 
 drivers/gpu/drm/gma500/framebuffer.c                |    8 
 drivers/gpu/drm/nouveau/nouveau_fence.c             |    2 
 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c |    2 
 drivers/gpu/drm/radeon/radeon_display.c             |    2 
 drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c          |    4 
 drivers/hwmon/pmbus/ltc2978.c                       |    4 
 drivers/ide/cmd64x.c                                |    3 
 drivers/ide/serverworks.c                           |    6 
 drivers/infiniband/ulp/isert/ib_isert.c             |   12 
 drivers/input/touchscreen/edt-ft5x06.c              |    7 
 drivers/iommu/arm-smmu-v3.c                         |    3 
 drivers/irqchip/irq-gic-v3-its.c                    |    2 
 drivers/md/bcache/bset.h                            |    3 
 drivers/media/i2c/mt9v032.c                         |   10 
 drivers/media/platform/sti/bdisp/bdisp-hw.c         |    6 
 drivers/net/ethernet/cisco/enic/enic_main.c         |    2 
 drivers/net/ethernet/freescale/gianfar.c            |   10 
 drivers/net/wan/ixp4xx_hss.c                        |    4 
 drivers/net/wireless/b43legacy/main.c               |    5 
 drivers/net/wireless/brcm80211/brcmfmac/sdio.c      |    1 
 drivers/net/wireless/hostap/hostap_ap.c             |    2 
 drivers/net/wireless/ipw2x00/ipw2100.c              |    7 
 drivers/net/wireless/ipw2x00/ipw2200.c              |    5 
 drivers/net/wireless/iwlegacy/3945-mac.c            |    5 
 drivers/net/wireless/iwlegacy/4965-mac.c            |    5 
 drivers/net/wireless/iwlegacy/common.c              |    2 
 drivers/net/wireless/orinoco/orinoco_usb.c          |    3 
 drivers/net/wireless/realtek/rtlwifi/pci.c          |   10 
 drivers/nfc/port100.c                               |    2 
 drivers/pci/setup-bus.c                             |   20 
 drivers/pinctrl/sh-pfc/pfc-sh7264.c                 |    9 
 drivers/pinctrl/sh-pfc/pfc-sh7269.c                 |   39 
 drivers/regulator/rk808-regulator.c                 |    2 
 drivers/remoteproc/remoteproc_core.c                |    2 
 drivers/scsi/aic7xxx/aic7xxx_core.c                 |    2 
 drivers/scsi/iscsi_tcp.c                            |    4 
 drivers/scsi/qla2xxx/qla_os.c                       |   19 
 drivers/scsi/scsi_transport_iscsi.c                 |   26 
 drivers/soc/tegra/fuse/tegra-apbmisc.c              |    2 
 drivers/staging/android/ashmem.c                    |   28 
 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c      |    4 
 drivers/staging/vt6656/dpc.c                        |    2 
 drivers/target/iscsi/iscsi_target.c                 |   16 
 drivers/tty/serial/imx.c                            |    2 
 drivers/tty/vt/vt_ioctl.c                           |   75 
 drivers/uio/uio_dmem_genirq.c                       |    6 
 drivers/usb/core/hub.c                              |    5 
 drivers/usb/core/quirks.c                           |    3 
 drivers/usb/gadget/udc/gr_udc.c                     |   16 
 drivers/usb/host/xhci-pci.c                         |    4 
 drivers/usb/storage/uas.c                           |   23 
 drivers/xen/preempt.c                               |    4 
 fs/btrfs/disk-io.c                                  |    1 
 fs/btrfs/extent_map.c                               |   11 
 fs/btrfs/ordered-data.c                             |    7 
 fs/btrfs/super.c                                    |    2 
 fs/ecryptfs/crypto.c                                |    6 
 fs/ecryptfs/keystore.c                              |    2 
 fs/ecryptfs/messaging.c                             |    1 
 fs/ext4/dir.c                                       |   14 
 fs/ext4/ext4.h                                      |    7 
 fs/ext4/inode.c                                     |   14 
 fs/ext4/namei.c                                     |    8 
 fs/jbd2/checkpoint.c                                |    2 
 fs/jbd2/commit.c                                    |   50 
 fs/jbd2/journal.c                                   |   21 
 fs/jbd2/transaction.c                               |   10 
 fs/nfs/Kconfig                                      |    2 
 fs/ocfs2/journal.h                                  |    8 
 fs/reiserfs/stree.c                                 |    3 
 fs/reiserfs/super.c                                 |    2 
 fs/ubifs/file.c                                     |    5 
 include/linux/list_nulls.h                          |    8 
 include/linux/rculist_nulls.h                       |    8 
 include/scsi/iscsi_proto.h                          |    1 
 include/sound/rawmidi.h                             |    6 
 ipc/sem.c                                           |    6 
 kernel/padata.c                                     |   45 
 kernel/trace/trace_events_trigger.c                 |    5 
 kernel/trace/trace_stat.c                           |   19 
 lib/scatterlist.c                                   |    2 
 net/netfilter/xt_bpf.c                              |    3 
 scripts/kconfig/confdata.c                          |    2 
 security/selinux/avc.c                              |    2 
 sound/core/seq/seq_clientmgr.c                      |    4 
 sound/core/seq/seq_queue.c                          |   29 
 sound/core/seq/seq_timer.c                          |   13 
 sound/core/seq/seq_timer.h                          |    3 
 sound/pci/hda/hda_codec.c                           |    2 
 sound/pci/hda/hda_eld.c                             |    2 
 sound/pci/hda/hda_sysfs.c                           |    4 
 sound/pci/hda/patch_conexant.c                      |    1 
 sound/sh/aica.c                                     |    4 
 sound/soc/atmel/Kconfig                             |    2 
 sound/usb/quirks.c                                  |    1 
 sound/usb/usx2y/usX2Yhwdep.c                        |    2 
 tools/lib/api/fs/fs.c                               |    4 
 tools/usb/usbip/src/usbip_network.c                 |   40 
 tools/usb/usbip/src/usbip_network.h                 |   12 
 124 files changed, 777 insertions(+), 8411 deletions(-)

Aditya Pakki (2):
orinoco: avoid assertion in case of NULL pointer
ecryptfs: replace BUG_ON with error handling code

Al Viro (1):
VT_RESIZEX: get rid of field-by-field copyin

Alan Stern (1):
USB: hub: Don't record a connect-change event during reset-resume

Allen Pais (1):
scsi: qla2xxx: fix a potential NULL pointer dereference

Andrey Zhizhikin (1):
tools lib api fs: Fix gcc9 stringop-truncation compilation error

Andy Lutomirski (1):
x86/vdso: Use RDPID in preference to LSL when available

Ard Biesheuvel (1):
efi/x86: Map the entire EFI vendor string before copying it

Arnd Bergmann (1):
wan: ixp4xx_hss: fix compile-testing on 64-bit

Arvind Sankar (1):
ALSA: usb-audio: Apply sample rate quirk for Audioengine D1

Bart Van Assche (2):
scsi: Revert "RDMA/isert: Fix a recently introduced regression related to logout"
scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session"

Ben Skeggs (1):
drm/nouveau/disp/nv50-: prevent oops when no channel method map provided

Brandon Maier (1):
remoteproc: Initialize rproc_class before use

Chen Zhou (1):
ASoC: atmel: fix build error with CONFIG_SND_ATMEL_SOC_DMA=m

Colin Ian King (1):
iwlegacy: ensure loop counter addr does not wrap and cause an infinite loop

Coly Li (1):
bcache: explicity type cast in bset_bkey_last()

Dan Carpenter (3):
brcmfmac: Fix use after free in brcmf_sdio_readframes()
cmd64x: potential buffer overflow in cmd64x_program_timings()
ide: serverworks: potential overflow in svwks_set_pio_mode()

Daniel Vetter (1):
radeon: insert 10ms sleep in dce5_crtc_load_lut

David Sterba (2):
btrfs: log message when rw remount is attempted with unclean tree-log
btrfs: print message when tree-log replay starts

Dmitry Osipenko (1):
soc/tegra: fuse: Correct straps' address for older Tegra124 device trees

Douglas Anderson (1):
clk: qcom: rcg2: Don't crash if our parent can't be found; return an error

EJ Hsu (1):
usb: uas: fix a plug & unplug racing

Eric Dumazet (1):
vt: vt_ioctl: fix race in VT_RESIZEX

Erik Kaneda (1):
ACPICA: Disassembler: create buffer fields in ACPI_PARSE_LOAD_PASS1

Eugen Hristev (1):
media: i2c: mt9v032: fix enum mbus codes and frame sizes

Filipe Manana (2):
Btrfs: fix race between using extent maps and merging them
Btrfs: fix btrfs_wait_ordered_range() so that it waits for all ordered extents

Firo Yang (1):
enic: prevent waking up stopped tx queues over watchdog reset

Fugang Duan (1):
tty: serial: imx: setup the correct sg entry for tx dma

Geert Uytterhoeven (5):
pinctrl: sh-pfc: sh7264: Fix CAN function GPIOs
nfs: NFS_SWAP should depend on SWAP
ARM: dts: r8a7779: Add device node for ARM global timer
pinctrl: sh-pfc: sh7269: Fix CAN function GPIOs
driver core: Print device when resources present in really_probe()

Greg Kroah-Hartman (1):

      Linux 4.4.215

Herbert Xu (1):
padata: Remove broken queue flushing

Ioanna Alifieraki (1):
Revert "ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()"

Jaihind Yadav (1):
selinux: ensure we cleanup the internal AVC counters on error in avc_update()

Jan Kara (2):
ext4: fix checksum errors with indexed dirs
reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling

Jann Horn (1):
netfilter: xt_bpf: add overflow checks

Jia-Ju Bai (3):
media: sti: bdisp: fix a possible sleep-in-atomic-context bug in bdisp_device_run()
uio: fix a sleep-in-atomic-context bug in uio_dmem_genirq_irqcontrol()
usb: gadget: udc: fix possible sleep-in-atomic-context bugs in gr_probe()

Kai Li (1):
jbd2: clear JBD2_ABORT flag before journal_reset to update log tail info when load journal

Larry Finger (2):
staging: rtl8188eu: Fix potential security hole
staging: rtl8188eu: Fix potential overuse of kernel memory

Linus Torvalds (1):
floppy: check FDC index for errors before assigning it

Logan Gunthorpe (1):
PCI: Don't disable bridge BARs when assigning bus resources

Malcolm Priestley (1):
staging: vt6656: fix sign of rx_dbm to bb_pre_ed_rssi.

Mao Wenan (1):

      NFC: port100: Convert cpu_to_le16(le16_to_cpu(E1) + E2) to use le16_add_cpu().

Masahiro Yamada (1):
kconfig: fix broken dependency in randconfig-generated .config

Mathias Nyman (1):
xhci: apply XHCI_PME_STUCK_QUIRK to Intel Comet Lake platforms

Miaohe Lin (1):
KVM: apic: avoid calculating pending eoi from an uninitialized val

Mike Jones (1):
hwmon: (pmbus/ltc2978) Fix PMBus polling of MFR_COMMON definitions.

Miquel Raynal (1):
regulator: rk808: Lower log level on optional GPIOs being not available

Nathan Chancellor (5):
s390/time: Fix clk type in get_tod_clock
ALSA: usx2y: Adjust indentation in snd_usX2Y_hwdep_dsp_status
scsi: aic7xxx: Adjust indentation in ahc_find_syncrate
hostap: Adjust indentation in prism2_hostapd_add_sta lib/scatterlist.c: adjust indentation in __sg_alloc_table

Navid Emamdoost (1):
drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add

Nick Black (1):
scsi: iscsi: Don't destroy session if there are outstanding connections

Oliver Upton (2):
KVM: nVMX: Refactor IO bitmap checks into helper function
KVM: nVMX: Check IO instruction VM-exit conditions

Paolo Bonzini (2):
KVM: x86: emulate RDPID
KVM: nVMX: Don't emulate instructions in guest mode

Paul E. McKenney (1):

      rcu: Use WRITE_ONCE() for assignments to ->pprev for hlist_nulls

Paul Kocialkowski (1):
drm/gma500: Fixup fbdev stolen size usage evaluation

Peter Große (1):
ALSA: hda - Add docking station support for Lenovo Thinkpad T420s

Philipp Zabel (1):
Input: edt-ft5x06 - work around first register access error

Phong Tran (4):
b43legacy: Fix -Wcast-function-type
ipw2x00: Fix -Wcast-function-type
iwlegacy: Fix -Wcast-function-type
rtlwifi: rtl_pci: Fix -Wcast-function-type

Qian Cai (1):

      ext4: fix a data race in EXT4_I(inode)->i_disksize

Richard Dodd (1):
USB: Fix novation SourceControl XL after suspend

Sasha Levin (1):
Revert "KVM: VMX: Add non-canonical check on writes to RTIT address MSRs"

Shijie Luo (1):

      ext4: add cond_resched() to __ext4_find_entry()

Shuah Khan (1):
usbip: Fix unsafe unaligned pointer usage

Shubhrajyoti Datta (1):
microblaze: Prevent the overflow of the start

Steven Rostedt (VMware) (1):
tracing: Fix very unlikely race of registering two stat tracers

Suren Baghdasaryan (1):
staging: android: ashmem: Disallow ashmem memory from being remapped

Takashi Iwai (5):
ALSA: hda: Use scnprintf() for printing texts for sysfs/procfs
ALSA: sh: Fix compile warning wrt const
ALSA: rawmidi: Avoid bit fields for state flags
ALSA: seq: Avoid concurrent access to queue flags
ALSA: seq: Fix concurrent access to queue current tick/time

Thomas Gleixner (2):
x86/mce/amd: Fix kobject lifetime
xen: Enable interrupts when calling _cond_resched()

Tiezhu Yang (1):
MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init()

Valdis Kletnieks (1):
x86/vdso: Provide missing include file

Vasily Averin (1):
trigger_next should increase position index

Vasily Gorbik (1):
s390/ftrace: generate traced function stack frame

Vincenzo Frascino (1):
ARM: 8951/1: Fix Kexec compilation issue.

Vladimir Oltean (1):
gianfar: Fix TX timestamping with a stacked DSA driver

Wenwen Wang (2):
ecryptfs: fix a memory leak bug in parse_tag_1_packet()
ecryptfs: fix a memory leak bug in ecryptfs_init_messaging()

Will Deacon (1):
iommu/arm-smmu-v3: Use WRITE_ONCE() when changing validity of an STE

YueHaibing (1):
drm/nouveau: Fix copy-paste error in nouveau_fence_wait_uevent_handler

Yunfeng Ye (1):
reiserfs: prevent NULL pointer dereference in reiserfs_insert_item()

Zenghui Yu (1):
irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL

Zhihao Cheng (1):
ubifs: Fix deadlock in concurrent bulk-read and writepage

Zhiqiang Liu (1):
brd: check and limit max_part par

wangyan (1):
ocfs2: fix a NULL pointer dereference when call ocfs2_update_inode_fsync_trans()

yu kuai (1):
drm/amdgpu: remove 4 set but not used variable in amdgpu_atombios_get_connector_info_from_object_table

zhangyi (F) (4):
jbd2: move the clearing of b_modified flag to the journal_unmap_buffer()
jbd2: do not clear the BH_Mapped flag when forgetting a metadata buffer ext4, jbd2: ensure panic when aborting with zero errno
jbd2: switch to use jbd2_journal_abort() when failed to submit the commit record

author maintainer
#1 lore raw
Makefile +1 -1
index 89f09ef4c552..9118ca43acb4 100644
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 214
+SUBLEVEL = 215
 EXTRAVERSION =
 NAME = Blurry Fish Butt
 
arch/arm/Kconfig +1 -1
index 2ba69df49cf8..45f2a5930379 100644
@@ -2000,7 +2000,7 @@ config XIP_PHYS_ADDR
 config KEXEC
 	bool "Kexec system call (EXPERIMENTAL)"
 	depends on (!SMP || PM_SLEEP_SMP)
-	depends on !CPU_V7M
+	depends on MMU
 	select KEXEC_CORE
 	help
 	  kexec is a system call that implements the ability to shutdown your
arch/arm/boot/dts/r8a7779.dtsi +8 -0
index 6afa909865b5..8636e2321ab7 100644
@@ -63,6 +63,14 @@
 		      <0xf0000100 0x100>;
 	};
 
+	timer@f0000200 {
+		compatible = "arm,cortex-a9-global-timer";
+		reg = <0xf0000200 0x100>;
+		interrupts = <GIC_PPI 11
+			(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
+		clocks = <&cpg_clocks R8A7779_CLK_ZS>;
+	};
+
 	timer@f0000600 {
 		compatible = "arm,cortex-a9-twd-timer";
 		reg = <0xf0000600 0x20>;
arch/microblaze/kernel/cpu/cache.c +2 -1
index 0bde47e4fa69..dcba53803fa5 100644
@@ -92,7 +92,8 @@ static inline void __disable_dcache_nomsr(void)
 #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size)	\
 do {									\
 	int align = ~(cache_line_length - 1);				\
-	end = min(start + cache_size, end);				\
+	if (start <  UINT_MAX - cache_size)				\
+		end = min(start + cache_size, end);			\
 	start &= align;							\
 } while (0)
 
arch/mips/loongson64/loongson-3/platform.c +3 -0
index 25a97cc0ee33..0db4cc3196eb 100644
@@ -31,6 +31,9 @@ static int __init loongson3_platform_init(void)
 			continue;
 
 		pdev = kzalloc(sizeof(struct platform_device), GFP_KERNEL);
+		if (!pdev)
+			return -ENOMEM;
+
 		pdev->name = loongson_sysconf.sensors[i].name;
 		pdev->id = loongson_sysconf.sensors[i].id;
 		pdev->dev.platform_data = &loongson_sysconf.sensors[i];
arch/s390/include/asm/timex.h +1 -1
index dcb6312a0b91..ec94e8812283 100644
@@ -82,7 +82,7 @@ static inline void get_tod_clock_ext(char *clk)
 
 static inline unsigned long long get_tod_clock(void)
 {
-	unsigned char clk[STORE_CLOCK_EXT_SIZE];
+	char clk[STORE_CLOCK_EXT_SIZE];
 
 	get_tod_clock_ext(clk);
 	return *((unsigned long long *)&clk[1]);
arch/s390/kernel/mcount.S +14 -1
index 6c1c7d399bf9..78ba14546e00 100644
@@ -23,6 +23,12 @@ ENTRY(ftrace_stub)
 #define STACK_PTREGS	  (STACK_FRAME_OVERHEAD)
 #define STACK_PTREGS_GPRS (STACK_PTREGS + __PT_GPRS)
 #define STACK_PTREGS_PSW  (STACK_PTREGS + __PT_PSW)
+#ifdef __PACK_STACK
+/* allocate just enough for r14, r15 and backchain */
+#define TRACED_FUNC_FRAME_SIZE	24
+#else
+#define TRACED_FUNC_FRAME_SIZE	STACK_FRAME_OVERHEAD
+#endif
 
 ENTRY(_mcount)
 	BR_EX	%r14
@@ -34,9 +40,16 @@ ENTRY(ftrace_caller)
 #ifndef CC_USING_HOTPATCH
 	aghi	%r0,MCOUNT_RETURN_FIXUP
 #endif
-	aghi	%r15,-STACK_FRAME_SIZE
+	# allocate stack frame for ftrace_caller to contain traced function
+	aghi	%r15,-TRACED_FUNC_FRAME_SIZE
 	stg	%r1,__SF_BACKCHAIN(%r15)
+	stg	%r0,(__SF_GPRS+8*8)(%r15)
+	stg	%r15,(__SF_GPRS+9*8)(%r15)
+	# allocate pt_regs and stack frame for ftrace_trace_function
+	aghi	%r15,-STACK_FRAME_SIZE
 	stg	%r1,(STACK_PTREGS_GPRS+15*8)(%r15)
+	aghi	%r1,-TRACED_FUNC_FRAME_SIZE
+	stg	%r1,__SF_BACKCHAIN(%r15)
 	stg	%r0,(STACK_PTREGS_PSW+8)(%r15)
 	stmg	%r2,%r14,(STACK_PTREGS_GPRS+2*8)(%r15)
 #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES
arch/sh/include/cpu-sh2a/cpu/sh7269.h +9 -2
index 2a0ca8780f0d..e4caddd443da 100644
@@ -79,8 +79,15 @@ enum {
 	GPIO_FN_WDTOVF,
 
 	/* CAN */
-	GPIO_FN_CTX1, GPIO_FN_CRX1, GPIO_FN_CTX0, GPIO_FN_CTX0_CTX1,
-	GPIO_FN_CRX0, GPIO_FN_CRX0_CRX1, GPIO_FN_CRX0_CRX1_CRX2,
+	GPIO_FN_CTX2, GPIO_FN_CRX2,
+	GPIO_FN_CTX1, GPIO_FN_CRX1,
+	GPIO_FN_CTX0, GPIO_FN_CRX0,
+	GPIO_FN_CTX0_CTX1, GPIO_FN_CRX0_CRX1,
+	GPIO_FN_CTX0_CTX1_CTX2, GPIO_FN_CRX0_CRX1_CRX2,
+	GPIO_FN_CTX2_PJ21, GPIO_FN_CRX2_PJ20,
+	GPIO_FN_CTX1_PJ23, GPIO_FN_CRX1_PJ22,
+	GPIO_FN_CTX0_CTX1_PJ23, GPIO_FN_CRX0_CRX1_PJ22,
+	GPIO_FN_CTX0_CTX1_CTX2_PJ21, GPIO_FN_CRX0_CRX1_CRX2_PJ20,
 
 	/* DMAC */
 	GPIO_FN_TEND0, GPIO_FN_DACK0, GPIO_FN_DREQ0,
arch/x86/entry/vdso/vdso32-setup.c +1 -0
index 3f9d1a83891a..50c1f77cab15 100644
@@ -10,6 +10,7 @@
 #include <linux/smp.h>
 #include <linux/kernel.h>
 #include <linux/mm_types.h>
+#include <linux/elf.h>
 
 #include <asm/processor.h>
 #include <asm/vdso.h>
arch/x86/include/asm/cpufeatures.h +1 -0
index 94491e4d21a7..01ec126c5969 100644
@@ -301,6 +301,7 @@
 /* Intel-defined CPU features, CPUID level 0x00000007:0 (ecx), word 16 */
 #define X86_FEATURE_PKU		(16*32+ 3) /* Protection Keys for Userspace */
 #define X86_FEATURE_OSPKE	(16*32+ 4) /* OS Protection Keys Enable */
+#define X86_FEATURE_RDPID	(16*32+ 22) /* RDPID instruction */
 
 /* AMD-defined CPU features, CPUID level 0x80000007 (ebx), word 17 */
 #define X86_FEATURE_OVERFLOW_RECOV (17*32+0) /* MCA overflow recovery support */
arch/x86/include/asm/vgtod.h +6 -1
index f556c4843aa1..51e7533bbf79 100644
@@ -83,8 +83,13 @@ static inline unsigned int __getcpu(void)
 	 * works on all CPUs.  This is volatile so that it orders
 	 * correctly wrt barrier() and to keep gcc from cleverly
 	 * hoisting it out of the calling function.
+	 *
+	 * If RDPID is available, use it.
 	 */
-	asm volatile ("lsl %1,%0" : "=r" (p) : "r" (__PER_CPU_SEG));
+	alternative_io ("lsl %[p],%[seg]",
+			".byte 0xf3,0x0f,0xc7,0xf8", /* RDPID %eax/rax */
+			X86_FEATURE_RDPID,
+			[p] "=a" (p), [seg] "r" (__PER_CPU_SEG));
 
 	return p;
 }
arch/x86/kernel/cpu/mcheck/mce_amd.c +11 -6
index 2116176c1721..37f5c2608844 100644
@@ -560,9 +560,12 @@ static const struct sysfs_ops threshold_ops = {
 	.store			= store,
 };
 
+static void threshold_block_release(struct kobject *kobj);
+
 static struct kobj_type threshold_ktype = {
 	.sysfs_ops		= &threshold_ops,
 	.default_attrs		= default_attrs,
+	.release		= threshold_block_release,
 };
 
 static int allocate_threshold_blocks(unsigned int cpu, unsigned int bank,
@@ -765,8 +768,12 @@ static int threshold_create_device(unsigned int cpu)
 	return err;
 }
 
-static void deallocate_threshold_block(unsigned int cpu,
-						 unsigned int bank)
+static void threshold_block_release(struct kobject *kobj)
+{
+	kfree(to_block(kobj));
+}
+
+static void deallocate_threshold_block(unsigned int cpu, unsigned int bank)
 {
 	struct threshold_block *pos = NULL;
 	struct threshold_block *tmp = NULL;
@@ -776,13 +783,11 @@ static void deallocate_threshold_block(unsigned int cpu,
 		return;
 
 	list_for_each_entry_safe(pos, tmp, &head->blocks->miscj, miscj) {
-		kobject_put(&pos->kobj);
 		list_del(&pos->miscj);
-		kfree(pos);
+		kobject_put(&pos->kobj);
 	}
 
-	kfree(per_cpu(threshold_banks, cpu)[bank]->blocks);
-	per_cpu(threshold_banks, cpu)[bank]->blocks = NULL;
+	kobject_put(&head->blocks->kobj);
 }
 
 static void __threshold_remove_blocks(struct threshold_bank *b)
arch/x86/kvm/cpuid.c +6 -1
index f4795f5c579d..f876414ca8a3 100644
@@ -267,13 +267,18 @@ static int __do_cpuid_ent_emulated(struct kvm_cpuid_entry2 *entry,
 {
 	switch (func) {
 	case 0:
-		entry->eax = 1;		/* only one leaf currently */
+		entry->eax = 7;
 		++*nent;
 		break;
 	case 1:
 		entry->ecx = F(MOVBE);
 		++*nent;
 		break;
+	case 7:
+		entry->flags |= KVM_CPUID_FLAG_SIGNIFCANT_INDEX;
+		if (index == 0)
+			entry->ecx = F(RDPID);
+		++*nent;
 	default:
 		break;
 	}
arch/x86/kvm/emulate.c +21 -1
index ffbdd201c1f1..767be5e61913 100644
@@ -3519,6 +3519,16 @@ static int em_cwd(struct x86_emulate_ctxt *ctxt)
 	return X86EMUL_CONTINUE;
 }
 
+static int em_rdpid(struct x86_emulate_ctxt *ctxt)
+{
+	u64 tsc_aux = 0;
+
+	if (ctxt->ops->get_msr(ctxt, MSR_TSC_AUX, &tsc_aux))
+		return emulate_gp(ctxt, 0);
+	ctxt->dst.val = tsc_aux;
+	return X86EMUL_CONTINUE;
+}
+
 static int em_rdtsc(struct x86_emulate_ctxt *ctxt)
 {
 	u64 tsc = 0;
@@ -4379,10 +4389,20 @@ static const struct opcode group8[] = {
 	F(DstMem | SrcImmByte | Lock | PageTable,	em_btc),
 };
 
+/*
+ * The "memory" destination is actually always a register, since we come
+ * from the register case of group9.
+ */
+static const struct gprefix pfx_0f_c7_7 = {
+	N, N, N, II(DstMem | ModRM | Op3264 | EmulateOnUD, em_rdpid, rdtscp),
+};
+
+
 static const struct group_dual group9 = { {
 	N, I(DstMem64 | Lock | PageTable, em_cmpxchg8b), N, N, N, N, N, N,
 }, {
-	N, N, N, N, N, N, N, N,
+	N, N, N, N, N, N, N,
+	GP(0, &pfx_0f_c7_7),
 } };
 
 static const struct opcode group11[] = {
arch/x86/kvm/lapic.c +3 -1
index ce8c4ae25c15..078b2176f2a2 100644
@@ -536,9 +536,11 @@ static inline bool pv_eoi_enabled(struct kvm_vcpu *vcpu)
 static bool pv_eoi_get_pending(struct kvm_vcpu *vcpu)
 {
 	u8 val;
-	if (pv_eoi_get_user(vcpu, &val) < 0)
+	if (pv_eoi_get_user(vcpu, &val) < 0) {
 		apic_debug("Can't read EOI MSR value: 0x%llx\n",
 			   (unsigned long long)vcpu->arch.pv_eoi.msr_val);
+		return false;
+	}
 	return val & 0x1;
 }
 
arch/x86/kvm/vmx.c +88 -14

128 lines not on this page · raw message

arch/x86/kvm/vmx/vmx.c deleted +0 -8033

2,634 lines not on this page · raw message

arch/x86/platform/efi/efi.c +7 -6
index 4bc352fc08f1..105872617be0 100644

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

drivers/acpi/acpica/dsfield.c +1 -1
index 20de148594fd..d56cbcda37c1 100644

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

drivers/acpi/acpica/dswload.c +21 -0
index 097188a6b1c1..35f1d7657927 100644

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

drivers/base/dd.c +4 -1
index 1dffb018a7fe..04a923186081 100644

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

drivers/block/brd.c +20 -2
index 1914c63ca8b1..58c1138ad5e1 100644

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

drivers/block/floppy.c +5 -2
index a12a163c6e6d..58ce577ba6d7 100644

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

drivers/clk/qcom/clk-rcg2.c +3 -0
index 350a01f74870..8b549ece9f13 100644

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

drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +2 -17
index 3e90ddcbb24a..d799927d3a5d 100644

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

drivers/gpu/drm/gma500/framebuffer.c +6 -2
index 2eaf1b31c7bd..ef60bb197195 100644

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

drivers/gpu/drm/nouveau/nouveau_fence.c +1 -1
index 574c36b492ee..fccec23731e2 100644

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

drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c +2 -0
index 01803c0679b6..d012df9fb9df 100644

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

drivers/gpu/drm/radeon/radeon_display.c +2 -0
index 446d99062306..4572bfba017c 100644

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

drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +3 -1
index 1f013d45c9e9..0c7c3005594c 100644

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

drivers/hwmon/pmbus/ltc2978.c +2 -2
index 58b789c28b48..94eea2ac6251 100644

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

drivers/ide/cmd64x.c +3 -0
index b127ed60c733..9dde8390da09 100644

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

drivers/ide/serverworks.c +6 -0
index a97affca18ab..0f57d45484d1 100644

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

drivers/infiniband/ulp/isert/ib_isert.c +12 -0
index 32ef17e1aef8..d8adb586362c 100644

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

drivers/input/touchscreen/edt-ft5x06.c +7 -0
index 0b0f8c17f3f7..a9d97d577a7e 100644

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

drivers/iommu/arm-smmu-v3.c +2 -1
index eb9937225d64..6c10f307a1c9 100644

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

drivers/irqchip/irq-gic-v3-its.c +1 -1
index cf11d43ce241..d4ae43f71e72 100644

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

drivers/md/bcache/bset.h +2 -1
index b935839ab79c..f483041eed98 100644

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

drivers/media/i2c/mt9v032.c +8 -2
index a68ce94ee097..cacdab30fece 100644

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

drivers/media/platform/sti/bdisp/bdisp-hw.c +3 -3
index 052c932ac942..0792db43ce9d 100644

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

drivers/net/ethernet/cisco/enic/enic_main.c +1 -1
index 3c20d0dc9256..9b9793333816 100644

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

drivers/net/ethernet/freescale/gianfar.c +7 -3
index 2d61369f586f..37cc1f838dd8 100644

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

drivers/net/wan/ixp4xx_hss.c +2 -2
index e7bbdb7af53a..97968e6a6a4e 100644

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

drivers/net/wireless/b43legacy/main.c +3 -2
index afc1fb3e38df..bd35a702382f 100644

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

drivers/net/wireless/brcm80211/brcmfmac/sdio.c +1 -0
index 9954e641c943..8bb028f740fd 100644

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

drivers/net/wireless/hostap/hostap_ap.c +1 -1
index c995ace153ee..30171d4c4718 100644

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

drivers/net/wireless/ipw2x00/ipw2100.c +4 -3
index 36818c7f30b9..11cfc5822eb0 100644

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

drivers/net/wireless/ipw2x00/ipw2200.c +3 -2
index ed0adaf1eec4..1e08f94dc4da 100644

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

drivers/net/wireless/iwlegacy/3945-mac.c +3 -2
index af1b3e6839fa..775f5e7791d4 100644

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

drivers/net/wireless/iwlegacy/4965-mac.c +3 -2
index 04b0349a6ad9..b1925bdb1171 100644

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

drivers/net/wireless/iwlegacy/common.c +1 -1
index 887114582583..544ab3750ea6 100644

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

drivers/net/wireless/orinoco/orinoco_usb.c +2 -1
index e434f7ca8ff3..3c5baccd6792 100644

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

drivers/net/wireless/realtek/rtlwifi/pci.c +6 -4
index b51815eccdb3..17a07d6b961c 100644

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

drivers/nfc/port100.c +1 -1
index 87d509996704..3ffbed72adf7 100644

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

drivers/pci/setup-bus.c +16 -4
index 1723ac1b30e1..fe2865a0da39 100644

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

drivers/pinctrl/sh-pfc/pfc-sh7264.c +4 -5
index e1c34e19222e..3ddb9565ed80 100644

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

drivers/pinctrl/sh-pfc/pfc-sh7269.c +27 -12
index cfdb4fc177c3..3df0c0d139d0 100644

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

drivers/regulator/rk808-regulator.c +1 -1
index d86a3dcd61e2..b96d50a03022 100644

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

drivers/remoteproc/remoteproc_core.c +1 -1
index 4f7ce0097191..b76ef5244b65 100644

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

drivers/scsi/aic7xxx/aic7xxx_core.c +1 -1
index 64ab9eaec428..def3208dd290 100644

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

drivers/scsi/iscsi_tcp.c +4 -0
index fccb8991bd5b..64a49dccb0b6 100644

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

drivers/scsi/qla2xxx/qla_os.c +13 -6
index 8975baab73e5..daafb60fa13e 100644

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

drivers/scsi/scsi_transport_iscsi.c +23 -3
index ab32e6073642..20cf01d6ded7 100644

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

drivers/soc/tegra/fuse/tegra-apbmisc.c +1 -1
index 5b18f6ffa45c..cd61c883c19f 100644

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

drivers/staging/android/ashmem.c +28 -0
index b4c425383f99..d6efd07146ce 100644

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

drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +2 -2
index ec90f2781085..2a6192e08b75 100644

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

drivers/staging/vt6656/dpc.c +1 -1
index e6367ed3b0bb..4fc6f00666ca 100644

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

drivers/target/iscsi/iscsi_target.c +5 -11
index 07d9384bce94..cbb4414edd71 100644

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

drivers/tty/serial/imx.c +1 -1
index b59d0dafefab..ca69e2ca6b56 100644

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

drivers/tty/vt/vt_ioctl.c +33 -42

75 lines not on this page · raw message

drivers/uio/uio_dmem_genirq.c +4 -2
index e1134a4d97f3..a00b4aee6c79 100644

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

drivers/usb/core/hub.c +0 -5
index 75a07b73a82b..4c302424c97a 100644

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

drivers/usb/core/quirks.c +3 -0
index 19e819aa2419..ad8307140df8 100644

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

drivers/usb/gadget/udc/gr_udc.c +9 -7
index b9429bc42511..594639e5cbf8 100644

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

drivers/usb/host/xhci-pci.c +3 -1
index df86ea308415..5af57afb4e56 100644

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

drivers/usb/storage/uas.c +22 -1
index a7cc0bc68deb..b38d9f162123 100644

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

drivers/xen/preempt.c +3 -1
index 08cb419eb4e6..5f6b77ea34fb 100644

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

fs/btrfs/disk-io.c +1 -0
index 2fb533233e8e..656f0b768185 100644

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

fs/btrfs/extent_map.c +11 -0
index 84fb56d5c018..3818b65b0682 100644

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

fs/btrfs/ordered-data.c +6 -1
index 8c27292ea9ea..2eadc8f8c9ef 100644

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

fs/btrfs/super.c +2 -0
index df211bad255c..404051bf5cba 100644

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

fs/ecryptfs/crypto.c +4 -2
index f246f1760ba2..83e9f6272bfb 100644

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

fs/ecryptfs/keystore.c +1 -1
index 20632ee51ae5..b272b778aa85 100644

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

fs/ecryptfs/messaging.c +1 -0
index 4f457d5c4933..26464f9d9b76 100644

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

fs/ext4/dir.c +8 -6
index 209018f08dfd..7b626e942987 100644

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

fs/ext4/ext4.h +5 -2
index b6e25d771eea..00ab96311487 100644

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

fs/ext4/inode.c +13 -1
index 271d8d9d0598..d1daac8d81f3 100644

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

fs/ext4/namei.c +8 -0
index 712bf332e394..49e0d97b2ee7 100644

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

fs/jbd2/checkpoint.c +1 -1
index 4d5a5a4cc017..addb0784dd1c 100644

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

fs/jbd2/commit.c +27 -23

50 lines not on this page · raw message

fs/jbd2/journal.c +9 -12
index 9398d1b70545..d62435897d0d 100644

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

fs/jbd2/transaction.c +6 -4
index c34433432d47..6457023d8fac 100644

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

fs/nfs/Kconfig +1 -1
index b1daeafbea92..c3428767332c 100644

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

fs/ocfs2/journal.h +5 -3
index f4cd3c3e9fb7..0a4d2cbf512f 100644

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

fs/reiserfs/stree.c +2 -1
index 24cbe013240f..e3a4cbad9620 100644

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

fs/reiserfs/super.c +1 -1
index 519bf410e65b..f9796fd51531 100644

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

fs/ubifs/file.c +3 -2
index b895af7d8d80..e6d0a7df341d 100644

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

include/linux/list_nulls.h +4 -4
index 444d2b1313bd..703928e4fd42 100644

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

include/linux/rculist_nulls.h +4 -4
index 1c33dd7da4a7..f35dc0a1d6eb 100644

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

include/scsi/iscsi_proto.h +0 -1
index 1a2ae0862e23..c1260d80ef30 100644

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

include/sound/rawmidi.h +3 -3
index 3b91ad5d5115..27b2c653d2f0 100644

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

ipc/sem.c +2 -4
index 9862c3d1c26d..9963ed351b43 100644

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

kernel/padata.c +12 -33

45 lines not on this page · raw message

kernel/trace/trace_events_trigger.c +3 -2
index 8be66a2b0cac..6524920c6ebc 100644

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

kernel/trace/trace_stat.c +9 -10
index 6cf935316769..a2081a7f0c2c 100644

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

lib/scatterlist.c +1 -1
index 0b86b7992f93..1875c09eede9 100644

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

net/netfilter/xt_bpf.c +3 -0
index dffee9d47ec4..7b993f25aab9 100644

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

scripts/kconfig/confdata.c +1 -1
index 138d7f100f7e..4216940e875d 100644

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

security/selinux/avc.c +1 -1
index 52f3c550abcc..f3c473791b69 100644

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

sound/core/seq/seq_clientmgr.c +2 -2
index 331a2b00e53f..4c31db1246c3 100644

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

sound/core/seq/seq_queue.c +22 -7
index 1a6dc4ff44a6..ea1aa0796276 100644

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

sound/core/seq/seq_timer.c +10 -3
index c526201fd0df..adc820f874ee 100644

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

sound/core/seq/seq_timer.h +2 -1
index 88dfb71805ae..6221a43c307a 100644

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

sound/pci/hda/hda_codec.c +1 -1
index ad0b23a21bc8..16664b07b553 100644

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

sound/pci/hda/hda_eld.c +1 -1
index 563984dd2562..d469c76b5e92 100644

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

sound/pci/hda/hda_sysfs.c +2 -2
index 9739fce9e032..f3ac19d33bd4 100644

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

sound/pci/hda/patch_conexant.c +1 -0
index 05e745e2f427..3150ddfbdb25 100644

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

sound/sh/aica.c +2 -2
index ad3d9ae38034..dd601b39f69e 100644

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

sound/soc/atmel/Kconfig +2 -0
index 2d30464b81ce..d7b471c69f4f 100644

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

sound/usb/quirks.c +1 -0
index 5e50386c8ebb..b7a7bf0e566c 100644

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

sound/usb/usx2y/usX2Yhwdep.c +1 -1
index 0b34dbc8f302..7dcb33d3886b 100644

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

tools/lib/api/fs/fs.c +3 -1
index 459599d1b6c4..58f05748dd39 100644

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

tools/usb/usbip/src/usbip_network.c +24 -16
index b4c37e76a6e0..187dfaa67d0a 100644

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

tools/usb/usbip/src/usbip_network.h +3 -9
index c1e875cf1078..573fa839b66b 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.