Linux 4.4.180
Greg KH
maintainerI'm announcing the release of the 4.4.180 kernel.
All users of the 4.4 kernel series must upgrade.
The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/ABI/testing/sysfs-devices-system-cpu | 2 Documentation/hw-vuln/mds.rst | 305 +++++++++ Documentation/kernel-parameters.txt | 110 +++ Documentation/networking/ip-sysctl.txt | 1 Documentation/spec_ctrl.txt | 9 Documentation/usb/power-management.txt | 14 Documentation/x86/mds.rst | 225 ++++++ Makefile | 2 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 1 arch/arm/mach-iop13xx/setup.c | 8 arch/arm/mach-iop13xx/tpmi.c | 10 arch/arm/plat-iop/adma.c | 6 arch/arm/plat-orion/common.c | 4 arch/mips/kernel/scall64-o32.S | 2 arch/powerpc/Kconfig | 7 arch/powerpc/include/asm/asm-prototypes.h | 21 arch/powerpc/include/asm/barrier.h | 21 arch/powerpc/include/asm/code-patching-asm.h | 18 arch/powerpc/include/asm/code-patching.h | 2 arch/powerpc/include/asm/exception-64s.h | 35 + arch/powerpc/include/asm/feature-fixups.h | 40 + arch/powerpc/include/asm/hvcall.h | 5 arch/powerpc/include/asm/paca.h | 3 arch/powerpc/include/asm/ppc-opcode.h | 1 arch/powerpc/include/asm/ppc_asm.h | 11 arch/powerpc/include/asm/reg_booke.h | 2 arch/powerpc/include/asm/security_features.h | 92 ++ arch/powerpc/include/asm/setup.h | 23 arch/powerpc/include/asm/uaccess.h | 18 arch/powerpc/kernel/Makefile | 1 arch/powerpc/kernel/asm-offsets.c | 3 arch/powerpc/kernel/entry_32.S | 10 arch/powerpc/kernel/entry_64.S | 69 ++ arch/powerpc/kernel/exceptions-64e.S | 27 arch/powerpc/kernel/exceptions-64s.S | 98 +-- arch/powerpc/kernel/head_booke.h | 12 arch/powerpc/kernel/head_fsl_booke.S | 15 arch/powerpc/kernel/module.c | 10 arch/powerpc/kernel/security.c | 434 +++++++++++++ arch/powerpc/kernel/setup_32.c | 3 arch/powerpc/kernel/setup_64.c | 51 - arch/powerpc/kernel/vmlinux.lds.S | 33 - arch/powerpc/kvm/bookehv_interrupts.S | 4 arch/powerpc/kvm/e500_emulate.c | 7 arch/powerpc/lib/code-patching.c | 29 arch/powerpc/lib/feature-fixups.c | 218 ++++++ arch/powerpc/mm/mem.c | 2 arch/powerpc/mm/tlb_low_64e.S | 7 arch/powerpc/platforms/powernv/setup.c | 99 ++- arch/powerpc/platforms/pseries/mobility.c | 3 arch/powerpc/platforms/pseries/pseries.h | 2 arch/powerpc/platforms/pseries/setup.c | 88 ++ arch/powerpc/xmon/xmon.c | 2 arch/x86/Kconfig | 8 arch/x86/entry/common.c | 3 arch/x86/entry/vdso/Makefile | 3 arch/x86/include/asm/cpufeatures.h | 12 arch/x86/include/asm/intel-family.h | 30 arch/x86/include/asm/irqflags.h | 5 arch/x86/include/asm/microcode_intel.h | 15 arch/x86/include/asm/msr-index.h | 30 arch/x86/include/asm/mwait.h | 7 arch/x86/include/asm/nospec-branch.h | 66 ++ arch/x86/include/asm/pgtable_64.h | 16 arch/x86/include/asm/processor.h | 7 arch/x86/include/asm/spec-ctrl.h | 20 arch/x86/include/asm/switch_to.h | 3 arch/x86/include/asm/thread_info.h | 20 arch/x86/include/asm/tlbflush.h | 8 arch/x86/include/uapi/asm/Kbuild | 1 arch/x86/include/uapi/asm/mce.h | 4 arch/x86/kernel/cpu/bugs.c | 643 ++++++++++++++++---- arch/x86/kernel/cpu/common.c | 140 ++-- arch/x86/kernel/cpu/intel.c | 11 arch/x86/kernel/cpu/mcheck/mce-severity.c | 5 arch/x86/kernel/cpu/mcheck/mce.c | 4 arch/x86/kernel/cpu/microcode/amd.c | 22 arch/x86/kernel/cpu/microcode/intel.c | 64 + arch/x86/kernel/cpu/perf_event_intel.c | 2 arch/x86/kernel/nmi.c | 4 arch/x86/kernel/process.c | 101 ++- arch/x86/kernel/process.h | 39 + arch/x86/kernel/process_32.c | 9 arch/x86/kernel/process_64.c | 9 arch/x86/kernel/traps.c | 8 arch/x86/kvm/cpuid.c | 13 arch/x86/kvm/cpuid.h | 2 arch/x86/kvm/svm.c | 10 arch/x86/kvm/trace.h | 4 arch/x86/kvm/x86.c | 4 arch/x86/mm/kaiser.c | 4 arch/x86/mm/pgtable.c | 6 arch/x86/mm/tlb.c | 114 ++- drivers/ata/libata-zpodd.c | 34 - drivers/base/cpu.c | 8 drivers/block/loop.c | 42 - drivers/block/loop.h | 1 drivers/block/xsysace.c | 2 drivers/gpu/ipu-v3/ipu-dp.c | 12 drivers/hid/hid-debug.c | 5 drivers/hid/hid-input.c | 6 drivers/hwtracing/intel_th/gth.c | 2 drivers/iio/adc/xilinx-xadc-core.c | 2 drivers/input/keyboard/snvs_pwrkey.c | 6 drivers/iommu/amd_iommu_init.c | 2 drivers/md/raid5.c | 19 drivers/media/i2c/ov7670.c | 16 drivers/net/bonding/bond_options.c | 7 drivers/net/bonding/bond_sysfs_slave.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 9 drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 8 drivers/net/ethernet/hisilicon/hns/hnae.c | 4 drivers/net/ethernet/hisilicon/hns/hns_enet.c | 7 drivers/net/ethernet/ibm/ehea/ehea_main.c | 1 drivers/net/ethernet/intel/igb/e1000_defines.h | 2 drivers/net/ethernet/intel/igb/igb_main.c | 57 - drivers/net/ethernet/micrel/ks8851.c | 36 - drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 drivers/net/ethernet/ti/netcp_ethss.c | 8 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 drivers/net/slip/slhc.c | 2 drivers/net/team/team.c | 6 drivers/net/usb/ipheth.c | 33 - drivers/net/wireless/cw1200/scan.c | 5 drivers/nvdimm/btt_devs.c | 18 drivers/platform/x86/sony-laptop.c | 8 drivers/rtc/rtc-da9063.c | 7 drivers/rtc/rtc-sh.c | 2 drivers/s390/block/dasd_eckd.c | 6 drivers/s390/char/con3270.c | 2 drivers/s390/char/fs3270.c | 3 drivers/s390/char/raw3270.c | 3 drivers/s390/char/raw3270.h | 4 drivers/s390/char/tty3270.c | 3 drivers/s390/net/ctcm_main.c | 1 drivers/s390/scsi/zfcp_fc.c | 21 drivers/scsi/csiostor/csio_scsi.c | 5 drivers/scsi/libsas/sas_expander.c | 9 drivers/scsi/qla2xxx/qla_attr.c | 4 drivers/scsi/qla4xxx/ql4_os.c | 2 drivers/scsi/storvsc_drv.c | 13 drivers/staging/iio/addac/adt7316.c | 22 drivers/tty/serial/sc16is7xx.c | 12 drivers/usb/core/driver.c | 36 - drivers/usb/core/hub.c | 16 drivers/usb/core/message.c | 7 drivers/usb/core/sysfs.c | 5 drivers/usb/core/usb.h | 10 drivers/usb/dwc3/core.c | 2 drivers/usb/gadget/udc/net2272.c | 1 drivers/usb/gadget/udc/net2280.c | 8 drivers/usb/host/u132-hcd.c | 3 drivers/usb/misc/yurex.c | 1 drivers/usb/serial/generic.c | 57 + drivers/usb/storage/realtek_cr.c | 13 drivers/usb/storage/uas.c | 38 - drivers/usb/usbip/stub_rx.c | 18 drivers/usb/usbip/usbip_common.h | 7 drivers/vfio/pci/vfio_pci.c | 4 drivers/vfio/vfio_iommu_type1.c | 14 drivers/virt/fsl_hypervisor.c | 29 drivers/w1/masters/ds2490.c | 6 fs/ceph/dir.c | 6 fs/ceph/inode.c | 2 fs/ceph/mds_client.c | 9 fs/ceph/snap.c | 7 fs/cifs/inode.c | 4 fs/debugfs/inode.c | 13 fs/hugetlbfs/inode.c | 20 fs/jffs2/readinode.c | 5 fs/jffs2/super.c | 5 fs/nfs/super.c | 3 fs/nfsd/nfs4callback.c | 8 fs/nfsd/state.h | 1 fs/proc/proc_sysctl.c | 6 include/linux/bitops.h | 21 include/linux/bits.h | 26 include/linux/cpu.h | 19 include/linux/jump_label.h | 6 include/linux/ptrace.h | 21 include/linux/sched.h | 9 include/linux/sched/smt.h | 20 include/linux/usb.h | 2 include/net/addrconf.h | 1 include/net/bluetooth/hci_core.h | 3 include/uapi/linux/prctl.h | 1 init/main.c | 4 kernel/cpu.c | 23 kernel/irq/manage.c | 4 kernel/ptrace.c | 10 kernel/sched/core.c | 24 kernel/sched/fair.c | 4 kernel/sched/sched.h | 1 kernel/time/timer_stats.c | 2 kernel/trace/ring_buffer.c | 2 net/8021q/vlan_dev.c | 4 net/bluetooth/hci_conn.c | 8 net/bluetooth/hidp/sock.c | 1 net/bridge/br_if.c | 13 net/bridge/br_netfilter_hooks.c | 1 net/bridge/br_netfilter_ipv6.c | 2 net/bridge/netfilter/ebtables.c | 3 net/core/filter.c | 23 net/ipv4/ip_output.c | 1 net/ipv4/raw.c | 4 net/ipv4/route.c | 32 net/ipv4/sysctl_net_ipv4.c | 5 net/ipv6/ip6_flowlabel.c | 22 net/ipv6/ipv6_sockglue.c | 3 net/ipv6/mcast.c | 17 net/ipv6/sit.c | 2 net/netfilter/ipvs/ip_vs_core.c | 2 net/netfilter/x_tables.c | 2 net/packet/af_packet.c | 48 + net/sunrpc/cache.c | 3 net/tipc/netlink_compat.c | 24 scripts/Kbuild.include | 4 scripts/kconfig/lxdialog/inputbox.c | 3 scripts/kconfig/nconf.c | 2 scripts/kconfig/nconf.gui.c | 3 security/selinux/hooks.c | 40 - sound/soc/codecs/cs4270.c | 1 sound/soc/codecs/tlv320aic32x4.c | 2 sound/soc/intel/common/sst-dsp.c | 8 sound/soc/soc-pcm.c | 7 sound/usb/line6/driver.c | 60 + sound/usb/line6/toneport.c | 24 tools/lib/traceevent/event-parse.c | 2 tools/power/x86/turbostat/Makefile | 2 tools/testing/selftests/net/run_netsocktests | 2 231 files changed, 4170 insertions(+), 977 deletions(-)
Aditya Pakki (2):
qlcnic: Avoid potential NULL pointer dereference libnvdimm/btt: Fix a kmemdup failure check
Al Viro (3):
ceph: fix use-after-free on symlink traversal
jffs2: fix use-after-free on symlink traversal
debugfs: fix use-after-free on symlink traversal
Alan Stern (4):
USB: yurex: Fix protection fault after device removal
USB: w1 ds2490: Fix bug caused by improper use of altsetting array
USB: core: Fix unterminated string returned by usb_string()
USB: core: Fix bug caused by duplicate interface PM usage counter
Alex Williamson (1):
vfio/type1: Limit DMA mappings per container
Alexander Kappner (1):
usbnet: ipheth: prevent TX queue timeouts when device not ready
Alexander Shishkin (1):
intel_th: gth: Fix an off-by-one in output unassigning
Alexandre Belloni (1):
rtc: da9063: set uie_unsupported when relevant
Alistair Strachan (1):
x86/vdso: Pass --eh-frame-hdr to the linker
Andi Kleen (3):
x86/speculation/mds: Add basic bug infrastructure for MDS x86/kvm: Expose X86_FEATURE_MD_CLEAR to guests x86/cpu/bugs: Use __initconst for 'const' init data
Andrew Vasquez (1):
scsi: qla2xxx: Fix incorrect region-size setting in optrom SYSFS routines
Annaliese McDermond (1):
ASoC: tlv320aic32x4: Fix Common Pins
Anson Huang (1):
Input: snvs_pwrkey - initialize necessary driver data before enabling IRQ
Arnd Bergmann (3):
ARM: orion: don't use using 64-bit DMA masks
ARM: iop: don't use using 64-bit DMA masks
s390: ctcm: fix ctcm_new_device error return code
Arvind Sankar (1):
igb: Fix WARN_ONCE on runtime suspend
Ashok Raj (1):
x86/microcode/intel: Check microcode revision before updating sibling threads
Aurelien Jarno (1):
MIPS: scall64-o32: Fix indirect syscall number load
Ben Hutchings (5):
timer/debug: Change /proc/timer_stats from 0644 to 0600 x86/cpufeatures: Hide AMD-specific speculation flags
sched: Add sched_smt_active() x86/speculation/l1tf: Document l1tf in sysfs x86/bugs: Change L1TF mitigation string to match upstream
Boris Ostrovsky (1):
x86/speculation/mds: Fix comment
Borislav Petkov (1):
x86/microcode/intel: Add a helper which gives the microcode revision
Breno Leitao (1):
powerpc/64s: Include cpu header
Changbin Du (1):
kconfig/[mn]conf: handle backspace (^H) key
Christophe Leroy (3):
powerpc/fsl: Fix the flush of branch predictor.
net: ucc_geth - fix Oops when changing number of buffers in the ring powerpc/lib: fix book3s/32 boot failure due to code patching
Dan Carpenter (2):
drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl
Dan Williams (1):
init: initialize jump labels before command line option parsing
Daniel Borkmann (1):
bpf: reject wrong sized filters earlier
Daniel Mack (1):
ASoC: cs4270: Set auto-increment bit for register writes
David Ahern (1):
ipv4: Fix raw socket lookup for local traffic
Diana Craciun (18):
powerpc/64: Disable the speculation barrier from the command line powerpc/64: Make stf barrier PPC_BOOK3S_64 specific. powerpc/64: Make meltdown reporting Book3S 64 specific powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E powerpc/fsl: Add infrastructure to fixup branch predictor flush powerpc/fsl: Add macro to flush the branch predictor powerpc/fsl: Fix spectre_v2 mitigations reporting
powerpc/fsl: Add nospectre_v2 command line argument powerpc/fsl: Flush the branch predictor at each kernel entry (64bit) powerpc/fsl: Update Spectre v2 reporting
powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used powerpc/fsl: Flush branch predictor when entering KVM powerpc/fsl: Emulate SPRN_BUCSR register
powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit) powerpc/fsl: Sanitize the syscall table for NXP PowerPC 32 bit platforms powerpc/fsl: Fixed warning: orphan section `__btb_flush_fixup' powerpc/fsl: Add FSL_PPC_BOOK3E as supported arch for nospectre_v2 boot arg
Documentation: Add nospectre_v1 parameter
Dmitry Torokhov (2):
HID: input: add mapping for Expose/Overview key
HID: input: add mapping for keyboard Brightness Up/Down/Toggle keys
Dominik Brodowski (1):
x86/speculation: Simplify the CPU bug detection logic
Eduardo Habkost (1):
kvm: x86: Report STIBP on GET_SUPPORTED_CPUID
Eric Dumazet (2):
ipv4: add sanity checks in ipv4_link_failure() ipv6/flowlabel: wait rcu grace period before put_pid()
Filippo Sironi (1):
x86/microcode: Update the new microcode revision unconditionally
Florian Westphal (1):
netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
Francesco Ruggeri (1):
netfilter: compat: initialize all fields in xt_init
Frank Sorenson (1):
cifs: do not attempt cifs operation on smb2+ rename error
Geert Uytterhoeven (1):
rtc: sh: Fix invalid alarm warning for non-enabled alarm
Greg Kroah-Hartman (3):
Revert "block/loop: Use global lock for ioctl() operation."
ALSA: line6: use dynamic buffers
Linux 4.4.180
Guenter Roeck (1):
xsysace: Fix error handling in ace_setup
Guido Kiener (3):
usb: gadget: net2280: Fix overrun of OUT messages
usb: gadget: net2280: Fix net2280_dequeue()
usb: gadget: net2272: Fix net2272_dequeue()Gustavo A. R. Silva (2):
usbnet: ipheth: fix potential null pointer dereference in ipheth_carrier_set platform/x86: sony-laptop: Fix unintentional fall-through
Hangbin Liu (2):
team: fix possible recursive locking when add slaves
vlan: disable SIOCSHWTSTAMP in container
He, Bo (1):
HID: debug: fix race condition with between rdesc_show() and device removal
Jacopo Mondi (1):
media: v4l2: i2c: ov7670: Fix PLL bypass register values
Jarod Wilson (1):
bonding: fix arp_validate toggling in active-backup mode
Jason Yan (1):
scsi: libsas: fix a race condition when smp task timeout
Jeff Layton (1):
ceph: ensure d_name stability in ceph_dentry_hash()
Jeremy Fertic (3):
staging: iio: adt7316: allow adt751x to use internal vref for all dacs
staging: iio: adt7316: fix the dac read calculation
staging: iio: adt7316: fix the dac write calculation
Jiang Biao (1):
x86/speculation: Remove SPECTRE_V2_IBRS in enum spectre_v2_mitigation
Jiri Kosina (3):
x86/speculation: Apply IBPB more strictly to avoid cross-process data leak x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation x86/speculation: Propagate information about RSB filling mitigation to sysfs
Joerg Roedel (1):
iommu/amd: Set exclusion range correctly
Johan Hovold (1):
USB: serial: fix unthrottle races
Josh Poimboeuf (6):
x86/speculation: Move arch_smt_update() call to after mitigation decisions x86/speculation/mds: Add SMT warning message
cpu/speculation: Add 'mitigations=' cmdline option x86/speculation: Support 'mitigations=' cmdline option x86/speculation/mds: Add 'mitigations=' support for MDS x86/speculation/mds: Fix documentation typo
Julian Anastasov (1):
ipvs: do not schedule icmp errors from tunnels
Kai-Heng Feng (2):
USB: Add new USB LPM helpers
USB: Consolidate LPM checks to avoid enabling LPM twice
Kangjie Lu (1):
scsi: qla4xxx: fix a potential NULL pointer dereference
Konrad Rzeszutek Wilk (4):
x86/bugs: Add AMD's variant of SSB_NO
x86/bugs: Add AMD's SPEC_CTRL MSR usage
x86/bugs: Switch the selection of mitigation from CPU vendor to CPU features x86/speculation/mds: Print SMT vulnerable on MSBDS with mitigations off
Konstantin Khorenko (1):
bonding: show full hw address in sysfs for slave entries
Laurentiu Tudor (1):
powerpc/booke64: set RI in default MSR
Linus Torvalds (1):
slip: make slhc_free() silently accept an error pointer
Louis Taylor (1):
vfio/pci: use correct format characters
Lucas Stach (1):
gpu: ipu-v3: dp: fix CSC handling
Lukas Wunner (4):
net: ks8851: Dequeue RX packets explicitly
net: ks8851: Reassert reset pin if chip ID check fails
net: ks8851: Delay requesting IRQ until opened
net: ks8851: Set initial carrier state to down
Malte Leip (1):
usb: usbip: fix isoc packet num validation in get_pipe
Mao Wenan (1):
sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()
Marcel Holtmann (1):
Bluetooth: Align minimum encryption key size for LE and BR/EDR connections
Marco Felsch (1):
ARM: dts: pfla02: increase phy reset duration
Martin Schwidefsky (1):
s390/3270: fix lockdep false positive on view->lock
Masahiro Yamada (1):
kbuild: simplify ld-option implementation
Matthias Kaehlcke (1):
bitops: avoid integer overflow in GENMASK(_ULL)
Mauricio Faria de Oliveira (4):
powerpc/rfi-flush: Differentiate enabled and patched flush types powerpc/pseries: Fix clearing of security feature flags
powerpc: Move default security feature flags powerpc/pseries: Restore default security feature flags on setup
Michael Chan (1):
bnxt_en: Improve multicast address setup logic.
Michael Ellerman (29):
powerpc/xmon: Add RFI flush related fields to paca dump powerpc/pseries: Support firmware disable of RFI flush powerpc/powernv: Support firmware disable of RFI flush powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again powerpc/rfi-flush: Always enable fallback flush on pseries powerpc/pseries: Add new H_GET_CPU_CHARACTERISTICS flags powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
powerpc: Add security feature flags for Spectre/Meltdown powerpc/pseries: Set or clear security feature flags powerpc/powernv: Set or clear security feature flags powerpc/64s: Move cpu_show_meltdown()
powerpc/64s: Enhance the information in cpu_show_meltdown() powerpc/powernv: Use the security flags in pnv_setup_rfi_flush() powerpc/pseries: Use the security flags in pseries_setup_rfi_flush() powerpc/64s: Wire up cpu_show_spectre_v1()
powerpc/64s: Wire up cpu_show_spectre_v2()
powerpc/64s: Fix section mismatch warnings from setup_rfi_flush() powerpc/64: Use barrier_nospec in syscall entry
powerpc: Use barrier_nospec in copy_from_user()
powerpc64s: Show ori31 availability in spectre_v1 sysfs file not v2 powerpc/64: Add CONFIG_PPC_BARRIER_NOSPEC
powerpc/64: Call setup_barrier_nospec() from setup_arch() powerpc/asm: Add a patch_site macro & helpers for patching instructions powerpc/64s: Add new security feature flags for count cache flush powerpc/64s: Add support for software count cache flush powerpc/pseries: Query hypervisor for count cache flush settings powerpc/powernv: Query firmware for count cache flush settings powerpc/security: Fix spectre_v2 reporting
Michael Kelley (1):
scsi: storvsc: Fix calculation of sub-channel count
Michael Neuling (1):
powerpc: Avoid code patching freed init sections
Michal Suchanek (5):
powerpc/64s: Add barrier_nospec
powerpc/64s: Add support for ori barrier_nospec patching powerpc/64s: Patch barrier_nospec in modules powerpc/64s: Enable barrier_nospec based on firmware settings powerpc/64s: Enhance the information in cpu_show_spectre_v1()
Mike Kravetz (1):
hugetlbfs: fix memory leak for resv_map
Mukesh Ojha (1):
usb: u132-hcd: fix resource leak
Nadav Amit (1):
x86/mm: Use WRITE_ONCE() when setting PTEs
NeilBrown (1):
sunrpc: don't mark uninitialised items as VALID.
Nicholas Piggin (2):
powerpc/64s: Improve RFI L1-D cache flush fallback
powerpc/64s: Add support for a store forwarding barrier at kernel entry/exit
Nicolas Dichtel (1):
x86: stop exporting msr-index.h to userland
Nigel Croxon (1):
Don't jump to compute_result state from check_result state
Oliver Neukum (2):
UAS: fix alignment of scatter/gather segments
USB: serial: use variable for status
Ondrej Mosnacek (1):
selinux: never allow relabeling on context mounts
Paolo Bonzini (1):
KVM: fail KVM_SET_VCPU_EVENTS with invalid exception number
Peter Oberparleiter (1):
s390/dasd: Fix capacity calculation for large volumes
Peter Zijlstra (2):
trace: Fix preempt_enable_no_resched() abuse x86/cpu: Sanitize FAM6_ATOM naming
Po-Hsu Lin (1):
selftests/net: correct the return value for run_netsocktests
Prarit Bhargava (1):
x86/microcode: Make sure boot_cpu_data.microcode is up-to-date
Prasad Sodagudi (1):
genirq: Prevent use-after-free and work list corruption
Rander Wang (1):
ASoC:soc-pcm:fix a codec fixup issue in TDM case
Rikard Falkeborn (1):
tools lib traceevent: Fix missing equality check for strcmp
Ross Zwisler (1):
ASoC: Intel: avoid Oops if DMA setup fails
Sai Praneeth (1):
x86/speculation: Support Enhanced IBRS on future CPUs
Shmulik Ladkani (1):
ipv4: ip_do_fragment: Preserve skb_iif during fragmentation
Steffen Maier (1):
scsi: zfcp: reduce flood of fcrscn1 trace records on multi-element RSCN
Stephane Eranian (1):
perf/x86/intel: Fix handling of wakeup_events for multi-entry PEBS
Stephen Suryaputra (1):
vrf: sit mtu should not be updated when vrf netdev is the link
Sven Van Asbroeck (1):
iio: adc: xilinx: fix potential use-after-free on remove
Tetsuo Handa (1):
NFS: Forbid setting AF_INET6 to "struct sockaddr_in"->sin_family.
Thinh Nguyen (1):
usb: dwc3: Fix default lpm_nyet_threshold value
Thomas Gleixner (30):
KVM: x86: SVM: Call x86_spec_ctrl_set_guest/host() with interrupts disabled x86/speculation: Rename SSBD update functions
x86/Kconfig: Select SCHED_SMT if SMP enabled
x86/speculation: Rework SMT state change
x86/speculation: Reorder the spec_v2 code
x86/speculation: Mark string arrays const correctly x86/speculataion: Mark command line parser data __initdata x86/speculation: Unify conditional spectre v2 print functions x86/speculation: Add command line control for indirect branch speculation x86/process: Consolidate and simplify switch_to_xtra() code x86/speculation: Avoid __switch_to_xtra() calls x86/speculation: Prepare for conditional IBPB in switch_mm() x86/speculation: Split out TIF update
x86/speculation: Prepare arch_smt_update() for PRCTL mode x86/speculation: Prevent stale SPEC_CTRL msr content x86/speculation: Add prctl() control for indirect branch speculation x86/speculation: Enable prctl mode for spectre_v2_user x86/speculation: Add seccomp Spectre v2 user space protection mode x86/speculation: Provide IBPB always command line options x86/msr-index: Cleanup bit defines
x86/speculation: Consolidate CPU whitelists x86/speculation/mds: Add BUG_MSBDS_ONLY
x86/speculation/mds: Add mds_clear_cpu_buffers() x86/speculation/mds: Clear CPU buffers on exit to user x86/speculation/mds: Conditionally clear CPU buffers on idle entry x86/speculation/mds: Add mitigation control for MDS x86/speculation/mds: Add sysfs reporting for MDS x86/speculation/mds: Add mitigation mode VMWERV
Documentation: Move L1TF to separate directory
Documentation: Add MDS vulnerability documentation
Tim Chen (7):
x86/speculation: Update the TIF_SSBD comment
x86/speculation: Clean up spectre_v2_parse_cmdline() x86/speculation: Remove unnecessary ret variable in cpu_show_common() x86/speculation: Move STIPB/IBPB string conditionals out of cpu_show_common() x86/speculation: Disable STIBP when enhanced IBRS is in use x86/speculation: Reorganize speculation control MSRs update x86/speculation: Prepare for per task indirect branch speculation control
Tobin C. Harding (1):
bridge: Fix error path for kobject_init_and_add()
Tom Lendacky (1):
x86/bugs: Fix the AMD SSBD usage of the SPEC_CTRL MSR
Tony Luck (3):
x86/mce: Improve error message when kernel cannot recover, p2 locking/static_keys: Provide DECLARE and well as DEFINE macros x86/MCE: Save microcode revision in machine check records
Trond Myklebust (1):
nfsd: Don't release the callback slot unless it was actually held
Tyler Hicks (1):
Documentation: Correct the possible MDS sysfs values
Varun Prakash (1):
scsi: csiostor: fix missing data copy in csio_scsi_err_handler()
Vinod Koul (1):
net: stmmac: move stmmac_check_ether_addr() to driver probe
Vitaly Kuznetsov (1):
KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
WANG Cong (1):
ipv6: fix a potential deadlock in do_ipv6_setsockopt()
Wei Yongjun (1):
cw1200: fix missing unlock on error in cw1200_hw_scan()
Wen Yang (3):
net: xilinx: fix possible object reference leak
net: ibm: fix possible object reference leak
net: ethernet: ti: fix possible object reference leak
Will Deacon (1):
locking/atomics, asm-generic: Move some macros from <linux/bitops.h> to a new <linux/bits.h> file
Willem de Bruijn (2):
ipv6: invert flowlabel sharing check in process and user mode
packet: validate msg_namelen in send directly
Xie XiuQi (1):
sched/numa: Fix a possible divide-by-zero
Xin Long (4):
tipc: handle the err returned from cmd header function
tipc: check bearer name with right length in tipc_nl_compat_bearer_enable
tipc: check link name with right length in tipc_nl_compat_link_set
netfilter: bridge: set skb transport_header before entering NF_INET_PRE_ROUTING
Yan, Zheng (1):
ceph: fix ci->i_head_snapc leak
Yonglong Liu (2):
net: hns: Use NAPI_POLL_WEIGHT for hns driver
net: hns: Fix WARNING when remove HNS driver with SMMU enabled
Young Xiao (1):
Bluetooth: hidp: fix buffer overflow
YueHaibing (2):
fs/proc/proc_sysctl.c: Fix a NULL pointer dereference
packet: Fix error path in packet_init
ZhangXiaoxu (1):
ipv4: set the tcp_min_rtt_wlen range from 0 to one day
raymond pang (1):
libata: fix using DMA buffers on stack
speck for Pawan Gupta (1):
x86/mds: Add MDSUM variant to the MDS documentation
Greg KH
maintainerDocumentation/ABI/testing/sysfs-devices-system-cpu +2 -0
@@ -277,6 +277,8 @@ What: /sys/devices/system/cpu/vulnerabilities /sys/devices/system/cpu/vulnerabilities/spectre_v1 /sys/devices/system/cpu/vulnerabilities/spectre_v2 /sys/devices/system/cpu/vulnerabilities/spec_store_bypass + /sys/devices/system/cpu/vulnerabilities/l1tf + /sys/devices/system/cpu/vulnerabilities/mds Date: January 2018 Contact: Linux kernel mailing list <[email protected]> Description: Information about CPU vulnerabilities
Documentation/hw-vuln/mds.rst new file +305 -0
305 lines not on this page · raw message
Documentation/kernel-parameters.txt +107 -3
147 lines not on this page · raw message
Documentation/networking/ip-sysctl.txt +1 -0
@@ -387,6 +387,7 @@ tcp_min_rtt_wlen - INTEGER minimum RTT when it is moved to a longer path (e.g., due to traffic engineering). A longer window makes the filter more resistant to RTT inflations such as transient congestion. The unit is seconds. + Possible values: 0 - 86400 (1 day) Default: 300 tcp_moderate_rcvbuf - BOOLEAN
Documentation/spec_ctrl.txt +9 -0
@@ -92,3 +92,12 @@ Speculation misfeature controls * prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS, PR_SPEC_ENABLE, 0, 0); * prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS, PR_SPEC_DISABLE, 0, 0); * prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_STORE_BYPASS, PR_SPEC_FORCE_DISABLE, 0, 0); + +- PR_SPEC_INDIR_BRANCH: Indirect Branch Speculation in User Processes + (Mitigate Spectre V2 style attacks against user processes) + + Invocations: + * prctl(PR_GET_SPECULATION_CTRL, PR_SPEC_INDIRECT_BRANCH, 0, 0, 0); + * prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_INDIRECT_BRANCH, PR_SPEC_ENABLE, 0, 0); + * prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_INDIRECT_BRANCH, PR_SPEC_DISABLE, 0, 0); + * prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_INDIRECT_BRANCH, PR_SPEC_FORCE_DISABLE, 0, 0);
Documentation/usb/power-management.txt +9 -5
@@ -365,11 +365,15 @@ autosuspend the interface's device. When the usage counter is = 0 then the interface is considered to be idle, and the kernel may autosuspend the device. -Drivers need not be concerned about balancing changes to the usage -counter; the USB core will undo any remaining "get"s when a driver -is unbound from its interface. As a corollary, drivers must not call -any of the usb_autopm_* functions after their disconnect() routine has -returned. +Drivers must be careful to balance their overall changes to the usage +counter. Unbalanced "get"s will remain in effect when a driver is +unbound from its interface, preventing the device from going into +runtime suspend should the interface be bound to a driver again. On +the other hand, drivers are allowed to achieve this balance by calling +the ``usb_autopm_*`` functions even after their ``disconnect`` routine +has returned -- say from within a work-queue routine -- provided they +retain an active reference to the interface (via ``usb_get_intf`` and +``usb_put_intf``). Drivers using the async routines are responsible for their own synchronization and mutual exclusion.
Documentation/x86/mds.rst new file +225 -0
225 lines not on this page · raw message
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 179 +SUBLEVEL = 180 EXTRAVERSION = NAME = Blurry Fish Butt
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -0
@@ -90,6 +90,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rgmii"; + phy-reset-duration = <10>; /* in msecs */ phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; phy-supply = <&vdd_eth_io_reg>; status = "disabled";
arch/arm/mach-iop13xx/setup.c +4 -4
@@ -300,7 +300,7 @@ static struct resource iop13xx_adma_2_resources[] = { } }; -static u64 iop13xx_adma_dmamask =DMA_BIT_MASK (64 ); +static u64 iop13xx_adma_dmamask =DMA_BIT_MASK (32 );static struct iop_adma_platform_data iop13xx_adma_0_data = { .hw_id =0 , .pool_size =PAGE_SIZE ,
@@ -324,7 +324,7 @@ static struct platform_device iop13xx_adma_0_channel = { .resource = iop13xx_adma_0_resources, .dev = { .dma_mask = &iop13xx_adma_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = (void *) &iop13xx_adma_0_data, }, };
@@ -336,7 +336,7 @@ static struct platform_device iop13xx_adma_1_channel = { .resource = iop13xx_adma_1_resources, .dev = { .dma_mask = &iop13xx_adma_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = (void *) &iop13xx_adma_1_data, }, };
@@ -348,7 +348,7 @@ static struct platform_device iop13xx_adma_2_channel = { .resource = iop13xx_adma_2_resources, .dev = { .dma_mask = &iop13xx_adma_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = (void *) &iop13xx_adma_2_data, }, };
arch/arm/mach-iop13xx/tpmi.c +5 -5
@@ -152,7 +152,7 @@ static struct resource iop13xx_tpmi_3_resources[] = { } }; -u64 iop13xx_tpmi_mask =DMA_BIT_MASK (64 ); +u64 iop13xx_tpmi_mask =DMA_BIT_MASK (32 );static struct platform_device iop13xx_tpmi_0_device = { .name ="iop-tpmi" , .id =0 ,
@@ -160,7 +160,7 @@ static struct platform_device iop13xx_tpmi_0_device = { .resource = iop13xx_tpmi_0_resources, .dev = { .dma_mask = &iop13xx_tpmi_mask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), }, };
@@ -171,7 +171,7 @@ static struct platform_device iop13xx_tpmi_1_device = { .resource = iop13xx_tpmi_1_resources, .dev = { .dma_mask = &iop13xx_tpmi_mask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), }, };
@@ -182,7 +182,7 @@ static struct platform_device iop13xx_tpmi_2_device = { .resource = iop13xx_tpmi_2_resources, .dev = { .dma_mask = &iop13xx_tpmi_mask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), }, };
@@ -193,7 +193,7 @@ static struct platform_device iop13xx_tpmi_3_device = { .resource = iop13xx_tpmi_3_resources, .dev = { .dma_mask = &iop13xx_tpmi_mask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), }, };
arch/arm/plat-iop/adma.c +3 -3
@@ -143,7 +143,7 @@ struct platform_device iop3xx_dma_0_channel = { .resource = iop3xx_dma_0_resources, .dev = { .dma_mask = &iop3xx_adma_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = (void *) &iop3xx_dma_0_data, }, };
@@ -155,7 +155,7 @@ struct platform_device iop3xx_dma_1_channel = { .resource = iop3xx_dma_1_resources, .dev = { .dma_mask = &iop3xx_adma_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = (void *) &iop3xx_dma_1_data, }, };
@@ -167,7 +167,7 @@ struct platform_device iop3xx_aau_channel = { .resource = iop3xx_aau_resources, .dev = { .dma_mask = &iop3xx_adma_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = (void *) &iop3xx_aau_data, }, };
arch/arm/plat-orion/common.c +2 -2
@@ -645,7 +645,7 @@ static struct platform_device orion_xor0_shared = { .resource = orion_xor0_shared_resources, .dev = { .dma_mask = &orion_xor_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &orion_xor0_pdata, }, };
@@ -706,7 +706,7 @@ static struct platform_device orion_xor1_shared = { .resource = orion_xor1_shared_resources, .dev = { .dma_mask = &orion_xor_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &orion_xor1_pdata, }, };
arch/mips/kernel/scall64-o32.S +1 -1
@@ -126,7 +126,7 @@ trace_a_syscall: subu t1, v0, __NR_O32_Linux move a1, v0 bnez t1, 1f /* __NR_syscall at offset 0 */ - lw a1, PT_R4(sp) /* Arg1 for __NR_syscall case */ + ld a1, PT_R4(sp) /* Arg1 for __NR_syscall case */ .set pop 1: jal syscall_trace_enter
arch/powerpc/Kconfig +6 -1
@@ -136,7 +136,7 @@ config PPC select GENERIC_SMP_IDLE_THREAD select GENERIC_CMOS_UPDATE select GENERIC_TIME_VSYSCALL_OLD - select GENERIC_CPU_VULNERABILITIES if PPC_BOOK3S_64 + select GENERIC_CPU_VULNERABILITIES if PPC_BARRIER_NOSPEC select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS_BROADCAST if SMP select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
@@ -162,6 +162,11 @@ config PPC select ARCH_HAS_DMA_SET_COHERENT_MASK select HAVE_ARCH_SECCOMP_FILTER +config PPC_BARRIER_NOSPEC + bool + default y + depends on PPC_BOOK3S_64 || PPC_FSL_BOOK3E + config GENERIC_CSUM def_bool CPU_LITTLE_ENDIAN
arch/powerpc/include/asm/asm-prototypes.h new file +21 -0
@@ -0,0 +1,21 @@ +#ifndef _ASM_POWERPC_ASM_PROTOTYPES_H +#define _ASM_POWERPC_ASM_PROTOTYPES_H +/* +* This file is for prototypes of C functions that are only called +* from asm, and any associated variables. +* +* Copyright 2016, Daniel Axtens, IBM Corporation. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +*/ + +/* Patch sites */ +extern s32 patch__call_flush_count_cache; +extern s32 patch__flush_count_cache_return; + +extern long flush_count_cache; + +#endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */
arch/powerpc/include/asm/barrier.h +21 -0
@@ -92,4 +92,25 @@ do { \#define smp_mb__after_atomic () smp_mb()#define smp_mb__before_spinlock () smp_mb() +#ifdef CONFIG_PPC_BOOK3S_64 +#define NOSPEC_BARRIER_SLOT nop +#elif defined(CONFIG_PPC_FSL_BOOK3E ) +#define NOSPEC_BARRIER_SLOT nop; nop +#endif + +#ifdef CONFIG_PPC_BARRIER_NOSPEC +/* +* Prevent execution of subsequent instructions until preceding branches have +* been fully resolved and are no longer executing speculatively. +*/ +#define barrier_nospec_asm NOSPEC_BARRIER_FIXUP_SECTION; NOSPEC_BARRIER_SLOT + +// This also acts as a compiler barrier due to the memory clobber. +#define barrier_nospec () asm (stringify_in_c(barrier_nospec_asm) ::: "memory") + +#else /* !CONFIG_PPC_BARRIER_NOSPEC */ +#define barrier_nospec_asm +#define barrier_nospec () +#endif /* CONFIG_PPC_BARRIER_NOSPEC */ +#endif /* _ASM_POWERPC_BARRIER_H */
arch/powerpc/include/asm/code-patching-asm.h new file +18 -0
@@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2018, Michael Ellerman, IBM Corporation. +*/ +#ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H +#define _ASM_POWERPC_CODE_PATCHING_ASM_H + +/* Define a "site" that can be patched */ +.macro patch_site label name + .pushsection ".rodata" + .balign 4 + .global \name +\name: + .4byte \label - . + .popsection +.endm + +#endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */
arch/powerpc/include/asm/code-patching.h +2 -0
@@ -28,6 +28,8 @@ unsigned int create_cond_branch(const unsigned int *addr, unsigned long target, int flags);int patch_branch (unsigned int *addr,unsigned long target,int flags);int patch_instruction (unsigned int *addr,unsigned int instr); +int patch_instruction_site (s32 *addr,unsigned int instr); +int patch_branch_site (s32 *site,unsigned long target,int flags);int instr_is_relative_branch (unsigned int instr);int instr_is_branch_to_addr (const unsigned int *instr,unsigned long addr);
arch/powerpc/include/asm/exception-64s.h +35 -0
@@ -50,6 +50,27 @@#define EX_PPR 88/* SMT thread status register (priority) */ #define EX_CTR 96 +#define STF_ENTRY_BARRIER_SLOT \ + STF_ENTRY_BARRIER_FIXUP_SECTION; \ + nop; \ + nop; \ + nop + +#define STF_EXIT_BARRIER_SLOT \ + STF_EXIT_BARRIER_FIXUP_SECTION; \ + nop; \ + nop; \ + nop; \ + nop; \ + nop; \ + nop + +/* +* r10 must be free to use, r13 must be paca +*/ +#define INTERRUPT_TO_KERNEL \ + STF_ENTRY_BARRIER_SLOT +/* * Macros for annotating the expected destination of (h)rfid *
@@ -66,16 +87,19 @@ rfid#define RFI_TO_USER \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ rfid; \ b rfi_flush_fallback#define RFI_TO_USER_OR_KERNEL \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ rfid; \ b rfi_flush_fallback#define RFI_TO_GUEST \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ rfid; \ b rfi_flush_fallback
@@ -84,21 +108,25 @@ hrfid#define HRFI_TO_USER \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ hrfid; \ b hrfi_flush_fallback#define HRFI_TO_USER_OR_KERNEL \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ hrfid; \ b hrfi_flush_fallback#define HRFI_TO_GUEST \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ hrfid; \ b hrfi_flush_fallback#define HRFI_TO_UNKNOWN \ + STF_EXIT_BARRIER_SLOT; \ RFI_FLUSH_SLOT; \ hrfid; \ b hrfi_flush_fallback
@@ -226,6 +254,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)#define __EXCEPTION_PROLOG_1 (area, extra, vec) \ OPT_SAVE_REG_TO_PACA(area+EX_PPR, r9, CPU_FTR_HAS_PPR); \ OPT_SAVE_REG_TO_PACA(area+EX_CFAR, r10, CPU_FTR_CFAR); \ + INTERRUPT_TO_KERNEL; \ SAVE_CTR(r10, area); \ mfcr r9; \ extra(vec); \
@@ -512,6 +541,12 @@ label##_relon_hv: \#define _MASKABLE_EXCEPTION_PSERIES (vec, label, h, extra) \ __MASKABLE_EXCEPTION_PSERIES(vec, label, h, extra) +#define MASKABLE_EXCEPTION_OOL (vec, label) \ + .globl label##_ool; \ +label##_ool: \ + EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_TEST_PR, vec); \ + EXCEPTION_PROLOG_PSERIES_1(label##_common, EXC_STD); +#define MASKABLE_EXCEPTION_PSERIES (loc, vec, label) \ . = loc; \ .globl label##_pSeries; \
arch/powerpc/include/asm/feature-fixups.h +40 -0
@@ -184,6 +184,22 @@ label##3: \ FTR_ENTRY_OFFSET label##1b-label##3b; \ .popsection; +#define STF_ENTRY_BARRIER_FIXUP_SECTION \ +953: \ + .pushsection __stf_entry_barrier_fixup,"a"; \ + .align 2; \ +954: \ + FTR_ENTRY_OFFSET 953b-954b; \ + .popsection; + +#define STF_EXIT_BARRIER_FIXUP_SECTION \ +955: \ + .pushsection __stf_exit_barrier_fixup,"a"; \ + .align 2; \ +956: \ + FTR_ENTRY_OFFSET 955b-956b; \ + .popsection; +#define RFI_FLUSH_FIXUP_SECTION \ 951: \ .pushsection __rfi_flush_fixup,"a"; \
@@ -192,10 +208,34 @@ label##3: \ FTR_ENTRY_OFFSET 951b-952b; \ .popsection; +#define NOSPEC_BARRIER_FIXUP_SECTION \ +953: \ + .pushsection __barrier_nospec_fixup,"a"; \ + .align 2; \ +954: \ + FTR_ENTRY_OFFSET 953b-954b; \ + .popsection; + +#define START_BTB_FLUSH_SECTION \ +955: \ + +#define END_BTB_FLUSH_SECTION \ +956: \ + .pushsection __btb_flush_fixup,"a"; \ + .align 2; \ +957: \ + FTR_ENTRY_OFFSET 955b-957b; \ + FTR_ENTRY_OFFSET 956b-957b; \ + .popsection;#ifndef __ASSEMBLY__ +extern long stf_barrier_fallback; +extern long __start___stf_entry_barrier_fixup, __stop___stf_entry_barrier_fixup; +extern long __start___stf_exit_barrier_fixup, __stop___stf_exit_barrier_fixup;extern long __start___rfi_flush_fixup, __stop___rfi_flush_fixup; +extern long __start___barrier_nospec_fixup, __stop___barrier_nospec_fixup; +extern long __start__btb_flush_fixup, __stop__btb_flush_fixup;#endif
arch/powerpc/include/asm/hvcall.h +5 -0
@@ -292,10 +292,15 @@#define H_CPU_CHAR_L1D_FLUSH_ORI30 (1ull << 61) // IBM bit 2#define H_CPU_CHAR_L1D_FLUSH_TRIG2 (1ull << 60) // IBM bit 3#define H_CPU_CHAR_L1D_THREAD_PRIV (1ull << 59) // IBM bit 4 +#define H_CPU_CHAR_BRANCH_HINTS_HONORED (1ull << 58) // IBM bit 5 +#define H_CPU_CHAR_THREAD_RECONFIG_CTRL (1ull << 57) // IBM bit 6 +#define H_CPU_CHAR_COUNT_CACHE_DISABLED (1ull << 56) // IBM bit 7 +#define H_CPU_CHAR_BCCTR_FLUSH_ASSIST (1ull << 54) // IBM bit 9#define H_CPU_BEHAV_FAVOUR_SECURITY (1ull << 63) // IBM bit 0#define H_CPU_BEHAV_L1D_FLUSH_PR (1ull << 62) // IBM bit 1#define H_CPU_BEHAV_BNDS_CHK_SPEC_BAR (1ull << 61) // IBM bit 2 +#define H_CPU_BEHAV_FLUSH_COUNT_CACHE (1ull << 58) // IBM bit 5#ifndef __ASSEMBLY__#include <linux/types.h>
arch/powerpc/include/asm/paca.h +1 -2
@@ -199,8 +199,7 @@ struct paca_struct {*/ u64 exrfi[13 ]__aligned(0x80) ;void *rfi_flush_fallback_area; -u64 l1d_flush_congruence; -u64 l1d_flush_sets; +u64 l1d_flush_size;#endif };
arch/powerpc/include/asm/ppc-opcode.h +1 -0
@@ -147,6 +147,7 @@#define PPC_INST_LWSYNC 0x7c2004ac#define PPC_INST_SYNC 0x7c0004ac#define PPC_INST_SYNC_MASK 0xfc0007fe +#define PPC_INST_ISYNC 0x4c00012c#define PPC_INST_LXVD2X 0x7c000698#define PPC_INST_MCRXR 0x7c000400#define PPC_INST_MCRXR_MASK 0xfc0007fe
arch/powerpc/include/asm/ppc_asm.h +11 -0
@@ -821,4 +821,15 @@ END_FTR_SECTION_NESTED(CPU_FTR_HAS_PPR,CPU_FTR_HAS_PPR,945) .long 0x2400004c /* rfid */#endif /* !CONFIG_PPC_BOOK3E */ #endif /* __ASSEMBLY__ */ + +#ifdef CONFIG_PPC_FSL_BOOK3E +#define BTB_FLUSH (reg) \ + lis reg,BUCSR_INIT@h; \ + ori reg,reg,BUCSR_INIT@l; \ + mtspr SPRN_BUCSR,reg; \ + isync; +#else +#define BTB_FLUSH (reg) +#endif /* CONFIG_PPC_FSL_BOOK3E */ +#endif /* _ASM_POWERPC_PPC_ASM_H */
arch/powerpc/include/asm/reg_booke.h +1 -1
@@ -41,7 +41,7 @@#if defined(CONFIG_PPC_BOOK3E_64 )#define MSR_64BIT MSR_CM -#define MSR_ (MSR_ME | MSR_CE) +#define MSR_ (MSR_ME | MSR_RI | MSR_CE)#define MSR_KERNEL (MSR_ | MSR_64BIT)#define MSR_USER32 (MSR_ | MSR_PR | MSR_EE)#define MSR_USER64 (MSR_USER32 | MSR_64BIT)
arch/powerpc/include/asm/security_features.h new file +92 -0
92 lines not on this page · raw message
arch/powerpc/include/asm/setup.h +22 -1
@@ -8,6 +8,7 @@ extern void ppc_printk_progress(char *s, unsigned short hex);extern unsigned int rtas_data;extern unsigned long long memory_limit; +extern bool init_mem_is_free;extern unsigned long klimit;extern void *zalloc_maybe_bootmem (size_t size,gfp_t mask);
@@ -36,8 +37,28 @@ enum l1d_flush_type { L1D_FLUSH_MTTRIG = 0x8, }; -void __init setup_rfi_flush (enum l1d_flush_type ,bool enable); +void setup_rfi_flush (enum l1d_flush_type ,bool enable);void do_rfi_flush_fixups (enum l1d_flush_type types); +#ifdef CONFIG_PPC_BARRIER_NOSPEC +void setup_barrier_nospec (void ); +#else +static inline void setup_barrier_nospec (void ) { }; +#endif +void do_barrier_nospec_fixups (bool enable); +extern bool barrier_nospec_enabled; + +#ifdef CONFIG_PPC_BARRIER_NOSPEC +void do_barrier_nospec_fixups_range (bool enable,void *start,void *end); +#else +static inline void do_barrier_nospec_fixups_range (bool enable,void *start,void *end) { }; +#endif + +#ifdef CONFIG_PPC_FSL_BOOK3E +void setup_spectre_v2 (void ); +#else +static inline void setup_spectre_v2 (void ) {}; +#endif +void do_btb_flush_fixups (void );#endif /* !__ASSEMBLY__ */
arch/powerpc/include/asm/uaccess.h +16 -2
@@ -269,6 +269,7 @@ do { \__chk_user_ptr (ptr); \if (!is_kernel_addr ((unsigned long )__gu_addr)) \might_fault (); \ +barrier_nospec (); \__get_user_size (__gu_val, __gu_addr, (size), __gu_err); \ (x) = (__typeof__ (*(ptr )))__gu_val; \ __gu_err; \
@@ -283,6 +284,7 @@ do { \__chk_user_ptr (ptr); \if (!is_kernel_addr ((unsigned long )__gu_addr)) \might_fault (); \ +barrier_nospec (); \__get_user_size (__gu_val, __gu_addr, (size), __gu_err); \ (x) = (__force __typeof__(*(ptr)))__gu_val; \ __gu_err; \
@@ -295,8 +297,10 @@ do { \unsigned long __gu_val =0 ; \ __typeof__(*(ptr)) __user *__gu_addr = (ptr); \might_fault (); \ -if (access_ok (VERIFY_READ , __gu_addr, (size))) \ +if (access_ok (VERIFY_READ , __gu_addr, (size))) { \ +barrier_nospec (); \__get_user_size (__gu_val, __gu_addr, (size), __gu_err); \ + } \ (x) = (__force __typeof__(*(ptr)))__gu_val; \ __gu_err; \ })
@@ -307,6 +311,7 @@ do { \unsigned long __gu_val; \ __typeof__(*(ptr)) __user *__gu_addr = (ptr); \__chk_user_ptr (ptr); \ +barrier_nospec (); \__get_user_size (__gu_val, __gu_addr, (size), __gu_err); \ (x) = (__force __typeof__(*(ptr)))__gu_val; \ __gu_err; \
@@ -323,8 +328,10 @@ extern unsigned long __copy_tofrom_user(void __user *to,static inline unsigned long copy_from_user (void *to,const void __user *from,unsigned long n) { -if (likely (access_ok (VERIFY_READ , from, n))) +if (likely (access_ok (VERIFY_READ , from, n))) { +barrier_nospec ();return __copy_tofrom_user ((__force void __user *)to, from, n); + }memset (to,0 , n);return n; }
@@ -359,21 +366,27 @@ static inline unsigned long __copy_from_user_inatomic(void *to,switch (n) {case 1 : +barrier_nospec ();__get_user_size (*(u8 *)to, from,1 , ret);break ;case 2 : +barrier_nospec ();__get_user_size (*(u16 *)to, from,2 , ret);break ;case 4 : +barrier_nospec ();__get_user_size (*(u32 *)to, from,4 , ret);break ;case 8 : +barrier_nospec ();__get_user_size (*(u64 *)to, from,8 , ret);break ; }if (ret ==0 )return 0 ; } + +barrier_nospec ();return __copy_tofrom_user ((__force void __user *)to, from, n); }
@@ -400,6 +413,7 @@ static inline unsigned long __copy_to_user_inatomic(void __user *to,if (ret ==0 )return 0 ; } +return __copy_tofrom_user (to, (__force const void __user *)from, n); }
arch/powerpc/kernel/Makefile +1 -0
@@ -44,6 +44,7 @@ obj-$(CONFIG_PPC_BOOK3S_64) += cpu_setup_power.o obj-$(CONFIG_PPC_BOOK3S_64) += mce.o mce_power.o obj64-$(CONFIG_RELOCATABLE) += reloc_64.o obj-$(CONFIG_PPC_BOOK3E_64) += exceptions-64e.o idle_book3e.o +obj-$(CONFIG_PPC_BARRIER_NOSPEC) += security.o obj-$(CONFIG_PPC64) += vdso64/ obj-$(CONFIG_ALTIVEC) += vecemu.o obj-$(CONFIG_PPC_970_NAP) += idle_power4.o
arch/powerpc/kernel/asm-offsets.c +1 -2
@@ -245,8 +245,7 @@ int main(void)DEFINE (PACA_IN_MCE , offsetof(struct paca_struct , in_mce));DEFINE (PACA_RFI_FLUSH_FALLBACK_AREA , offsetof(struct paca_struct , rfi_flush_fallback_area));DEFINE (PACA_EXRFI , offsetof(struct paca_struct , exrfi)); -DEFINE (PACA_L1D_FLUSH_CONGRUENCE , offsetof(struct paca_struct , l1d_flush_congruence)); -DEFINE (PACA_L1D_FLUSH_SETS , offsetof(struct paca_struct , l1d_flush_sets)); +DEFINE (PACA_L1D_FLUSH_SIZE , offsetof(struct paca_struct , l1d_flush_size));#endif DEFINE (PACAHWCPUID , offsetof(struct paca_struct , hw_cpu_id));DEFINE (PACAKEXECSTATE , offsetof(struct paca_struct , kexec_state));
arch/powerpc/kernel/entry_32.S +10 -0
@@ -33,6 +33,7 @@ #include <asm/unistd.h> #include <asm/ftrace.h> #include <asm/ptrace.h> +#include <asm/barrier.h> /* * MSR_KERNEL is > 0x10000 on 4xx/Book-E since it include MSR_CE.
@@ -340,6 +341,15 @@ syscall_dotrace_cont: ori r10,r10,sys_call_table@l slwi r0,r0,2 bge- 66f + + barrier_nospec_asm + /* + * Prevent the load of the handler below (based on the user-passed + * system call number) being speculatively executed until the test + * against NR_syscalls and branch to .66f above has + * committed. + */ + lwzx r10,r10,r0 /* Fetch system call handler [ptr] */ mtlr r10 addi r9,r1,STACK_FRAME_OVERHEAD
arch/powerpc/kernel/entry_64.S +69 -0
105 lines not on this page · raw message
arch/powerpc/kernel/exceptions-64e.S +26 -1
@@ -295,7 +295,8 @@ ret_from_mc_except: andi. r10,r11,MSR_PR; /* save stack pointer */ \ beq 1f; /* branch around if supervisor */ \ ld r1,PACAKSAVE(r13); /* get kernel stack coming from usr */\ -1: cmpdi cr1,r1,0; /* check if SP makes sense */ \ +1: type##_BTB_FLUSH \ + cmpdi cr1,r1,0; /* check if SP makes sense */ \ bge- cr1,exc_##n##_bad_stack;/* bad stack (TODO: out of line) */ \ mfspr r10,SPRN_##type##_SRR0; /* read SRR0 before touching stack */
@@ -327,6 +328,30 @@ ret_from_mc_except: #define SPRN_MC_SRR0 SPRN_MCSRR0 #define SPRN_MC_SRR1 SPRN_MCSRR1 +#ifdef CONFIG_PPC_FSL_BOOK3E +#define GEN_BTB_FLUSH \ + START_BTB_FLUSH_SECTION \ + beq 1f; \ + BTB_FLUSH(r10) \ + 1: \ + END_BTB_FLUSH_SECTION + +#define CRIT_BTB_FLUSH \ + START_BTB_FLUSH_SECTION \ + BTB_FLUSH(r10) \ + END_BTB_FLUSH_SECTION + +#define DBG_BTB_FLUSH CRIT_BTB_FLUSH +#define MC_BTB_FLUSH CRIT_BTB_FLUSH +#define GDBELL_BTB_FLUSH GEN_BTB_FLUSH +#else +#define GEN_BTB_FLUSH +#define CRIT_BTB_FLUSH +#define DBG_BTB_FLUSH +#define MC_BTB_FLUSH +#define GDBELL_BTB_FLUSH +#endif + #define NORMAL_EXCEPTION_PROLOG(n, intnum, addition) \ EXCEPTION_PROLOG(n, intnum, GEN, addition##_GEN(n))
arch/powerpc/kernel/exceptions-64s.S +57 -41
166 lines not on this page · raw message
arch/powerpc/kernel/head_booke.h +12 -0
@@ -31,6 +31,16 @@*/ #define THREAD_NORMSAVE (offset) (THREAD_NORMSAVES + (offset * 4)) +#ifdef CONFIG_PPC_FSL_BOOK3E +#define BOOKE_CLEAR_BTB (reg) \ +START_BTB_FLUSH_SECTION \ + BTB_FLUSH(reg) \ +END_BTB_FLUSH_SECTION +#else +#define BOOKE_CLEAR_BTB (reg) +#endif + +#define NORMAL_EXCEPTION_PROLOG (intno) \ mtspr SPRN_SPRG_WSCRATCH0, r10;/* save one register */ \mfspr r10,SPRN_SPRG_THREAD ; \
@@ -42,6 +52,7 @@ andi. r11, r11,MSR_PR ;/* check whether user or kernel */ \mr r11, r1; \ beq 1f; \ +BOOKE_CLEAR_BTB (r11) \/* if from user, start at top of this thread's kernel stack */ \ lwz r11, THREAD_INFO-THREAD(r10); \ALLOC_STACK_FRAME (r11,THREAD_SIZE ); \
@@ -127,6 +138,7 @@stw r9,_CCR (r8 );/* save CR on stack */ \mfspr r11,exc_level_srr1;/* check whether user or kernel */ \ DO_KVM BOOKE_INTERRUPT_##intno exc_level_srr1; \ + BOOKE_CLEAR_BTB(r10) \ andi. r11,r11,MSR_PR; \ mfspr r11,SPRN_SPRG_THREAD;/* if from user, start at top of */ \ lwz r11,THREAD_INFO-THREAD(r11); /* this thread's kernel stack */\
arch/powerpc/kernel/head_fsl_booke.S +15 -0
@@ -451,6 +451,13 @@ END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV) mfcr r13 stw r13, THREAD_NORMSAVE(3)(r10) DO_KVM BOOKE_INTERRUPT_DTLB_MISS SPRN_SRR1 +START_BTB_FLUSH_SECTION + mfspr r11, SPRN_SRR1 + andi. r10,r11,MSR_PR + beq 1f + BTB_FLUSH(r10) +1: +END_BTB_FLUSH_SECTION mfspr r10, SPRN_DEAR /* Get faulting address */ /* If we are faulting a kernel address, we have to use the
@@ -545,6 +552,14 @@ END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV) mfcr r13 stw r13, THREAD_NORMSAVE(3)(r10) DO_KVM BOOKE_INTERRUPT_ITLB_MISS SPRN_SRR1 +START_BTB_FLUSH_SECTION + mfspr r11, SPRN_SRR1 + andi. r10,r11,MSR_PR + beq 1f + BTB_FLUSH(r10) +1: +END_BTB_FLUSH_SECTION + mfspr r10, SPRN_SRR0 /* Get faulting address */ /* If we are faulting a kernel address, we have to use the
arch/powerpc/kernel/module.c +9 -1
@@ -67,7 +67,15 @@ int module_finalize(const Elf_Ehdr *hdr,do_feature_fixups (powerpc_firmware_features, (void *)sect->sh_addr, (void *)sect->sh_addr + sect->sh_size); -#endif +#endif /* CONFIG_PPC64 */ + +#ifdef CONFIG_PPC_BARRIER_NOSPEC + sect =find_section (hdr, sechdrs,"__spec_barrier_fixup" ); +if (sect !=NULL ) +do_barrier_nospec_fixups_range (barrier_nospec_enabled, + (void *)sect->sh_addr, + (void *)sect->sh_addr + sect->sh_size); +#endif /* CONFIG_PPC_BARRIER_NOSPEC */ sect =find_section (hdr, sechdrs,"__lwsync_fixup" );if (sect !=NULL )
arch/powerpc/kernel/security.c new file +434 -0
434 lines not on this page · raw message
arch/powerpc/kernel/setup_32.c +3 -0
@@ -322,6 +322,9 @@ void __init setup_arch(char **cmdline_p) ppc_md.setup_arch ();if ( ppc_md.progress ) ppc_md.progress ("arch: exit" ,0x3eab ); +setup_barrier_nospec (); +setup_spectre_v2 (); +paging_init ();/* Initialize the MMU context management stuff */
arch/powerpc/kernel/setup_64.c +21 -30
106 lines not on this page · raw message
arch/powerpc/kernel/vmlinux.lds.S +32 -1
@@ -73,14 +73,45 @@ SECTIONS RODATA #ifdef CONFIG_PPC64 + . = ALIGN(8); + __stf_entry_barrier_fixup : AT(ADDR(__stf_entry_barrier_fixup) - LOAD_OFFSET) { + __start___stf_entry_barrier_fixup = .; + *(__stf_entry_barrier_fixup) + __stop___stf_entry_barrier_fixup = .; + } + + . = ALIGN(8); + __stf_exit_barrier_fixup : AT(ADDR(__stf_exit_barrier_fixup) - LOAD_OFFSET) { + __start___stf_exit_barrier_fixup = .; + *(__stf_exit_barrier_fixup) + __stop___stf_exit_barrier_fixup = .; + } + . = ALIGN(8); __rfi_flush_fixup : AT(ADDR(__rfi_flush_fixup) - LOAD_OFFSET) { __start___rfi_flush_fixup = .; *(__rfi_flush_fixup) __stop___rfi_flush_fixup = .; } -#endif +#endif /* CONFIG_PPC64 */ +#ifdef CONFIG_PPC_BARRIER_NOSPEC + . = ALIGN(8); + __spec_barrier_fixup : AT(ADDR(__spec_barrier_fixup) - LOAD_OFFSET) { + __start___barrier_nospec_fixup = .; + *(__barrier_nospec_fixup) + __stop___barrier_nospec_fixup = .; + } +#endif /* CONFIG_PPC_BARRIER_NOSPEC */ + +#ifdef CONFIG_PPC_FSL_BOOK3E + . = ALIGN(8); + __spec_btb_flush_fixup : AT(ADDR(__spec_btb_flush_fixup) - LOAD_OFFSET) { + __start__btb_flush_fixup = .; + *(__btb_flush_fixup) + __stop__btb_flush_fixup = .; + } +#endif EXCEPTION_TABLE(0) NOTES :kernel :notes
arch/powerpc/kvm/bookehv_interrupts.S +4 -0
@@ -75,6 +75,10 @@ PPC_LL r1, VCPU_HOST_STACK(r4) PPC_LL r2, HOST_R2(r1) +START_BTB_FLUSH_SECTION + BTB_FLUSH(r10) +END_BTB_FLUSH_SECTION + mfspr r10, SPRN_PID lwz r8, VCPU_HOST_PID(r4) PPC_LL r11, VCPU_SHARED(r4)
arch/powerpc/kvm/e500_emulate.c +7 -0
@@ -277,6 +277,13 @@ int kvmppc_core_emulate_mtspr_e500(struct kvm_vcpu *vcpu, int sprn, ulong spr_va vcpu->arch.pwrmgtcr0 = spr_val;break ; +case SPRN_BUCSR : +/* +* If we are here, it means that we have already flushed the +* branch predictor, so just return to guest. +*/ +break ; +/* extra exceptions */ #ifdef CONFIG_SPE_POSSIBLE case SPRN_IVOR32 :
arch/powerpc/lib/code-patching.c +29 -0
@@ -14,12 +14,25 @@#include <asm/page.h> #include <asm/code-patching.h> #include <asm/uaccess.h> +#include <asm/setup.h> +#include <asm/sections.h> +static inline bool is_init (unsigned int *addr) +{ +return addr >= (unsigned int *)__init_begin && addr < (unsigned int *)__init_end; +} +int patch_instruction (unsigned int *addr,unsigned int instr) {int err; +/* Make sure we aren't patching a freed init section */ +if (*PTRRELOC (&init_mem_is_free) &&is_init (addr)) { +pr_debug ("Skipping init section patching addr: 0x%px\n" , addr); +return 0 ; + } +__put_user_size (instr, addr,4 , err);if (err)return err;
@@ -32,6 +45,22 @@ int patch_branch(unsigned int *addr, unsigned long target, int flags)return patch_instruction (addr,create_branch (addr, target, flags)); } +int patch_branch_site (s32 *site,unsigned long target,int flags) +{ +unsigned int *addr; + + addr = (unsigned int *)((unsigned long )site + *site); +return patch_instruction (addr,create_branch (addr, target, flags)); +} + +int patch_instruction_site (s32 *site,unsigned int instr) +{ +unsigned int *addr; + + addr = (unsigned int *)((unsigned long )site + *site); +return patch_instruction (addr, instr); +} +unsigned int create_branch (const unsigned int *addr,unsigned long target,int flags) {
arch/powerpc/lib/feature-fixups.c +216 -2
239 lines not on this page · raw message
arch/powerpc/mm/mem.c +2 -0
@@ -62,6 +62,7 @@#endif unsigned long long memory_limit; +bool init_mem_is_free;#ifdef CONFIG_HIGHMEM pte_t *kmap_pte;
@@ -381,6 +382,7 @@ void __init mem_init(void)void free_initmem (void ) { ppc_md.progress = ppc_printk_progress; + init_mem_is_free = true;free_initmem_default (POISON_FREE_INITMEM ); }
arch/powerpc/mm/tlb_low_64e.S +7 -0
@@ -69,6 +69,13 @@ END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV) std r15,EX_TLB_R15(r12) std r10,EX_TLB_CR(r12) #ifdef CONFIG_PPC_FSL_BOOK3E +START_BTB_FLUSH_SECTION + mfspr r11, SPRN_SRR1 + andi. r10,r11,MSR_PR + beq 1f + BTB_FLUSH(r10) +1: +END_BTB_FLUSH_SECTION std r7,EX_TLB_R7(r12) #endif TLB_MISS_PROLOG_STATS
arch/powerpc/platforms/powernv/setup.c +73 -26
132 lines not on this page · raw message
arch/powerpc/platforms/pseries/mobility.c +3 -0
@@ -314,6 +314,9 @@ void post_mobility_fixup(void)printk (KERN_ERR "Post-mobility device tree update " "failed: %d\n" , rc); +/* Possibly switch to a new RFI flush type */ +pseries_setup_rfi_flush (); +return ; }
arch/powerpc/platforms/pseries/pseries.h +2 -0
@@ -81,4 +81,6 @@ extern struct pci_controller_ops pseries_pci_controller_ops;unsigned long pseries_memory_block_size (void ); +void pseries_setup_rfi_flush (void ); +#endif /* _PSERIES_PSERIES_H */
arch/powerpc/platforms/pseries/setup.c +70 -18
119 lines not on this page · raw message
arch/powerpc/xmon/xmon.c +2 -0
@@ -2144,6 +2144,8 @@ static void dump_one_paca(int cpu)DUMP (p, slb_cache_ptr,"x" );for (i =0 ; i <SLB_CACHE_ENTRIES ; i++)printf (" slb_cache[%d]: = 0x%016lx\n" , i, p->slb_cache[i]); + +DUMP (p, rfi_flush_fallback_area,"px" );#endif DUMP (p, dscr_default,"llx" );#ifdef CONFIG_PPC_BOOK3E
arch/x86/Kconfig +1 -7
@@ -893,13 +893,7 @@ config NR_CPUS approximately eight kilobytes to the kernel image. config SCHED_SMT - bool "SMT (Hyperthreading) scheduler support" - depends on SMP - ---help--- - SMT scheduler support improves the CPU scheduler's decision making - when dealing with Intel Pentium 4 chips with HyperThreading at a - cost of slightly increased overhead in some places. If unsure say - N here. + def_bool y if SMP config SCHED_MC def_bool y
arch/x86/entry/common.c +3 -0
@@ -28,6 +28,7 @@#include <asm/vdso.h> #include <asm/uaccess.h> #include <asm/cpufeature.h> +#include <asm/nospec-branch.h> #define CREATE_TRACE_POINTS
Lines of this file are not shown. View the raw message.
arch/x86/include/asm/microcode_intel.h +15 -0
Lines of this file are not shown. View the raw message.
arch/x86/include/asm/nospec-branch.h +65 -1
66 lines not on this page · raw message
arch/x86/kernel/cpu/bugs.c +540 -103
643 lines not on this page · raw message
arch/x86/kernel/cpu/common.c +80 -60
140 lines not on this page · raw message
arch/x86/kernel/cpu/mcheck/mce-severity.c +5 -0
Lines of this file are not shown. View the raw message.
arch/x86/kernel/cpu/microcode/intel.c +36 -28
64 lines not on this page · raw message
arch/x86/kernel/process.c +82 -19
101 lines not on this page · raw message
arch/x86/mm/tlb.c +90 -24
114 lines not on this page · raw message
drivers/block/loop.c +21 -21
42 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt.c +8 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/ucc_geth_ethtool.c +3 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hnae.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hns_enet.c +2 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ibm/ehea/ehea_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/e1000_defines.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +8 -49
57 lines not on this page · raw message
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/usb/serial/generic.c +42 -15
57 lines not on this page · raw message
net/packet/af_packet.c +34 -14
48 lines not on this page · raw message
sound/usb/line6/driver.c +35 -25
60 lines not on this page · raw message
tools/testing/selftests/net/run_netsocktests +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.