Linux 4.9.215
Greg KH
maintainerI'm announcing the release of the 4.9.215 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.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/arm64/include/asm/alternative.h | 32 arch/microblaze/kernel/cpu/cache.c | 3 arch/mips/loongson64/loongson-3/platform.c | 3 arch/powerpc/kernel/eeh_driver.c | 6 arch/powerpc/kernel/pci_dn.c | 15 arch/powerpc/platforms/powernv/pci-ioda.c | 19 arch/powerpc/platforms/powernv/pci.c | 4 arch/s390/include/asm/page.h | 2 arch/s390/include/asm/timex.h | 2 arch/s390/kernel/mcount.S | 15 arch/sh/include/cpu-sh2a/cpu/sh7269.h | 11 arch/sparc/kernel/vmlinux.lds.S | 6 arch/x86/entry/vdso/vdso32-setup.c | 1 arch/x86/events/amd/core.c | 1 arch/x86/events/intel/ds.c | 2 arch/x86/include/asm/cpufeatures.h | 1 arch/x86/include/asm/vgtod.h | 7 arch/x86/kernel/cpu/mcheck/mce_amd.c | 50 arch/x86/kernel/sysfb_simplefb.c | 2 arch/x86/kvm/cpuid.c | 7 arch/x86/kvm/emulate.c | 22 arch/x86/kvm/irq_comm.c | 2 arch/x86/kvm/lapic.c | 4 arch/x86/kvm/vmx.c | 102 arch/x86/kvm/vmx/vmx.c | 8033 ---------------- arch/x86/lib/x86-opcode-map.txt | 2 arch/x86/platform/efi/efi.c | 13 drivers/acpi/acpica/dsfield.c | 2 drivers/acpi/acpica/dswload.c | 21 drivers/ata/ahci.c | 7 drivers/ata/libata-core.c | 21 drivers/base/dd.c | 5 drivers/base/platform.c | 12 drivers/block/brd.c | 22 drivers/block/floppy.c | 7 drivers/clk/qcom/clk-rcg2.c | 3 drivers/devfreq/Kconfig | 3 drivers/devfreq/event/Kconfig | 2 drivers/gpio/gpio-grgpio.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c | 19 drivers/gpu/drm/gma500/framebuffer.c | 8 drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 8 drivers/gpu/drm/nouveau/nouveau_fence.c | 2 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c | 2 drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c | 21 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/sw/rxe/rxe_verbs.h | 2 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/irqchip/irq-gic-v3.c | 9 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/fsl_ucc_hdlc.c | 5 drivers/net/wan/ixp4xx_hss.c | 4 drivers/net/wireless/broadcom/b43legacy/main.c | 5 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 1 drivers/net/wireless/intel/ipw2x00/ipw2100.c | 7 drivers/net/wireless/intel/ipw2x00/ipw2200.c | 5 drivers/net/wireless/intel/iwlegacy/3945-mac.c | 5 drivers/net/wireless/intel/iwlegacy/4965-mac.c | 5 drivers/net/wireless/intel/iwlegacy/common.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 4 drivers/net/wireless/intersil/hostap/hostap_ap.c | 2 drivers/net/wireless/intersil/orinoco/orinoco_usb.c | 3 drivers/net/wireless/realtek/rtlwifi/pci.c | 10 drivers/nfc/port100.c | 2 drivers/pci/iov.c | 1 drivers/pinctrl/intel/pinctrl-baytrail.c | 8 drivers/pinctrl/sh-pfc/pfc-sh7264.c | 9 drivers/pinctrl/sh-pfc/pfc-sh7269.c | 39 drivers/pwm/pwm-omap-dmtimer.c | 7 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/greybus/audio_manager.c | 2 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/atmel_serial.c | 3 drivers/tty/serial/imx.c | 2 drivers/tty/synclink_gt.c | 18 drivers/tty/synclinkmp.c | 24 drivers/tty/vt/selection.c | 7 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/composite.c | 8 drivers/usb/gadget/udc/gr_udc.c | 16 drivers/usb/host/xhci-mem.c | 12 drivers/usb/host/xhci-pci.c | 4 drivers/usb/musb/omap2430.c | 2 drivers/usb/storage/uas.c | 23 drivers/video/fbdev/pxa168fb.c | 6 drivers/vme/bridges/vme_fake.c | 30 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/cifs/connect.c | 6 fs/ecryptfs/crypto.c | 6 fs/ecryptfs/keystore.c | 2 fs/ecryptfs/messaging.c | 1 fs/ext4/dir.c | 14 fs/ext4/ext4.h | 14 fs/ext4/inode.c | 24 fs/ext4/migrate.c | 27 fs/ext4/mmp.c | 12 fs/ext4/namei.c | 8 fs/ext4/super.c | 20 fs/jbd2/checkpoint.c | 2 fs/jbd2/commit.c | 50 fs/jbd2/journal.c | 21 fs/jbd2/transaction.c | 10 fs/ocfs2/journal.h | 8 fs/orangefs/orangefs-debugfs.c | 1 fs/reiserfs/stree.c | 3 fs/reiserfs/super.c | 2 fs/udf/super.c | 22 include/linux/libata.h | 1 include/linux/list_nulls.h | 8 include/linux/rculist_nulls.h | 8 include/media/v4l2-device.h | 12 include/scsi/iscsi_proto.h | 1 include/sound/rawmidi.h | 6 ipc/sem.c | 6 kernel/cpu.c | 13 kernel/padata.c | 45 kernel/trace/ftrace.c | 5 kernel/trace/trace_events_trigger.c | 5 kernel/trace/trace_stat.c | 31 lib/scatterlist.c | 2 lib/stackdepot.c | 8 net/netfilter/xt_bpf.c | 3 net/netfilter/xt_hashlimit.c | 10 net/sched/cls_flower.c | 1 net/sched/cls_matchall.c | 1 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/hda/hdmi_chmap.c | 2 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/objtool/arch/x86/lib/x86-opcode-map.txt | 2 tools/usb/usbip/src/usbip_network.c | 40 tools/usb/usbip/src/usbip_network.h | 12 174 files changed, 1102 insertions(+), 8589 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
Alexander Potapenko (1):
lib/stackdepot.c: fix global out-of-bounds in stack_slabs
Allen Pais (1):
scsi: qla2xxx: fix a potential NULL pointer dereference
Andreas Dilger (1):
ext4: don't assume that mmp_nodename/bdevname have NUL
Andrei Otcheretianski (1):
iwlwifi: mvm: Fix thermal zone registration
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 (2):
wan: ixp4xx_hss: fix compile-testing on 64-bit
vme: bridges: reduce stack usage
Arvind Sankar (2):
ALSA: usb-audio: Apply sample rate quirk for Audioengine D1 x86/sysfb: Fix check for bad VRAM size
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 (2):
drm/nouveau/gr/gk20a,gm200-: add terminators to method lists read from fw drm/nouveau/disp/nv50-: prevent oops when no channel method map provided
Bibby Hsieh (1):
drm/mediatek: handle events when enabling/disabling crtc
Borislav Petkov (1):
x86/mce/amd: Publish the bank pointer only after setup has succeeded
Brandon Maier (1):
remoteproc: Initialize rproc_class before use
Chanwoo Choi (1):
PM / devfreq: rk3399_dmc: Add COMPILE_TEST and HAVE_ARM_SMCCC dependency
Chen Zhou (1):
ASoC: atmel: fix build error with CONFIG_SND_ATMEL_SOC_DMA=m
Christophe JAILLET (1):
pxa168fb: Fix the function used to release some memory in an error handling path
Colin Ian King (2):
driver core: platform: fix u32 greater or equal to zero comparison
iwlegacy: ensure loop counter addr does not wrap and cause an infinite loop
Coly Li (1):
bcache: explicity type cast in bset_bkey_last()
Cong Wang (1):
netfilter: xt_hashlimit: limit the max size of hashtable
Dan Carpenter (4):
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()
staging: greybus: use after free in gb_audio_manager_remove_all()
Daniel Vetter (1):
radeon: insert 10ms sleep in dce5_crtc_load_lut
David S. Miller (1):
sparc: Add .exit.data section.
David Sterba (2):
btrfs: log message when rw remount is attempted with unclean tree-log
btrfs: print message when tree-log replay starts
Davide Caratti (2):
net/sched: matchall: add missing validation of TCA_MATCHALL_FLAGS net/sched: flower: add missing validation of TCA_FLOWER_FLAGS
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 Biggers (2):
ext4: rename s_journal_flag_rwsem to s_writepages_rwsem
ext4: fix race between writepages and enabling EXT4_EXTENTS_FL
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 (4):
pinctrl: sh-pfc: sh7264: Fix CAN function GPIOs
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.9.215
Hans de Goede (1):
pinctrl: baytrail: Do not clear IRQ flags on direct-irq enabled pins
Herbert Xu (1):
padata: Remove broken queue flushing
Ioanna Alifieraki (1):
Revert "ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()"
Jack Pham (1):
usb: gadget: composite: Fix bMaxPower for SuperSpeedPlus
Jaihind Yadav (1):
selinux: ensure we cleanup the internal AVC counters on error in avc_update()
Jan Kara (4):
ext4: fix checksum errors with indexed dirs
reiserfs: Fix spurious unlock in reiserfs_fill_super() error handling
udf: Fix free space reporting for metadata and virtual partitions
ext4: fix mount failure with quota configured as module
Jann Horn (1):
netfilter: xt_bpf: add overflow checks
Jia-Ju Bai (4):
gpio: gpio-grgpio: fix possible sleep-in-atomic-context bugs in grgpio_irq_map/unmap()
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()
Jiewei Ke (1):
RDMA/rxe: Fix error type of mmap_offset
Jiri Slaby (1):
vt: selection, handle pending signals in paste_selection
Kai Li (1):
jbd2: clear JBD2_ABORT flag before journal_reset to update log tail info when load journal
Kan Liang (1):
perf/x86/intel: Fix inaccurate period in context switch for auto-reload
Kim Phillips (1):
perf/x86/amd: Add missing L2 misses event spec to AMD Family 17h's event map
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
Luis Henriques (1):
tracing: Fix tracing_stat return values in error handling paths
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().
Marc Zyngier (1):
irqchip/gic-v3: Only provision redistributors that are enabled in ACPI
Masahiro Yamada (1):
kconfig: fix broken dependency in randconfig-generated .config
Masami Hiramatsu (1):
x86/decoder: Add TEST opcode to Group3-2
Mathias Nyman (2):
xhci: Force Maximum Packet size for Full-speed bulk devices to valid range.
xhci: apply XHCI_PME_STUCK_QUIRK to Intel Comet Lake platforms
Miaohe Lin (2):
KVM: x86: don't notify userspace IOAPIC on edge-triggered interrupt EOI
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 (9):
s390/time: Fix clk type in get_tod_clock
media: v4l2-device.h: Explicitly compare grp{id,mask} to zero in v4l2_device macros
ALSA: usx2y: Adjust indentation in snd_usX2Y_hwdep_dsp_status
scsi: aic7xxx: Adjust indentation in ahc_find_syncrate
tty: synclinkmp: Adjust indentation in several functions
tty: synclink_gt: Adjust indentation in several functions
hostap: Adjust indentation in prism2_hostapd_add_sta lib/scatterlist.c: adjust indentation in __sg_alloc_table
s390/mm: Explicitly compare PAGE_DEFAULT_KEY against zero in storage_key_init_range
Navid Emamdoost (2):
PCI/IOV: Fix memory leak in pci_iov_add_virtfn() drm/vmwgfx: prevent memory leak in vmw_cmdbuf_res_add
Nick Black (1):
scsi: iscsi: Don't destroy session if there are outstanding connections
Nicolas Ferre (1):
tty/serial: atmel: manage shutdown in case of RS485 or ISO7816 mode
Oliver O'Halloran (2):
powerpc/powernv/iov: Ensure the pdn for VFs always contains a valid PE number powerpc/sriov: Remove VF eeh_dev state when disabling SR-IOV
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
Peter Zijlstra (1):
cpu/hotplug, stop_machine: Fix stop_machine vs hotplug order
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
Prabhakar Kushwaha (1):
ata: ahci: Add shutdown to freeze hardware resources of ahci
Qian Cai (1):
ext4: fix a data race in EXT4_I(inode)->i_disksize
Rasmus Villemoes (1):
net/wan/fsl_ucc_hdlc: reject muram offsets above 64K
Richard Dodd (1):
USB: Fix novation SourceControl XL after suspend
Ronnie Sahlberg (1):
cifs: fix NULL dereference in match_prepath
Sami Tolvanen (1):
arm64: fix alternatives with LLVM's integrated assembler
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
Simon Schwartz (1):
driver core: platform: Prevent resouce overflow from causing infinite loops
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
Theodore Ts'o (1):
ext4: improve explanation of a mount failure caused by a misconfigured kernel
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()
Tony Lindgren (1):
usb: musb: omap2430: Get rid of musb .set_vbus for omap2430 glue
Uwe Kleine-König (1):
pwm: omap-dmtimer: Remove PWM chip in .remove before making it unfunctional
Valdis Kletnieks (1):
x86/vdso: Provide missing include file
Vasily Averin (3):
ftrace: fpid_next() should increase position index trigger_next should increase position index help_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
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
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 214 +SUBLEVEL = 215 EXTRAVERSION = NAME = Roaring Lionus
arch/arm/Kconfig +1 -1
@@ -2020,7 +2020,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
@@ -67,6 +67,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/arm64/include/asm/alternative.h +21 -11
@@ -29,13 +29,16 @@ typedef void (*alternative_cb_t)(struct alt_instr *alt,void __init apply_alternatives_all (void );void apply_alternatives (void *start,size_t length); -#define ALTINSTR_ENTRY (feature,cb) \ +#define ALTINSTR_ENTRY (feature) \ " .word 661b - .\n"/* label */ \ - " .if " __stringify(cb) " == 0\n" \" .word 663f - .\n" /* new instruction */ \ -" .else\n" \ + " .hword " __stringify(feature) "\n" /* feature bit */ \ +" .byte 662b-661b\n" /* source len */ \ + " .byte 664f-663f\n" /* replacement len */ + +#define ALTINSTR_ENTRY_CB (feature, cb) \ + " .word 661b - .\n"/* label */ \ " .word " __stringify(cb) "- .\n" /* callback */ \ -" .endif\n" \ " .hword " __stringify(feature) "\n" /* feature bit */ \" .byte 662b-661b\n" /* source len */ \" .byte 664f-663f\n" /* replacement len */
@@ -56,15 +59,14 @@ void apply_alternatives(void *start, size_t length);* * Alternatives with callbacks do not generate replacement instructions. */ -#define __ALTERNATIVE_CFG (oldinstr, newinstr, feature, cfg_enabled, cb) \ +#define __ALTERNATIVE_CFG (oldinstr, newinstr, feature, cfg_enabled) \ ".if "__stringify(cfg_enabled)" == 1\n" \ "661:\n\t" \ oldinstr "\n" \ "662:\n" \ ".pushsection .altinstructions,\"a\"\n" \ - ALTINSTR_ENTRY(feature,cb) \ + ALTINSTR_ENTRY(feature) \ ".popsection\n" \ - " .if " __stringify(cb) " == 0\n" \ ".pushsection .altinstr_replacement, \"a\"\n" \ "663:\n\t" \ newinstr "\n" \
@@ -72,17 +74,25 @@ void apply_alternatives(void *start, size_t length);".popsection\n\t" \".org . - (664b-663b) + (662b-661b)\n\t" \".org . - (662b-661b) + (664b-663b)\n" \ -".else\n\t" \ + ".endif\n" + +#define __ALTERNATIVE_CFG_CB (oldinstr, feature, cfg_enabled, cb) \ + ".if "__stringify(cfg_enabled)" == 1\n" \ + "661:\n\t" \ + oldinstr "\n" \ + "662:\n" \ + ".pushsection .altinstructions,\"a\"\n" \ + ALTINSTR_ENTRY_CB(feature, cb) \ + ".popsection\n" \ "663:\n\t" \ "664:\n\t" \ -".endif\n" \ ".endif\n"#define _ALTERNATIVE_CFG (oldinstr, newinstr, feature, cfg, ...) \ - __ALTERNATIVE_CFG(oldinstr, newinstr, feature, IS_ENABLED(cfg), 0) + __ALTERNATIVE_CFG(oldinstr, newinstr, feature, IS_ENABLED(cfg))#define ALTERNATIVE_CB (oldinstr, cb) \ - __ALTERNATIVE_CFG(oldinstr, "NOT_AN_INSTRUCTION", ARM64_CB_PATCH, 1, cb) + __ALTERNATIVE_CFG_CB(oldinstr, ARM64_CB_PATCH, 1, cb)#else #include <asm/assembler.h>
arch/microblaze/kernel/cpu/cache.c +2 -1
@@ -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
@@ -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/powerpc/kernel/eeh_driver.c +0 -6
@@ -520,12 +520,6 @@ static void *eeh_rmv_device(void *data, void *userdata)pci_iov_remove_virtfn (edev->physfn, pdn->vf_index,0 ); edev->pdev =NULL ; - -/* -* We have to set the VF PE number to invalid one, which is -* required to plug the VF successfully. -*/ - pdn->pe_number =IODA_INVALID_PE ;#endif if (rmv_data)list_add (&edev->rmv_list, &rmv_data->edev_list);
arch/powerpc/kernel/pci_dn.c +14 -1
@@ -271,9 +271,22 @@ void remove_dev_pci_data(struct pci_dev *pdev)continue ;#ifdef CONFIG_EEH -/* Release EEH device for the VF */ +/* +* Release EEH state for this VF. The PCI core +* has already torn down the pci_dev for this VF, but +* we're responsible to removing the eeh_dev since it +* has the same lifetime as the pci_dn that spawned it. +*/ edev =pdn_to_eeh_dev (pdn);if (edev) { +/* +* We allocate pci_dn's for the totalvfs count, +* but only only the vfs that were activated +* have a configured PE. +*/ +if (edev->pe) +eeh_rmv_from_parent_pe (edev); + pdn->edev =NULL ;kfree (edev); }
arch/powerpc/platforms/powernv/pci-ioda.c +15 -4
@@ -1524,6 +1524,10 @@ static void pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs)/* Reserve PE for each VF */ for (vf_index =0 ; vf_index < num_vfs; vf_index++) { +int vf_devfn =pci_iov_virtfn_devfn (pdev, vf_index); +int vf_bus =pci_iov_virtfn_bus (pdev, vf_index); +struct pci_dn *vf_pdn; +if (pdn->m64_single_mode) pe_num = pdn->pe_num_map[vf_index];else
@@ -1536,13 +1540,11 @@ static void pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs) pe->pbus =NULL ; pe->parent_dev = pdev; pe->mve_number =-1 ; - pe->rid = (pci_iov_virtfn_bus (pdev, vf_index) <<8 ) | -pci_iov_virtfn_devfn (pdev, vf_index); + pe->rid = (vf_bus <<8 ) | vf_devfn;pe_info (pe,"VF %04d:%02d:%02d.%d associated with PE#%d\n" , hose->global_number, pdev->bus->number, -PCI_SLOT (pci_iov_virtfn_devfn (pdev, vf_index)), -PCI_FUNC (pci_iov_virtfn_devfn (pdev, vf_index)), pe_num); +PCI_SLOT (vf_devfn),PCI_FUNC (vf_devfn), pe_num);if (pnv_ioda_configure_pe (phb, pe)) {/* XXX What do we do here ? */
@@ -1556,6 +1558,15 @@ static void pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs)list_add_tail (&pe->list, &phb->ioda.pe_list);mutex_unlock (&phb->ioda.pe_list_mutex); +/* associate this pe to it's pdn */ +list_for_each_entry (vf_pdn, &pdn->parent->child_list, list) { +if (vf_pdn->busno == vf_bus && + vf_pdn->devfn == vf_devfn) { + vf_pdn->pe_number = pe_num; +break ; + } + } +pnv_pci_ioda2_setup_dma_pe (phb, pe); } }
arch/powerpc/platforms/powernv/pci.c +0 -4
@@ -856,16 +856,12 @@ void pnv_pci_dma_dev_setup(struct pci_dev *pdev)struct pnv_phb *phb = hose->private_data;#ifdef CONFIG_PCI_IOV struct pnv_ioda_pe *pe; -struct pci_dn *pdn;/* Fix the VF pdn PE number */ if (pdev->is_virtfn) { - pdn =pci_get_pdn (pdev); -WARN_ON (pdn->pe_number !=IODA_INVALID_PE );list_for_each_entry (pe, &phb->ioda.pe_list, list) {if (pe->rid == ((pdev->bus->number <<8 ) | (pdev->devfn &0xff ))) { - pdn->pe_number = pe->pe_number; pe->pdev = pdev;break ; }
arch/s390/include/asm/page.h +1 -1
@@ -35,7 +35,7 @@ void __storage_key_init_range(unsigned long start, unsigned long end);static inline void storage_key_init_range (unsigned long start,unsigned long end) { -if (PAGE_DEFAULT_KEY ) +if (PAGE_DEFAULT_KEY !=0 )__storage_key_init_range (start, end); }
arch/s390/include/asm/timex.h +1 -1
@@ -146,7 +146,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
@@ -24,6 +24,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
@@ -37,9 +43,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
@@ -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/sparc/kernel/vmlinux.lds.S +4 -2
@@ -151,12 +151,14 @@ SECTIONS } PERCPU_SECTION(SMP_CACHE_BYTES) -#ifdef CONFIG_JUMP_LABEL . = ALIGN(PAGE_SIZE); .exit.text : { EXIT_TEXT } -#endif + + .exit.data : { + EXIT_DATA + } . = ALIGN(PAGE_SIZE); __init_end = .;
arch/x86/entry/vdso/vdso32-setup.c +1 -0
@@ -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/events/amd/core.c +1 -0
@@ -239,6 +239,7 @@ static const u64 amd_f17h_perfmon_event_map[PERF_COUNT_HW_MAX] = [PERF_COUNT_HW_CPU_CYCLES] = 0x0076, [PERF_COUNT_HW_INSTRUCTIONS] = 0x00c0, [PERF_COUNT_HW_CACHE_REFERENCES] = 0xff60, + [PERF_COUNT_HW_CACHE_MISSES] = 0x0964, [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = 0x00c2, [PERF_COUNT_HW_BRANCH_MISSES] = 0x00c3, [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 0x0287,
arch/x86/events/intel/ds.c +2 -0
@@ -1326,6 +1326,8 @@ intel_pmu_save_and_restart_reload(struct perf_event *event, int count) old = ((s64)(prev_raw_count << shift) >> shift);local64_add (new - old + count * period, &event->count); +local64_set (&hwc->period_left, -new); +perf_event_update_userpage (event);return 0 ;
arch/x86/include/asm/cpufeatures.h +1 -0
@@ -305,6 +305,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
@@ -89,8 +89,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. */ - asmvolatile ("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 +27 -23
105 lines not on this page · raw message
arch/x86/kernel/sysfb_simplefb.c +1 -1
@@ -94,11 +94,11 @@ __init int create_simplefb(const struct screen_info *si,if (si->orig_video_isVGA ==VIDEO_TYPE_VLFB ) size <<=16 ; length = mode->height * mode->stride; - length =PAGE_ALIGN (length);if (length > size) {printk (KERN_WARNING "sysfb: VRAM smaller than advertised\n" );return -EINVAL ; } + length =PAGE_ALIGN (length);/* setup IORESOURCE_MEM as framebuffer memory */ memset (&res,0 ,sizeof (res));
arch/x86/kvm/cpuid.c +6 -1
@@ -279,13 +279,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
@@ -3531,6 +3531,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 ;
@@ -4391,10 +4401,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/irq_comm.c +1 -1
@@ -436,7 +436,7 @@ void kvm_scan_ioapic_routes(struct kvm_vcpu *vcpu,kvm_set_msi_irq (vcpu->kvm, entry, &irq); -if (irq.level &&kvm_apic_match_dest (vcpu,NULL ,0 , +if (irq.trig_mode &&kvm_apic_match_dest (vcpu,NULL ,0 , irq.dest_id, irq.dest_mode))__set_bit (irq.vector, ioapic_handled_vectors); }
arch/x86/kvm/lapic.c +3 -1
@@ -532,9 +532,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,354 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c +2 -17
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mediatek/mtk_drm_crtc.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nouveau_fence.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c +11 -10
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/radeon/radeon_display.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/isert/ib_isert.c +12 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/sti/bdisp/bdisp-hw.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cisco/enic/enic_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/gianfar.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/b43legacy/main.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/ipw2x00/ipw2100.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/ipw2x00/ipw2200.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlegacy/3945-mac.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlegacy/4965-mac.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlegacy/common.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/tt.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intersil/hostap/hostap_ap.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intersil/orinoco/orinoco_usb.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/pci.c +6 -4
Lines of this file are not shown. View the raw message.
drivers/pinctrl/intel/pinctrl-baytrail.c +7 -1
Lines of this file are not shown. View the raw message.
drivers/staging/greybus/audio_manager.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +2 -2
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
fs/jbd2/commit.c +27 -23
50 lines not on this page · raw message
kernel/padata.c +12 -33
45 lines not on this page · raw message
tools/objtool/arch/x86/lib/x86-opcode-map.txt +1 -1
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.