Skip to contentSkip to conversation

Linux 4.4.180

DISCUSSION Greg KH 1 participant 2 messages May 17, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'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

author maintainer
#1 lore raw
Documentation/ABI/testing/sysfs-devices-system-cpu +2 -0
index 50f95689ab38..e4cd3be77663 100644
@@ -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
index 2fb35658d151..709d24b4b533 100644
@@ -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
index 32f3d55c54b7..c4dbe6f7cdae 100644
@@ -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
index 0a94ffe17ab6..b13e031beaa6 100644
@@ -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
index ee0a50b871b9..6023a9dbad59 100644
@@ -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
index d6d98d426384..cae04e806036 100644
@@ -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
index 53c316f7301e..fe4932fda01d 100644
@@ -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
index db511ec2b1df..116feb6b261e 100644
@@ -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
index a4d1f8de3b5b..d9612221e484 100644
@@ -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
index 8861c367d061..51c3737ddba7 100644
@@ -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
index 87c697181d25..4faff3e77b25 100644
@@ -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
index 58a1fa979655..01b6c00a7060 100644
@@ -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
new file mode 100644
index 000000000000..8944c55591cf
@@ -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
index b9e16855a037..e7cb72cdb2ba 100644
@@ -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
new file mode 100644
index 000000000000..ed7b1448493a
@@ -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
index 840a5509b3f1..a734b4b34d26 100644
@@ -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
index 9bddbec441b8..3ed536bec462 100644
@@ -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
index 7068bafbb2d6..145a37ab2d3e 100644
@@ -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
index 449bbb87c257..b57db9d09db9 100644
@@ -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
index 45e2aefece16..08e5df3395fa 100644
@@ -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
index 7ab04fc59e24..faf1bb045dee 100644
@@ -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
index 160bb2311bbb..d219816b3e19 100644
@@ -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
index 2fef74b474f0..410ebee9e339 100644
@@ -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
index 7916b56f2e60..d299479c770b 100644
@@ -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
index 05f1389228d2..e51ce5a0e221 100644
@@ -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
index ba336930d448..22ed3c32fca8 100644
@@ -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
index d92705e3a0c1..de3c29c51503 100644
@@ -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
index 3728e617e17e..609bc7d01f13 100644
@@ -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
index 5cc93f0b52ca..48ec841ea1bf 100644
@@ -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
index a620203f7de3..7b98c7351f6c 100644
@@ -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
index fffd1f96bb1d..275769b6fb0d 100644
@@ -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
index 9547381b631a..ff009be97a42 100644
@@ -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
index ad8c9db61237..cb37f27bb928 100644
@@ -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
index 072a23a17350..876ac9d52afc 100644
@@ -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
index 81bd8a07aa51..612b7f6a887f 100644
@@ -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
index 990db69a1d0b..fa88f641ac03 100644
@@ -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
index d5edbeb8eb82..31d31a10f71f 100644
@@ -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
index 22d94c3e6fc4..1efe5ca5c3bc 100644
@@ -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
index 29d6987c37ba..5486d56da289 100644
@@ -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
index 8dd0c8edefd6..c773396d0969 100644
@@ -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
index 8411c27293e4..e7d80797384d 100644
@@ -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
index 786bf01691c9..83619ebede93 100644
@@ -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
index 4598d087dec2..4d1262cf630c 100644
@@ -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
index 071582a3b5c0..57be07f27f37 100644
@@ -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
[… more lines in the raw message]

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

arch/x86/entry/vdso/Makefile +2 -1
index 297dda4d5947..15ed35f5097d 100644

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

arch/x86/include/asm/cpufeatures.h +9 -3
index a5fa3195a230..d9f7d1770e98 100644

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

arch/x86/include/asm/intel-family.h +17 -13
index e13ff5a14633..6801f958e254 100644

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

arch/x86/include/asm/irqflags.h +5 -0
index 8afbdcd3032b..46d8b99a0ff1 100644

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

arch/x86/include/asm/microcode_intel.h +15 -0
index 8559b0102ea1..90343ba50485 100644

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

arch/x86/include/asm/msr-index.h +19 -11
index caa00191e565..d4f5b8209393 100644

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

arch/x86/include/asm/mwait.h +7 -0
index 0deeb2d26df7..b98dbdaee8ac 100644

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/include/asm/pgtable_64.h +8 -8
index 221a32ed1372..f12e61e2a86b 100644

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

arch/x86/include/asm/processor.h +7 -0
index 440a948c4feb..dab73faef9b0 100644

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

arch/x86/include/asm/spec-ctrl.h +14 -6
index ae7c2c5cd7f0..5393babc0598 100644

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

arch/x86/include/asm/switch_to.h +0 -3
index 025ecfaba9c9..4ff0878f4633 100644

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

arch/x86/include/asm/thread_info.h +17 -3
index a96e88b243ef..e522b15fa3f0 100644

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

arch/x86/include/asm/tlbflush.h +6 -2
index 72cfe3e53af1..8dab88b85785 100644

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

arch/x86/include/uapi/asm/Kbuild +0 -1
index 3dec769cadf7..1c532b3f18ea 100644

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

arch/x86/include/uapi/asm/mce.h +4 -0
index 03429da2fa80..83b9be4e0492 100644

Lines of this file are not shown. View the 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/intel.c +3 -8
index b18fe3d245fe..b0e0c7a12e61 100644

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

arch/x86/kernel/cpu/mcheck/mce-severity.c +5 -0
index 9c682c222071..1ce85ba50005 100644

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

arch/x86/kernel/cpu/mcheck/mce.c +3 -1
index 77f7580e22c6..4b9cfdcc3aaa 100644

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

arch/x86/kernel/cpu/microcode/amd.c +13 -9
index 6da6f9cd6d2d..ca5b45799264 100644

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/cpu/perf_event_intel.c +1 -1
index 7b79c80ce029..325ed90511cf 100644

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

arch/x86/kernel/nmi.c +4 -0
index 697f90db0e37..a4df15f3878e 100644

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

arch/x86/kernel/process.c +82 -19

101 lines not on this page · raw message

arch/x86/kernel/process.h new file +39 -0
new file mode 100644
index 000000000000..898e97cf6629

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

arch/x86/kernel/process_32.c +3 -6
index 9f950917528b..85b112efac30 100644

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

arch/x86/kernel/process_64.c +3 -6
index c7cc81e9bb84..618565fecb1c 100644

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

arch/x86/kernel/traps.c +8 -0
index 8c73bf1492b8..6223929fc621 100644

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

arch/x86/kvm/cpuid.c +10 -3
index b857bb9f6f23..53918abccbc3 100644

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

arch/x86/kvm/cpuid.h +1 -1
index 72f159f4d456..8c28926dc900 100644

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

arch/x86/kvm/svm.c +5 -5
index acbde1249b6f..9fc536657492 100644

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

arch/x86/kvm/trace.h +2 -2
index ab9ae67a80e4..0ec94c6b4757 100644

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

arch/x86/kvm/x86.c +4 -0
index 706c5d63a53f..d830a0d60ba4 100644

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

arch/x86/mm/kaiser.c +3 -1
index 7a72e32e4806..2cbcd6f3317d 100644

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

arch/x86/mm/pgtable.c +3 -3
index 55c7446311a7..50f75768aadd 100644

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

arch/x86/mm/tlb.c +90 -24

114 lines not on this page · raw message

drivers/ata/libata-zpodd.c +24 -10
index 0ad96c647541..7017a81d53cf 100644

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

drivers/base/cpu.c +8 -0
index 41090ef5facb..3934aaf9d157 100644

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

drivers/block/loop.c +21 -21

42 lines not on this page · raw message

drivers/block/loop.h +1 -0
index a923e74495ce..60f0fd2c0c65 100644

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

drivers/block/xsysace.c +2 -0
index c4328d9d9981..f838119d12b2 100644

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

drivers/gpu/ipu-v3/ipu-dp.c +9 -3
index 98686edbcdbb..33de3a1bac49 100644

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

drivers/hid/hid-debug.c +5 -0
index d7179dd3c9ef..3cafa1d28fed 100644

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

drivers/hid/hid-input.c +6 -0
index 8d74e691ac90..ee3c66c02043 100644

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

drivers/hwtracing/intel_th/gth.c +1 -1
index eb43943cdf07..189eb6269971 100644

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

drivers/iio/adc/xilinx-xadc-core.c +1 -1
index 475c5a74f2d1..6398e86a272b 100644

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

drivers/input/keyboard/snvs_pwrkey.c +3 -3
index 9adf13a5864a..57143365e945 100644

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

drivers/iommu/amd_iommu_init.c +1 -1
index 94f1bf772ec9..db85cc5791dc 100644

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

drivers/md/raid5.c +4 -15
index 5e65dc6def7e..17517889d46b 100644

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

drivers/media/i2c/ov7670.c +6 -10
index e1b5dc84c14e..24a0c21a3d8d 100644

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

drivers/net/bonding/bond_options.c +0 -7
index 66560a8fcfa2..1022e80aaf97 100644

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

drivers/net/bonding/bond_sysfs_slave.c +3 -1
index 7d16c51e6913..641a532b67cb 100644

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

drivers/net/ethernet/broadcom/bnxt/bnxt.c +8 -1
index 00bd7be85679..d9ab970dcbe9 100644

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

drivers/net/ethernet/freescale/ucc_geth_ethtool.c +3 -5
index 89714f5e0dfc..c8b9a73d6b1b 100644

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

drivers/net/ethernet/hisilicon/hns/hnae.c +3 -1
index b3645297477e..3ce41efe8a94 100644

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

drivers/net/ethernet/hisilicon/hns/hns_enet.c +2 -5
index 2fa54b0b0679..6d649e7b45a9 100644

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

drivers/net/ethernet/ibm/ehea/ehea_main.c +1 -0
index 2a0dc127df3f..1a56de06b014 100644

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

drivers/net/ethernet/intel/igb/e1000_defines.h +2 -0
index b1915043bc0c..7b9fb71137da 100644

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/micrel/ks8851.c +18 -18
index 1edc973df4c4..7377dca6eb57 100644

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

drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c +2 -0
index 0a2318cad34d..63ebc491057b 100644

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

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2 -2
index 059113dce6e0..f4d6512f066c 100644

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

drivers/net/ethernet/ti/netcp_ethss.c +6 -2
index 4e70e7586a09..a5732edc8437 100644

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

drivers/net/ethernet/xilinx/xilinx_axienet_main.c +2 -0
index 4684644703cc..58ba579793f8 100644

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

drivers/net/slip/slhc.c +1 -1
index cfd81eb1b532..ddceed3c5a4a 100644

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

drivers/net/team/team.c +6 -0
index 267a90423154..7b3ef6dc45a4 100644

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

drivers/net/usb/ipheth.c +24 -9
index f1f8227e7342..01f95d192d25 100644

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

drivers/net/wireless/cw1200/scan.c +4 -1
index 9f1037e7e55c..2ce0193614f2 100644

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

drivers/nvdimm/btt_devs.c +13 -5
index cb477518dd0e..4c129450495d 100644

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

drivers/platform/x86/sony-laptop.c +5 -3
index f73c29558cd3..c54ff94c491d 100644

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

drivers/rtc/rtc-da9063.c +7 -0
index d6c853bbfa9f..e93beecd5010 100644

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

drivers/rtc/rtc-sh.c +1 -1
index 2b81dd4baf17..104c854d6a8a 100644

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

drivers/s390/block/dasd_eckd.c +3 -3
index 80a43074c2f9..c530610f61ac 100644

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

drivers/s390/char/con3270.c +1 -1
index bae98521c808..3e5a7912044f 100644

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

drivers/s390/char/fs3270.c +2 -1
index 71e974738014..f0c86bcbe316 100644

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

drivers/s390/char/raw3270.c +2 -1
index 220acb4cbee5..9c350e6d75bf 100644

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

drivers/s390/char/raw3270.h +3 -1
index e1e41c2861fb..5ae54317857a 100644

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

drivers/s390/char/tty3270.c +2 -1
index e96fc7fd9498..ab95d24b991b 100644

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

drivers/s390/net/ctcm_main.c +1 -0
index 05c37d6d4afe..a31821d94677 100644

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

drivers/s390/scsi/zfcp_fc.c +17 -4
index 237688af179b..f7630cf581cd 100644

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

drivers/scsi/csiostor/csio_scsi.c +4 -1
index c2a6f9f29427..ddbdaade654d 100644

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

drivers/scsi/libsas/sas_expander.c +4 -5
index 7be581f7c35d..1a6f65db615e 100644

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

drivers/scsi/qla2xxx/qla_attr.c +2 -2
index ac12ee844bfc..31c29a5d1f38 100644

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

drivers/scsi/qla4xxx/ql4_os.c +2 -0
index f9f899ec9427..c158967b59d7 100644

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

drivers/scsi/storvsc_drv.c +11 -2
index 44b7a69d022a..45cd4cf93af3 100644

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

drivers/staging/iio/addac/adt7316.c +16 -6
index 3adc4516918c..8c5cfb9400d0 100644

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

drivers/tty/serial/sc16is7xx.c +10 -2
index 17a22073d226..032f3c13b8c4 100644

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

drivers/usb/core/driver.c +19 -17
index e9d6cf146fcc..654199c6a36c 100644

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

drivers/usb/core/hub.c +6 -10
index 3a6978458d95..7c87c0b38bcf 100644

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

drivers/usb/core/message.c +4 -3
index 08cba309eb78..adc696a76b20 100644

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

drivers/usb/core/sysfs.c +4 -1
index 65b6e6b84043..6dc0f4e25cf3 100644

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

drivers/usb/core/usb.h +8 -2
index 53318126ed91..6b2f11544283 100644

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

drivers/usb/dwc3/core.c +1 -1
index 22b4797383cd..4378e758baef 100644

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

drivers/usb/gadget/udc/net2272.c +1 -0
index 3b6e34fc032b..553922c3be85 100644

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

drivers/usb/gadget/udc/net2280.c +3 -5
index 8efeadf30b4d..3a8d056a5d16 100644

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

drivers/usb/host/u132-hcd.c +3 -0
index d5434e7a3b2e..86f9944f337d 100644

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

drivers/usb/misc/yurex.c +1 -0
index 5594a4a4a83f..a8b6d0036e5d 100644

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

drivers/usb/storage/realtek_cr.c +5 -8
index 20433563a601..be432bec0c5b 100644

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

drivers/usb/storage/uas.c +24 -14
index 6cac8f26b97a..e657b111b320 100644

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

drivers/usb/usbip/stub_rx.c +3 -15
index 56cacb68040c..808e3a317954 100644

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

drivers/usb/usbip/usbip_common.h +7 -0
index 0fc5ace57c0e..af903aa4ad90 100644

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

drivers/vfio/pci/vfio_pci.c +2 -2
index b31b84f56e8f..47b229fa5e8e 100644

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

drivers/vfio/vfio_iommu_type1.c +14 -0
index 2fa280671c1e..875634d0d020 100644

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

drivers/virt/fsl_hypervisor.c +16 -13
index 590a0f51a249..9f96c7e61387 100644

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

drivers/w1/masters/ds2490.c +3 -3
index 59d74d1b47a8..2287e1be0e55 100644

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

fs/ceph/dir.c +5 -1
index be7d187d53fd..d636e2660e62 100644

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

fs/ceph/inode.c +1 -1
index 9f0d99094cc1..a663b676d566 100644

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

fs/ceph/mds_client.c +9 -0
index 35e6e0b2cf34..a5de8e22629b 100644

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

fs/ceph/snap.c +6 -1
index a485d0cdc559..3d876a1cf567 100644

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

fs/cifs/inode.c +4 -0
index d8bd8dd36211..0f210cb5038a 100644

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

fs/debugfs/inode.c +9 -4
index 22fe11baef2b..3530e1c3ff56 100644

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

fs/hugetlbfs/inode.c +14 -6
index cefae2350da5..27c4e2ac39a9 100644

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

fs/jffs2/readinode.c +0 -5
index bfebbf13698c..5b52ea41b84f 100644

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

fs/jffs2/super.c +4 -1
index 023e7f32ee1b..9fc297df8c75 100644

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

fs/nfs/super.c +2 -1
index 9b42139a479b..dced329a8584 100644

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

fs/nfsd/nfs4callback.c +7 -1
index 24ace275160c..4fa3f0ba9ab3 100644

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

fs/nfsd/state.h +1 -0
index 86af697c21d3..2c26bedda7be 100644

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

fs/proc/proc_sysctl.c +4 -2
index c7e32a891502..2eea16a81500 100644

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

include/linux/bitops.h +1 -20
index defeaac0745f..e76d03f44c80 100644

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

include/linux/bits.h new file +26 -0
new file mode 100644
index 000000000000..2b7b532c1d51

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

include/linux/cpu.h +19 -0
index 063c73ed6d78..664f892d6e73 100644

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

include/linux/jump_label.h +6 -0
index 68904469fba1..2209eb0740b0 100644

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

include/linux/ptrace.h +19 -2
index 81fdf4b8aba4..8b1e2bd46bb7 100644

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

include/linux/sched.h +9 -0
index 48a59f731406..a0b540f800d9 100644

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

include/linux/sched/smt.h new file +20 -0
new file mode 100644
index 000000000000..559ac4590593

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

include/linux/usb.h +0 -2
index 5c03ebc6dfa0..02bffcc611c3 100644

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

include/net/addrconf.h +1 -0
index 18dd7a3caf2f..af032e5405f6 100644

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

include/net/bluetooth/hci_core.h +3 -0
index 876688b5a356..7c0c83dfe86e 100644

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

include/uapi/linux/prctl.h +1 -0
index 64776b72e1eb..64ec0d62e5f5 100644

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

init/main.c +2 -2
index 49926d95442f..e88c8cdef6a7 100644

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

kernel/cpu.c +22 -1
index 42ce0b0ae5c5..3225c3a9d028 100644

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

kernel/irq/manage.c +3 -1
index 83cea913983c..92c7eb1aeded 100644

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

kernel/ptrace.c +10 -0
index 5e2cd1030702..8303874c2a06 100644

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

kernel/sched/core.c +24 -0
index d0618951014b..d35a7d528ea6 100644

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

kernel/sched/fair.c +4 -0
index d706cf4fda99..75bfa23f97b4 100644

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

kernel/sched/sched.h +1 -0
index 6893ee31df4d..8b96df04ba78 100644

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

kernel/time/timer_stats.c +1 -1
index 1adecb4b87c8..7e4d715f9c22 100644

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

kernel/trace/ring_buffer.c +1 -1
index 5e091614fe39..1cf2402c6922 100644

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

net/8021q/vlan_dev.c +3 -1
index ac9791dd4768..5139c4ebb96b 100644

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

net/bluetooth/hci_conn.c +8 -0
index 80be0ee17ff3..83d4d574fa44 100644

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

net/bluetooth/hidp/sock.c +1 -0
index 008ba439bd62..cc80c76177b6 100644

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

net/bridge/br_if.c +6 -7
index 50e84e634dfe..c7a281549d91 100644

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

net/bridge/br_netfilter_hooks.c +1 -0
index 93b5525bcccf..2ae0451fd634 100644

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

net/bridge/br_netfilter_ipv6.c +2 -0
index 69dfd212e50d..f94c83f5cc37 100644

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

net/bridge/netfilter/ebtables.c +2 -1
index f13402d407e4..1a87cf78fadc 100644

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

net/core/filter.c +15 -8
index 1a9ded6af138..3c5f51198c41 100644

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

net/ipv4/ip_output.c +1 -0
index c11bb6d2d00a..6d5a0a7ebe10 100644

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

net/ipv4/raw.c +2 -2
index 4d3d4291c82f..e742323d69e1 100644

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

net/ipv4/route.c +23 -9
index 1d580d290054..a58effba760a 100644

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

net/ipv4/sysctl_net_ipv4.c +4 -1
index da90c74d12ef..167ca0fddf9e 100644

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

net/ipv6/ip6_flowlabel.c +14 -8
index f3a0a9c0f61e..c6061f7343f1 100644

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

net/ipv6/ipv6_sockglue.c +2 -1
index 8d11a034ca3f..71263754b19b 100644

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

net/ipv6/mcast.c +12 -5
index a5ec9a0cbb80..976c8133a281 100644

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

net/ipv6/sit.c +1 -1
index 77736190dc15..5039486c4f86 100644

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

net/netfilter/ipvs/ip_vs_core.c +1 -1
index ac212542a217..c4509a10ce52 100644

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

net/netfilter/x_tables.c +1 -1
index b6e72af15237..cdafbd38a456 100644

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

net/packet/af_packet.c +34 -14

48 lines not on this page · raw message

net/sunrpc/cache.c +3 -0
index af17b00145e1..a8ab98b53a3a 100644

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

net/tipc/netlink_compat.c +20 -4
index e9653c42cdd1..8400211537a2 100644

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

scripts/Kbuild.include +1 -3
index 5e9cf7d146f0..e61a5c29b08c 100644

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

scripts/kconfig/lxdialog/inputbox.c +2 -1
index d58de1dc5360..510049a7bd1d 100644

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

scripts/kconfig/nconf.c +1 -1
index d42d534a66cd..f7049e288e93 100644

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

scripts/kconfig/nconf.gui.c +2 -1
index 4b2f44c20caf..9a65035cf787 100644

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

security/selinux/hooks.c +31 -9
index 99212ff6a568..ab2759d88bc6 100644

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

sound/soc/codecs/cs4270.c +1 -0
index 3670086b9227..f273533c6653 100644

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

sound/soc/codecs/tlv320aic32x4.c +2 -0
index f2d3191961e1..714bd0e3fc71 100644

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

sound/soc/intel/common/sst-dsp.c +6 -2
index c9452e02e0dd..c0a50ecb6dbd 100644

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

sound/soc/soc-pcm.c +5 -2
index f99eb8f44282..1c0d44c86c01 100644

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

sound/usb/line6/driver.c +35 -25

60 lines not on this page · raw message

sound/usb/line6/toneport.c +18 -6
index 6d4c50c9b17d..5512b3d532e7 100644

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

tools/lib/traceevent/event-parse.c +1 -1
index 743746a3c50d..df3c73e9dea4 100644

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

tools/power/x86/turbostat/Makefile +1 -1
index e367b1a85d70..3c04e2a85599 100644

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

tools/testing/selftests/net/run_netsocktests +1 -1
index 16058bbea7a8..c195b4478662 100755

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.