Linux 3.16.57
I'm announcing the release of the 3.16.57 kernel.
All users of the 3.16 kernel series should upgrade.
The updated 3.16.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.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
The diff from 3.16.56 is attached to this message.
Ben.
------------
Documentation/device-mapper/thin-provisioning.txt | 8 +- Documentation/devicetree/bindings/dma/snps-dma.txt | 2 +- Documentation/filesystems/ext4.txt | 2 +- Makefile | 2 +- arch/alpha/kernel/pci_impl.h | 3 +- arch/alpha/kernel/process.c | 3 +- arch/arm/boot/dts/exynos4412-trats2.dts | 2 +- arch/arm/boot/dts/spear1310-evb.dts | 2 +- arch/arm/boot/dts/spear1340.dtsi | 4 +- arch/arm/boot/dts/spear13xx.dtsi | 6 +- arch/arm/boot/dts/spear600.dtsi | 1 + arch/arm/kvm/handle_exit.c | 13 +- arch/arm/mach-mvebu/Kconfig | 4 +- arch/arm/xen/enlighten.c | 1 + arch/arm64/kernel/process.c | 16 +- arch/arm64/kernel/traps.c | 58 +- arch/arm64/kvm/handle_exit.c | 9 + arch/ia64/scripts/unwcheck.py | 16 +- arch/mips/boot/compressed/Makefile | 6 +- arch/mips/kernel/smp-bmips.c | 8 +- arch/mips/kernel/traps.c | 15 +- arch/mips/ralink/reset.c | 8 - arch/mips/txx9/rbtx4939/setup.c | 4 +- arch/mn10300/mm/misalignment.c | 2 +- arch/openrisc/kernel/traps.c | 10 +- arch/powerpc/include/asm/kvm_book3s.h | 6 +- arch/powerpc/include/asm/topology.h | 8 + arch/powerpc/kernel/entry_64.S | 10 +- arch/powerpc/kvm/book3s_interrupts.S | 4 +- arch/powerpc/kvm/book3s_pr.c | 20 +- arch/powerpc/mm/numa.c | 5 - arch/powerpc/platforms/pseries/hotplug-cpu.c | 2 + arch/s390/kernel/compat_linux.c | 8 +- arch/s390/kvm/kvm-s390.c | 1 + arch/sh/kernel/traps_32.c | 3 +- arch/sparc/crypto/crc32c_glue.c | 1 + arch/x86/crypto/crc32-pclmul_glue.c | 1 + arch/x86/crypto/crc32c-intel_glue.c | 1 + arch/x86/include/asm/apm.h | 6 + arch/x86/include/asm/cpufeature.h | 15 +- arch/x86/include/asm/efi.h | 8 + arch/x86/include/asm/intel-family.h | 11 +- arch/x86/include/asm/kvm_host.h | 8 +- arch/x86/include/asm/nospec-branch.h | 37 ++ arch/x86/include/asm/pgtable.h | 4 +- arch/x86/include/asm/pgtable_types.h | 5 + arch/x86/include/asm/vmx.h | 1 + arch/x86/include/uapi/asm/mce.h | 4 + arch/x86/include/uapi/asm/msr-index.h | 12 + arch/x86/kernel/aperture_64.c | 46 +- arch/x86/kernel/cpu/bugs.c | 19 +- arch/x86/kernel/cpu/common.c | 75 ++- arch/x86/kernel/cpu/intel.c | 71 +++ arch/x86/kernel/cpu/mcheck/mce.c | 26 +- arch/x86/kernel/cpu/microcode/core.c | 2 +- arch/x86/kernel/cpu/microcode/core_early.c | 29 +- arch/x86/kernel/entry_64.S | 2 +- arch/x86/kernel/traps.c | 27 +- arch/x86/kvm/cpuid.c | 24 +- arch/x86/kvm/cpuid.h | 31 ++ arch/x86/kvm/svm.c | 171 +++++- arch/x86/kvm/vmx.c | 619 +++++++++++---------- arch/x86/kvm/x86.c | 111 ++-- arch/x86/mm/tlb.c | 19 + arch/x86/oprofile/nmi_int.c | 2 +- arch/x86/xen/mmu.c | 2 +- arch/x86/xen/suspend.c | 24 + arch/x86/xen/xen-head.S | 15 + arch/xtensa/include/asm/futex.h | 23 +- crypto/af_alg.c | 5 + crypto/ahash.c | 33 +- crypto/algif_hash.c | 54 +- crypto/crc32.c | 1 + crypto/crc32c_generic.c | 1 + crypto/cryptd.c | 6 +- crypto/shash.c | 25 +- drivers/ata/ahci.c | 24 +- drivers/ata/libata-core.c | 21 +- drivers/ata/libata-eh.c | 3 +- drivers/ata/libata-scsi.c | 4 +- drivers/block/pktcdvd.c | 4 +- drivers/block/rbd.c | 7 +- drivers/cdrom/cdrom.c | 2 +- drivers/char/tpm/tpm-interface.c | 4 + drivers/char/tpm/tpm_i2c_infineon.c | 5 +- drivers/char/tpm/tpm_i2c_nuvoton.c | 8 +- drivers/char/tpm/tpm_tis.c | 5 +- drivers/clocksource/fsl_ftm_timer.c | 2 +- drivers/cpufreq/s3c24xx-cpufreq.c | 8 +- drivers/crypto/bfin_crc.c | 3 +- drivers/crypto/caam/ctrl.c | 8 +- drivers/crypto/s5p-sss.c | 12 +- drivers/devfreq/devfreq.c | 2 +- drivers/edac/octeon_edac-lmc.c | 1 + drivers/firmware/dmi_scan.c | 22 +- drivers/gpu/drm/drm_edid.c | 3 + drivers/gpu/drm/drm_probe_helper.c | 20 + drivers/gpu/drm/nouveau/nouveau_connector.c | 18 +- drivers/gpu/drm/radeon/cik.c | 31 +- drivers/gpu/drm/radeon/radeon_connectors.c | 105 ++-- drivers/gpu/drm/radeon/radeon_device.c | 4 + drivers/gpu/drm/radeon/radeon_gem.c | 2 - drivers/gpu/drm/radeon/radeon_object.c | 2 + drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- drivers/gpu/drm/radeon/si_dpm.c | 5 + drivers/gpu/drm/ttm/ttm_bo.c | 3 +- drivers/gpu/drm/udl/udl_fb.c | 9 +- drivers/hid/hid-core.c | 3 + drivers/hid/hid-ids.h | 4 + drivers/hid/hid-roccat-kovaplus.c | 2 + drivers/hid/usbhid/hid-quirks.c | 1 + drivers/iio/imu/adis_trigger.c | 7 +- drivers/iio/industrialio-buffer.c | 2 +- drivers/infiniband/core/cma.c | 5 +- drivers/infiniband/core/iwpm_util.c | 1 + drivers/infiniband/core/ucma.c | 51 +- drivers/infiniband/hw/mlx4/main.c | 13 +- drivers/infiniband/hw/mlx5/cq.c | 7 +- drivers/infiniband/hw/mlx5/qp.c | 5 +- drivers/infiniband/hw/mlx5/srq.c | 15 +- drivers/infiniband/ulp/ipoib/ipoib_fs.c | 2 - drivers/input/keyboard/matrix_keypad.c | 4 +- drivers/input/touchscreen/edt-ft5x06.c | 14 +- drivers/input/touchscreen/mms114.c | 2 +- drivers/md/bcache/super.c | 27 +- drivers/md/raid10.c | 6 +- drivers/media/pci/bt8xx/bt878.c | 3 +- drivers/media/platform/exynos4-is/fimc-isp.c | 14 +- drivers/media/usb/cpia2/cpia2_v4l.c | 4 +- drivers/media/usb/dvb-usb-v2/lmedm04.c | 39 +- drivers/media/usb/dvb-usb/cxusb.c | 2 + drivers/media/usb/dvb-usb/dib0700_devices.c | 1 + drivers/misc/lkdtm.c | 2 +- drivers/mmc/card/block.c | 21 + drivers/mmc/host/dw_mmc-exynos.c | 1 + drivers/mmc/host/dw_mmc.c | 68 ++- drivers/mmc/host/dw_mmc.h | 2 + drivers/mmc/host/sdhci-pci.c | 27 + drivers/mmc/host/sdhci.c | 7 +- drivers/mmc/host/sdhci.h | 1 + drivers/mtd/chips/jedec_probe.c | 2 + drivers/mtd/nand/nand_base.c | 5 +- drivers/mtd/ubi/vmt.c | 15 +- drivers/mtd/ubi/wl.c | 8 +- drivers/net/bonding/bond_main.c | 73 +-- drivers/net/can/cc770/cc770.c | 100 ++-- drivers/net/can/cc770/cc770.h | 2 + drivers/net/ethernet/broadcom/bcmsysport.c | 33 +- drivers/net/ethernet/broadcom/bcmsysport.h | 2 +- drivers/net/ethernet/intel/e1000e/ich8lan.c | 2 +- drivers/net/ethernet/intel/e1000e/mac.c | 2 +- drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | 23 +- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 27 +- drivers/net/ethernet/mellanox/mlx4/en_main.c | 4 +- drivers/net/ethernet/mellanox/mlx4/mr.c | 40 +- drivers/net/ethernet/mellanox/mlx4/qp.c | 3 + drivers/net/slip/slip.c | 4 +- drivers/net/team/team.c | 4 +- drivers/net/tun.c | 2 +- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 4 + drivers/net/wireless/brcm80211/brcmfmac/p2p.c | 24 +- drivers/net/wireless/ti/wl1251/main.c | 3 +- drivers/pci/quirks.c | 2 + drivers/pinctrl/core.c | 24 +- drivers/platform/x86/apple-gmux.c | 48 +- drivers/power/ab8500_charger.c | 6 +- drivers/s390/net/qeth_core.h | 5 + drivers/s390/net/qeth_core_main.c | 16 +- drivers/s390/net/qeth_l2_main.c | 2 +- drivers/s390/net/qeth_l3_main.c | 2 +- drivers/scsi/aacraid/aachba.c | 22 +- drivers/scsi/arm/fas216.c | 2 +- drivers/scsi/ibmvscsi/ibmvfc.h | 2 +- drivers/scsi/ipr.c | 3 +- drivers/scsi/libsas/sas_ata.c | 3 +- drivers/scsi/libsas/sas_expander.c | 3 +- drivers/spi/spi-imx.c | 15 +- drivers/spi/spi-sun6i.c | 2 +- drivers/staging/android/ashmem.c | 32 +- drivers/staging/android/binder.c | 14 +- drivers/staging/iio/adc/ad7192.c | 29 +- drivers/staging/iio/adc/ad7192.h | 2 +- drivers/staging/iio/adc/ad7280a.c | 4 +- .../lustre/libcfs/linux/linux-crypto-adler.c | 1 + drivers/staging/lustre/lustre/libcfs/tracefile.c | 2 +- drivers/staging/rts5208/ms.c | 3 +- drivers/staging/usbip/stub_dev.c | 3 + drivers/staging/usbip/userspace/src/usbip_bind.c | 9 + drivers/staging/usbip/userspace/src/usbip_list.c | 9 + drivers/staging/usbip/vhci_hcd.c | 2 + drivers/tty/n_tty.c | 6 + drivers/tty/serial/8250/8250_pci.c | 11 + drivers/tty/serial/atmel_serial.c | 1 + drivers/tty/serial/sh-sci.c | 2 + drivers/tty/vt/vt.c | 8 +- drivers/usb/class/cdc-acm.c | 5 +- drivers/usb/core/message.c | 4 + drivers/usb/core/quirks.c | 6 +- drivers/usb/dwc3/gadget.c | 2 + drivers/usb/gadget/f_fs.c | 9 +- drivers/usb/host/ohci-q.c | 17 +- drivers/usb/host/xhci-pci.c | 3 + drivers/usb/host/xhci.c | 3 + drivers/usb/host/xhci.h | 1 + drivers/usb/misc/ldusb.c | 6 + drivers/usb/mon/mon_text.c | 124 +++-- drivers/usb/serial/Kconfig | 3 + drivers/usb/serial/io_edgeport.c | 1 - drivers/usb/serial/option.c | 5 + drivers/usb/serial/pl2303.c | 1 + drivers/usb/serial/pl2303.h | 1 + drivers/usb/serial/usb-serial-simple.c | 26 +- drivers/usb/storage/uas.c | 22 +- drivers/usb/storage/unusual_devs.h | 7 + drivers/vhost/net.c | 1 + drivers/video/console/dummycon.c | 1 - drivers/video/fbdev/atmel_lcdfb.c | 10 +- drivers/video/fbdev/sbuslib.c | 4 +- drivers/xen/events/events_base.c | 4 +- drivers/xen/manage.c | 9 +- fs/aio.c | 134 +++-- fs/btrfs/backref.c | 11 +- fs/btrfs/inode.c | 44 +- fs/btrfs/tree-log.c | 14 +- fs/btrfs/volumes.c | 11 +- fs/cifs/cifsencrypt.c | 3 +- fs/cifs/cifssmb.c | 4 +- fs/cifs/connect.c | 4 +- fs/cifs/file.c | 26 +- fs/cifs/misc.c | 14 +- fs/cifs/smb2pdu.c | 6 +- fs/dcache.c | 11 +- fs/ext4/balloc.c | 17 +- fs/ext4/ialloc.c | 6 + fs/ext4/inode.c | 6 + fs/ext4/super.c | 1 + fs/f2fs/segment.c | 5 +- fs/hugetlbfs/inode.c | 26 +- fs/jffs2/fs.c | 1 - fs/kernfs/file.c | 2 +- fs/namei.c | 5 +- fs/ncpfs/ncplib_kernel.c | 4 + fs/nfs/direct.c | 4 +- fs/nfs/idmap.c | 6 +- fs/nfs/internal.h | 1 - fs/nfs/nfs4sysctl.c | 2 +- fs/nfs/pagelist.c | 26 +- fs/nfs/pnfs.c | 6 +- fs/nfs/super.c | 2 + fs/nfs/write.c | 2 + fs/ocfs2/cluster/nodemanager.c | 63 ++- fs/pipe.c | 198 ++++--- include/crypto/hash.h | 34 +- include/crypto/internal/hash.h | 2 + include/drm/drm_crtc_helper.h | 1 + include/linux/crypto.h | 8 + include/linux/fs.h | 4 + include/linux/libata.h | 1 + include/linux/mlx5/driver.h | 4 +- include/linux/mmc/sdhci.h | 1 + include/linux/nospec.h | 3 +- include/linux/pipe_fs_i.h | 4 +- include/linux/skbuff.h | 17 + include/linux/usb/quirks.h | 3 + include/linux/workqueue.h | 1 + include/net/ip.h | 11 +- include/net/ip_fib.h | 1 + include/net/regulatory.h | 2 +- include/net/route.h | 3 +- include/net/sch_generic.h | 8 + include/net/sctp/sctp.h | 7 +- include/net/udplite.h | 1 + include/scsi/libsas.h | 34 +- include/uapi/linux/if_ether.h | 3 + include/uapi/linux/usb/audio.h | 4 +- include/xen/xen-ops.h | 1 + kernel/async.c | 20 +- kernel/events/hw_breakpoint.c | 30 +- kernel/hrtimer.c | 7 +- kernel/posix-timers.c | 15 +- kernel/relay.c | 2 +- kernel/sysctl.c | 33 +- kernel/trace/trace_kprobe.c | 4 +- kernel/trace/trace_probe.c | 8 +- kernel/trace/trace_probe.h | 2 +- kernel/workqueue.c | 16 + mm/hugetlb.c | 9 + mm/madvise.c | 3 +- mm/memory.c | 2 +- mm/mempolicy.c | 3 + mm/vmscan.c | 14 +- net/9p/trans_virtio.c | 3 +- net/batman-adv/bat_iv_ogm.c | 16 +- net/batman-adv/distributed-arp-table.c | 2 +- net/batman-adv/fragmentation.c | 3 +- net/batman-adv/gateway_client.c | 3 + net/batman-adv/hard-interface.c | 9 +- net/batman-adv/multicast.c | 4 +- net/batman-adv/originator.c | 4 +- net/batman-adv/originator.h | 4 +- net/batman-adv/routing.c | 21 +- net/batman-adv/soft-interface.c | 8 +- net/batman-adv/types.h | 9 +- net/bluetooth/hidp/core.c | 3 +- net/bridge/br_sysfs_if.c | 3 + net/bridge/netfilter/ebt_among.c | 55 +- net/bridge/netfilter/ebtables.c | 17 +- net/core/dev.c | 13 +- net/core/skbuff.c | 11 +- net/dccp/proto.c | 5 + net/decnet/af_decnet.c | 62 ++- net/ipv4/igmp.c | 4 + net/ipv4/ip_sockglue.c | 21 +- net/ipv4/ip_tunnel.c | 30 +- net/ipv4/ip_vti.c | 2 - net/ipv4/netfilter/ipt_CLUSTERIP.c | 24 +- net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 6 +- net/ipv4/route.c | 114 ++-- net/ipv4/udp.c | 5 + net/ipv4/xfrm4_policy.c | 1 + net/ipv6/ip6_checksum.c | 5 + net/ipv6/ip6_output.c | 13 +- net/ipv6/ipv6_sockglue.c | 27 +- net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 18 +- net/ipv6/netfilter/nf_nat_l3proto_ipv6.c | 4 + net/l2tp/l2tp_core.c | 202 +++---- net/l2tp/l2tp_core.h | 26 +- net/l2tp/l2tp_ip.c | 10 +- net/l2tp/l2tp_ip6.c | 8 +- net/l2tp/l2tp_ppp.c | 126 ++--- net/mac80211/cfg.c | 2 +- net/netfilter/nf_nat_proto_common.c | 7 +- net/netfilter/xt_IDLETIMER.c | 9 +- net/netfilter/xt_LED.c | 12 +- net/netfilter/xt_RATEEST.c | 22 +- net/netlink/af_netlink.c | 3 + net/netlink/genetlink.c | 12 +- net/nfc/llcp_commands.c | 4 + net/nfc/netlink.c | 3 +- net/sched/sch_netem.c | 6 +- net/sctp/sm_make_chunk.c | 8 +- net/xfrm/xfrm_user.c | 21 +- security/integrity/ima/ima_appraise.c | 3 +- sound/core/oss/pcm_oss.c | 4 +- sound/core/pcm_native.c | 2 +- sound/core/seq/seq_clientmgr.c | 29 +- sound/core/seq/seq_fifo.c | 2 +- sound/core/seq/seq_memory.c | 14 +- sound/core/seq/seq_memory.h | 3 +- sound/core/seq/seq_prioq.c | 28 +- sound/core/seq/seq_prioq.h | 6 +- sound/core/seq/seq_queue.c | 28 +- sound/drivers/aloop.c | 17 +- sound/pci/hda/patch_realtek.c | 25 +- sound/soc/au1x/ac97c.c | 6 +- sound/soc/codecs/rt5651.c | 1 + sound/soc/nuc900/nuc900-ac97.c | 4 +- sound/usb/pcm.c | 9 + sound/usb/quirks-table.h | 47 ++ tools/perf/builtin-record.c | 13 + tools/perf/util/annotate.c | 8 +- tools/perf/util/evlist.c | 28 + tools/perf/util/evlist.h | 3 + tools/perf/util/session.c | 3 +- .../testing/selftests/rcutorture/bin/configinit.sh | 2 +- tools/testing/selftests/rcutorture/bin/kvm.sh | 4 +- virt/kvm/kvm_main.c | 3 +- 367 files changed, 3696 insertions(+), 2110 deletions(-)
AMAN DEEP (1):
usb: ohci: Proper handling of ed_rm_list to handle race condition between usb_kill_urb() and finish_unlinks()
Adrian Hunter (2):
mmc: sdhci: Allow override of mmc host operations
mmc: sdhci-pci: Fix S0i3 for Intel BYT-based controllers
Al Viro (2):
Bluetooth: hidp_connection_add() unsafe use of l2cap_pi() lock_parent() needs to recheck if dentry got __dentry_kill'ed under it
Alaa Hleihel (1):
IB/ipoib: Do not warn if IPoIB debugfs doesn't exist
Alex Deucher (2):
drm/radeon: Add dpm quirk for Jet PRO (v2)
drm/radeon: fix KV harvesting
Alexander Graf (1):
KVM: PPC: Book3S PR: Fix svcpu copying with preemption enabled
Alexander Potapenko (1):
netlink: make sure nladdr has correct size in netlink_connect()
Alexandra Yates (3):
ahci: add new Intel device IDs
ahci: Order SATA device IDs for codename Lewisburg Adding Intel Lewisburg device IDs for SATA
Alexandru Ardelean (1):
staging: iio: adc: ad7192: fix external frequency setting
Alexey Kodanev (4):
dccp: check sk for closed state in dccp_sendmsg()
sctp: verify size of a new chunk in _sctp_make_chunk()
udplite: fix partial checksum initialization
sch_netem: fix skb leak in netem_enqueue()
Andi Shyti (1):
Input: mms114 - fix license module information
Andri Yngvason (3):
can: cc770: Fix stalls on rt-linux, remove redundant IRQ ack
can: cc770: Fix queue stall & dropped RTR reply
can: cc770: Fix use after free in cc770_tx_interrupt()
Andy Lutomirski (1):
x86/entry/64: Don't use IST entry for #BP stack
Andy Shevchenko (1):
x86/cpu: Rename Merrifield2 to Moorefield
Anna-Maria Gleixner (1):
hrtimer: Ensure POSIX compliance (relative CLOCK_REALTIME hrtimers)
Arend Van Spriel (1):
brcmfmac: fix P2P_DEVICE ethernet address generation
Arkadi Sharshevsky (1):
team: Fix double free in error path
Arnaldo Carvalho de Melo (3):
perf evlist: Introduce perf_evlist__new_dummy constructor perf record: Generate PERF_RECORD_{MMAP,COMM,EXEC} with --delay perf report: Fix -D output for user metadata events
Arnd Bergmann (7):
x86/pti: Mark constant arrays as __initconst
media: exynos4-is: properly initialize frame format
scsi: fas216: fix sense buffer initialization
cifs: silence compiler warnings showing up with gcc-8.0.0
mm: hide a #warning for COMPILE_TEST
cfg80211: fix cfg80211_beacon_dup
x86/oprofile: Fix bogus GCC-8 warning in nmi_setup()
Ashok Raj (1):
KVM/x86: Add IBPB support
Aurelien Aptel (1):
CIFS: zero sensitive data when freeing
Baolin Wang (1):
usb: gadget: f_fs: Fix possibe deadlock
Bart Van Assche (1):
pktcdvd: Fix pkt_setup_dev() error path
Bastian Stender (1):
mmc: block: fix updating ext_csd caches on ioctl call
Ben Crocker (1):
drm/radeon: insist on 32-bit DMA for Cedar on PPC64/PPC64LE
Ben Hutchings (4):
staging: android: ashmem: Fix a race condition in pin ioctls
xen: Add xen_arch_suspend()
skb: Add skb_postpush_rcsum()
Linux 3.16.57
Benjamin Poirier (1):
e1000e: Fix check_for_link return value with autoneg off
Bjorn Andersson (1):
PM / devfreq: Propagate error from devfreq_add_device()
Boris Ostrovsky (1):
xen/arm: Define xen_arch_suspend()
Boris Pismenny (1):
IB/mlx5: Fix integer overflows in mlx5_ib_create_srq
Borislav Petkov (2):
x86, microcode: Fix accessing dis_ucode_ldr on 32-bit x86/microcode/AMD: Do not load when running on a hypervisor
[email protected] (1):
ahci: Add Device ID for Intel Sunrise Point PCH
Chien Tin Tung (1):
RDMA/ucma: Correct option size check using optlen
Christian Borntraeger (1):
KVM: s390: provide io interrupt kvm_stat
Christian König (2):
drm/ttm: fix adding foreign BOs to the swap LRU drm/radeon: fix prime teardown order
Christophe JAILLET (3):
power: supply: ab8500_charger: Fix an error handling path
power: supply: ab8500_charger: Bail out in case of error in 'ab8500_charger_init_hw_registers()'
media: bt8xx: Fix err 'bt878_probe()'
Clay McClure (1):
ubi: Fix race condition between ubi volume creation and udev
Colin Ian King (3):
wl1251: check return from call to wl1251_acx_arp_ip_filter
scsi: aacraid: remove redundant setting of variable c clocksource/drivers/fsl_ftm_timer: Fix error return checking
Cong Wang (2):
netfilter: xt_RATEEST: acquire xt_rateest_mutex for hash insert
netfilter: ipt_CLUSTERIP: fix a refcount bug in clusterip_config_find_get()
Corentin Labbe (2):
powerpc/pseries: Add empty update_numa_cpu_lookup_table() for NUMA=n
ia64: convert unwcheck.py to python3
Dan Aloni (1):
cifs: empty TargetInfo leads to crash on recovery
Dan Carpenter (10):
staging: ncpfs: memory corruption in ncp_read_kernel()
cdrom: information leak in cdrom_ioctl_media_changed()
media: cpia2: Fix a couple off by one bugs
ASoC: nuc900: Fix a loop timeout test
ath9k_htc: Add a sanity check in ath9k_htc_ampdu_action()
ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read()
staging: lustre: libcfs: Prevent harmless read underflow
staging: rts5208: Fix "seg_no" calculation in reset_ms_card()
HID: roccat: prevent an out of bounds read in kovaplus_profile_activated()
ALSA: pcm: potential uninitialized return values
Daniel N Pettersson (1):
cifs: Fix autonegotiate security settings mismatch
Danilo Krummrich (1):
usb: quirks: add control message delay for 1b1c:1b20
Dave Hansen (1):
x86/cpu: Rename "WESTMERE2" family to "NEHALEM_G"
Dave Young (1):
HID: add quirk for another PIXART OEM mouse used by HP
David Ahern (1):
net: Refactor rtable initialization
David Matlack (1):
KVM: nVMX: mark vmcs12 pages dirty on L2 exit
David Rientjes (1):
kernel/relay.c: limit kmalloc size to KMALLOC_MAX_SIZE
David Woodhouse (11):
x86/cpufeatures: Add Intel feature bits for Speculation Control x86/cpufeatures: Add AMD feature bits for Speculation Control x86/msr: Add definitions for new speculation control MSRs x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown x86/cpufeature: Blacklist SPEC_CTRL/PRED_CMD on early Spectre v2 microcodes x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support x86/cpufeatures: Clean up Spectre v2 related CPUID flags x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel x86/speculation: Use IBRS if available before calling into firmware x86/speculation: Update Speculation Control microcode blacklist x86/speculation: Correct Speculation Control microcode blacklist again
Dmitry Torokhov (1):
Input: edt-ft5x06 - fix error handling for factory mode on non-M06
Dmitry Vyukov (1):
netfilter: ipt_CLUSTERIP: fix out-of-bounds accesses in clusterip_tg_check()
Eran Ben Elisha (1):
net/mlx4_en: Fix mixed PFC and Global pause user control requests
Eric Biggers (15):
crypto: hash - introduce crypto_hash_alg_has_setkey()
crypto: cryptd - pass through absence of ->setkey()
crypto: hash - annotate algorithms taking optional key
crypto: hash - prevent using keyed hashes without setting key
NFS: reject request for id_legacy key without auxdata pipe, sysctl: drop 'min' parameter from pipe-max-size converter pipe, sysctl: remove pipe_proc_fn()
pipe: actually allow root to exceed the pipe buffer limits
pipe: fix off-by-one error when checking buffer limits
pipe: reject F_SETPIPE_SZ with size over UINT_MAX
pipe: simplify round_pipe_size()
pipe: read buffer limits atomically
libata: fix length validation of ATAPI-relayed SCSI commands
libata: remove WARN() for DMA or PIO command without data
binder: check for binder_thread allocation failure in binder_poll()
Eric Dumazet (4):
net: igmp: add a missing rcu locking section
netfilter: IDLETIMER: be syzkaller friendly
l2tp: do not accept arbitrary sockets
net: fix possible out-of-bound read in skb_network_protocol()
Eric W. Biederman (4):
signal/sh: Ensure si_signo is initialized in do_divide_error signal/openrisc: Fix do_unaligned_access to send the proper signal mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
fs: Teach path_connected to handle nfs filesystems with multiple roots.
Erik Veijola (1):
ALSA: usb-audio: Add a quirck for B&W PX headphones
Ernesto A. Fernández (1):
ext4: correct documentation for grpid mount option
Eugene Syromiatnikov (1):
s390: fix handling of -1 in set{,fs}[gu]id16 syscalls
Felix Kuehling (1):
drm/ttm: Don't add swapped BOs to swap-LRU list
Florian Fainelli (2):
pinctrl: Really force states during suspend/resume
net: systemport: Rewrite __bcm_sysport_tx_reclaim()
Florian Westphal (6):
netfilter: ebtables: CONFIG_COMPAT: don't trust userland offsets
netfilter: ebtables: fix erroneous reject of last rule
xfrm_user: uncoditionally validate esn replay attribute struct
netfilter: ipv6: fix use-after-free Write in nf_nat_ipv6_manip_pkt
netfilter: bridge: ebt_among: add missing match size checks
netfilter: bridge: ebt_among: add more missing match size checks
Ganesh Mahendran (1):
android: binder: use VM_ALLOC to get vm area
Geert Uytterhoeven (1):
RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()
Greg Kroah-Hartman (2):
drm: udl: Properly check framebuffer mmap offsets
USB: serial: pl2303: new device id for Chilitag
Greg Kurz (1):
9p/trans_virtio: discard zero-length reply
Guillaume Nault (3):
l2tp: remove l2tp_tunnel_count and l2tp_session_count
l2tp: don't close sessions in l2tp_tunnel_destruct()
l2tp: avoid using ->tunnel_sock for getting session's parent tunnel
Hans de Goede (10):
ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and Apollo Lake AHCI
USB: cdc-acm: Do not log urb submission errors on disconnect
uas: Log error codes when logging errors
libata: Apply NOLPM quirk to Crucial MX100 512GB SSDs
ASoC: rt5651: Fix regcache sync errors on resume
ahci: Add PCI-id for the Highpoint Rocketraid 644L card
PCI: Add function 1 DMA alias quirk for Highpoint RocketRAID 644L
libata: Apply NOLPM quirk to Crucial M500 480 and 960GB SSDs
libata: Make Crucial BX100 500GB LPM quirk apply to all firmware versions
libata: Modify quirks for MX100 to limit NCQ_TRIM quirk to MU01 version
Hans van Kranenburg (1):
btrfs: alloc_chunk: fix DUP stripe size handling
Hemant Kumar (1):
usb: f_fs: Prevent gadget unbind if it is already unbound
Horia Geantă (1):
crypto: caam - fix endless loop when DECO acquire fails
Hugh Dickins (1):
mm: fix the NULL mapping case in __isolate_lru_page()
Ilya Dryomov (1):
rbd: whitelist RBD_FEATURE_OPERATIONS feature bit
Ingo Molnar (1):
x86/speculation: Move firmware_restrict_branch_speculation_*() from C to CPP
Ioana Ciornei (1):
staging: iio: adc: remove the use of CamelCase
Ivan Delalande (1):
lkdtm: fix handle_irq_event symbol for INT_HW_IRQ_EN
Ivan Vecera (2):
kernfs: fix regression in kernfs_fop_write caused by wrong type net/mlx4_en: do not ignore autoneg in mlx4_en_set_pauseparam()
J. Bruce Fields (1):
NFS: commit direct writes even if they fail partially
Jack Morgenstein (1):
IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports
Jack Stocker (1):
Add delay-init quirk for Corsair K70 RGB keyboards
Jake Daryll Obina (1):
jffs2: Fix use-after-free bug in jffs2_iget()'s error handling path
Jakub Kicinski (1):
net: fix race on decreasing number of TX queues
James Chapman (5):
l2tp: don't use inet_shutdown on tunnel destroy
l2tp: don't use inet_shutdown on ppp session destroy
l2tp: fix races with tunnel socket close
l2tp: fix race in pppol2tp_release with session object destroy
l2tp: fix tunnel lookup use-after-free race
James Hogan (2):
EDAC, octeon: Fix an uninitialized variable warning
MIPS: Fix clean of vmlinuz.{32,ecoff,bin,srec}
James Ralston (1):
ahci: Remove Device ID for Intel Sunrise Point PCH
Jan Beulich (1):
x86/mm: Fix {pmd,pud}_{set,clear}_flags()Jan Chochol (1):
nfs: Do not convert nfs_idmap_cache_timeout to jiffies
Jan-Marek Glogowski (1):
ALSA: hda/realtek: PCI quirk for Fujitsu U7x7
Jason Gunthorpe (1):
sctp: Fix mangled IPv4 addresses on a IPv6 listening socket
Jason Wang (1):
vhost_net: stop device during reset owner
Jason Yan (4):
scsi: libsas: remove the numbering for each event enum
scsi: libsas: fix memory leak in sas_smp_get_phy_events()
scsi: libsas: fix error when getting phy events
ata: do not schedule hot plug if it is a sas host
Jean Delvare (1):
firmware: dmi_scan: Fix handling of empty DMI strings
Jens Axboe (1):
aio: fix serial draining in exit_aio()
Jeremy Boone (4):
tpm_tis: fix potential buffer overruns caused by bit glitches on the bus
tpm_i2c_nuvoton: fix potential buffer overruns caused by bit glitches on the bus
tpm_i2c_infineon: fix potential buffer overruns caused by bit glitches on the bus
tpm: fix potential buffer overruns caused by bit glitches on the bus
Jia-Ju Bai (1):
USB: serial: io_edgeport: fix possible sleep-in-atomic
Jim Mattson (1):
KVM: nVMX: Eliminate vmcs02 pool
Jiri Bohac (1):
x86/gart: Exclude GART aperture from vmcore
Joe Lawrence (3):
pipe: avoid round_pipe_size() nr_pages overflow on 32-bit
pipe: add proc_dopipe_max_size() to safely assign pipe_max_size
sysctl: check for UINT_MAX before unsigned int min/max
Joel Fernandes (1):
staging: android: ashmem: Fix lockdep issue during llseek
Johan Hovold (5):
video: fbdev: atmel_lcdfb: fix display-timings lookup
USB: serial: add support for multi-port simple drivers
USB: serial: add Novatel Wireless GPS driver
USB: serial: add Medtronic CareLink USB driver
USB: serial: simple: add Motorola Tetra driver
Johannes Berg (1):
regulatory: add NUL to request alpha2
John Crispin (1):
MIPS: ralink: Don't set pm_power_off
Jonas Danielsson (1):
tty/serial: atmel: add new version check for usart
Ju Hyung Park (1):
libata: Enable queued TRIM for Samsung SSD 860
Juergen Gross (2):
x86/xen: init %gs very early to avoid page faults with stack protector x86/xen: Zero MSR_IA32_SPEC_CTRL before suspend
Julia Lawall (3):
drivers: video: fbdev: atmel_lcdfb.c: fix error return code drm/radeon: adjust tested variable
USB: usbmon: remove assignment from IS_ERR argument
Julian Wiedmann (2):
s390/qeth: fix SETIP command handling s390/qeth: free netdevice when removing a card
Julien Gomes (1):
tun: allow positive return values on dev_get_valid_name() call
Justin Chen (1):
MIPS: BMIPS: Do not mask IPIs during suspend
Kai-Heng Feng (3):
drm/edid: Add 6 bpc quirk for CPT panel in Asus UX303LA
libata: disable LPM for Crucial BX100 SSD 500GB drive
xhci: Fix front USB ports on ASUS PRIME B350M-A
Kamil Konieczny (1):
crypto: s5p-sss - Fix kernel Oops in AES-ECB mode
KarimAllah Ahmed (3):
KVM/VMX: Emulate MSR_IA32_ARCH_CAPABILITIES KVM/VMX: Allow direct access to MSR_IA32_SPEC_CTRL KVM/SVM: Allow direct access to MSR_IA32_SPEC_CTRL
Karsten Koop (1):
usb: ldusb: add PIDs for new CASSY devices supported by this driver
Kees Cook (1):
NFC: llcp: Limit size of SDP URI
Kirill Marinushkin (1):
ALSA: usb-audio: Fix parsing descriptor of UAC2 processing unit
Konrad Rzeszutek Wilk (1):
x86/spectre_v2: Don't check microcode versions when running under hypervisors
Lars-Peter Clausen (1):
iio: adis_lib: Initialize trigger before requesting interrupt
Lassi Ylikojola (1):
ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204
Leon Romanovsky (11):
RDMA/mlx5: Avoid memory leak in case of XRCD dealloc failure RDMA/ucma: Limit possible option size
RDMA/ucma: Check that user doesn't overflow QP state RDMA/mlx5: Fix integer overflow while resizing CQ RDMA/ucma: Fix access to non-initialized CM_ID object RDMA/ucma: Don't allow join attempts for unsupported AF family RDMA/ucma: Check AF family prior resolving address RDMA/ucma: Fix use-after-free access in ucma_close RDMA/ucma: Ensure that CM_ID exists prior to access it RDMA/ucma: Check that device is connected prior to access it RDMA/ucma: Check that device exists prior to accessing it
Linus Lüssing (2):
batman-adv: fix multicast-via-unicast transmission with AP isolation
batman-adv: fix packet loss for broadcasted DHCP packets to a server
Linus Torvalds (3):
kvm/x86: fix icebp instruction handling perf/hwbp: Simplify the perf-hwbp code, fix documentation
tty: vt: fix up tabstops properly
Linus Walleij (1):
mtd: jedec_probe: Fix crash in jedec_read_mfr()
Liu Bo (4):
Btrfs: fix deadlock in run_delalloc_nocow
Btrfs: fix crash due to not cleaning up tree log block's dirty bits
Btrfs: fix extent state leak from tree log
Btrfs: fix use-after-free on root->orphan_block_rsv
Lukas Czerner (1):
ext4: fix bitmap position validation
Lukas Wunner (5):
Revert "apple-gmux: lock iGP IO to protect from vgaarb changes"
workqueue: Allow retrieval of current task's work struct
drm: Allow determining if current task is output poll worker drm/nouveau: Fix deadlock on runtime suspend drm/radeon: Fix deadlock on runtime suspend
Maciej W. Rozycki (1):
MIPS: Normalise code flow in the CpU exception handler
Malcolm Priestley (2):
media: dvb-usb-v2: lmedm04: Improve logic checking of warm start
media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner
Marc Kleine-Budde (1):
slip: sl_alloc(): remove unused parameter "dev_t line"
Marc Zyngier (2):
arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
arm64: KVM: Increment PC after handling an SMC trap
Mark Rutland (1):
arm64: remove __die()'s stack dump
Masahiro Yamada (1):
mmc: sdhci: export sdhci_execute_tuning()
Masami Hiramatsu (1):
tracing: probeevent: Fix to support minus offset from symbol
Masatake YAMATO (1):
route: remove unsed variable in __mkroute_input
Matt Redfearn (1):
MIPS: TXx9: use IS_BUILTIN() for CONFIG_LEDS_CLASS
Matthew Wilcox (1):
cifs: Fix missing put_xid in cifs_file_strict_mmap
Matthias Schiffer (4):
batman-adv: fix packet checksum in receive path
batman-adv: invalidate checksum on fragment reassembly
batman-adv: update data pointers after skb_cow()
batman-adv: fix header size check in batadv_dbg_arp()
Mauro Carvalho Chehab (1):
media: cxusb, dib0700: ignore XC2028_I2C_FLUSH
Max Filippov (1):
xtensa: fix futex_atomic_cmpxchg_inatomic
Mel Gorman (1):
mm: pin address_space before dereferencing it while isolating an LRU page
Michael Kerrisk (man-pages) (8):
pipe: relocate round_pipe_size() above pipe_set_size()
pipe: move limit checking logic into pipe_set_size()
pipe: refactor argument for account_pipe_buffers()
pipe: fix limit checking in pipe_set_size()
pipe: simplify logic in alloc_pipe_info()
pipe: fix limit checking in alloc_pipe_info()
pipe: make account_pipe_buffers() return a value, and use it
pipe: cap initial pipe capacity according to pipe-max-size limit
Michael Lyle (1):
bcache: don't attach backing with duplicate UUID
Michael Weiser (2):
arm64: Disable unhandled signal log messages by default
arm64: Remove unimplemented syscall log message
Michel Dänzer (1):
drm/radeon: Don't turn off DP sink when disconnected
Mika Westerberg (1):
ahci: Add Intel Cannon Lake PCH-H PCI ID
Mike Kravetz (2):
hugetlbfs: fix offset overflow in hugetlbfs mmap
hugetlbfs: check for pgoff value overflow
Mikulas Patocka (2):
alpha: fix reboot on Avanti platform
alpha: fix crash if pthread_create races with signal delivery
Mimi Zohar (1):
ima: relax requiring a file signature for new files with zero length
Miquel Raynal (1):
mtd: nand: Fix nand_do_read_oob() return value
Namjae Jeon (1):
cifs: fix memory leak when password is supplied multiple times
Nathan Fontenot (1):
powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove
NeilBrown (1):
MIPS: ralink: Remove ralink_halt()
Nicholas Piggin (1):
powerpc/64: Don't trace irqs-off at interrupt return to soft-disabled context
Nicolas Dichtel (2):
netlink: ensure to loop over all netns in genlmsg_multicast_allns()
netlink: avoid a double skb free in genlmsg_mcast()
Nicolas Pitre (1):
console/dummy: leave .con_font_get set to NULL
Nikola Ciprich (1):
serial: 8250_pci: Add Brainboxes UC-260 4 port serial device
Nikolay Borisov (1):
btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker
OKAMOTO Yoshiaki (1):
usb: option: Add support for FS040U modem
Oleg Nesterov (2):
aio: change exit_aio() to load mm->ioctx_table once and avoid rcu_read_lock()
aio: kill the misleading rcu read locks in ioctx_add_table() and kill_ioctx()
Oliver Neukum (3):
usb: uas: unconditionally bring back host after reset
CDC-ACM: apply quirk for card reader
uas: fix comparison for error code
Paolo Abeni (7):
netfilter: on sockopt() acquire sock lock only in the required scope
netfilter: drop outermost socket lock in getsockopt()
netfilter: x_tables: fix missing timer initialization in xt_LED
netfilter: nat: cope with negative port range
dn_getsockoptdecnet: move nf_{get/set}sockopt outside sock lock
l2tp: fix races with ipv4-mapped ipv6 addresses
ipv6: the entire IPv6 header chain must fit the first fragment
Paolo Bonzini (6):
KVM: x86: rename update_db_bp_intercept to update_bp_intercept
KVM: x86: pass host_initiated to functions that read MSRs
KVM: VMX: introduce alloc_loaded_vmcs
KVM: VMX: make MSR bitmaps per-VCPU
KVM/x86: Remove indirect MSR op calls from SPEC_CTRL
KVM/VMX: Optimize vmx_vcpu_run() and svm_vcpu_run() by marking the RDMSR path as unlikely()
Parav Pandit (1):
RDMA/cma: Use correct size when writing netlink stats
Pete Zaitcev (1):
usb: usbmon: Read text within supplied buffer size
Peter Malone (1):
fbdev: Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in sbusfb_ioctl_helper().
Peter Zijlstra (1):
x86/speculation: Add <asm/msr-index.h> dependency
Petr Machata (1):
ip_tunnel: Emit events for post-register MTU changes
Raghava Aditya Renukunta (1):
scsi: aacraid: Fix udev inquiry race condition
Rasmus Villemoes (2):
kernel/async.c: revert "async: simplify lowest_in_progress()"
nospec: Allow index argument to have const-qualified type
Roger Pau Monne (1):
xen/pirq: fix error path cleanup when binding MSIs
Sabrina Dubroca (1):
ipv4: lock mtu in fnhe when received PMTU < net.ipv4.route.min_pmtu
Scott Lawson (1):
AHCI: Remove obsolete Intel Lewisburg SATA RAID device IDs
Scott Mayhew (1):
nfs/pnfs: fix nfs_direct_req ref leak when i/o falls back to the mds
SeongJae Park (2):
rcutorture/configinit: Fix build directory error message rcutorture/kvm.sh: Use consistent help text for --qemu-args
Sergey Senozhatsky (1):
arm64: do not use print_symbol()
Seunghun Han (1):
x86/MCE: Serialize sysfs changes
Shaohua Li (1):
ata: Add a new flag to destinguish sas controller
Shawn Lin (2):
mmc: dw_mmc: Factor out dw_mci_init_slot_caps
mmc: dw_mmc: Fix out-of-bounds access for slot's caps
Shuah Khan (3):
usbip: prevent bind loops on devices attached to vhci_hcd
usbip: list: don't list devices attached to vhci_hcd
usbip: keep usbip_device sockfd state in sync with tcp_socket
Simon Shields (1):
ARM: dts: exynos: Correct Trats2 panel reset line
Stefan Agner (1):
spi: imx: do not access registers while clocks disabled
Stefan Roese (1):
ALSA: pcm: Use dma_bytes as size parameter in dma_mmap_coherent()
Stefan Windfeldt-Prytz (1):
iio: buffer: check if a buffer has been set up when poll is called
Stefano Brivio (3):
vti4: Don't count header length twice on tunnel setup
ip_tunnel: Clamp MTU to bounds on new link
vti4: Don't override MTU passed on link creation via IFLA_MTU
Stephan Mueller (1):
crypto: af_alg - whitelist mask and type
Sven Eckelmann (2):
batman-adv: Fix internal interface indices types
batman-adv: Fix skbuff rcsum on packet reroute
Takashi Iwai (8):
ALSA: seq: Fix racy pool initializations
ALSA: seq: Don't allow resizing pool in use
ALSA: seq: More protection for concurrent write and ioctl races
ALSA: seq: Fix possible UAF in snd_seq_check_queue()
ALSA: seq: Clear client entry before deleting else at closing
ALSA: hda/realtek - Always immediately update mute LED with pin VREF
ALSA: aloop: Sync stale timer before release
ALSA: aloop: Fix access to not-yet-ready substream via cable
Tang Junhui (1):
bcache: fix crashes in duplicate cache device register
Tariq Toukan (1):
net/mlx4_core: Cleanup FMR unmapping flow
Teijo Kinnunen (1):
USB: storage: Add JMicron bridge 152d:2567 to unusual_devs.h
Tejun Heo (3):
tty: make n_tty_read() always abort if hangup is in progress fs/aio: Add explicit RCU grace period when freeing kioctx fs/aio: Use RCU accessors for kioctx_table->table[]
Theodore Ts'o (2):
ext4: fail ext4_iget for root directory if unallocated
ext4: add validity checks for bitmap block numbers
Thinh Nguyen (1):
usb: dwc3: gadget: Set maxpacket size for ep0 IN
Thomas Gleixner (1):
posix-timers: Protect posix clock array access against speculation
Thomas Richter (1):
perf annotate: Fix objdump comment parsing for Intel mov dissassembly
Tim Chen (1):
x86/speculation: Use Indirect Branch Prediction Barrier in context switch
Tobias Jordan (1):
spi: sun6i: disable/unprepare clocks on remove
Todd Kjos (1):
binder: replace "%p" with "%pK"
Tony Luck (1):
x86/MCE: Save microcode revision in machine check records
Toshiaki Makita (2):
net: Fix vlan untag for bridge and vlan_dev with reorder_hdr off
net: Fix untag for vlan packets without ethernet header
Trond Myklebust (2):
NFS: Add a cond_resched() to nfs_commit_release_pages()
NFS: Fix 2 use after free issues in the I/O code
Tyrel Datwyler (1):
scsi: ibmvfc: fix misdefined reserved field in ibmvfc_fcp_rsp_info
Ulf Magnusson (1):
ARM: mvebu: Fix broken PL310_ERRATA_753970 selects
Ulrich Hecht (1):
serial: sh-sci: prevent lockup on full TTY buffers
Vinicius Costa Gomes (1):
skbuff: Fix not waking applications when errors are enqueued
Viresh Kumar (4):
arm: spear600: Add missing interrupt-parent of rtc
arm: spear13xx: Fix dmas cells
arm: spear13xx: Fix spics gpio controller's warning
cpufreq: s3c24xx: Fix broken s3c_cpufreq_init()
Wang Nan (1):
x86/traps: Enable DEBUG_STACK after cpu_init() for TRAP_DB/BP
Wanpeng Li (1):
KVM: mmu: Fix overlap between public and private memslots
Wei Yongjun (1):
mtd: ubi: wl: Fix error return code in ubi_wl_init()
Will Deacon (2):
arm64: traps: Don't print stack or raw PC/LR values in backtraces
arm64: __show_regs: Only resolve kernel symbols when running at EL1
Xin Long (4):
bridge: check brport attr show in brport_show
bonding: fix the err path for dev hwaddr sync in bond_enslave
bonding: move dev_mc_sync after master_upper_dev_link in bond_enslave
bonding: process the err returned by dev_set_allmulti properly in bond_enslave
Yisheng Xie (2):
staging: android: ashmem: Fix possible deadlock in ashmem_ioctl mm/mempolicy.c: avoid use uninitialized preferred_node
Yufen Yu (1):
md raid10: fix NULL deference in handle_write_completed()
Yunlei He (1):
f2fs: fix a panic caused by NULL flush_cmd_control
Zhang Bo (1):
Input: matrix_keypad - fix race when disabling interrupts
Zhouyi Zhou (1):
ext4: save error to disk in __ext4_grp_locked_error()
Zygo Blaxell (1):
btrfs: remove spurious WARN_ON(ref->count < 0) in find_parent_nodes
alex chen (1):
ocfs2: subsystem.su_mutex is required while accessing the item->ci_parent
chenjie (1):
mm/madvise.c: fix madvise() infinite loop under special circumstances
mulhern (1):
dm thin: fix documentation relative to low water mark threshold
Documentation/device-mapper/thin-provisioning.txt +5 -3
@@ -112,9 +112,11 @@ $low_water_mark is expressed in blocks of size $data_block_size. If free space on the data device drops below this level then a dm event will be triggered which a userspace daemon should catch allowing it to extend the pool device. Only one such event will be sent. -Resuming a device with a new table itself triggers an event so the -userspace daemon can use this to detect a situation where a new table -already exceeds the threshold. + +No special event is triggered if a just resumed device's free space is below +the low water mark. However, resuming a device always triggers an +event; a userspace daemon should verify that free space exceeds the low +water mark when handling this event. A low water mark for the metadata device is maintained in the kernel and will trigger a dm event if free space on the metadata device drops below
Documentation/devicetree/bindings/dma/snps-dma.txt +1 -1
@@ -58,6 +58,6 @@ described in the dma.txt file, using a four-cell specifier for each channel. interrupts = <0 35 0x4>; status = "disabled"; dmas = <&dmahost 12 0 1>, - <&dmahost 13 0 1 0>; + <&dmahost 13 1 0>; dma-names = "rx", "rx"; };
Documentation/filesystems/ext4.txt +1 -1
@@ -233,7 +233,7 @@ data_err=ignore(*) Just print an error message if an error occurs data_err=abort Abort the journal if an error occurs in a file data buffer in ordered mode. -grpid Give objects the same group ID as their creator. +grpid New objects have the group ID of their parent. bsdgroups nogrpid (*) New objects have the group ID of their creator.
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 56 +SUBLEVEL = 57 EXTRAVERSION = NAME = Museum of Fishiegoodies
arch/alpha/kernel/pci_impl.h +2 -1
@@ -143,7 +143,8 @@ struct pci_iommu_arena };#if defined(CONFIG_ALPHA_SRM ) && \ - (defined(CONFIG_ALPHA_CIA ) || defined(CONFIG_ALPHA_LCA )) + (defined(CONFIG_ALPHA_CIA ) || defined(CONFIG_ALPHA_LCA ) || \ + defined(CONFIG_ALPHA_AVANTI ))# define NEED_SRM_SAVE_RESTORE #else # undef NEED_SRM_SAVE_RESTORE
arch/alpha/kernel/process.c +2 -1
@@ -274,12 +274,13 @@ copy_thread(unsigned long clone_flags, unsigned long usp,application calling fork. */ if (clone_flags &CLONE_SETTLS ) childti->pcb.unique = regs->r20; +else + regs->r20 =0 ;/* OSF/1 has some strange fork() semantics. */ childti->pcb.usp = usp ?:rdusp (); *childregs = *regs; childregs->r0 =0 ; childregs->r19 =0 ; childregs->r20 =1 ;/* OSF/1 has some strange fork() semantics. */ - regs->r20 =0 ; stack = ((struct switch_stack *) regs) -1 ; *childstack = *stack; childstack->r26 = (unsigned long ) ret_from_fork;
arch/arm/boot/dts/exynos4412-trats2.dts +1 -1
@@ -628,7 +628,7 @@ reg = <0>; vdd3-supply = <&lcd_vdd3_reg>; vci-supply = <&ldo25_reg>; - reset-gpios = <&gpy4 5 0>; + reset-gpios = <&gpf2 1 0>; power-on-delay= <50>; reset-delay = <100>; init-delay = <100>;
arch/arm/boot/dts/spear1310-evb.dts +1 -1
@@ -345,7 +345,7 @@ spi0: spi@e0100000 { status = "okay"; num-cs = <3>; - cs-gpios = <&gpio1 7 0>, <&spics 0>, <&spics 1>; + cs-gpios = <&gpio1 7 0>, <&spics 0 0>, <&spics 1 0>; stmpe610@0 { compatible = "st,stmpe610";
arch/arm/boot/dts/spear1340.dtsi +2 -2
@@ -113,8 +113,8 @@ reg = <0xb4100000 0x1000>; interrupts = <0 105 0x4>; status = "disabled"; - dmas = <&dwdma0 0x600 0 0 1>, /* 0xC << 11 */ - <&dwdma0 0x680 0 1 0>; /* 0xD << 7 */ + dmas = <&dwdma0 12 0 1>, + <&dwdma0 13 1 0>; dma-names = "tx", "rx"; };
arch/arm/boot/dts/spear13xx.dtsi +3 -3
@@ -100,7 +100,7 @@ reg = <0xb2800000 0x1000>; interrupts = <0 29 0x4>; status = "disabled"; - dmas = <&dwdma0 0 0 0 0>; + dmas = <&dwdma0 0 0 0>; dma-names = "data"; };
@@ -283,8 +283,8 @@ #size-cells = <0>; interrupts = <0 31 0x4>; status = "disabled"; - dmas = <&dwdma0 0x2000 0 0 0>, /* 0x4 << 11 */ - <&dwdma0 0x0280 0 0 0>; /* 0x5 << 7 */ + dmas = <&dwdma0 4 0 0>, + <&dwdma0 5 0 0>; dma-names = "tx", "rx"; };
arch/arm/boot/dts/spear600.dtsi +1 -0
@@ -194,6 +194,7 @@ rtc@fc900000 { compatible = "st,spear600-rtc"; reg = <0xfc900000 0x1000>; + interrupt-parent = <&vic0>; interrupts = <10>; status = "disabled"; };
arch/arm/kvm/handle_exit.c +11 -2
@@ -45,7 +45,7 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) ret =kvm_psci_call (vcpu);if (ret <0 ) { -kvm_inject_undefined (vcpu); + *vcpu_reg (vcpu,0 ) = ~0UL ;return 1 ; }
@@ -54,7 +54,16 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)static int handle_smc (struct kvm_vcpu *vcpu,struct kvm_run *run) { -kvm_inject_undefined (vcpu); +/* +* "If an SMC instruction executed at Non-secure EL1 is +* trapped to EL2 because HCR_EL2.TSC is 1, the exception is a +* Trap exception, not a Secure Monitor Call exception [...]" +* +* We need to advance the PC after the trap, as it would +* otherwise return to the same address... +*/ + *vcpu_reg (vcpu,0 ) = ~0UL ; +kvm_skip_instr (vcpu,kvm_vcpu_trap_il_is32bit (vcpu));return 1 ; }
arch/arm/mach-mvebu/Kconfig +2 -2
@@ -33,7 +33,7 @@ config MACH_ARMADA_370 config MACH_ARMADA_375 bool "Marvell Armada 375 boards" if ARCH_MULTI_V7 select ARM_ERRATA_720789 - select ARM_ERRATA_753970 + select PL310_ERRATA_753970 select ARM_GIC select ARMADA_375_CLK select HAVE_ARM_SCU
@@ -48,7 +48,7 @@ config MACH_ARMADA_375 config MACH_ARMADA_38X bool "Marvell Armada 380/385 boards" if ARCH_MULTI_V7 select ARM_ERRATA_720789 - select ARM_ERRATA_753970 + select PL310_ERRATA_753970 select ARM_GIC select ARMADA_38X_CLK select HAVE_ARM_SCU
arch/arm/xen/enlighten.c +1 -0
@@ -344,6 +344,7 @@ void xen_arch_pre_suspend(void) { }void xen_arch_post_suspend (int suspend_cancelled) { }void xen_timer_resume (void ) { }void xen_arch_resume (void ) { } +void xen_arch_suspend (void ) { }/* In the hypervisor.S file. */
arch/arm64/kernel/process.c +10 -6
@@ -31,7 +31,6 @@#include <linux/delay.h> #include <linux/reboot.h> #include <linux/interrupt.h> -#include <linux/kallsyms.h> #include <linux/init.h> #include <linux/cpu.h> #include <linux/elfcore.h>
@@ -198,11 +197,16 @@ void __show_regs(struct pt_regs *regs) }show_regs_print_info (KERN_DEFAULT ); -print_symbol ("PC is at %s\n" ,instruction_pointer (regs)); -print_symbol ("LR is at %s\n" , lr); -printk ("pc : [<%016llx>] lr : [<%016llx>] pstate: %08llx\n" , - regs->pc, lr, regs->pstate); -printk ("sp : %016llx\n" , sp); + +if (!user_mode (regs)) { +printk ("pc : %pS\n" , (void *)regs->pc); +printk ("lr : %pS\n" , (void *)lr); + }else { +printk ("pc : %016llx\n" , regs->pc); +printk ("lr : %016llx\n" , lr); + } + +printk ("sp : %016llx pstate : %08llx\n" , sp, regs->pstate);for (i = top_reg; i >=0 ; i--) {printk ("x%-2d: %016llx " , i, regs->regs[i]);if (i %2 ==0 )
arch/arm64/kernel/traps.c +2 -56
79 lines not on this page · raw message
arch/arm64/kvm/handle_exit.c +9 -0
@@ -43,7 +43,16 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)static int handle_smc (struct kvm_vcpu *vcpu,struct kvm_run *run) { +/* +* "If an SMC instruction executed at Non-secure EL1 is +* trapped to EL2 because HCR_EL2.TSC is 1, the exception is a +* Trap exception, not a Secure Monitor Call exception [...]" +* +* We need to advance the PC after the trap, as it would +* otherwise return to the same address... +*/ *vcpu_reg (vcpu,0 ) = ~0UL ; +kvm_skip_instr (vcpu,kvm_vcpu_trap_il_is32bit (vcpu));return 1 ; }
arch/ia64/scripts/unwcheck.py +8 -8
@@ -15,7 +15,7 @@ import re import sys if len(sys.argv) != 2: - print "Usage: %s FILE" % sys.argv[0] + print("Usage: %s FILE" % sys.argv[0]) sys.exit(2) readelf = os.getenv("READELF", "readelf")
@@ -28,7 +28,7 @@ rlen_pattern = re.compile(".*rlen=([0-9]+)") global num_errors num_errors += 1 if not func: func = "[%#x-%#x]" % (start, end) - print "ERROR: %s: %lu slots, total region length = %lu" % (func, slots, rlen_sum) + print("ERROR: %s: %lu slots, total region length = %lu" % (func, slots, rlen_sum)) return num_funcs = 0
@@ -42,23 +42,23 @@ rlen_sum = 0 check_func(func, slots, rlen_sum) func = m.group(1) - start = long(m.group(2), 16) - end = long(m.group(3), 16) + start = int(m.group(2), 16) + end = int(m.group(3), 16) slots = 3 * (end - start) / 16 - rlen_sum = 0L + rlen_sum = 0 num_funcs += 1 else: m = rlen_pattern.match(line) if m: - rlen_sum += long(m.group(1)) + rlen_sum += int(m.group(1)) check_func(func, slots, rlen_sum) if num_errors == 0: - print "No errors detected in %u functions." % num_funcs + print("No errors detected in %u functions." % num_funcs) else: if num_errors > 1: err="errors" else: err="error" - print "%u %s detected in %u functions." % (num_errors, err, num_funcs) + print("%u %s detected in %u functions." % (num_errors, err, num_funcs)) sys.exit(1)
arch/mips/boot/compressed/Makefile +5 -1
@@ -117,4 +117,8 @@ OBJCOPYFLAGS_vmlinuz.srec := $(OBJCOPYFLAGS) -S -O srec vmlinuz.srec: vmlinuz $(call cmd,objcopy) -clean-files := $(objtree)/vmlinuz $(objtree)/vmlinuz.{32,ecoff,bin,srec} +clean-files += $(objtree)/vmlinuz +clean-files += $(objtree)/vmlinuz.32 +clean-files += $(objtree)/vmlinuz.ecoff +clean-files += $(objtree)/vmlinuz.bin +clean-files += $(objtree)/vmlinuz.srec
arch/mips/kernel/smp-bmips.c +4 -4
@@ -159,11 +159,11 @@ static void bmips_prepare_cpus(unsigned int max_cpus)return ; } -if (request_irq (IPI0_IRQ , bmips_ipi_interrupt,IRQF_PERCPU , -"smp_ipi0" ,NULL )) +if (request_irq (IPI0_IRQ , bmips_ipi_interrupt, +IRQF_PERCPU |IRQF_NO_SUSPEND ,"smp_ipi0" ,NULL ))panic ("Can't request IPI0 interrupt" ); -if (request_irq (IPI1_IRQ , bmips_ipi_interrupt,IRQF_PERCPU , -"smp_ipi1" ,NULL )) +if (request_irq (IPI1_IRQ , bmips_ipi_interrupt, +IRQF_PERCPU |IRQF_NO_SUSPEND ,"smp_ipi1" ,NULL ))panic ("Can't request IPI1 interrupt" ); }
arch/mips/kernel/traps.c +7 -8
@@ -1247,7 +1247,7 @@ asmlinkage void do_cpu(struct pt_regs *regs) status =-1 ;if (unlikely (compute_return_epc (regs) <0 )) - goto out; +break ;if (get_isa16_mode (regs->cp0_epc)) {unsigned short mmop[2 ] = {0 };
@@ -1280,7 +1280,7 @@ asmlinkage void do_cpu(struct pt_regs *regs)force_sig (status, current); } - goto out; +break ;case 3 :/*
@@ -1296,8 +1296,10 @@ asmlinkage void do_cpu(struct pt_regs *regs)* erroneously too, so they are covered by this choice * as well. */ -if (raw_cpu_has_fpu) +if (raw_cpu_has_fpu) { +force_sig (SIGILL , current);break ; + }/* Fall through. */ case 1 :
@@ -1320,16 +1322,13 @@ asmlinkage void do_cpu(struct pt_regs *regs)if (!process_fpemu_return (sig, fault_addr, fcr31) && !err)mt_ase_fp_affinity (); - goto out; +break ;case 2 :raw_notifier_call_chain (&cu2_chain,CU2_EXCEPTION , regs); - goto out; +break ; } -force_sig (SIGILL , current); - -out:exception_exit (prev_state); }
arch/mips/ralink/reset.c +0 -8
@@ -88,17 +88,9 @@ static void ralink_restart(char *command)unreachable (); } -static void ralink_halt (void ) -{ -local_irq_disable (); -unreachable (); -} -static int __init mips_reboot_setup (void ) { _machine_restart = ralink_restart; - _machine_halt = ralink_halt; - pm_power_off = ralink_halt;return 0 ; }
arch/mips/txx9/rbtx4939/setup.c +2 -2
@@ -186,7 +186,7 @@ static void __init rbtx4939_update_ioc_pen(void)#define RBTX4939_MAX_7SEGLEDS 8 -#if IS_ENABLED(CONFIG_LEDS_CLASS) +#if IS_BUILTIN(CONFIG_LEDS_CLASS) static u8 led_val[RBTX4939_MAX_7SEGLEDS]; struct rbtx4939_led_data { struct led_classdev cdev;
@@ -262,7 +262,7 @@ static inline void rbtx4939_led_setup(void)static void __rbtx4939_7segled_putc (unsigned int pos,unsigned char val) { -#if IS_ENABLED (CONFIG_LEDS_CLASS ) +#if IS_BUILTIN (CONFIG_LEDS_CLASS )unsigned long flags;local_irq_save (flags);/* bit7: reserved for LED class */
arch/mn10300/mm/misalignment.c +1 -1
@@ -437,7 +437,7 @@ asmlinkage void misalignment(struct pt_regs *regs, enum exception_code code) info.si_signo =SIGSEGV ; info.si_errno =0 ; - info.si_code =0 ; + info.si_code =SEGV_MAPERR ; info.si_addr = (void *) regs->pc;force_sig_info (SIGSEGV , &info, current);return ;
arch/openrisc/kernel/traps.c +5 -5
@@ -302,12 +302,12 @@ asmlinkage void do_unaligned_access(struct pt_regs *regs, unsigned long address)siginfo_t info;if (user_mode (regs)) { -/* Send a SIGSEGV */ - info.si_signo =SIGSEGV ; +/* Send a SIGBUS */ + info.si_signo =SIGBUS ; info.si_errno =0 ; -/* info.si_code has been set above */ - info.si_addr = (void *)address; -force_sig_info (SIGSEGV , &info, current); + info.si_code =BUS_ADRALN ; + info.si_addr = (void __user *)address; +force_sig_info (SIGBUS , &info, current); }else {printk ("KERNEL: Unaligned Access 0x%.8lx\n" , address);show_registers (regs);
arch/powerpc/include/asm/kvm_book3s.h +2 -4
@@ -190,10 +190,8 @@ extern void kvmppc_hv_entry_trampoline(void);extern u32 kvmppc_alignment_dsisr (struct kvm_vcpu *vcpu,unsigned int inst);extern ulong kvmppc_alignment_dar (struct kvm_vcpu *vcpu,unsigned int inst);extern int kvmppc_h_pr (struct kvm_vcpu *vcpu,unsigned long cmd); -extern void kvmppc_copy_to_svcpu (struct kvmppc_book3s_shadow_vcpu *svcpu, -struct kvm_vcpu *vcpu); -extern void kvmppc_copy_from_svcpu (struct kvm_vcpu *vcpu, -struct kvmppc_book3s_shadow_vcpu *svcpu); +extern void kvmppc_copy_to_svcpu (struct kvm_vcpu *vcpu); +extern void kvmppc_copy_from_svcpu (struct kvm_vcpu *vcpu);static inline struct kvmppc_vcpu_book3s *to_book3s (struct kvm_vcpu *vcpu) {
arch/powerpc/include/asm/topology.h +8 -0
@@ -44,6 +44,11 @@ extern void __init dump_numa_cpu_topology(void);extern int sysfs_add_device_to_node (struct device *dev,int nid);extern void sysfs_remove_device_from_node (struct device *dev,int nid); +static inline void update_numa_cpu_lookup_table (unsigned int cpu,int node) +{ + numa_cpu_lookup_table[cpu] = node; +} +static inline int early_cpu_to_node (int cpu) {int nid;
@@ -71,6 +76,9 @@ static inline void sysfs_remove_device_from_node(struct device *dev, int nid) { } + +static inline void update_numa_cpu_lookup_table (unsigned int cpu,int node) {} +#endif /* CONFIG_NUMA */ #if defined(CONFIG_NUMA ) && defined(CONFIG_PPC_SPLPAR )
arch/powerpc/kernel/entry_64.S +7 -3
@@ -885,9 +885,13 @@ END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR) beq 1f rlwinm r7,r7,0,~PACA_IRQ_HARD_DIS stb r7,PACAIRQHAPPENED(r13) -1: li r0,0 - stb r0,PACASOFTIRQEN(r13); - TRACE_DISABLE_INTS +1: +#if defined(CONFIG_TRACE_IRQFLAGS) && defined(CONFIG_BUG) + /* The interrupt should not have soft enabled. */ + lbz r7,PACASOFTIRQEN(r13) +1: tdnei r7,0 + EMIT_BUG_ENTRY 1b,__FILE__,__LINE__,BUGFLAG_WARNING +#endif b do_restore /*
arch/powerpc/kvm/book3s_interrupts.S +1 -3
@@ -96,7 +96,7 @@ _GLOBAL(__kvmppc_vcpu_run) kvm_start_lightweight: /* Copy registers into shadow vcpu so we can access them in real mode */ - GET_SHADOW_VCPU(r3) + mr r3, r4 bl FUNC(kvmppc_copy_to_svcpu) nop REST_GPR(4, r1)
@@ -165,9 +165,7 @@ _GLOBAL(__kvmppc_vcpu_run) stw r12, VCPU_TRAP(r3) /* Transfer reg values from shadow vcpu back to vcpu struct */ - /* On 64-bit, interrupts are still off at this point */ - GET_SHADOW_VCPU(r4) bl FUNC(kvmppc_copy_from_svcpu) nop
arch/powerpc/kvm/book3s_pr.c +9 -11
@@ -82,7 +82,7 @@ static void kvmppc_core_vcpu_put_pr(struct kvm_vcpu *vcpu)#ifdef CONFIG_PPC_BOOK3S_64 struct kvmppc_book3s_shadow_vcpu *svcpu =svcpu_get (vcpu);if (svcpu->in_use) { -kvmppc_copy_from_svcpu (vcpu, svcpu); +kvmppc_copy_from_svcpu (vcpu); }memcpy (to_book3s (vcpu)->slb_shadow, svcpu->slb,sizeof (svcpu->slb));to_book3s (vcpu)->slb_shadow_max = svcpu->slb_max;
@@ -95,9 +95,10 @@ static void kvmppc_core_vcpu_put_pr(struct kvm_vcpu *vcpu) }/* Copy data needed by real-mode code from vcpu to shadow vcpu */ -void kvmppc_copy_to_svcpu (struct kvmppc_book3s_shadow_vcpu *svcpu, -struct kvm_vcpu *vcpu) +void kvmppc_copy_to_svcpu (struct kvm_vcpu *vcpu) { +struct kvmppc_book3s_shadow_vcpu *svcpu =svcpu_get (vcpu); + svcpu->gpr[0 ] = vcpu->arch.gpr[0 ]; svcpu->gpr[1 ] = vcpu->arch.gpr[1 ]; svcpu->gpr[2 ] = vcpu->arch.gpr[2 ];
@@ -121,17 +122,14 @@ void kvmppc_copy_to_svcpu(struct kvmppc_book3s_shadow_vcpu *svcpu, svcpu->shadow_fscr = vcpu->arch.shadow_fscr;#endif svcpu->in_use = true; + +svcpu_put (svcpu); }/* Copy data touched by real-mode code from shadow vcpu back to vcpu */ -void kvmppc_copy_from_svcpu (struct kvm_vcpu *vcpu, -struct kvmppc_book3s_shadow_vcpu *svcpu) +void kvmppc_copy_from_svcpu (struct kvm_vcpu *vcpu) { -/* -* vcpu_put would just call us again because in_use hasn't -* been updated yet. -*/ -preempt_disable (); +struct kvmppc_book3s_shadow_vcpu *svcpu =svcpu_get (vcpu);/* * Maybe we were already preempted and synced the svcpu from
@@ -169,7 +167,7 @@ void kvmppc_copy_from_svcpu(struct kvm_vcpu *vcpu, svcpu->in_use = false; out: -preempt_enable (); +svcpu_put (svcpu); }static int kvmppc_core_check_requests_pr (struct kvm_vcpu *vcpu)
arch/powerpc/mm/numa.c +0 -5
@@ -162,11 +162,6 @@ static void reset_numa_cpu_lookup_table(void) numa_cpu_lookup_table[cpu] =-1 ; } -static void update_numa_cpu_lookup_table (unsigned int cpu,int node) -{ - numa_cpu_lookup_table[cpu] = node; -} -static void map_cpu_to_node (int cpu,int node) {update_numa_cpu_lookup_table (cpu, node);
arch/powerpc/platforms/pseries/hotplug-cpu.c +2 -0
@@ -31,6 +31,7 @@#include <asm/vdso_datapage.h> #include <asm/xics.h> #include <asm/plpar_wrappers.h> +#include <asm/topology.h> #include "offline_states.h"
@@ -328,6 +329,7 @@ static void pseries_remove_processor(struct device_node *np)BUG_ON (cpu_online (cpu));set_cpu_present (cpu, false);set_hard_smp_processor_id (cpu,-1 ); +update_numa_cpu_lookup_table (cpu,-1 );break ; }if (cpu >= nr_cpu_ids)
arch/s390/kernel/compat_linux.c +4 -4
@@ -110,7 +110,7 @@ COMPAT_SYSCALL_DEFINE2(s390_setregid16, u16, rgid, u16, egid) COMPAT_SYSCALL_DEFINE1(s390_setgid16, u16, gid) { -return sys_setgid ((gid_t )gid); +return sys_setgid (low2highgid (gid)); }COMPAT_SYSCALL_DEFINE2 (s390_setreuid16, u16, ruid, u16, euid)
@@ -120,7 +120,7 @@ COMPAT_SYSCALL_DEFINE2(s390_setreuid16, u16, ruid, u16, euid) COMPAT_SYSCALL_DEFINE1(s390_setuid16, u16, uid) { -return sys_setuid ((uid_t )uid); +return sys_setuid (low2highuid (uid)); }COMPAT_SYSCALL_DEFINE3 (s390_setresuid16, u16, ruid, u16, euid, u16, suid)
@@ -173,12 +173,12 @@ COMPAT_SYSCALL_DEFINE3(s390_getresgid16, u16 __user *, rgidp, COMPAT_SYSCALL_DEFINE1(s390_setfsuid16, u16, uid) { -return sys_setfsuid ((uid_t )uid); +return sys_setfsuid (low2highuid (uid)); } COMPAT_SYSCALL_DEFINE1(s390_setfsgid16, u16, gid) { -return sys_setfsgid ((gid_t )gid); +return sys_setfsgid (low2highgid (gid)); }static int groups16_to_user (u16 __user *grouplist,struct group_info *group_info)
arch/s390/kvm/kvm-s390.c +1 -0
@@ -62,6 +62,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { { "deliver_prefix_signal", VCPU_STAT(deliver_prefix_signal) }, { "deliver_restart_signal", VCPU_STAT(deliver_restart_signal) }, { "deliver_program_interruption", VCPU_STAT(deliver_program_int) }, + { "deliver_io_interrupt", VCPU_STAT(deliver_io_int) }, { "exit_wait_state", VCPU_STAT(exit_wait_state) }, { "instruction_pfmf", VCPU_STAT(instruction_pfmf) }, { "instruction_stidp", VCPU_STAT(instruction_stidp) },
arch/sh/kernel/traps_32.c +2 -1
@@ -607,7 +607,8 @@ asmlinkage void do_divide_error(unsigned long r4) break; } -force_sig_info (SIGFPE , &info, current); + info.si_signo =SIGFPE ; +force_sig_info (info.si_signo, &info, current); }#endif
arch/sparc/crypto/crc32c_glue.c +1 -0
@@ -133,6 +133,7 @@ static struct shash_alg alg = { .cra_name = "crc32c", .cra_driver_name = "crc32c-sparc64", .cra_priority = SPARC_CR_OPCODE_PRIORITY, + .cra_flags = CRYPTO_ALG_OPTIONAL_KEY, .cra_blocksize = CHKSUM_BLOCK_SIZE, .cra_ctxsize = sizeof(u32), .cra_alignmask = 7,
arch/x86/crypto/crc32-pclmul_glue.c +1 -0
@@ -162,6 +162,7 @@ static struct shash_alg alg = { .cra_name = "crc32", .cra_driver_name = "crc32-pclmul", .cra_priority = 200, + .cra_flags = CRYPTO_ALG_OPTIONAL_KEY, .cra_blocksize = CHKSUM_BLOCK_SIZE, .cra_ctxsize = sizeof(u32), .cra_module = THIS_MODULE,
arch/x86/crypto/crc32c-intel_glue.c +1 -0
@@ -240,6 +240,7 @@ static struct shash_alg alg = { .cra_name = "crc32c", .cra_driver_name = "crc32c-intel", .cra_priority = 200, + .cra_flags = CRYPTO_ALG_OPTIONAL_KEY, .cra_blocksize = CHKSUM_BLOCK_SIZE, .cra_ctxsize = sizeof(u32), .cra_module = THIS_MODULE,
arch/x86/include/asm/apm.h +6 -0
@@ -6,6 +6,8 @@#ifndef _ASM_X86_MACH_DEFAULT_APM_H#define _ASM_X86_MACH_DEFAULT_APM_H +#include <asm/nospec-branch.h> +#ifdef APM_ZERO_SEGS # define APM_DO_ZERO_SEGS \ "pushl %%ds\n\t" \
@@ -31,6 +33,7 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in,* N.B. We do NOT need a cld after the BIOS call * because we always save and restore the flags. */ +firmware_restrict_branch_speculation_start (); __asm__ __volatile__(APM_DO_ZERO_SEGS "pushl %%edi\n\t" "pushl %%ebp\n\t"
@@ -43,6 +46,7 @@ static inline void apm_bios_call_asm(u32 func, u32 ebx_in, u32 ecx_in, "=S" (*esi) : "a" (func), "b" (ebx_in), "c" (ecx_in) : "memory", "cc"); +firmware_restrict_branch_speculation_end (); } static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in,
@@ -55,6 +59,7 @@ static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in,* N.B. We do NOT need a cld after the BIOS call * because we always save and restore the flags. */ +firmware_restrict_branch_speculation_start (); __asm__ __volatile__(APM_DO_ZERO_SEGS "pushl %%edi\n\t" "pushl %%ebp\n\t"
@@ -67,6 +72,7 @@ static inline u8 apm_bios_call_simple_asm(u32 func, u32 ebx_in, "=S" (si) : "a" (func), "b" (ebx_in), "c" (ecx_in) : "memory", "cc"); +firmware_restrict_branch_speculation_end ();return error; }
arch/x86/include/asm/cpufeature.h +14 -1
@@ -8,7 +8,7 @@#include <asm/required-features.h> #endif -#define NCAPINTS 10/* N 32-bit words worth of info */ +#define NCAPINTS 12/* N 32-bit words worth of info */ #define NBUGINTS 1/* N 32-bit bug flags */ /*
@@ -189,6 +189,9 @@#define X86_FEATURE_INVPCID_SINGLE (7*32+10)/* Effectively INVPCID && CR4.PCIDE=1 */ #define X86_FEATURE_RSB_CTXSW (7*32+11)/* "" Fill RSB on context switches */ +#define X86_FEATURE_USE_IBPB (7*32+12)/* "" Indirect Branch Prediction Barrier enabled */ +#define X86_FEATURE_USE_IBRS_FW (7*32+13)/* "" Use IBRS during runtime firmware calls */ +#define X86_FEATURE_RETPOLINE (7*32+29)/* "" Generic Retpoline mitigation for Spectre variant 2 */ #define X86_FEATURE_RETPOLINE_AMD (7*32+30)/* "" AMD Retpoline mitigation for Spectre variant 2 */ /* Because the ALTERNATIVE scheme is for members of the X86_FEATURE club... */
@@ -234,6 +237,16 @@#define X86_FEATURE_AVX512ER (9*32+27)/* AVX-512 Exponential and Reciprocal */ #define X86_FEATURE_AVX512CD (9*32+28)/* AVX-512 Conflict Detection */ +/* Intel-defined CPU features, CPUID level 0x00000007:0 (EDX), word 10 */ +#define X86_FEATURE_SPEC_CTRL (10*32+26)/* "" Speculation Control (IBRS + IBPB) */ +#define X86_FEATURE_INTEL_STIBP (10*32+27)/* "" Single Thread Indirect Branch Predictors */ +#define X86_FEATURE_ARCH_CAPABILITIES (10*32+29)/* IA32_ARCH_CAPABILITIES MSR (Intel) */ + +/* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 11 */ +#define X86_FEATURE_IBPB (11*32+12)/* Indirect Branch Prediction Barrier */ +#define X86_FEATURE_IBRS (11*32+14)/* Indirect Branch Restricted Speculation */ +#define X86_FEATURE_STIBP (11*32+15)/* Single Thread Indirect Branch Predictors */ +/* * BUG word(s) */
arch/x86/include/asm/efi.h +8 -0
@@ -2,6 +2,8 @@#define _ASM_X86_EFI_H#include <asm/i387.h> +#include <asm/nospec-branch.h> +/* * We map the EFI regions needed for runtime services non-contiguously, * with preserved alignment on virtual addresses starting from -4G down
@@ -37,8 +39,10 @@ extern unsigned long asmlinkage efi_call_phys(void *, ...); ({ \ efi_status_t __s; \ kernel_fpu_begin(); \ + firmware_restrict_branch_speculation_start(); \ __s = ((efi_##f##_t __attribute__((regparm(0)))*) \ efi.systab->runtime->f)(args); \ + firmware_restrict_branch_speculation_end(); \ kernel_fpu_end(); \ __s; \ })
@@ -47,8 +51,10 @@ extern unsigned long asmlinkage efi_call_phys(void *, ...); #define __efi_call_virt(f, args...) \ ({ \ kernel_fpu_begin(); \ + firmware_restrict_branch_speculation_start(); \ ((efi_##f##_t __attribute__((regparm(0)))*) \ efi.systab->runtime->f)(args); \ + firmware_restrict_branch_speculation_end(); \ kernel_fpu_end(); \ })
@@ -69,7 +75,9 @@ extern u64 asmlinkage efi_call(void *fp, ...);efi_sync_low_kernel_mappings (); \preempt_disable (); \__kernel_fpu_begin (); \ +firmware_restrict_branch_speculation_start (); \ __s =efi_call ((void *)efi.systab->runtime->f, __VA_ARGS__); \ +firmware_restrict_branch_speculation_end (); \__kernel_fpu_end (); \preempt_enable (); \ __s; \
arch/x86/include/asm/intel-family.h +7 -4
@@ -12,16 +12,18 @@*/ #define INTEL_FAM6_CORE_YONAH 0x0E +#define INTEL_FAM6_CORE2_MEROM 0x0F#define INTEL_FAM6_CORE2_MEROM_L 0x16#define INTEL_FAM6_CORE2_PENRYN 0x17#define INTEL_FAM6_CORE2_DUNNINGTON 0x1D#define INTEL_FAM6_NEHALEM 0x1E +#define INTEL_FAM6_NEHALEM_G 0x1F/* Auburndale / Havendale */ #define INTEL_FAM6_NEHALEM_EP 0x1A#define INTEL_FAM6_NEHALEM_EX 0x2E +#define INTEL_FAM6_WESTMERE 0x25 -#define INTEL_FAM6_WESTMERE2 0x1F#define INTEL_FAM6_WESTMERE_EP 0x2C#define INTEL_FAM6_WESTMERE_EX 0x2F
@@ -36,9 +38,9 @@#define INTEL_FAM6_HASWELL_GT3E 0x46#define INTEL_FAM6_BROADWELL_CORE 0x3D -#define INTEL_FAM6_BROADWELL_XEON_D 0x56#define INTEL_FAM6_BROADWELL_GT3E 0x47#define INTEL_FAM6_BROADWELL_X 0x4F +#define INTEL_FAM6_BROADWELL_XEON_D 0x56#define INTEL_FAM6_SKYLAKE_MOBILE 0x4E#define INTEL_FAM6_SKYLAKE_DESKTOP 0x5E
@@ -56,10 +58,11 @@#define INTEL_FAM6_ATOM_SILVERMONT1 0x37/* BayTrail/BYT / Valleyview */ #define INTEL_FAM6_ATOM_SILVERMONT2 0x4D/* Avaton/Rangely */ #define INTEL_FAM6_ATOM_AIRMONT 0x4C/* CherryTrail / Braswell */ -#define INTEL_FAM6_ATOM_MERRIFIELD1 0x4A/* Tangier */ -#define INTEL_FAM6_ATOM_MERRIFIELD2 0x5A/* Annidale */ +#define INTEL_FAM6_ATOM_MERRIFIELD 0x4A/* Tangier */ +#define INTEL_FAM6_ATOM_MOOREFIELD 0x5A/* Anniedale */ #define INTEL_FAM6_ATOM_GOLDMONT 0x5C#define INTEL_FAM6_ATOM_DENVERTON 0x5F/* Goldmont Microserver */ +#define INTEL_FAM6_ATOM_GEMINI_LAKE 0x7A/* Xeon Phi */
arch/x86/include/asm/kvm_host.h +4 -4
@@ -682,8 +682,8 @@ struct kvm_x86_ops {void (*vcpu_load)(struct kvm_vcpu *vcpu,int cpu);void (*vcpu_put)(struct kvm_vcpu *vcpu); -void (*update_db_bp_intercept)(struct kvm_vcpu *vcpu); -int (*get_msr)(struct kvm_vcpu *vcpu,u32 msr_index,u64 *pdata); +void (*update_bp_intercept)(struct kvm_vcpu *vcpu); +int (*get_msr)(struct kvm_vcpu *vcpu,struct msr_data *msr);int (*set_msr)(struct kvm_vcpu *vcpu,struct msr_data *msr);u64 (*get_segment_base)(struct kvm_vcpu *vcpu,int seg); void (*get_segment)(struct kvm_vcpu *vcpu,
@@ -853,7 +853,7 @@ static inline int emulate_instruction(struct kvm_vcpu *vcpu,void kvm_enable_efer_bits (u64 );bool kvm_valid_efer (struct kvm_vcpu *vcpu,u64 efer); -int kvm_get_msr (struct kvm_vcpu *vcpu,u32 msr_index,u64 *data); +int kvm_get_msr (struct kvm_vcpu *vcpu,struct msr_data *msr);int kvm_set_msr (struct kvm_vcpu *vcpu,struct msr_data *msr);struct x86_emulate_ctxt ;
@@ -881,7 +881,7 @@ void kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw);void kvm_get_cs_db_l_bits (struct kvm_vcpu *vcpu,int *db,int *l);int kvm_set_xcr (struct kvm_vcpu *vcpu,u32 index,u64 xcr); -int kvm_get_msr_common (struct kvm_vcpu *vcpu,u32 msr,u64 *pdata); +int kvm_get_msr_common (struct kvm_vcpu *vcpu,struct msr_data *msr);int kvm_set_msr_common (struct kvm_vcpu *vcpu,struct msr_data *msr);unsigned long kvm_get_rflags (struct kvm_vcpu *vcpu);
arch/x86/include/asm/nospec-branch.h +37 -0
@@ -6,6 +6,7 @@#include <asm/alternative.h> #include <asm/alternative-asm.h> #include <asm/cpufeature.h> +#include <asm/msr-index.h> /* * Fill the CPU return stack buffer.
@@ -194,5 +195,41 @@ static inline void vmexit_fill_RSB(void)#endif } +#define alternative_msr_write (_msr, _val, _feature) \ + asm volatile(ALTERNATIVE("", \ + "movl %[msr], %%ecx\n\t" \ + "movl %[val], %%eax\n\t" \ + "movl $0, %%edx\n\t" \ + "wrmsr", \ + _feature) \ + : : [msr] "i" (_msr), [val] "i" (_val) \ + : "eax", "ecx", "edx", "memory") + +static inline void indirect_branch_prediction_barrier (void ) +{ +alternative_msr_write (MSR_IA32_PRED_CMD ,PRED_CMD_IBPB , +X86_FEATURE_USE_IBPB ); +} + +/* +* With retpoline, we must use IBRS to restrict branch prediction +* before calling into firmware. +* +* (Implemented as CPP macros due to header hell.) +*/ +#define firmware_restrict_branch_speculation_start () \ +do { \ + preempt_disable(); \ + alternative_msr_write(MSR_IA32_SPEC_CTRL, SPEC_CTRL_IBRS, \ + X86_FEATURE_USE_IBRS_FW); \ +} while (0) + +#define firmware_restrict_branch_speculation_end () \ +do { \ + alternative_msr_write(MSR_IA32_SPEC_CTRL, 0, \ + X86_FEATURE_USE_IBRS_FW); \ + preempt_enable(); \ +} while (0) +#endif /* __ASSEMBLY__ */ #endif /* _ASM_X86_NOSPEC_BRANCH_H_ */
arch/x86/include/asm/pgtable.h +2 -2
@@ -263,14 +263,14 @@ static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) {pmdval_t v =native_pmd_val (pmd); -return __pmd (v | set); +return native_make_pmd (v | set); }static inline pmd_t pmd_clear_flags (pmd_t pmd,pmdval_t clear) {pmdval_t v =native_pmd_val (pmd); -return __pmd (v & ~clear); +return native_make_pmd (v & ~clear); }static inline pmd_t pmd_mkold (pmd_t pmd)
arch/x86/include/asm/pgtable_types.h +5 -0
@@ -321,6 +321,11 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)#else #include <asm-generic/pgtable-nopmd.h> +static inline pmd_t native_make_pmd (pmdval_t val) +{ +return (pmd_t ) { .pud.pgd =native_make_pgd (val) }; +} +static inline pmdval_t native_pmd_val (pmd_t pmd) {return native_pgd_val (pmd.pud.pgd);
arch/x86/include/asm/vmx.h +1 -0
@@ -296,6 +296,7 @@ enum vmcs_field {#define INTR_TYPE_NMI_INTR (2 << 8)/* NMI */ #define INTR_TYPE_HARD_EXCEPTION (3 << 8)/* processor exception */ #define INTR_TYPE_SOFT_INTR (4 << 8)/* software interrupt */ +#define INTR_TYPE_PRIV_SW_EXCEPTION (5 << 8)/* ICE breakpoint - undocumented */ #define INTR_TYPE_SOFT_EXCEPTION (6 << 8)/* software exception */ /* GUEST_INTERRUPTIBILITY_INFO flags. */
arch/x86/include/uapi/asm/mce.h +4 -0
@@ -25,6 +25,10 @@ struct mce {__u32 socketid;/* CPU socket ID */ __u32 apicid;/* CPU initial apic ID */ __u64 mcgcap;/* MCGCAP MSR: machine check capabilities of CPU */ +__u64 synd;/* MCA_SYND MSR: only valid on SMCA systems */ +__u64 ipid;/* MCA_IPID MSR: only valid on SMCA systems */ +__u64 ppin;/* Protected Processor Inventory Number */ +__u32 microcode;/* Microcode revision */ };#define MCE_GET_RECORD_LEN _IOR('M', 1, int)
arch/x86/include/uapi/asm/msr-index.h +12 -0
@@ -32,6 +32,13 @@#define EFER_FFXSR (1<<_EFER_FFXSR)/* Intel MSRs. Some also available on other CPUs */ +#define MSR_IA32_SPEC_CTRL 0x00000048/* Speculation Control */ +#define SPEC_CTRL_IBRS (1 << 0)/* Indirect Branch Restricted Speculation */ +#define SPEC_CTRL_STIBP (1 << 1)/* Single Thread Indirect Branch Predictors */ + +#define MSR_IA32_PRED_CMD 0x00000049/* Prediction Command */ +#define PRED_CMD_IBPB (1 << 0)/* Indirect Branch Prediction Barrier */ +#define MSR_IA32_PERFCTR0 0x000000c1#define MSR_IA32_PERFCTR1 0x000000c2#define MSR_FSB_FREQ 0x000000cd
@@ -46,6 +53,11 @@#define MSR_PLATFORM_INFO 0x000000ce#define MSR_MTRRcap 0x000000fe + +#define MSR_IA32_ARCH_CAPABILITIES 0x0000010a +#define ARCH_CAP_RDCL_NO (1 << 0)/* Not susceptible to Meltdown */ +#define ARCH_CAP_IBRS_ALL (1 << 1)/* Enhanced IBRS support */ +#define MSR_IA32_BBL_CR_CTL 0x00000119#define MSR_IA32_BBL_CR_CTL3 0x0000011e
arch/x86/kernel/aperture_64.c +45 -1
71 lines not on this page · raw message
arch/x86/kernel/cpu/bugs.c +18 -1
@@ -358,6 +358,21 @@ static void __init spectre_v2_select_mitigation(void)setup_force_cpu_cap (X86_FEATURE_RSB_CTXSW );pr_info ("Filling RSB on context switch\n" ); } + +/* Initialize Indirect Branch Prediction Barrier if supported */ +if (boot_cpu_has (X86_FEATURE_IBPB )) { +setup_force_cpu_cap (X86_FEATURE_USE_IBPB ); +pr_info ("Enabling Indirect Branch Prediction Barrier\n" ); + } + +/* +* Retpoline means the kernel is safe because it has no indirect +* branches. But firmware isn't, so use IBRS to protect that. +*/ +if (boot_cpu_has (X86_FEATURE_IBRS )) { +setup_force_cpu_cap (X86_FEATURE_USE_IBRS_FW ); +pr_info ("Enabling Restricted Speculation for firmware calls\n" ); + } }#undef pr_fmt
@@ -387,7 +402,9 @@ ssize_t cpu_show_spectre_v2(struct device *dev,if (!boot_cpu_has_bug (X86_BUG_SPECTRE_V2 ))return sprintf (buf,"Not affected\n" ); -return sprintf (buf,"%s%s\n" , spectre_v2_strings[spectre_v2_enabled], +return sprintf (buf,"%s%s%s%s\n" , spectre_v2_strings[spectre_v2_enabled], +boot_cpu_has (X86_FEATURE_USE_IBPB ) ?", IBPB" :"" , +boot_cpu_has (X86_FEATURE_USE_IBRS_FW ) ?", IBRS_FW" :"" , spectre_v2_module_string()); }#endif
arch/x86/kernel/cpu/common.c +69 -6
120 lines not on this page · raw message
arch/x86/kernel/cpu/intel.c +71 -0
89 lines not on this page · raw message
arch/x86/kernel/cpu/mcheck/mce.c +24 -2
@@ -57,6 +57,9 @@ static DEFINE_MUTEX(mce_chrdev_read_mutex); rcu_read_lock_sched_held() || \ lockdep_is_held(&mce_chrdev_read_mutex)) +/* sysfs synchronization */ +static DEFINE_MUTEX (mce_sysfs_mutex); +#define CREATE_TRACE_POINTS #include <trace/events/mce.h>
@@ -132,6 +135,8 @@ void mce_setup(struct mce *m) m->socketid =cpu_data (m->extcpu).phys_proc_id; m->apicid =cpu_data (m->extcpu).initial_apicid;rdmsrl (MSR_IA32_MCG_CAP , m->mcgcap); + + m->microcode = boot_cpu_data.microcode; } DEFINE_PER_CPU(struct mce, injectm);
@@ -279,7 +284,7 @@ static void print_mce(struct mce *m)*/ pr_emerg (HW_ERR "PROCESSOR %u:%x TIME %llu SOCKET %u APIC %x microcode %x\n" , m->cpuvendor, m->cpuid, m->time, m->socketid, m->apicid, -cpu_data (m->extcpu).microcode); + m->microcode);/* * Print out human-readable details about the MCE error,
@@ -2199,6 +2204,7 @@ static ssize_t set_ignore_ce(struct device *s,if (strict_strtoull (buf,0 , &new) <0 )return -EINVAL ; +mutex_lock (&mce_sysfs_mutex);if (mca_cfg.ignore_ce ^ !!new) {if (new) {/* disable ce features */
@@ -2211,6 +2217,8 @@ static ssize_t set_ignore_ce(struct device *s,on_each_cpu (mce_enable_ce, (void *)1 ,1 ); } } +mutex_unlock (&mce_sysfs_mutex); +return size; }
@@ -2223,6 +2231,7 @@ static ssize_t set_cmci_disabled(struct device *s,if (strict_strtoull (buf,0 , &new) <0 )return -EINVAL ; +mutex_lock (&mce_sysfs_mutex);if (mca_cfg.cmci_disabled ^ !!new) {if (new) {/* disable cmci */
@@ -2234,6 +2243,8 @@ static ssize_t set_cmci_disabled(struct device *s,on_each_cpu (mce_enable_ce,NULL ,1 ); } } +mutex_unlock (&mce_sysfs_mutex); +return size; }
@@ -2241,8 +2252,19 @@ static ssize_t store_int_with_restart(struct device *s,struct device_attribute *attr, const char *buf, size_t size) { - ssize_t ret = device_store_int(s, attr, buf, size); + unsigned long old_check_interval = check_interval; +ssize_t ret =device_store_ulong (s, attr, buf, size); + +if (check_interval == old_check_interval) +return ret; + +if (check_interval <1 ) + check_interval =1 ; + +mutex_lock (&mce_sysfs_mutex);mce_restart (); +mutex_unlock (&mce_sysfs_mutex); +return ret; }
arch/x86/kernel/cpu/microcode/core.c +1 -1
@@ -97,7 +97,7 @@ MODULE_LICENSE("GPL");static struct microcode_ops *microcode_ops; -bool dis_ucode_ldr; +bool dis_ucode_ldr =IS_ENABLED (CONFIG_MICROCODE_EARLY );module_param (dis_ucode_ldr, bool,0 );/*
arch/x86/kernel/cpu/microcode/core_early.c +20 -9
@@ -76,6 +76,8 @@ static int x86_family(void)static bool __init check_loader_disabled_bsp (void ) { +u32 a, b, c, d; +#ifdef CONFIG_X86_32 const char *cmdline = (const char *)__pa_nodebug (boot_command_line);const char *opt ="dis_ucode_ldr" ;
@@ -88,8 +90,23 @@ static bool __init check_loader_disabled_bsp(void)bool *res = &dis_ucode_ldr;#endif -if (cmdline_find_option_bool (cmdline, option)) - *res = true; +if (!have_cpuid_p ()) +return *res; + + a =1 ; + c =0 ; +native_cpuid (&a, &b, &c, &d); + +/* +* CPUID(1).ECX[31]: reserved for hypervisor use. This is still not +* completely accurate as xen pv guests don't see that CPUID bit set but +* that's good enough as they don't land on the BSP path anyway. +*/ +if (c &BIT (31 )) +return *res; + +if (cmdline_find_option_bool (cmdline, option) <=0 ) + *res = false;return *res; }
@@ -101,9 +118,6 @@ void __init load_ucode_bsp(void)if (check_loader_disabled_bsp ())return ; -if (!have_cpuid_p ()) -return ; - vendor =x86_vendor (); x86 =x86_family ();
@@ -124,7 +138,7 @@ void __init load_ucode_bsp(void)static bool check_loader_disabled_ap (void ) {#ifdef CONFIG_X86_32 -return __pa_nodebug (dis_ucode_ldr); +return *((bool *)__pa_nodebug (&dis_ucode_ldr));#else return dis_ucode_ldr;#endif
@@ -137,9 +151,6 @@ void load_ucode_ap(void)if (check_loader_disabled_ap ())return ; -if (!have_cpuid_p ()) -return ; - vendor =x86_vendor (); x86 =x86_family ();
arch/x86/kernel/entry_64.S +1 -1
@@ -1322,7 +1322,7 @@ apicinterrupt3 HYPERVISOR_CALLBACK_VECTOR \ #endif /* CONFIG_HYPERV */ idtentry debug do_debug has_error_code=0 paranoid=1 shift_ist=DEBUG_STACK -idtentry int3 do_int3 has_error_code=0 paranoid=1 shift_ist=DEBUG_STACK +idtentry int3 do_int3 has_error_code=0 idtentry stack_segment do_stack_segment has_error_code=1 #ifdef CONFIG_XEN idtentry xen_debug do_debug has_error_code=0
arch/x86/kernel/traps.c +17 -10
@@ -334,7 +334,6 @@ do_general_protection(struct pt_regs *regs, long error_code) }NOKPROBE_SYMBOL (do_general_protection); -/* May run on IST stack. */ dotraplinkage void notrace do_int3(struct pt_regs *regs, long error_code) {enum ctx_state prev_state;
@@ -367,15 +366,9 @@ dotraplinkage void notrace do_int3(struct pt_regs *regs, long error_code) SIGTRAP) == NOTIFY_STOP) goto exit; -/* -* Let others (NMI) know that the debug stack is in use -* as we may switch to the interrupt stack. -*/ -debug_stack_usage_inc ();preempt_conditional_sti (regs);do_trap (X86_TRAP_BP ,SIGTRAP ,"int3" , regs, error_code,NULL );preempt_conditional_cli (regs); -debug_stack_usage_dec (); exit:exception_exit (prev_state); }
@@ -773,9 +766,17 @@ dotraplinkage void do_iret_error(struct pt_regs *regs, long error_code)/* Set of traps needed for early debugging. */ void __init early_trap_init (void ) { -set_intr_gate_ist (X86_TRAP_DB , &debug,DEBUG_STACK ); +/* +* Don't set ist to DEBUG_STACK as it doesn't work until TSS is +* ready in cpu_init() <-- trap_init(). Before trap_init(), CPU +* runs at ring 0 so it is impossible to hit an invalid stack. +* Using the original stack works well enough at this early +* stage. DEBUG_STACK will be equipped after cpu_init() in +* trap_init(). +*/ +set_intr_gate_ist (X86_TRAP_DB , &debug,0 );/* int3 can be called from all */ -set_system_intr_gate_ist (X86_TRAP_BP , &int3,DEBUG_STACK ); +set_system_intr_gate_ist (X86_TRAP_BP , &int3,0 );#ifdef CONFIG_X86_32 set_intr_gate (X86_TRAP_PF , page_fault);#endif
@@ -853,11 +854,17 @@ void __init trap_init(void)*/ cpu_init (); +/* +* X86_TRAP_DB was installed in early_trap_init(). However, +* DEBUG_STACK works only after cpu_init() loads TSS. See comments +* in early_trap_init(). +*/ +set_intr_gate_ist (X86_TRAP_DB , &debug,DEBUG_STACK ); + x86_init.irqs.trap_init ();#ifdef CONFIG_X86_64 memcpy (&debug_idt_table, &idt_table,IDT_ENTRIES *16 );set_nmi_gate (X86_TRAP_DB , &debug); -set_nmi_gate (X86_TRAP_BP , &int3);#endif }
arch/x86/kvm/cpuid.c +21 -3
@@ -300,6 +300,10 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, F(3DNOWPREFETCH) | F(OSVW) | 0 /* IBS */ | F(XOP) |0 /* SKINIT, WDT, LWP */ |F (FMA4 ) |F (TBM ); +/* cpuid 0x80000008.ebx */ +const u32 kvm_cpuid_8000_0008_ebx_x86_features = +F (IBPB ) |F (IBRS ); +/* cpuid 0xC0000001.edx */ const u32 kvm_supported_word5_x86_features = F(XSTORE) | F(XSTORE_EN) | F(XCRYPT) | F(XCRYPT_EN) |
@@ -312,6 +316,10 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,F (BMI2 ) |F (ERMS ) | f_invpcid |F (RTM ) | f_mpx |F (RDSEED ) |F (ADX ) |F (SMAP ); +/* cpuid 7.0.edx*/ +const u32 kvm_cpuid_7_0_edx_x86_features = +F (SPEC_CTRL ) |F (ARCH_CAPABILITIES ); +/* all calls to cpuid_count() should be made on the same cpu */ get_cpu ();
@@ -383,11 +391,14 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,cpuid_mask (&entry->ebx,9 );// TSC_ADJUST is emulated entry->ebx |=F (TSC_ADJUST ); - }else + entry->edx &= kvm_cpuid_7_0_edx_x86_features; +cpuid_mask (&entry->edx,10 ); + }else { entry->ebx =0 ; + entry->edx =0 ; + } entry->eax =0 ; entry->ecx =0 ; - entry->edx =0 ;break ; }case 9 :
@@ -512,7 +523,14 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,if (!g_phys_as) g_phys_as = phys_as; entry->eax = g_phys_as | (virt_as <<8 ); - entry->ebx = entry->edx =0 ; + entry->edx =0 ; +/* IBRS and IBPB aren't necessarily present in hardware cpuid */ +if (boot_cpu_has (X86_FEATURE_IBPB )) + entry->ebx |=F (IBPB ); +if (boot_cpu_has (X86_FEATURE_IBRS )) + entry->ebx |=F (IBRS ); + entry->ebx &= kvm_cpuid_8000_0008_ebx_x86_features; +cpuid_mask (&entry->ebx,11 );break ; }case 0x80000019 :
arch/x86/kvm/cpuid.h +31 -0
@@ -104,4 +104,35 @@ static inline bool guest_cpuid_has_mpx(struct kvm_vcpu *vcpu)return best && (best->ebx &bit (X86_FEATURE_MPX )); } +static inline bool guest_cpuid_has_ibpb (struct kvm_vcpu *vcpu) +{ +struct kvm_cpuid_entry2 *best; + + best =kvm_find_cpuid_entry (vcpu,0x80000008 ,0 ); +if (best && (best->ebx &bit (X86_FEATURE_IBPB ))) +return true; + best =kvm_find_cpuid_entry (vcpu,7 ,0 ); +return best && (best->edx &bit (X86_FEATURE_SPEC_CTRL )); +} + +static inline bool guest_cpuid_has_ibrs (struct kvm_vcpu *vcpu) +{ +struct kvm_cpuid_entry2 *best; + + best =kvm_find_cpuid_entry (vcpu,0x80000008 ,0 ); +if (best && (best->ebx &bit (X86_FEATURE_IBRS ))) +return true; + best =kvm_find_cpuid_entry (vcpu,7 ,0 ); +return best && (best->edx &bit (X86_FEATURE_SPEC_CTRL )); +} + +static inline bool guest_cpuid_has_arch_capabilities (struct kvm_vcpu *vcpu) +{ +struct kvm_cpuid_entry2 *best; + + best =kvm_find_cpuid_entry (vcpu,7 ,0 ); +return best && (best->edx &bit (X86_FEATURE_ARCH_CAPABILITIES )); +} + +#endif
arch/x86/kvm/svm.c +145 -26
312 lines not on this page · raw message
arch/x86/kvm/vmx.c +339 -280
1,020 lines not on this page · raw message
arch/x86/kvm/x86.c +68 -43
113 lines not on this page · raw message
crypto/algif_hash.c +12 -42
54 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_connector.c +13 -5
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/radeon/radeon_connectors.c +61 -44
105 lines not on this page · raw message
drivers/infiniband/core/ucma.c +40 -11
51 lines not on this page · raw message
drivers/infiniband/ulp/ipoib/ipoib_fs.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/media/platform/exynos4-is/fimc-isp.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/media/usb/dvb-usb-v2/lmedm04.c +24 -15
Lines of this file are not shown. View the raw message.
drivers/media/usb/dvb-usb/dib0700_devices.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/mmc/host/dw_mmc.c +44 -24
68 lines not on this page · raw message
drivers/net/bonding/bond_main.c +37 -36
73 lines not on this page · raw message
drivers/net/can/cc770/cc770.c +61 -39
100 lines not on this page · raw message
drivers/net/ethernet/broadcom/bcmsysport.c +15 -18
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bcmsysport.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/ich8lan.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/mac.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c +14 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +19 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/en_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/mr.c +21 -19
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/qp.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath9k/htc_drv_main.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/brcm80211/brcmfmac/p2p.c +11 -13
Lines of this file are not shown. View the raw message.
drivers/platform/x86/apple-gmux.c +1 -47
48 lines not on this page · raw message
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto-adler.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lustre/libcfs/tracefile.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/usbip/userspace/src/usbip_bind.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/staging/usbip/userspace/src/usbip_list.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/usb/mon/mon_text.c +78 -46
124 lines not on this page · raw message
drivers/usb/serial/usb-serial-simple.c +24 -2
Lines of this file are not shown. View the raw message.
fs/aio.c +73 -61
134 lines not on this page · raw message
fs/btrfs/inode.c +29 -15
44 lines not on this page · raw message
fs/ocfs2/cluster/nodemanager.c +55 -8
63 lines not on this page · raw message
fs/pipe.c +109 -89
198 lines not on this page · raw message
net/bridge/netfilter/ebt_among.c +53 -2
55 lines not on this page · raw message
net/decnet/af_decnet.c +33 -29
62 lines not on this page · raw message
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +5 -1
Lines of this file are not shown. View the raw message.
net/ipv4/route.c +53 -61
114 lines not on this page · raw message
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +12 -6
Lines of this file are not shown. View the raw message.
net/ipv6/netfilter/nf_nat_l3proto_ipv6.c +4 -0
Lines of this file are not shown. View the raw message.
net/l2tp/l2tp_core.c +68 -134
202 lines not on this page · raw message
net/l2tp/l2tp_ppp.c +38 -88
126 lines not on this page · raw message
sound/usb/quirks-table.h +47 -0
47 lines not on this page · raw message
tools/testing/selftests/rcutorture/bin/configinit.sh +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/rcutorture/bin/kvm.sh +2 -2
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.