Skip to contentSkip to conversation

Linux 4.14.21

DISCUSSION Greg KH 1 participant 2 messages Feb 23, 2018 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.21 kernel.

All users of the 4.14 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/admin-guide/kernel-parameters.txt     |    7 
 Documentation/dev-tools/index.rst                   |    1 
 Documentation/dev-tools/kmemcheck.rst               |  733 --------------------
 Documentation/devicetree/bindings/dma/snps-dma.txt  |    2 
 Documentation/filesystems/ext4.txt                  |    2 
 MAINTAINERS                                         |   10 
 Makefile                                            |    2 
 arch/arm/boot/dts/arm-realview-eb-mp.dtsi           |    5 
 arch/arm/boot/dts/exynos5410.dtsi                   |    1 
 arch/arm/boot/dts/lpc3250-ea3250.dts                |    4 
 arch/arm/boot/dts/lpc3250-phy3250.dts               |    4 
 arch/arm/boot/dts/mt2701.dtsi                       |    2 
 arch/arm/boot/dts/mt7623.dtsi                       |    1 
 arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts       |    2 
 arch/arm/boot/dts/s5pv210.dtsi                      |    1 
 arch/arm/boot/dts/spear1310-evb.dts                 |    2 
 arch/arm/boot/dts/spear1340.dtsi                    |    4 
 arch/arm/boot/dts/spear13xx.dtsi                    |    6 
 arch/arm/boot/dts/spear600.dtsi                     |    1 
 arch/arm/boot/dts/ste-nomadik-stn8815.dtsi          |    1 
 arch/arm/boot/dts/stih407.dtsi                      |    3 
 arch/arm/boot/dts/stih410.dtsi                      |    3 
 arch/arm/include/asm/dma-iommu.h                    |    1 
 arch/arm/include/asm/pgalloc.h                      |    2 
 arch/arm/mach-pxa/tosa-bt.c                         |    4 
 arch/arm64/boot/dts/qcom/msm8916.dtsi               |    5 
 arch/arm64/include/asm/pgalloc.h                    |    2 
 arch/arm64/kernel/cpu_errata.c                      |    9 
 arch/arm64/kvm/hyp/switch.c                         |    4 
 arch/arm64/mm/proc.S                                |   14 
 arch/mips/Kconfig                                   |   12 
 arch/mips/kernel/setup.c                            |   16 
 arch/openrisc/include/asm/dma-mapping.h             |    1 
 arch/powerpc/include/asm/pgalloc.h                  |    2 
 arch/powerpc/include/asm/topology.h                 |    5 
 arch/powerpc/kernel/exceptions-64s.S                |    2 
 arch/powerpc/kernel/head_32.S                       |    2 
 arch/powerpc/mm/numa.c                              |    5 
 arch/powerpc/mm/pgtable-radix.c                     |   95 ++
 arch/powerpc/mm/pgtable_64.c                        |    2 
 arch/powerpc/mm/tlb-radix.c                         |    2 
 arch/powerpc/platforms/pseries/hotplug-cpu.c        |    2 
 arch/powerpc/sysdev/xive/spapr.c                    |   16 
 arch/s390/kernel/compat_linux.c                     |    8 
 arch/sh/kernel/dwarf.c                              |    4 
 arch/sh/kernel/process.c                            |    2 
 arch/sparc/mm/init_64.c                             |    4 
 arch/unicore32/include/asm/pgalloc.h                |    2 
 arch/x86/Kconfig                                    |    3 
 arch/x86/Makefile                                   |    5 
 arch/x86/entry/calling.h                            |  107 +-
 arch/x86/entry/entry_64.S                           |   92 --
 arch/x86/entry/entry_64_compat.S                    |   30 
 arch/x86/events/intel/core.c                        |    2 
 arch/x86/events/intel/lbr.c                         |    2 
 arch/x86/events/intel/p6.c                          |    2 
 arch/x86/include/asm/acpi.h                         |    2 
 arch/x86/include/asm/barrier.h                      |    2 
 arch/x86/include/asm/bug.h                          |   19 
 arch/x86/include/asm/dma-mapping.h                  |    1 
 arch/x86/include/asm/kmemcheck.h                    |   43 -
 arch/x86/include/asm/nospec-branch.h                |   14 
 arch/x86/include/asm/page_64.h                      |    4 
 arch/x86/include/asm/paravirt.h                     |    4 
 arch/x86/include/asm/paravirt_types.h               |    2 
 arch/x86/include/asm/pgtable.h                      |    5 
 arch/x86/include/asm/pgtable_32.h                   |    2 
 arch/x86/include/asm/pgtable_types.h                |   13 
 arch/x86/include/asm/processor.h                    |    7 
 arch/x86/include/asm/string_32.h                    |    9 
 arch/x86/include/asm/string_64.h                    |    8 
 arch/x86/include/asm/tlbflush.h                     |   27 
 arch/x86/include/asm/xor.h                          |    5 
 arch/x86/kernel/acpi/apei.c                         |    2 
 arch/x86/kernel/amd_nb.c                            |    2 
 arch/x86/kernel/apic/apic.c                         |    6 
 arch/x86/kernel/apm_32.c                            |    1 
 arch/x86/kernel/asm-offsets_32.c                    |    2 
 arch/x86/kernel/cpu/amd.c                           |   28 
 arch/x86/kernel/cpu/bugs.c                          |   34 
 arch/x86/kernel/cpu/centaur.c                       |    4 
 arch/x86/kernel/cpu/common.c                        |   10 
 arch/x86/kernel/cpu/cyrix.c                         |    2 
 arch/x86/kernel/cpu/intel.c                         |   46 -
 arch/x86/kernel/cpu/intel_rdt.c                     |    2 
 arch/x86/kernel/cpu/mcheck/mce-internal.h           |   15 
 arch/x86/kernel/cpu/mcheck/mce.c                    |   17 
 arch/x86/kernel/cpu/microcode/intel.c               |    6 
 arch/x86/kernel/cpu/mtrr/generic.c                  |    2 
 arch/x86/kernel/cpu/mtrr/main.c                     |    4 
 arch/x86/kernel/cpu/proc.c                          |    8 
 arch/x86/kernel/early-quirks.c                      |    1 
 arch/x86/kernel/espfix_64.c                         |    2 
 arch/x86/kernel/head_32.S                           |    4 
 arch/x86/kernel/mpparse.c                           |    2 
 arch/x86/kernel/paravirt.c                          |    6 
 arch/x86/kernel/relocate_kernel_64.S                |    8 
 arch/x86/kernel/traps.c                             |    7 
 arch/x86/kvm/mmu.c                                  |   10 
 arch/x86/kvm/vmx.c                                  |    7 
 arch/x86/lib/cpu.c                                  |    2 
 arch/x86/mm/Makefile                                |    2 
 arch/x86/mm/fault.c                                 |    6 
 arch/x86/mm/init.c                                  |    8 
 arch/x86/mm/init_64.c                               |    4 
 arch/x86/mm/ioremap.c                               |    2 
 arch/x86/mm/kmemcheck/Makefile                      |    1 
 arch/x86/mm/kmemcheck/error.c                       |  228 ------
 arch/x86/mm/kmemcheck/error.h                       |   16 
 arch/x86/mm/kmemcheck/kmemcheck.c                   |  658 -----------------
 arch/x86/mm/kmemcheck/opcode.c                      |  107 --
 arch/x86/mm/kmemcheck/opcode.h                      |   10 
 arch/x86/mm/kmemcheck/pte.c                         |   23 
 arch/x86/mm/kmemcheck/pte.h                         |   11 
 arch/x86/mm/kmemcheck/selftest.c                    |   71 -
 arch/x86/mm/kmemcheck/selftest.h                    |    7 
 arch/x86/mm/kmemcheck/shadow.c                      |  173 ----
 arch/x86/mm/kmemcheck/shadow.h                      |   19 
 arch/x86/mm/kmmio.c                                 |    2 
 arch/x86/mm/pageattr.c                              |   10 
 arch/x86/mm/pgtable.c                               |    2 
 arch/x86/mm/pgtable_32.c                            |    2 
 arch/x86/mm/tlb.c                                   |    6 
 arch/x86/platform/efi/efi_64.c                      |    2 
 arch/x86/platform/uv/tlb_uv.c                       |    2 
 arch/x86/xen/mmu_pv.c                               |    6 
 arch/x86/xen/p2m.c                                  |    6 
 arch/x86/xen/xen-head.S                             |   16 
 block/blk-wbt.c                                     |   10 
 crypto/xor.c                                        |    7 
 drivers/base/core.c                                 |    3 
 drivers/block/rbd.c                                 |    4 
 drivers/bluetooth/Kconfig                           |    2 
 drivers/char/hw_random/via-rng.c                    |    2 
 drivers/char/random.c                               |    1 
 drivers/cpufreq/acpi-cpufreq.c                      |    2 
 drivers/cpufreq/longhaul.c                          |    6 
 drivers/cpufreq/p4-clockmod.c                       |    2 
 drivers/cpufreq/powernow-k7.c                       |    2 
 drivers/cpufreq/powernv-cpufreq.c                   |    4 
 drivers/cpufreq/speedstep-centrino.c                |    4 
 drivers/cpufreq/speedstep-lib.c                     |    6 
 drivers/crypto/padlock-aes.c                        |    2 
 drivers/crypto/sunxi-ss/sun4i-ss-prng.c             |    6 
 drivers/devfreq/devfreq.c                           |    2 
 drivers/dma-buf/reservation.c                       |    8 
 drivers/edac/amd64_edac.c                           |    2 
 drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h    |    2 
 drivers/gpu/drm/ast/ast_mode.c                      |    1 
 drivers/gpu/drm/i915/i915_drv.h                     |    1 
 drivers/gpu/drm/i915/i915_pci.c                     |  193 ++++-
 drivers/gpu/drm/qxl/qxl_cmd.c                       |    6 
 drivers/gpu/drm/qxl/qxl_display.c                   |  112 ++-
 drivers/gpu/drm/qxl/qxl_drv.h                       |    4 
 drivers/gpu/drm/qxl/qxl_dumb.c                      |    1 
 drivers/gpu/drm/radeon/radeon_uvd.c                 |    2 
 drivers/gpu/drm/radeon/si_dpm.c                     |    5 
 drivers/gpu/drm/ttm/ttm_bo.c                        |    3 
 drivers/gpu/drm/ttm/ttm_bo_vm.c                     |    3 
 drivers/hwmon/coretemp.c                            |    6 
 drivers/hwmon/hwmon-vid.c                           |    2 
 drivers/hwmon/k10temp.c                             |    2 
 drivers/hwmon/k8temp.c                              |    2 
 drivers/infiniband/core/device.c                    |   20 
 drivers/infiniband/core/sysfs.c                     |    1 
 drivers/infiniband/core/user_mad.c                  |    2 
 drivers/infiniband/core/uverbs_std_types.c          |    2 
 drivers/infiniband/hw/mlx4/main.c                   |   13 
 drivers/infiniband/hw/qib/qib_rc.c                  |    6 
 drivers/infiniband/sw/rxe/rxe_loc.h                 |    1 
 drivers/infiniband/sw/rxe/rxe_qp.c                  |   12 
 drivers/infiniband/sw/rxe/rxe_req.c                 |    9 
 drivers/infiniband/sw/rxe/rxe_resp.c                |    2 
 drivers/infiniband/sw/rxe/rxe_verbs.c               |    2 
 drivers/infiniband/sw/rxe/rxe_verbs.h               |    3 
 drivers/md/dm.c                                     |    3 
 drivers/media/tuners/r820t.c                        |   13 
 drivers/misc/c2port/core.c                          |    2 
 drivers/mmc/host/bcm2835.c                          |    3 
 drivers/mmc/host/meson-gx-mmc.c                     |   19 
 drivers/mmc/host/sdhci-of-esdhc.c                   |   64 +
 drivers/mmc/host/sdhci.c                            |  164 ++++
 drivers/mmc/host/sdhci.h                            |    3 
 drivers/mtd/nand/vf610_nfc.c                        |    6 
 drivers/net/ethernet/marvell/mvpp2.c                |   11 
 drivers/net/ethernet/mellanox/mlx4/qp.c             |    3 
 drivers/net/wireless/marvell/mwifiex/pcie.c         |    5 
 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c |    5 
 drivers/net/wireless/realtek/rtlwifi/wifi.h         |    1 
 drivers/pci/dwc/pci-keystone.c                      |    5 
 drivers/pci/host/pcie-iproc-platform.c              |    7 
 drivers/pci/host/pcie-iproc.c                       |    8 
 drivers/pci/host/pcie-iproc.h                       |    2 
 drivers/pci/quirks.c                                |    2 
 drivers/platform/x86/apple-gmux.c                   |   48 -
 drivers/rtc/rtc-opal.c                              |   12 
 drivers/scsi/scsi_sysfs.c                           |    5 
 drivers/scsi/smartpqi/Makefile                      |    2 
 drivers/target/iscsi/iscsi_target_auth.c            |    3 
 drivers/target/iscsi/iscsi_target_nego.c            |    3 
 drivers/usb/Kconfig                                 |    8 
 drivers/usb/host/Kconfig                            |    8 
 drivers/video/console/dummycon.c                    |    1 
 drivers/video/fbdev/atmel_lcdfb.c                   |    8 
 drivers/video/fbdev/geode/video_gx.c                |    2 
 drivers/xen/xenbus/xenbus.h                         |    1 
 drivers/xen/xenbus/xenbus_comms.c                   |    1 
 drivers/xen/xenbus/xenbus_xs.c                      |    3 
 fs/btrfs/inode.c                                    |   41 -
 fs/btrfs/tree-log.c                                 |   32 
 fs/dcache.c                                         |    2 
 fs/ext4/inode.c                                     |   16 
 fs/ext4/super.c                                     |    1 
 fs/jbd2/transaction.c                               |    5 
 fs/mbcache.c                                        |    1 
 fs/ocfs2/dlmglue.c                                  |    9 
 fs/overlayfs/inode.c                                |   37 -
 fs/overlayfs/super.c                                |    1 
 fs/overlayfs/util.c                                 |    4 
 fs/seq_file.c                                       |    5 
 include/drm/i915_pciids.h                           |  160 ++--
 include/linux/c2port.h                              |    4 
 include/linux/compiler-gcc.h                        |    7 
 include/linux/compiler.h                            |    4 
 include/linux/cpuidle.h                             |    2 
 include/linux/dma-mapping.h                         |    8 
 include/linux/filter.h                              |    2 
 include/linux/gfp.h                                 |    9 
 include/linux/interrupt.h                           |   15 
 include/linux/jbd2.h                                |  431 +++++++----
 include/linux/kmemcheck.h                           |  172 ----
 include/linux/mlx5/driver.h                         |    2 
 include/linux/mm_inline.h                           |    6 
 include/linux/mm_types.h                            |    8 
 include/linux/net.h                                 |    3 
 include/linux/nospec.h                              |   36 
 include/linux/ring_buffer.h                         |    3 
 include/linux/skbuff.h                              |    3 
 include/linux/slab.h                                |    6 
 include/linux/thread_info.h                         |    5 
 include/net/inet_sock.h                             |    3 
 include/net/inet_timewait_sock.h                    |    4 
 include/net/sock.h                                  |    3 
 include/rdma/ib_verbs.h                             |    2 
 include/trace/events/mmflags.h                      |    1 
 include/trace/events/xen.h                          |    2 
 init/do_mounts.c                                    |    3 
 init/main.c                                         |    1 
 kernel/bpf/core.c                                   |    6 
 kernel/fork.c                                       |   12 
 kernel/locking/lockdep.c                            |    3 
 kernel/memremap.c                                   |    3 
 kernel/signal.c                                     |    3 
 kernel/softirq.c                                    |   10 
 kernel/sysctl.c                                     |   10 
 kernel/trace/Kconfig                                |    2 
 kernel/trace/ring_buffer.c                          |    3 
 kernel/trace/trace_events_filter.c                  |    9 
 lib/Kconfig.debug                                   |    6 
 lib/Kconfig.kmemcheck                               |   94 --
 lib/swiotlb.c                                       |   15 
 mm/Kconfig.debug                                    |    1 
 mm/Makefile                                         |    2 
 mm/kmemcheck.c                                      |  126 ---
 mm/kmemleak.c                                       |    9 
 mm/memory-failure.c                                 |    2 
 mm/memory.c                                         |    2 
 mm/page_alloc.c                                     |   14 
 mm/slab.c                                           |   16 
 mm/slab.h                                           |    7 
 mm/slab_common.c                                    |    2 
 mm/slub.c                                           |   31 
 net/9p/trans_virtio.c                               |    3 
 net/core/skbuff.c                                   |    5 
 net/core/sock.c                                     |    2 
 net/ipv4/inet_timewait_sock.c                       |    3 
 net/ipv4/tcp_input.c                                |    1 
 net/mpls/af_mpls.c                                  |   24 
 net/socket.c                                        |    1 
 net/sunrpc/xprtrdma/rpc_rdma.c                      |    2 
 net/sunrpc/xprtrdma/verbs.c                         |    8 
 scripts/kernel-doc                                  |    2 
 sound/core/seq/seq_clientmgr.c                      |    8 
 sound/pci/hda/patch_realtek.c                       |   72 +
 sound/soc/intel/common/sst-match-acpi.c             |    8 
 sound/usb/mixer.c                                   |   18 
 sound/usb/pcm.c                                     |    9 
 sound/usb/quirks.c                                  |    7 
 tools/include/linux/kmemcheck.h                     |    9 
 tools/objtool/check.c                               |   12 
 tools/perf/builtin-kmem.c                           |    1 
 tools/testing/selftests/seccomp/seccomp_bpf.c       |    4 
 tools/testing/selftests/vm/compaction_test.c        |    2 
 tools/testing/selftests/x86/Makefile                |   22 
 tools/testing/selftests/x86/mpx-mini-test.c         |   32 
 tools/testing/selftests/x86/protection_keys.c       |   28 
 tools/testing/selftests/x86/single_step_syscall.c   |    5 
 tools/testing/selftests/x86/test_mremap_vdso.c      |    4 
 tools/testing/selftests/x86/test_vdso.c             |   55 +
 tools/testing/selftests/x86/test_vsyscall.c         |   11 
 300 files changed, 1958 insertions(+), 3841 deletions(-)

Alex Deucher (1):
drm/radeon: Add dpm quirk for Jet PRO (v2)

Alexander Potapenko (1):

      mbcache: initialize entry->e_referenced in mb_cache_entry_create()

Alexey Kardashevskiy (1):
powerpc/mm: Flush radix process translations when setting MMU type

Amir Goldstein (1):
ovl: hash directory inodes for fsnotify

Anders Roxell (1):
selftests: seccomp: fix compile error seccomp_bpf

Andrey Grodzovsky (1):
drm/amd/powerplay: Fix smu_table_entry.handle type

Andy Lutomirski (1):
x86/mm: Rename flush_tlb_single() and flush_tlb_one() to __flush_tlb_one_[user|kernel]()

Anuj Phogat (1):
drm/i915/kbl: Change a KBL pci id to GT2 from GT1.5

Arnd Bergmann (9):
kselftest: fix OOM in memory compaction test
ARM: lpc3250: fix uda1380 gpio numbers
ARM: dts: nomadik: add interrupt-parent for clcd
mm: hide a #warning for COMPILE_TEST
Bluetooth: BT_HCIUART now depends on SERIAL_DEV_BUS
ARM: dts: exynos: fix RTC interrupt for exynos5410
ARM: pxa/tosa-bt: add MODULE_LICENSE tag
ARM: dts: s5pv210: add interrupt-parent for ohci
media: r820t: fix r820t_write_reg for KASAN

Artem Savkov (2):
crypto: sun4i_ss_prng - fix return value of sun4i_ss_prng_generate
crypto: sun4i_ss_prng - convert lock to _bh in sun4i_ss_prng_generate

Balbir Singh (1):
powerpc/mm/radix: Split linear mapping on hot-unplug

Bart Van Assche (4):
IB/core: Fix two kernel warnings triggered by rxe registration RDMA/rxe: Fix a race condition related to the QP error state RDMA/rxe: Fix a race condition in rxe_requester() RDMA/rxe: Fix rxe_qp_cleanup()

Benjamin Herrenschmidt (1):
powerpc: Fix DABR match on hash based systems

Bjorn Andersson (3):
PM / devfreq: Propagate error from devfreq_add_device()
arm64: dts: msm8916: Correct ipc references for smsm
arm64: dts: msm8916: Add missing #phy-cells

Bodong Wang (1):
IB/core: Fix ib_wc structure size to remain in 64 bytes boundary

Borislav Petkov (1):
x86/entry/64: Remove the unused 'icebp' macro

Brian Norris (1):
mwifiex: resolve reset vs. remove()/shutdown() deadlocks

Christian König (2):
swiotlb: suppress warning when __GFP_NOWARN is set
dma-buf: fix reservation_object_wait_timeout_rcu once more v2

Chuck Lever (2):
xprtrdma: Fix calculation of ri_max_send_sges
xprtrdma: Fix BUG after a device removal

Corentin Labbe (1):
MIPS: Fix typo BIG_ENDIAN to CPU_BIG_ENDIAN

Cédric Le Goater (1):
powerpc/xive: Use hw CPU ids when configuring the CPU queues

Dan Carpenter (1):
x86/spectre: Fix an error message

Dan Williams (5):
x86/entry/64: Clear extra registers beyond syscall arguments, to reduce speculation attack surface x86/entry/64/compat: Clear registers for compat syscalls, to reduce speculation attack surface x86/entry/64: Clear registers for exceptions/interrupts, to reduce speculation attack surface x86/speculation: Fix up array_index_nospec_mask() asm constraint
mpls, nospec: Sanitize array index in mpls_label_ok()

Daniel Mack (1):
ALSA: usb: add more device quirks for USB DSD devices

Daniel Vetter (1):
drm/ast: Load lut in crtc_commit

David Disseldorp (1):
target/iscsi: avoid NULL dereference in CHAP auth error path

David Woodhouse (4):
x86/speculation: Update Speculation Control microcode blacklist
x86/speculation: Correct Speculation Control microcode blacklist again
Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()"
KVM/x86: Reduce retpoline performance impact in slot_handle_level_range(), by always inlining iterator helper methods

Dominik Brodowski (12):
x86/entry/64: Merge SAVE_C_REGS and SAVE_EXTRA_REGS, remove unused extensions x86/entry/64: Merge the POP_C_REGS and POP_EXTRA_REGS macros into a single POP_REGS macro x86/entry/64: Interleave XOR register clearing with PUSH instructions x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro
x86/entry/64: Use PUSH_AND_CLEAN_REGS in more cases
x86/entry/64: Get rid of the ALLOC_PT_GPREGS_ON_STACK and SAVE_AND_CLEAR_REGS macros x86/entry/64: Indent PUSH_AND_CLEAR_REGS and POP_REGS properly selftests/x86: Fix vDSO selftest segfault for vsyscall=none
selftests/x86: Clean up and document sscanf() usage
selftests/x86: Do not rely on "int $0x80" in test_mremap_vdso.c selftests/x86: Do not rely on "int $0x80" in single_step_syscall.c selftests/x86: Disable tests requiring 32-bit support on pure 64-bit systems

Dongdong Liu (1):
PCI: Disable MSI for HiSilicon Hip06/Hip07 only in Root Port mode

Ernesto A. Fernández (1):
ext4: correct documentation for grpid mount option

Eugene Syromiatnikov (1):
s390: fix handling of -1 in set{,fs}[gu]id16 syscalls

Felix Kuehling (1):
drm/ttm: Don't add swapped BOs to swap-LRU list

Florian Westphal (1):
iscsi-target: make sure to wake up sleeping login worker

Gang He (1):
ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

Geert Uytterhoeven (2):
compiler-gcc.h: Introduce __optimize function attribute compiler-gcc.h: __nostackprotector needs gcc-4.4 and up

Gerd Hoffmann (1):
qxl: alloc & use shadow for dumb buffers

Greg Kroah-Hartman (1):

      Linux 4.14.21

Greg Kurz (1):
9p/trans_virtio: discard zero-length reply

Gustavo A. R. Silva (1):
x86/cpu: Change type of x86_cache_size variable to unsigned int

Hannes Reinecke (1):
scsi: core: check for device state in __scsi_remove_target()

Harshad Shirwadkar (1):
ext4: fix a race in the ext4 shutdown path

Hui Wang (1):
ALSA: hda - Fix headset mic detection problem for two Dell machines

Ilya Dryomov (1):
rbd: whitelist RBD_FEATURE_OPERATIONS feature bit

Ingo Molnar (3):
x86/speculation: Clean up various Spectre related details selftests/x86/pkeys: Remove unused functions x86/entry/64: Fix CR3 restore in paranoid_exit()

Jack Morgenstein (2):
IB/umad: Fix use of unprotected device pointer
IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports

James Hogan (1):
usb: Move USB_UHCI_BIG_ENDIAN_* out of USB_SUPPORT

Jan H. Schönherr (1):
mm: Fix memory size alignment in devm_memremap_pages_release()

Jan-Marek Glogowski (1):
ALSA: hda/realtek: PCI quirk for Fujitsu U7x7

Jens Axboe (1):
blk-wbt: account flush requests correctly

Jerome Brunet (1):
Revert "mmc: meson-gx: include tx phase in the tuning process"

Jia Zhang (1):
x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping

Joao Martins (1):
xenbus: track caller request id

Johan Hovold (2):
PCI: keystone: Fix interrupt-controller-node lookup
video: fbdev: atmel_lcdfb: fix display-timings lookup

Josh Poimboeuf (3):
x86/entry/64: Fix paranoid_entry() frame pointer warning
objtool: Fix segfault in ignore_unreachable_insn() x86/debug, objtool: Annotate WARN()-related UD2 as reachable

Juergen Gross (1):
x86/xen: init %gs very early to avoid page faults with stack protector

Julia Lawall (1):
drm/radeon: adjust tested variable

Kailang Yang (2):
ALSA: hda/realtek - Add headset mode support for Dell laptop
ALSA: hda/realtek - Enable Thinkpad Dock device for ALC298 platform

KarimAllah Ahmed (2):
X86/nVMX: Properly set spec_ctrl and pred_cmd before merging MSRs KVM/nVMX: Set the CPU_BASED_USE_MSR_BITMAPS if we have a valid L02 MSR bitmap

Kirill A. Shutemov (1):
x86/kexec: Make kexec (mostly) work in 5-level paging mode

Kirill Marinushkin (1):
ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute

Larry Finger (1):
rtlwifi: rtl8821ae: Fix connection lost problem correctly

Lassi Ylikojola (1):
ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204

Levin, Alexander (Sasha Levin) (4):
kmemcheck: remove annotations
kmemcheck: stop using GFP_NOTRACK and SLAB_NOTRACK
kmemcheck: remove whats left of NOTRACK flags
kmemcheck: rip it out

Linus Walleij (2):
mmc: sdhci: Implement an SDHCI-specific bounce buffer
ARM: dts: Delete bogus reference to the charlcd

Lionel Landwerlin (1):
drm/i915: add GT number to intel_device_info

Liu Bo (6):
Btrfs: fix deadlock in run_delalloc_nocow
Btrfs: fix crash due to not cleaning up tree log block's dirty bits
Btrfs: fix extent state leak from tree log
Btrfs: fix btrfs_evict_inode to handle abnormal inodes correctly
Btrfs: fix use-after-free on root->orphan_block_rsv
Btrfs: fix unexpected -EEXIST when creating new inode

Lucas De Marchi (1):
x86/gpu: add CFL to early quirks

Lukas Wunner (2):
PM / runtime: Update links_count also if !CONFIG_SRCU Revert "apple-gmux: lock iGP IO to protect from vgaarb changes"

Mahesh Salgaonkar (1):
powerpc/radix: Remove trace_tlbie call from radix__flush_tlb_all

Marcin Nowakowski (1):
MIPS: Fix incorrect mem=X@Y handling

Matthias Brugger (2):
arm: dts: mt7623: Update ethsys binding
arm: dts: mt2701: Add reset-cells

Michael J. Ruhl (1):
IB/core: Avoid a potential OOPs for an unused optional parameter

Michal Hocko (1):
kmemcheck: rip it out for real

Mike Marciniszyn (1):
IB/qib: Fix comparison error with qperf compare/swap test

Miklos Szeredi (1):
seq_file: fix incomplete reset on read from zero offset

Mikulas Patocka (1):
mvpp2: fix multicast address filter

Nadav Amit (1):
x86/mm/pti: Fix PTI comment in entry_SYSCALL_64()

Nathan Fontenot (1):
powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove

NeilBrown (1):
dm: correctly handle chained bios in dec_pending()

Nicolas Pitre (1):
console/dummy: leave .con_font_get set to NULL

Patrice Chotard (1):
ARM: dts: STi: Add gpio polarity for "hdmi,hpd-gpio" property

Peter Zijlstra (2):
x86/debug: Use UD2 for WARN() x86/speculation: Add <asm/msr-index.h> dependency

Phil Elwell (1):
mmc: bcm2835: Don't overwrite max frequency unconditionally

Pierre-Louis Bossart (1):
ASoC: acpi: fix machine driver selection based on quirk

Rafael J. Wysocki (2):
x86: PM: Make APM idle driver initialize polling state
PM: cpuidle: Fix cpuidle_poll_state_init() prototype

Randy Dunlap (1):
tracing: Prevent PROFILE_ALL_BRANCHES when FORTIFY_SOURCE=y

Ray Jui (1):
PCI: iproc: Fix NULL pointer dereference for BCMA

Ray Strode (2):
drm/qxl: unref cursor bo when finished with it drm/qxl: reapply cursor after resetting primary

Rui Wang (1):
selftests/x86/mpx: Fix incorrect bounds with old _sigfault

Sagi Grimberg (1):
mlx5: fix mlx5_get_vector_affinity to start from completion vector 0

Sean Wang (1):
arm: dts: mt7623: fix card detection issue on bananapi-r2

Shanker Donthineni (1):
arm64: Add missing Falkor part number for branch predictor hardening

Shilpasri G Bhat (1):
cpufreq: powernv: Dont assume distinct pstate values for nominal and pmin

Simon Gaiser (1):
xen: Fix {set,clear}_foreign_p2m_mapping on autotranslating guests

Stefan Agner (1):
mtd: nand: vf610: set correct ooblayout

Steffen Weber (1):
scsi: smartpqi: allow static build ("built-in")

Steven Rostedt (VMware) (1):
tracing: Fix parsing of globs with a wildcard at the beginning

Stewart Smith (1):
rtc-opal: Fix handling of firmware error codes, prevent busy loops

Takashi Iwai (1):
ALSA: seq: Fix racy pool initializations

Tobin C. Harding (1):
jbd2: fix sphinx kernel-doc build warnings

Tom St Denis (1):
drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() (v2)

Tony Luck (1):
x86/mm, mm/hwpoison: Don't unconditionally unmap kernel 1:1 pages

Viresh Kumar (3):
arm: spear600: Add missing interrupt-parent of rtc
arm: spear13xx: Fix dmas cells
arm: spear13xx: Fix spics gpio controller's warning

Will Deacon (2):
nospec: Move array_index_nospec() parameter checking into separate macro
arm64: proc: Set PTE_NG for table entries to avoid traversing them twice

Zhouyi Zhou (1):
ext4: save error to disk in __ext4_grp_locked_error()

yangbo lu (1):
mmc: sdhci-of-esdhc: disable SD clock for clock value 0

yinbo.zhu (2):
mmc: sdhci-of-esdhc: fix eMMC couldn't work after kexec
mmc: sdhci-of-esdhc: fix the mmc error after sleep on ls1046ardb

author maintainer
#1 lore raw
Documentation/admin-guide/kernel-parameters.txt +0 -7
index c76afdcafbef..fb385af482ff 100644
@@ -1841,13 +1841,6 @@
 			Built with CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y,
 			the default is off.
 
-	kmemcheck=	[X86] Boot-time kmemcheck enable/disable/one-shot mode
-			Valid arguments: 0, 1, 2
-			kmemcheck=0 (disabled)
-			kmemcheck=1 (enabled)
-			kmemcheck=2 (one-shot mode)
-			Default: 2 (one-shot mode)
-
 	kvm.ignore_msrs=[KVM] Ignore guest accesses to unhandled MSRs.
 			Default is 0 (don't ignore, but inject #GP)
 
Documentation/dev-tools/index.rst +0 -1
index a81787cd47d7..e313925fb0fa 100644
@@ -21,7 +21,6 @@ whole; patches welcome!
    kasan
    ubsan
    kmemleak
-   kmemcheck
    gdb-kernel-debugging
    kgdb
    kselftest
Documentation/dev-tools/kmemcheck.rst deleted +0 -733

733 lines not on this page · raw message

Documentation/devicetree/bindings/dma/snps-dma.txt +1 -1
index a122723907ac..99acc712f83a 100644
@@ -64,6 +64,6 @@ Example:
 		reg = <0xe0000000 0x1000>;
 		interrupts = <0 35 0x4>;
 		dmas = <&dmahost 12 0 1>,
-			<&dmahost 13 0 1 0>;
+			<&dmahost 13 1 0>;
 		dma-names = "rx", "rx";
 	};
Documentation/filesystems/ext4.txt +1 -1
index 5a8f7f4d2bca..7449893dc039 100644
@@ -233,7 +233,7 @@ data_err=ignore(*)	Just print an error message if an error occurs
 data_err=abort		Abort the journal if an error occurs in a file
 			data buffer in ordered mode.
 
-grpid			Give objects the same group ID as their creator.
+grpid			New objects have the group ID of their parent.
 bsdgroups
 
 nogrpid		(*)	New objects have the group ID of their creator.
MAINTAINERS +0 -10
index 2811a211632c..76ea063d8083 100644
@@ -7670,16 +7670,6 @@ F:	include/linux/kdb.h
 F:	include/linux/kgdb.h
 F:	kernel/debug/
 
-KMEMCHECK
-M:	Vegard Nossum <[email protected]>
-M:	Pekka Enberg <[email protected]>
-S:	Maintained
-F:	Documentation/dev-tools/kmemcheck.rst
-F:	arch/x86/include/asm/kmemcheck.h
-F:	arch/x86/mm/kmemcheck/
-F:	include/linux/kmemcheck.h
-F:	mm/kmemcheck.c
-
 KMEMLEAK
 M:	Catalin Marinas <[email protected]>
 S:	Maintained
Makefile +1 -1
index 33176140f133..68d70485b088 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 20
+SUBLEVEL = 21
 EXTRAVERSION =
 NAME = Petit Gorille
 
arch/arm/boot/dts/arm-realview-eb-mp.dtsi +0 -5
index 7b8d90b7aeea..29b636fce23f 100644
@@ -150,11 +150,6 @@
 	interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>;
 };
 
-&charlcd {
-	interrupt-parent = <&intc>;
-	interrupts = <0  IRQ_TYPE_LEVEL_HIGH>;
-};
-
 &serial0 {
 	interrupt-parent = <&intc>;
 	interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/exynos5410.dtsi +0 -1
index 7eab4bc07cec..7628bbb02324 100644
@@ -333,7 +333,6 @@
 &rtc {
 	clocks = <&clock CLK_RTC>;
 	clock-names = "rtc";
-	interrupt-parent = <&pmu_system_controller>;
 	status = "disabled";
 };
 
arch/arm/boot/dts/lpc3250-ea3250.dts +2 -2
index 52b3ed10283a..e2bc731079be 100644
@@ -156,8 +156,8 @@
 	uda1380: uda1380@18 {
 		compatible = "nxp,uda1380";
 		reg = <0x18>;
-		power-gpio = <&gpio 0x59 0>;
-		reset-gpio = <&gpio 0x51 0>;
+		power-gpio = <&gpio 3 10 0>;
+		reset-gpio = <&gpio 3 2 0>;
 		dac-clk = "wspll";
 	};
 
arch/arm/boot/dts/lpc3250-phy3250.dts +2 -2
index fd95e2b10357..b7bd3a110a8d 100644
@@ -81,8 +81,8 @@
 	uda1380: uda1380@18 {
 		compatible = "nxp,uda1380";
 		reg = <0x18>;
-		power-gpio = <&gpio 0x59 0>;
-		reset-gpio = <&gpio 0x51 0>;
+		power-gpio = <&gpio 3 10 0>;
+		reset-gpio = <&gpio 3 2 0>;
 		dac-clk = "wspll";
 	};
 
arch/arm/boot/dts/mt2701.dtsi +2 -0
index afe12e5b51f9..f936000f0699 100644
@@ -593,6 +593,7 @@
 		compatible = "mediatek,mt2701-hifsys", "syscon";
 		reg = <0 0x1a000000 0 0x1000>;
 		#clock-cells = <1>;
+		#reset-cells = <1>;
 	};
 
 	usb0: usb@1a1c0000 {
@@ -677,6 +678,7 @@
 		compatible = "mediatek,mt2701-ethsys", "syscon";
 		reg = <0 0x1b000000 0 0x1000>;
 		#clock-cells = <1>;
+		#reset-cells = <1>;
 	};
 
 	eth: ethernet@1b100000 {
arch/arm/boot/dts/mt7623.dtsi +1 -0
index ec8a07415cb3..36983a7d7cfd 100644
@@ -753,6 +753,7 @@
 			     "syscon";
 		reg = <0 0x1b000000 0 0x1000>;
 		#clock-cells = <1>;
+		#reset-cells = <1>;
 	};
 
 	eth: ethernet@1b100000 {
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +1 -1
index 688a86378cee..7bf5aa2237c9 100644
@@ -204,7 +204,7 @@
 	bus-width = <4>;
 	max-frequency = <50000000>;
 	cap-sd-highspeed;
-	cd-gpios = <&pio 261 0>;
+	cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
 	vmmc-supply = <&mt6323_vmch_reg>;
 	vqmmc-supply = <&mt6323_vio18_reg>;
 };
arch/arm/boot/dts/s5pv210.dtsi +1 -0
index 726c5d0dbd5b..b290a5abb901 100644
@@ -463,6 +463,7 @@
 			compatible = "samsung,exynos4210-ohci";
 			reg = <0xec300000 0x100>;
 			interrupts = <23>;
+			interrupt-parent = <&vic1>;
 			clocks = <&clocks CLK_USB_HOST>;
 			clock-names = "usbhost";
 			#address-cells = <1>;
arch/arm/boot/dts/spear1310-evb.dts +1 -1
index 84101e4eebbf..0f5f379323a8 100644
@@ -349,7 +349,7 @@
 			spi0: spi@e0100000 {
 				status = "okay";
 				num-cs = <3>;
-				cs-gpios = <&gpio1 7 0>, <&spics 0>, <&spics 1>;
+				cs-gpios = <&gpio1 7 0>, <&spics 0 0>, <&spics 1 0>;
 
 				stmpe610@0 {
 					compatible = "st,stmpe610";
arch/arm/boot/dts/spear1340.dtsi +2 -2
index 5f347054527d..d4dbc4098653 100644
@@ -142,8 +142,8 @@
 				reg = <0xb4100000 0x1000>;
 				interrupts = <0 105 0x4>;
 				status = "disabled";
-				dmas = <&dwdma0 0x600 0 0 1>, /* 0xC << 11 */
-					<&dwdma0 0x680 0 1 0>; /* 0xD << 7 */
+				dmas = <&dwdma0 12 0 1>,
+					<&dwdma0 13 1 0>;
 				dma-names = "tx", "rx";
 			};
 
arch/arm/boot/dts/spear13xx.dtsi +3 -3
index 17ea0abcdbd7..086b4b333249 100644
@@ -100,7 +100,7 @@
 			reg = <0xb2800000 0x1000>;
 			interrupts = <0 29 0x4>;
 			status = "disabled";
-			dmas = <&dwdma0 0 0 0 0>;
+			dmas = <&dwdma0 0 0 0>;
 			dma-names = "data";
 		};
 
@@ -290,8 +290,8 @@
 				#size-cells = <0>;
 				interrupts = <0 31 0x4>;
 				status = "disabled";
-				dmas = <&dwdma0 0x2000 0 0 0>, /* 0x4 << 11 */
-					<&dwdma0 0x0280 0 0 0>;  /* 0x5 << 7 */
+				dmas = <&dwdma0 4 0 0>,
+					<&dwdma0 5 0 0>;
 				dma-names = "tx", "rx";
 			};
 
arch/arm/boot/dts/spear600.dtsi +1 -0
index 6b32d20acc9f..00166eb9be86 100644
@@ -194,6 +194,7 @@
 			rtc: rtc@fc900000 {
 				compatible = "st,spear600-rtc";
 				reg = <0xfc900000 0x1000>;
+				interrupt-parent = <&vic0>;
 				interrupts = <10>;
 				status = "disabled";
 			};
arch/arm/boot/dts/ste-nomadik-stn8815.dtsi +1 -0
index 68aab50a73ab..733678b75b88 100644
@@ -750,6 +750,7 @@
 			reg = <0x10120000 0x1000>;
 			interrupt-names = "combined";
 			interrupts = <14>;
+			interrupt-parent = <&vica>;
 			clocks = <&clcdclk>, <&hclkclcd>;
 			clock-names = "clcdclk", "apb_pclk";
 			status = "disabled";
arch/arm/boot/dts/stih407.dtsi +2 -1
index fa149837df14..11fdecd9312e 100644
@@ -8,6 +8,7 @@
  */
 #include "stih407-clock.dtsi"
 #include "stih407-family.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
 	soc {
 		sti-display-subsystem {
@@ -122,7 +123,7 @@
 					 <&clk_s_d2_quadfs 0>,
 					 <&clk_s_d2_quadfs 1>;
 
-				hdmi,hpd-gpio = <&pio5 3>;
+				hdmi,hpd-gpio = <&pio5 3 GPIO_ACTIVE_LOW>;
 				reset-names = "hdmi";
 				resets = <&softreset STIH407_HDMI_TX_PHY_SOFTRESET>;
 				ddc = <&hdmiddc>;
arch/arm/boot/dts/stih410.dtsi +2 -1
index 21fe72b183d8..96eed0dc08b8 100644
@@ -9,6 +9,7 @@
 #include "stih410-clock.dtsi"
 #include "stih407-family.dtsi"
 #include "stih410-pinctrl.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 / {
 	aliases {
 		bdisp0 = &bdisp0;
@@ -213,7 +214,7 @@
 					 <&clk_s_d2_quadfs 0>,
 					 <&clk_s_d2_quadfs 1>;
 
-				hdmi,hpd-gpio = <&pio5 3>;
+				hdmi,hpd-gpio = <&pio5 3 GPIO_ACTIVE_LOW>;
 				reset-names = "hdmi";
 				resets = <&softreset STIH407_HDMI_TX_PHY_SOFTRESET>;
 				ddc = <&hdmiddc>;
arch/arm/include/asm/dma-iommu.h +0 -1
index 0722ec6be692..6821f1249300 100644
@@ -7,7 +7,6 @@
 #include <linux/mm_types.h>
 #include <linux/scatterlist.h>
 #include <linux/dma-debug.h>
-#include <linux/kmemcheck.h>
 #include <linux/kref.h>
 
 #define ARM_MAPPING_ERROR		(~(dma_addr_t)0x0)
arch/arm/include/asm/pgalloc.h +1 -1
index b2902a5cd780..2d7344f0e208 100644
@@ -57,7 +57,7 @@ static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd)
 extern pgd_t *pgd_alloc(struct mm_struct *mm);
 extern void pgd_free(struct mm_struct *mm, pgd_t *pgd);
 
-#define PGALLOC_GFP	(GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
+#define PGALLOC_GFP	(GFP_KERNEL | __GFP_ZERO)
 
 static inline void clean_pte_table(pte_t *pte)
 {
arch/arm/mach-pxa/tosa-bt.c +4 -0
index 107f37210fb9..83606087edc7 100644
@@ -132,3 +132,7 @@ static struct platform_driver tosa_bt_driver = {
 	},
 };
 module_platform_driver(tosa_bt_driver);
+
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Dmitry Baryshkov");
+MODULE_DESCRIPTION("Bluetooth built-in chip control");
arch/arm64/boot/dts/qcom/msm8916.dtsi +3 -2
index dc3817593e14..61da6e65900b 100644
@@ -901,6 +901,7 @@
 					    "dsi_phy_regulator";
 
 				#clock-cells = <1>;
+				#phy-cells = <0>;
 
 				clocks = <&gcc GCC_MDSS_AHB_CLK>;
 				clock-names = "iface_clk";
@@ -1430,8 +1431,8 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		qcom,ipc-1 = <&apcs 0 13>;
-		qcom,ipc-6 = <&apcs 0 19>;
+		qcom,ipc-1 = <&apcs 8 13>;
+		qcom,ipc-3 = <&apcs 8 19>;
 
 		apps_smsm: apps@0 {
 			reg = <0>;
arch/arm64/include/asm/pgalloc.h +1 -1
index d25f4f137c2a..5ca6a573a701 100644
@@ -26,7 +26,7 @@
 
 #define check_pgt_cache()		do { } while (0)
 
-#define PGALLOC_GFP	(GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
+#define PGALLOC_GFP	(GFP_KERNEL | __GFP_ZERO)
 #define PGD_SIZE	(PTRS_PER_PGD * sizeof(pgd_t))
 
 #if CONFIG_PGTABLE_LEVELS > 2
arch/arm64/kernel/cpu_errata.c +9 -0
index 07823595b7f0..52f15cd896e1 100644
@@ -406,6 +406,15 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
 		.capability = ARM64_HARDEN_BP_POST_GUEST_EXIT,
 		MIDR_ALL_VERSIONS(MIDR_QCOM_FALKOR_V1),
 	},
+	{
+		.capability = ARM64_HARDEN_BRANCH_PREDICTOR,
+		MIDR_ALL_VERSIONS(MIDR_QCOM_FALKOR),
+		.enable = qcom_enable_link_stack_sanitization,
+	},
+	{
+		.capability = ARM64_HARDEN_BP_POST_GUEST_EXIT,
+		MIDR_ALL_VERSIONS(MIDR_QCOM_FALKOR),
+	},
 	{
 		.capability = ARM64_HARDEN_BRANCH_PREDICTOR,
 		MIDR_ALL_VERSIONS(MIDR_BRCM_VULCAN),
arch/arm64/kvm/hyp/switch.c +3 -1
index 79364d3455c0..e08ae6b6b63e 100644
@@ -371,8 +371,10 @@ int __hyp_text __kvm_vcpu_run(struct kvm_vcpu *vcpu)
 		u32 midr = read_cpuid_id();
 
 		/* Apply BTAC predictors mitigation to all Falkor chips */
-		if ((midr & MIDR_CPU_MODEL_MASK) == MIDR_QCOM_FALKOR_V1)
+		if (((midr & MIDR_CPU_MODEL_MASK) == MIDR_QCOM_FALKOR) ||
+		    ((midr & MIDR_CPU_MODEL_MASK) == MIDR_QCOM_FALKOR_V1)) {
 			__qcom_hyp_sanitize_btac_predictors();
+		}
 	}
 
 	fp_enabled = __fpsimd_enabled();
arch/arm64/mm/proc.S +9 -5
index 27058f3fd132..329a1c43365e 100644
@@ -190,7 +190,8 @@ ENDPROC(idmap_cpu_replace_ttbr1)
 	dc	cvac, cur_\()\type\()p		// Ensure any existing dirty
 	dmb	sy				// lines are written back before
 	ldr	\type, [cur_\()\type\()p]	// loading the entry
-	tbz	\type, #0, next_\()\type	// Skip invalid entries
+	tbz	\type, #0, skip_\()\type	// Skip invalid and
+	tbnz	\type, #11, skip_\()\type	// non-global entries
 	.endm
 
 	.macro __idmap_kpti_put_pgtable_ent_ng, type
@@ -249,8 +250,9 @@ ENTRY(idmap_kpti_install_ng_mappings)
 	add	end_pgdp, cur_pgdp, #(PTRS_PER_PGD * 8)
 do_pgd:	__idmap_kpti_get_pgtable_ent	pgd
 	tbnz	pgd, #1, walk_puds
-	__idmap_kpti_put_pgtable_ent_ng	pgd
 next_pgd:
+	__idmap_kpti_put_pgtable_ent_ng	pgd
+skip_pgd:
 	add	cur_pgdp, cur_pgdp, #8
 	cmp	cur_pgdp, end_pgdp
 	b.ne	do_pgd
@@ -278,8 +280,9 @@ walk_puds:
 	add	end_pudp, cur_pudp, #(PTRS_PER_PUD * 8)
 do_pud:	__idmap_kpti_get_pgtable_ent	pud
 	tbnz	pud, #1, walk_pmds
-	__idmap_kpti_put_pgtable_ent_ng	pud
 next_pud:
+	__idmap_kpti_put_pgtable_ent_ng	pud
+skip_pud:
 	add	cur_pudp, cur_pudp, 8
 	cmp	cur_pudp, end_pudp
 	b.ne	do_pud
@@ -298,8 +301,9 @@ walk_pmds:
 	add	end_pmdp, cur_pmdp, #(PTRS_PER_PMD * 8)
 do_pmd:	__idmap_kpti_get_pgtable_ent	pmd
 	tbnz	pmd, #1, walk_ptes
-	__idmap_kpti_put_pgtable_ent_ng	pmd
 next_pmd:
+	__idmap_kpti_put_pgtable_ent_ng	pmd
+skip_pmd:
 	add	cur_pmdp, cur_pmdp, #8
 	cmp	cur_pmdp, end_pmdp
 	b.ne	do_pmd
@@ -317,7 +321,7 @@ walk_ptes:
 	add	end_ptep, cur_ptep, #(PTRS_PER_PTE * 8)
 do_pte:	__idmap_kpti_get_pgtable_ent	pte
 	__idmap_kpti_put_pgtable_ent_ng	pte
-next_pte:
+skip_pte:
 	add	cur_ptep, cur_ptep, #8
 	cmp	cur_ptep, end_ptep
 	b.ne	do_pte
arch/mips/Kconfig +6 -6
index c3d798b44030..c82457b0e733 100644
@@ -119,12 +119,12 @@ config MIPS_GENERIC
 	select SYS_SUPPORTS_MULTITHREADING
 	select SYS_SUPPORTS_RELOCATABLE
 	select SYS_SUPPORTS_SMARTMIPS
-	select USB_EHCI_BIG_ENDIAN_DESC if BIG_ENDIAN
-	select USB_EHCI_BIG_ENDIAN_MMIO if BIG_ENDIAN
-	select USB_OHCI_BIG_ENDIAN_DESC if BIG_ENDIAN
-	select USB_OHCI_BIG_ENDIAN_MMIO if BIG_ENDIAN
-	select USB_UHCI_BIG_ENDIAN_DESC if BIG_ENDIAN
-	select USB_UHCI_BIG_ENDIAN_MMIO if BIG_ENDIAN
+	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
+	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
+	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
+	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
+	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
+	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
 	select USE_OF
 	help
 	  Select this to build a kernel which aims to support multiple boards,
arch/mips/kernel/setup.c +12 -4
index fe3939726765..795caa763da3 100644
@@ -374,6 +374,7 @@ static void __init bootmem_init(void)
 	unsigned long reserved_end;
 	unsigned long mapstart = ~0UL;
 	unsigned long bootmap_size;
+	phys_addr_t ramstart = (phys_addr_t)ULLONG_MAX;
 	bool bootmap_valid = false;
 	int i;
 
@@ -394,7 +395,8 @@ static void __init bootmem_init(void)
 	max_low_pfn = 0;
 
 	/*
-	 * Find the highest page frame number we have available.
+	 * Find the highest page frame number we have available
+	 * and the lowest used RAM address
 	 */
 	for (i = 0; i < boot_mem_map.nr_map; i++) {
 		unsigned long start, end;
@@ -406,6 +408,8 @@ static void __init bootmem_init(void)
 		end = PFN_DOWN(boot_mem_map.map[i].addr
 				+ boot_mem_map.map[i].size);
 
+		ramstart = min(ramstart, boot_mem_map.map[i].addr);
+
 #ifndef CONFIG_HIGHMEM
 		/*
 		 * Skip highmem here so we get an accurate max_low_pfn if low
@@ -435,6 +439,13 @@ static void __init bootmem_init(void)
 		mapstart = max(reserved_end, start);
 	}
 
+	/*
+	 * Reserve any memory between the start of RAM and PHYS_OFFSET
+	 */
+	if (ramstart > PHYS_OFFSET)
+		add_memory_region(PHYS_OFFSET, ramstart - PHYS_OFFSET,
+				  BOOT_MEM_RESERVED);
+
 	if (min_low_pfn >= max_low_pfn)
 		panic("Incorrect memory mapping !!!");
 	if (min_low_pfn > ARCH_PFN_OFFSET) {
@@ -663,9 +674,6 @@ static int __init early_parse_mem(char *p)
 
 	add_memory_region(start, size, BOOT_MEM_RAM);
 
-	if (start && start > PHYS_OFFSET)
-		add_memory_region(PHYS_OFFSET, start - PHYS_OFFSET,
-				BOOT_MEM_RESERVED);
 	return 0;
 }
 early_param("mem", early_parse_mem);
arch/openrisc/include/asm/dma-mapping.h +0 -1
index f41bd3cb76d9..e212a1f0b6d2 100644
@@ -23,7 +23,6 @@
  */
 
 #include <linux/dma-debug.h>
-#include <linux/kmemcheck.h>
 #include <linux/dma-mapping.h>
 
 extern const struct dma_map_ops or1k_dma_map_ops;
arch/powerpc/include/asm/pgalloc.h +1 -1
index a14203c005f1..e11f03007b57 100644
@@ -18,7 +18,7 @@ static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp)
 }
 #endif /* MODULE */
 
-#define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
+#define PGALLOC_GFP (GFP_KERNEL | __GFP_ZERO)
 
 #ifdef CONFIG_PPC_BOOK3S
 #include <asm/book3s/pgalloc.h>
arch/powerpc/include/asm/topology.h +5 -0
index 023ff9f17501..d5f2ee882f74 100644
@@ -44,6 +44,11 @@ extern int sysfs_add_device_to_node(struct device *dev, int nid);
 extern void sysfs_remove_device_from_node(struct device *dev, int nid);
 extern int numa_update_cpu_topology(bool cpus_locked);
 
+static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node)
+{
+	numa_cpu_lookup_table[cpu] = node;
+}
+
 static inline int early_cpu_to_node(int cpu)
 {
 	int nid;
arch/powerpc/kernel/exceptions-64s.S +1 -1
index e9f72abc52b7..e91b40aa5417 100644
@@ -1617,7 +1617,7 @@ USE_TEXT_SECTION()
 	.balign	IFETCH_ALIGN_BYTES
 do_hash_page:
 	#ifdef CONFIG_PPC_STD_MMU_64
-	lis	r0,DSISR_BAD_FAULT_64S@h
+	lis	r0,(DSISR_BAD_FAULT_64S|DSISR_DABRMATCH)@h
 	ori	r0,r0,DSISR_BAD_FAULT_64S@l
 	and.	r0,r4,r0		/* weird error? */
 	bne-	handle_page_fault	/* if not, try to insert a HPTE */
arch/powerpc/kernel/head_32.S +1 -1
index 8c54166491e7..29b2fed93289 100644
@@ -388,7 +388,7 @@ DataAccess:
 	EXCEPTION_PROLOG
 	mfspr	r10,SPRN_DSISR
 	stw	r10,_DSISR(r11)
-	andis.	r0,r10,DSISR_BAD_FAULT_32S@h
+	andis.	r0,r10,(DSISR_BAD_FAULT_32S|DSISR_DABRMATCH)@h
 	bne	1f			/* if not, try to put a PTE */
 	mfspr	r4,SPRN_DAR		/* into the hash table */
 	rlwinm	r3,r10,32-15,21,21	/* DSISR_STORE -> _PAGE_RW */
arch/powerpc/mm/numa.c +0 -5
index a51df9ef529d..a81279249bfb 100644
@@ -142,11 +142,6 @@ static void reset_numa_cpu_lookup_table(void)
 		numa_cpu_lookup_table[cpu] = -1;
 }
 
-static void update_numa_cpu_lookup_table(unsigned int cpu, int node)
-{
-	numa_cpu_lookup_table[cpu] = node;
-}
-
 static void map_cpu_to_node(int cpu, int node)
 {
 	update_numa_cpu_lookup_table(cpu, node);
arch/powerpc/mm/pgtable-radix.c +74 -21

131 lines not on this page · raw message

arch/powerpc/mm/pgtable_64.c +2 -0
index ac0717a90ca6..12f95b1f7d07 100644
@@ -483,6 +483,8 @@ void mmu_partition_table_set_entry(unsigned int lpid, unsigned long dw0,
 	if (old & PATB_HR) {
 		asm volatile(PPC_TLBIE_5(%0,%1,2,0,1) : :
 			     "r" (TLBIEL_INVAL_SET_LPID), "r" (lpid));
+		asm volatile(PPC_TLBIE_5(%0,%1,2,1,1) : :
+			     "r" (TLBIEL_INVAL_SET_LPID), "r" (lpid));
 		trace_tlbie(lpid, 0, TLBIEL_INVAL_SET_LPID, lpid, 2, 0, 1);
 	} else {
 		asm volatile(PPC_TLBIE_5(%0,%1,2,0,0) : :
arch/powerpc/mm/tlb-radix.c +0 -2
index d304028641a2..4b295cfd5f7e 100644
@@ -453,14 +453,12 @@ void radix__flush_tlb_all(void)
 	 */
 	asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1)
 		     : : "r"(rb), "i"(r), "i"(1), "i"(ric), "r"(rs) : "memory");
-	trace_tlbie(0, 0, rb, rs, ric, prs, r);
 	/*
 	 * now flush host entires by passing PRS = 0 and LPID == 0
 	 */
 	asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1)
 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(0) : "memory");
 	asm volatile("eieio; tlbsync; ptesync": : :"memory");
-	trace_tlbie(0, 0, rb, 0, ric, prs, r);
 }
 
 void radix__flush_tlb_pte_p9_dd1(unsigned long old_pte, struct mm_struct *mm,
arch/powerpc/platforms/pseries/hotplug-cpu.c +2 -0
index fadb95efbb9e..b1ac8ac38434 100644
@@ -36,6 +36,7 @@
 #include <asm/xics.h>
 #include <asm/xive.h>
 #include <asm/plpar_wrappers.h>
+#include <asm/topology.h>
 
 #include "pseries.h"
 #include "offline_states.h"
@@ -331,6 +332,7 @@ static void pseries_remove_processor(struct device_node *np)
 			BUG_ON(cpu_online(cpu));
 			set_cpu_present(cpu, false);
 			set_hard_smp_processor_id(cpu, -1);
+			update_numa_cpu_lookup_table(cpu, -1);
 			break;
 		}
 		if (cpu >= nr_cpu_ids)
arch/powerpc/sysdev/xive/spapr.c +10 -6
index d9c4c9366049..091f1d0d0af1 100644
@@ -356,7 +356,8 @@ static int xive_spapr_configure_queue(u32 target, struct xive_q *q, u8 prio,
 
 	rc = plpar_int_get_queue_info(0, target, prio, &esn_page, &esn_size);
 	if (rc) {
-		pr_err("Error %lld getting queue info prio %d\n", rc, prio);
+		pr_err("Error %lld getting queue info CPU %d prio %d\n", rc,
+		       target, prio);
 		rc = -EIO;
 		goto fail;
 	}
@@ -370,7 +371,8 @@ static int xive_spapr_configure_queue(u32 target, struct xive_q *q, u8 prio,
 	/* Configure and enable the queue in HW */
 	rc = plpar_int_set_queue_config(flags, target, prio, qpage_phys, order);
 	if (rc) {
-		pr_err("Error %lld setting queue for prio %d\n", rc, prio);
+		pr_err("Error %lld setting queue for CPU %d prio %d\n", rc,
+		       target, prio);
 		rc = -EIO;
 	} else {
 		q->qpage = qpage;
@@ -389,8 +391,8 @@ static int xive_spapr_setup_queue(unsigned int cpu, struct xive_cpu *xc,
 	if (IS_ERR(qpage))
 		return PTR_ERR(qpage);
 
-	return xive_spapr_configure_queue(cpu, q, prio, qpage,
-					  xive_queue_shift);
+	return xive_spapr_configure_queue(get_hard_smp_processor_id(cpu),
+					  q, prio, qpage, xive_queue_shift);
 }
 
 static void xive_spapr_cleanup_queue(unsigned int cpu, struct xive_cpu *xc,
@@ -399,10 +401,12 @@ static void xive_spapr_cleanup_queue(unsigned int cpu, struct xive_cpu *xc,
 	struct xive_q *q = &xc->queue[prio];
 	unsigned int alloc_order;
 	long rc;
+	int hw_cpu = get_hard_smp_processor_id(cpu);
 
-	rc = plpar_int_set_queue_config(0, cpu, prio, 0, 0);
+	rc = plpar_int_set_queue_config(0, hw_cpu, prio, 0, 0);
 	if (rc)
-		pr_err("Error %ld setting queue for prio %d\n", rc, prio);
+		pr_err("Error %ld setting queue for CPU %d prio %d\n", rc,
+		       hw_cpu, prio);
 
 	alloc_order = xive_alloc_order(xive_queue_shift);
 	free_pages((unsigned long)q->qpage, alloc_order);
arch/s390/kernel/compat_linux.c +4 -4
index 59eea9c65d3e..79b7a3438d54 100644
@@ -110,7 +110,7 @@ COMPAT_SYSCALL_DEFINE2(s390_setregid16, u16, rgid, u16, egid)
 
 COMPAT_SYSCALL_DEFINE1(s390_setgid16, u16, gid)
 {
-	return sys_setgid((gid_t)gid);
+	return sys_setgid(low2highgid(gid));
 }
 
 COMPAT_SYSCALL_DEFINE2(s390_setreuid16, u16, ruid, u16, euid)
@@ -120,7 +120,7 @@ COMPAT_SYSCALL_DEFINE2(s390_setreuid16, u16, ruid, u16, euid)
 
 COMPAT_SYSCALL_DEFINE1(s390_setuid16, u16, uid)
 {
-	return sys_setuid((uid_t)uid);
+	return sys_setuid(low2highuid(uid));
 }
 
 COMPAT_SYSCALL_DEFINE3(s390_setresuid16, u16, ruid, u16, euid, u16, suid)
@@ -173,12 +173,12 @@ COMPAT_SYSCALL_DEFINE3(s390_getresgid16, u16 __user *, rgidp,
 
 COMPAT_SYSCALL_DEFINE1(s390_setfsuid16, u16, uid)
 {
-	return sys_setfsuid((uid_t)uid);
+	return sys_setfsuid(low2highuid(uid));
 }
 
 COMPAT_SYSCALL_DEFINE1(s390_setfsgid16, u16, gid)
 {
-	return sys_setfsgid((gid_t)gid);
+	return sys_setfsgid(low2highgid(gid));
 }
 
 static int groups16_to_user(u16 __user *grouplist, struct group_info *group_info)
arch/sh/kernel/dwarf.c +2 -2
index e1d751ae2498..1a2526676a87 100644
@@ -1172,11 +1172,11 @@ static int __init dwarf_unwinder_init(void)
 
 	dwarf_frame_cachep = kmem_cache_create("dwarf_frames",
 			sizeof(struct dwarf_frame), 0,
-			SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL);
+			SLAB_PANIC | SLAB_HWCACHE_ALIGN, NULL);
 
 	dwarf_reg_cachep = kmem_cache_create("dwarf_regs",
 			sizeof(struct dwarf_reg), 0,
-			SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL);
+			SLAB_PANIC | SLAB_HWCACHE_ALIGN, NULL);
 
 	dwarf_frame_pool = mempool_create_slab_pool(DWARF_FRAME_MIN_REQ,
 						    dwarf_frame_cachep);
arch/sh/kernel/process.c +1 -1
index b2d9963d5978..68b1a67533ce 100644
@@ -59,7 +59,7 @@ void arch_task_cache_init(void)
 
 	task_xstate_cachep = kmem_cache_create("task_xstate", xstate_size,
 					       __alignof__(union thread_xstate),
-					       SLAB_PANIC | SLAB_NOTRACK, NULL);
+					       SLAB_PANIC, NULL);
 }
 
 #ifdef CONFIG_SH_FPU_EMU
arch/sparc/mm/init_64.c +2 -2
index a0cc1be767c8..984e9d65ea0d 100644
@@ -2934,7 +2934,7 @@ void __flush_tlb_all(void)
 pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
 			    unsigned long address)
 {
-	struct page *page = alloc_page(GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO);
+	struct page *page = alloc_page(GFP_KERNEL | __GFP_ZERO);
 	pte_t *pte = NULL;
 
 	if (page)
@@ -2946,7 +2946,7 @@ pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
 pgtable_t pte_alloc_one(struct mm_struct *mm,
 			unsigned long address)
 {
-	struct page *page = alloc_page(GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO);
+	struct page *page = alloc_page(GFP_KERNEL | __GFP_ZERO);
 	if (!page)
 		return NULL;
 	if (!pgtable_page_ctor(page)) {
arch/unicore32/include/asm/pgalloc.h +1 -1
index 26775793c204..f0fdb268f8f2 100644
@@ -28,7 +28,7 @@ extern void free_pgd_slow(struct mm_struct *mm, pgd_t *pgd);
 #define pgd_alloc(mm)			get_pgd_slow(mm)
 #define pgd_free(mm, pgd)		free_pgd_slow(mm, pgd)
 
-#define PGALLOC_GFP	(GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
+#define PGALLOC_GFP	(GFP_KERNEL | __GFP_ZERO)
 
 /*
  * Allocate one PTE table.
arch/x86/Kconfig +1 -2
index 17de6acc0eab..559b37bf5a2e 100644
@@ -111,7 +111,6 @@ config X86
 	select HAVE_ARCH_JUMP_LABEL
 	select HAVE_ARCH_KASAN			if X86_64
 	select HAVE_ARCH_KGDB
-	select HAVE_ARCH_KMEMCHECK
 	select HAVE_ARCH_MMAP_RND_BITS		if MMU
 	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if MMU && COMPAT
 	select HAVE_ARCH_COMPAT_MMAP_BASES	if MMU && COMPAT
@@ -1443,7 +1442,7 @@ config ARCH_DMA_ADDR_T_64BIT
 
 config X86_DIRECT_GBPAGES
 	def_bool y
-	depends on X86_64 && !DEBUG_PAGEALLOC && !KMEMCHECK
+	depends on X86_64 && !DEBUG_PAGEALLOC
 	---help---
 	  Certain kernel features effectively disable kernel
 	  linear 1 GB mappings (even if the CPU otherwise
arch/x86/Makefile +0 -5
index 504b1a4535ac..fad55160dcb9 100644
@@ -158,11 +158,6 @@ ifdef CONFIG_X86_X32
 endif
 export CONFIG_X86_X32_ABI
 
-# Don't unroll struct assignments with kmemcheck enabled
-ifeq ($(CONFIG_KMEMCHECK),y)
-	KBUILD_CFLAGS += $(call cc-option,-fno-builtin-memcpy)
-endif
-
 #
 # If the function graph tracer is used with mcount instead of fentry,
 # '-maccumulate-outgoing-args' is needed to prevent a GCC bug
arch/x86/entry/calling.h +48 -59

135 lines not on this page · raw message

arch/x86/entry/entry_64.S +19 -73

185 lines not on this page · raw message

arch/x86/entry/entry_64_compat.S +30 -0
index 98d5358e4041..fd65e016e413 100644
@@ -85,15 +85,25 @@ ENTRY(entry_SYSENTER_compat)
 	pushq	%rcx			/* pt_regs->cx */
 	pushq	$-ENOSYS		/* pt_regs->ax */
 	pushq   $0			/* pt_regs->r8  = 0 */
+	xorq	%r8, %r8		/* nospec   r8 */
 	pushq   $0			/* pt_regs->r9  = 0 */
+	xorq	%r9, %r9		/* nospec   r9 */
 	pushq   $0			/* pt_regs->r10 = 0 */
+	xorq	%r10, %r10		/* nospec   r10 */
 	pushq   $0			/* pt_regs->r11 = 0 */
+	xorq	%r11, %r11		/* nospec   r11 */
 	pushq   %rbx                    /* pt_regs->rbx */
+	xorl	%ebx, %ebx		/* nospec   rbx */
 	pushq   %rbp                    /* pt_regs->rbp (will be overwritten) */
+	xorl	%ebp, %ebp		/* nospec   rbp */
 	pushq   $0			/* pt_regs->r12 = 0 */
+	xorq	%r12, %r12		/* nospec   r12 */
 	pushq   $0			/* pt_regs->r13 = 0 */
+	xorq	%r13, %r13		/* nospec   r13 */
 	pushq   $0			/* pt_regs->r14 = 0 */
+	xorq	%r14, %r14		/* nospec   r14 */
 	pushq   $0			/* pt_regs->r15 = 0 */
+	xorq	%r15, %r15		/* nospec   r15 */
 	cld
 
 	/*
@@ -214,15 +224,25 @@ GLOBAL(entry_SYSCALL_compat_after_hwframe)
 	pushq	%rbp			/* pt_regs->cx (stashed in bp) */
 	pushq	$-ENOSYS		/* pt_regs->ax */
 	pushq   $0			/* pt_regs->r8  = 0 */
+	xorq	%r8, %r8		/* nospec   r8 */
 	pushq   $0			/* pt_regs->r9  = 0 */
+	xorq	%r9, %r9		/* nospec   r9 */
 	pushq   $0			/* pt_regs->r10 = 0 */
+	xorq	%r10, %r10		/* nospec   r10 */
 	pushq   $0			/* pt_regs->r11 = 0 */
+	xorq	%r11, %r11		/* nospec   r11 */
 	pushq   %rbx                    /* pt_regs->rbx */
+	xorl	%ebx, %ebx		/* nospec   rbx */
 	pushq   %rbp                    /* pt_regs->rbp (will be overwritten) */
+	xorl	%ebp, %ebp		/* nospec   rbp */
 	pushq   $0			/* pt_regs->r12 = 0 */
+	xorq	%r12, %r12		/* nospec   r12 */
 	pushq   $0			/* pt_regs->r13 = 0 */
+	xorq	%r13, %r13		/* nospec   r13 */
 	pushq   $0			/* pt_regs->r14 = 0 */
+	xorq	%r14, %r14		/* nospec   r14 */
 	pushq   $0			/* pt_regs->r15 = 0 */
+	xorq	%r15, %r15		/* nospec   r15 */
 
 	/*
 	 * User mode is traced as though IRQs are on, and SYSENTER
@@ -338,15 +358,25 @@ ENTRY(entry_INT80_compat)
 	pushq	%rcx			/* pt_regs->cx */
 	pushq	$-ENOSYS		/* pt_regs->ax */
 	pushq   $0			/* pt_regs->r8  = 0 */
+	xorq	%r8, %r8		/* nospec   r8 */
 	pushq   $0			/* pt_regs->r9  = 0 */
+	xorq	%r9, %r9		/* nospec   r9 */
 	pushq   $0			/* pt_regs->r10 = 0 */
+	xorq	%r10, %r10		/* nospec   r10 */
 	pushq   $0			/* pt_regs->r11 = 0 */
+	xorq	%r11, %r11		/* nospec   r11 */
 	pushq   %rbx                    /* pt_regs->rbx */
+	xorl	%ebx, %ebx		/* nospec   rbx */
 	pushq   %rbp                    /* pt_regs->rbp */
+	xorl	%ebp, %ebp		/* nospec   rbp */
 	pushq   %r12                    /* pt_regs->r12 */
+	xorq	%r12, %r12		/* nospec   r12 */
 	pushq   %r13                    /* pt_regs->r13 */
+	xorq	%r13, %r13		/* nospec   r13 */
 	pushq   %r14                    /* pt_regs->r14 */
+	xorq	%r14, %r14		/* nospec   r14 */
 	pushq   %r15                    /* pt_regs->r15 */
+	xorq	%r15, %r15		/* nospec   r15 */
 	cld
 
 	/*
arch/x86/events/intel/core.c +1 -1
index 09c26a4f139c..1c2558430cf0 100644
@@ -3559,7 +3559,7 @@ static int intel_snb_pebs_broken(int cpu)
 		break;
 
 	case INTEL_FAM6_SANDYBRIDGE_X:
-		switch (cpu_data(cpu).x86_mask) {
+		switch (cpu_data(cpu).x86_stepping) {
 		case 6: rev = 0x618; break;
 		case 7: rev = 0x70c; break;
 		}
arch/x86/events/intel/lbr.c +1 -1
index ae64d0b69729..cf372b90557e 100644
@@ -1186,7 +1186,7 @@ void __init intel_pmu_lbr_init_atom(void)
 	 * on PMU interrupt
 	 */
 	if (boot_cpu_data.x86_model == 28
-	    && boot_cpu_data.x86_mask < 10) {
+	    && boot_cpu_data.x86_stepping < 10) {
 		pr_cont("LBR disabled due to erratum");
 		return;
 	}
arch/x86/events/intel/p6.c +1 -1
index a5604c352930..408879b0c0d4 100644
@@ -234,7 +234,7 @@ static __initconst const struct x86_pmu p6_pmu = {
 
 static __init void p6_pmu_rdpmc_quirk(void)
 {
-	if (boot_cpu_data.x86_mask < 9) {
+	if (boot_cpu_data.x86_stepping < 9) {
 		/*
 		 * PPro erratum 26; fixed in stepping 9 and above.
 		 */
arch/x86/include/asm/acpi.h +1 -1
index 8d0ec9df1cbe..f077401869ee 100644
@@ -94,7 +94,7 @@ static inline unsigned int acpi_processor_cstate_check(unsigned int max_cstate)
 	if (boot_cpu_data.x86 == 0x0F &&
 	    boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
 	    boot_cpu_data.x86_model <= 0x05 &&
-	    boot_cpu_data.x86_mask < 0x0A)
+	    boot_cpu_data.x86_stepping < 0x0A)
 		return 1;
 	else if (boot_cpu_has(X86_BUG_AMD_APIC_C1E))
 		return 1;
arch/x86/include/asm/barrier.h +1 -1
index 1e7c955b6303..4db77731e130 100644
@@ -40,7 +40,7 @@ static inline unsigned long array_index_mask_nospec(unsigned long index,
 
 	asm ("cmp %1,%2; sbb %0,%0;"
 			:"=r" (mask)
-			:"r"(size),"r" (index)
+			:"g"(size),"r" (index)
 			:"cc");
 	return mask;
 }
arch/x86/include/asm/bug.h +10 -9
index 34d99af43994..6804d6642767 100644
@@ -5,23 +5,20 @@
 #include <linux/stringify.h>
 
 /*
- * Since some emulators terminate on UD2, we cannot use it for WARN.
- * Since various instruction decoders disagree on the length of UD1,
- * we cannot use it either. So use UD0 for WARN.
+ * Despite that some emulators terminate on UD2, we use it for WARN().
  *
- * (binutils knows about "ud1" but {en,de}codes it as 2 bytes, whereas
- *  our kernel decoder thinks it takes a ModRM byte, which seems consistent
- *  with various things like the Intel SDM instruction encoding rules)
+ * Since various instruction decoders/specs disagree on the encoding of
+ * UD0/UD1.
  */
 
-#define ASM_UD0		".byte 0x0f, 0xff"
+#define ASM_UD0		".byte 0x0f, 0xff" /* + ModRM (for Intel) */
 #define ASM_UD1		".byte 0x0f, 0xb9" /* + ModRM */
 #define ASM_UD2		".byte 0x0f, 0x0b"
 
 #define INSN_UD0	0xff0f
 #define INSN_UD2	0x0b0f
 
-#define LEN_UD0		2
+#define LEN_UD2		2
 
 #ifdef CONFIG_GENERIC_BUG
 
@@ -77,7 +74,11 @@ do {								\
 	unreachable();						\
 } while (0)
 
-#define __WARN_FLAGS(flags)	_BUG_FLAGS(ASM_UD0, BUGFLAG_WARNING|(flags))
+#define __WARN_FLAGS(flags)					\
+do {								\
+	_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags));		\
+	annotate_reachable();					\
+} while (0)
 
 #include <asm-generic/bug.h>
 
arch/x86/include/asm/dma-mapping.h +0 -1
index 836ca1178a6a..69f16f0729d0 100644
@@ -7,7 +7,6 @@
  * Documentation/DMA-API.txt for documentation.
  */
 
-#include <linux/kmemcheck.h>
 #include <linux/scatterlist.h>
 #include <linux/dma-debug.h>
 #include <asm/io.h>
arch/x86/include/asm/kmemcheck.h deleted +0 -43

43 lines not on this page · raw message

arch/x86/include/asm/nospec-branch.h +10 -4
index 4d57894635f2..76b058533e47 100644
@@ -6,6 +6,7 @@
 #include <asm/alternative.h>
 #include <asm/alternative-asm.h>
 #include <asm/cpufeatures.h>
+#include <asm/msr-index.h>
 
 #ifdef __ASSEMBLY__
 
@@ -164,10 +165,15 @@ static inline void vmexit_fill_RSB(void)
 
 static inline void indirect_branch_prediction_barrier(void)
 {
-	alternative_input("",
-			  "call __ibp_barrier",
-			  X86_FEATURE_USE_IBPB,
-			  ASM_NO_INPUT_CLOBBER("eax", "ecx", "edx", "memory"));
+	asm volatile(ALTERNATIVE("",
+				 "movl %[msr], %%ecx\n\t"
+				 "movl %[val], %%eax\n\t"
+				 "movl $0, %%edx\n\t"
+				 "wrmsr",
+				 X86_FEATURE_USE_IBPB)
+		     : : [msr] "i" (MSR_IA32_PRED_CMD),
+			 [val] "i" (PRED_CMD_IBPB)
+		     : "eax", "ecx", "edx", "memory");
 }
 
 #endif /* __ASSEMBLY__ */
arch/x86/include/asm/page_64.h +0 -4
index 4baa6bceb232..d652a3808065 100644
@@ -52,10 +52,6 @@ static inline void clear_page(void *page)
 
 void copy_page(void *to, void *from);
 
-#ifdef CONFIG_X86_MCE
-#define arch_unmap_kpfn arch_unmap_kpfn
-#endif
-
 #endif	/* !__ASSEMBLY__ */
 
 #ifdef CONFIG_X86_VSYSCALL_EMULATION
arch/x86/include/asm/paravirt.h +2 -2
index 892df375b615..554841fab717 100644
@@ -297,9 +297,9 @@ static inline void __flush_tlb_global(void)
 {
 	PVOP_VCALL0(pv_mmu_ops.flush_tlb_kernel);
 }
-static inline void __flush_tlb_single(unsigned long addr)
+static inline void __flush_tlb_one_user(unsigned long addr)
 {
-	PVOP_VCALL1(pv_mmu_ops.flush_tlb_single, addr);
+	PVOP_VCALL1(pv_mmu_ops.flush_tlb_one_user, addr);
 }
 
 static inline void flush_tlb_others(const struct cpumask *cpumask,
arch/x86/include/asm/paravirt_types.h +1 -1
index 6ec54d01972d..f624f1f10316 100644
@@ -217,7 +217,7 @@ struct pv_mmu_ops {
 	/* TLB operations */
 	void (*flush_tlb_user)(void);
 	void (*flush_tlb_kernel)(void);
-	void (*flush_tlb_single)(unsigned long addr);
+	void (*flush_tlb_one_user)(unsigned long addr);
 	void (*flush_tlb_others)(const struct cpumask *cpus,
 				 const struct flush_tlb_info *info);
 
arch/x86/include/asm/pgtable.h +0 -5
index 211368922cad..8b8f1f14a0bf 100644
@@ -668,11 +668,6 @@ static inline bool pte_accessible(struct mm_struct *mm, pte_t a)
 	return false;
 }
 
-static inline int pte_hidden(pte_t pte)
-{
-	return pte_flags(pte) & _PAGE_HIDDEN;
-}
-
 static inline int pmd_present(pmd_t pmd)
 {
 	/*
arch/x86/include/asm/pgtable_32.h +1 -1
index e67c0620aec2..e55466760ff8 100644
@@ -61,7 +61,7 @@ void paging_init(void);
 #define kpte_clear_flush(ptep, vaddr)		\
 do {						\
 	pte_clear(&init_mm, (vaddr), (ptep));	\
-	__flush_tlb_one((vaddr));		\
+	__flush_tlb_one_kernel((vaddr));		\
 } while (0)
 
 #endif /* !__ASSEMBLY__ */
arch/x86/include/asm/pgtable_types.h +0 -13
index 9e9b05fc4860..3696398a9475 100644
@@ -32,7 +32,6 @@
 
 #define _PAGE_BIT_SPECIAL	_PAGE_BIT_SOFTW1
 #define _PAGE_BIT_CPA_TEST	_PAGE_BIT_SOFTW1
-#define _PAGE_BIT_HIDDEN	_PAGE_BIT_SOFTW3 /* hidden by kmemcheck */
 #define _PAGE_BIT_SOFT_DIRTY	_PAGE_BIT_SOFTW3 /* software dirty tracking */
 #define _PAGE_BIT_DEVMAP	_PAGE_BIT_SOFTW4
 
@@ -79,18 +78,6 @@
 #define _PAGE_KNL_ERRATUM_MASK 0
 #endif
 
-#ifdef CONFIG_KMEMCHECK
-#define _PAGE_HIDDEN	(_AT(pteval_t, 1) << _PAGE_BIT_HIDDEN)
-#else
-#define _PAGE_HIDDEN	(_AT(pteval_t, 0))
-#endif
-
-/*
- * The same hidden bit is used by kmemcheck, but since kmemcheck
- * works on kernel pages while soft-dirty engine on user space,
- * they do not conflict with each other.
- */
-
 #ifdef CONFIG_MEM_SOFT_DIRTY
 #define _PAGE_SOFT_DIRTY	(_AT(pteval_t, 1) << _PAGE_BIT_SOFT_DIRTY)
 #else
arch/x86/include/asm/processor.h +2 -5
index c57c6e77c29f..15fc074bd628 100644
@@ -91,7 +91,7 @@ struct cpuinfo_x86 {
 	__u8			x86;		/* CPU family */
 	__u8			x86_vendor;	/* CPU vendor */
 	__u8			x86_model;
-	__u8			x86_mask;
+	__u8			x86_stepping;
 #ifdef CONFIG_X86_64
 	/* Number of 4K pages in DTLB/ITLB combined(in pages): */
 	int			x86_tlbsize;
@@ -109,7 +109,7 @@ struct cpuinfo_x86 {
 	char			x86_vendor_id[16];
 	char			x86_model_id[64];
 	/* in KB - valid for CPUS which support this call: */
-	int			x86_cache_size;
+	unsigned int		x86_cache_size;
 	int			x86_cache_alignment;	/* In bytes */
 	/* Cache QoS architectural values: */
 	int			x86_cache_max_rmid;	/* max index */
@@ -968,7 +968,4 @@ bool xen_set_default_idle(void);
 
 void stop_this_cpu(void *dummy);
 void df_debug(struct pt_regs *regs, long error_code);
-
-void __ibp_barrier(void);
-
 #endif /* _ASM_X86_PROCESSOR_H */
arch/x86/include/asm/string_32.h +0 -9
index 076502241eae..55d392c6bd29 100644
@@ -179,8 +179,6 @@ static inline void *__memcpy3d(void *to, const void *from, size_t len)
  *	No 3D Now!
  */
 
-#ifndef CONFIG_KMEMCHECK
-
 #if (__GNUC__ >= 4)
 #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
 #else
@@ -189,13 +187,6 @@ static inline void *__memcpy3d(void *to, const void *from, size_t len)
 	 ? __constant_memcpy((t), (f), (n))	\
 	 : __memcpy((t), (f), (n)))
 #endif
-#else
-/*
- * kmemcheck becomes very happy if we use the REP instructions unconditionally,
- * because it means that we know both memory operands in advance.
- */
-#define memcpy(t, f, n) __memcpy((t), (f), (n))
-#endif
 
 #endif
 #endif /* !CONFIG_FORTIFY_SOURCE */
arch/x86/include/asm/string_64.h +0 -8
index 0b1b4445f4c5..533f74c300c2 100644
@@ -33,7 +33,6 @@ extern void *memcpy(void *to, const void *from, size_t len);
 extern void *__memcpy(void *to, const void *from, size_t len);
 
 #ifndef CONFIG_FORTIFY_SOURCE
-#ifndef CONFIG_KMEMCHECK
 #if (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || __GNUC__ < 4
 #define memcpy(dst, src, len)					\
 ({								\
@@ -46,13 +45,6 @@ extern void *__memcpy(void *to, const void *from, size_t len);
 	__ret;							\
 })
 #endif
-#else
-/*
- * kmemcheck becomes very happy if we use the REP instructions unconditionally,
- * because it means that we know both memory operands in advance.
- */
-#define memcpy(dst, src, len) __inline_memcpy((dst), (src), (len))
-#endif
 #endif /* !CONFIG_FORTIFY_SOURCE */
 
 #define __HAVE_ARCH_MEMSET
arch/x86/include/asm/tlbflush.h +20 -7
index 4405c4b308e8..704f31315dde 100644
@@ -140,7 +140,7 @@ static inline unsigned long build_cr3_noflush(pgd_t *pgd, u16 asid)
 #else
 #define __flush_tlb() __native_flush_tlb()
 #define __flush_tlb_global() __native_flush_tlb_global()
-#define __flush_tlb_single(addr) __native_flush_tlb_single(addr)
+#define __flush_tlb_one_user(addr) __native_flush_tlb_one_user(addr)
 #endif
 
 static inline bool tlb_defer_switch_to_init_mm(void)
@@ -397,7 +397,7 @@ static inline void __native_flush_tlb_global(void)
 /*
  * flush one page in the user mapping
  */
-static inline void __native_flush_tlb_single(unsigned long addr)
+static inline void __native_flush_tlb_one_user(unsigned long addr)
 {
 	u32 loaded_mm_asid = this_cpu_read(cpu_tlbstate.loaded_mm_asid);
 
@@ -434,18 +434,31 @@ static inline void __flush_tlb_all(void)
 /*
  * flush one page in the kernel mapping
  */
-static inline void __flush_tlb_one(unsigned long addr)
+static inline void __flush_tlb_one_kernel(unsigned long addr)
 {
 	count_vm_tlb_event(NR_TLB_LOCAL_FLUSH_ONE);
-	__flush_tlb_single(addr);
+
+	/*
+	 * If PTI is off, then __flush_tlb_one_user() is just INVLPG or its
+	 * paravirt equivalent.  Even with PCID, this is sufficient: we only
+	 * use PCID if we also use global PTEs for the kernel mapping, and
+	 * INVLPG flushes global translations across all address spaces.
+	 *
+	 * If PTI is on, then the kernel is mapped with non-global PTEs, and
+	 * __flush_tlb_one_user() will flush the given address for the current
+	 * kernel address space and for its usermode counterpart, but it does
+	 * not flush it for other address spaces.
+	 */
+	__flush_tlb_one_user(addr);
 
 	if (!static_cpu_has(X86_FEATURE_PTI))
 		return;
 
 	/*
-	 * __flush_tlb_single() will have cleared the TLB entry for this ASID,
-	 * but since kernel space is replicated across all, we must also
-	 * invalidate all others.
+	 * See above.  We need to propagate the flush to all other address
+	 * spaces.  In principle, we only need to propagate it to kernelmode
+	 * address spaces, but the extra bookkeeping we would need is not
+	 * worth it.
 	 */
 	invalidate_other_asid();
 }
arch/x86/include/asm/xor.h +1 -4
index 1f5c5161ead6..45c8605467f1 100644
@@ -1,7 +1,4 @@
-#ifdef CONFIG_KMEMCHECK
-/* kmemcheck doesn't handle MMX/SSE/SSE2 instructions */
-# include <asm-generic/xor.h>
-#elif !defined(_ASM_X86_XOR_H)
+#ifndef _ASM_X86_XOR_H
 #define _ASM_X86_XOR_H
 
 /*
arch/x86/kernel/acpi/apei.c +1 -1
index ea3046e0b0cf..28d70ac93faf 100644
@@ -55,5 +55,5 @@ void arch_apei_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)
 
 void arch_apei_flush_tlb_one(unsigned long addr)
 {
-	__flush_tlb_one(addr);
+	__flush_tlb_one_kernel(addr);
 }
arch/x86/kernel/amd_nb.c +1 -1
index 6db28f17ff28..c88e0b127810 100644
@@ -235,7 +235,7 @@ int amd_cache_northbridges(void)
 	if (boot_cpu_data.x86 == 0x10 &&
 	    boot_cpu_data.x86_model >= 0x8 &&
 	    (boot_cpu_data.x86_model > 0x9 ||
-	     boot_cpu_data.x86_mask >= 0x1))
+	     boot_cpu_data.x86_stepping >= 0x1))
 		amd_northbridges.flags |= AMD_NB_L3_INDEX_DISABLE;
 
 	if (boot_cpu_data.x86 == 0x15)
arch/x86/kernel/apic/apic.c +3 -3
index 89c7c8569e5e..5942aa5f569b 100644
@@ -553,7 +553,7 @@ static DEFINE_PER_CPU(struct clock_event_device, lapic_events);
 
 static u32 hsx_deadline_rev(void)
 {
-	switch (boot_cpu_data.x86_mask) {
+	switch (boot_cpu_data.x86_stepping) {
 	case 0x02: return 0x3a; /* EP */
 	case 0x04: return 0x0f; /* EX */
 	}
@@ -563,7 +563,7 @@ static u32 hsx_deadline_rev(void)
 
 static u32 bdx_deadline_rev(void)
 {
-	switch (boot_cpu_data.x86_mask) {
+	switch (boot_cpu_data.x86_stepping) {
 	case 0x02: return 0x00000011;
 	case 0x03: return 0x0700000e;
 	case 0x04: return 0x0f00000c;
@@ -575,7 +575,7 @@ static u32 bdx_deadline_rev(void)
 
 static u32 skx_deadline_rev(void)
 {
-	switch (boot_cpu_data.x86_mask) {
+	switch (boot_cpu_data.x86_stepping) {
 	case 0x03: return 0x01000136;
 	case 0x04: return 0x02000014;
 	}
arch/x86/kernel/apm_32.c +1 -0
index e4b0d92b3ae0..2a7fd56e67b3 100644
@@ -2389,6 +2389,7 @@ static int __init apm_init(void)
 	if (HZ != 100)
 		idle_period = (idle_period * HZ) / 100;
 	if (idle_threshold < 100) {
+		cpuidle_poll_state_init(&apm_idle_driver);
 		if (!cpuidle_register_driver(&apm_idle_driver))
 			if (cpuidle_register_device(&apm_cpuidle_device))
 				cpuidle_unregister_driver(&apm_idle_driver);
arch/x86/kernel/asm-offsets_32.c +1 -1
index fa1261eefa16..f91ba53e06c8 100644
@@ -18,7 +18,7 @@ void foo(void)
 	OFFSET(CPUINFO_x86, cpuinfo_x86, x86);
 	OFFSET(CPUINFO_x86_vendor, cpuinfo_x86, x86_vendor);
 	OFFSET(CPUINFO_x86_model, cpuinfo_x86, x86_model);
-	OFFSET(CPUINFO_x86_mask, cpuinfo_x86, x86_mask);
+	OFFSET(CPUINFO_x86_stepping, cpuinfo_x86, x86_stepping);
 	OFFSET(CPUINFO_cpuid_level, cpuinfo_x86, cpuid_level);
 	OFFSET(CPUINFO_x86_capability, cpuinfo_x86, x86_capability);
 	OFFSET(CPUINFO_x86_vendor_id, cpuinfo_x86, x86_vendor_id);
arch/x86/kernel/cpu/amd.c +14 -14
index ea831c858195..e7d5a7883632 100644
@@ -119,7 +119,7 @@ static void init_amd_k6(struct cpuinfo_x86 *c)
 		return;
 	}
 
-	if (c->x86_model == 6 && c->x86_mask == 1) {
+	if (c->x86_model == 6 && c->x86_stepping == 1) {
 		const int K6_BUG_LOOP = 1000000;
 		int n;
 		void (*f_vide)(void);
@@ -149,7 +149,7 @@ static void init_amd_k6(struct cpuinfo_x86 *c)
 
 	/* K6 with old style WHCR */
 	if (c->x86_model < 8 ||
-	   (c->x86_model == 8 && c->x86_mask < 8)) {
+	   (c->x86_model == 8 && c->x86_stepping < 8)) {
 		/* We can only write allocate on the low 508Mb */
 		if (mbytes > 508)
 			mbytes = 508;
@@ -168,7 +168,7 @@ static void init_amd_k6(struct cpuinfo_x86 *c)
 		return;
 	}
 
-	if ((c->x86_model == 8 && c->x86_mask > 7) ||
+	if ((c->x86_model == 8 && c->x86_stepping > 7) ||
 	     c->x86_model == 9 || c->x86_model == 13) {
 		/* The more serious chips .. */
 
@@ -221,7 +221,7 @@ static void init_amd_k7(struct cpuinfo_x86 *c)
 	 * are more robust with CLK_CTL set to 200xxxxx instead of 600xxxxx
 	 * As per AMD technical note 27212 0.2
 	 */
-	if ((c->x86_model == 8 && c->x86_mask >= 1) || (c->x86_model > 8)) {
+	if ((c->x86_model == 8 && c->x86_stepping >= 1) || (c->x86_model > 8)) {
 		rdmsr(MSR_K7_CLK_CTL, l, h);
 		if ((l & 0xfff00000) != 0x20000000) {
 			pr_info("CPU: CLK_CTL MSR was %x. Reprogramming to %x\n",
@@ -241,12 +241,12 @@ static void init_amd_k7(struct cpuinfo_x86 *c)
 	 * but they are not certified as MP capable.
 	 */
 	/* Athlon 660/661 is valid. */
-	if ((c->x86_model == 6) && ((c->x86_mask == 0) ||
-	    (c->x86_mask == 1)))
+	if ((c->x86_model == 6) && ((c->x86_stepping == 0) ||
+	    (c->x86_stepping == 1)))
 		return;
 
 	/* Duron 670 is valid */
-	if ((c->x86_model == 7) && (c->x86_mask == 0))
+	if ((c->x86_model == 7) && (c->x86_stepping == 0))
 		return;
 
 	/*
@@ -256,8 +256,8 @@ static void init_amd_k7(struct cpuinfo_x86 *c)
 	 * See http://www.heise.de/newsticker/data/jow-18.10.01-000 for
 	 * more.
 	 */
-	if (((c->x86_model == 6) && (c->x86_mask >= 2)) ||
-	    ((c->x86_model == 7) && (c->x86_mask >= 1)) ||
+	if (((c->x86_model == 6) && (c->x86_stepping >= 2)) ||
+	    ((c->x86_model == 7) && (c->x86_stepping >= 1)) ||
 	     (c->x86_model > 7))
 		if (cpu_has(c, X86_FEATURE_MP))
 			return;
@@ -583,7 +583,7 @@ static void early_init_amd(struct cpuinfo_x86 *c)
 	/*  Set MTRR capability flag if appropriate */
 	if (c->x86 == 5)
 		if (c->x86_model == 13 || c->x86_model == 9 ||
-		    (c->x86_model == 8 && c->x86_mask >= 8))
+		    (c->x86_model == 8 && c->x86_stepping >= 8))
 			set_cpu_cap(c, X86_FEATURE_K6_MTRR);
 #endif
 #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_PCI)
@@ -769,7 +769,7 @@ static void init_amd_zn(struct cpuinfo_x86 *c)
 	 * Fix erratum 1076: CPB feature bit not being set in CPUID. It affects
 	 * all up to and including B1.
 	 */
-	if (c->x86_model <= 1 && c->x86_mask <= 1)
+	if (c->x86_model <= 1 && c->x86_stepping <= 1)
 		set_cpu_cap(c, X86_FEATURE_CPB);
 }
 
@@ -880,11 +880,11 @@ static unsigned int amd_size_cache(struct cpuinfo_x86 *c, unsigned int size)
 	/* AMD errata T13 (order #21922) */
 	if ((c->x86 == 6)) {
 		/* Duron Rev A0 */
-		if (c->x86_model == 3 && c->x86_mask == 0)
+		if (c->x86_model == 3 && c->x86_stepping == 0)
 			size = 64;
 		/* Tbird rev A1/A2 */
 		if (c->x86_model == 4 &&
-			(c->x86_mask == 0 || c->x86_mask == 1))
+			(c->x86_stepping == 0 || c->x86_stepping == 1))
 			size = 256;
 	}
 	return size;
@@ -1021,7 +1021,7 @@ static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, const int *erratum)
 	}
 
 	/* OSVW unavailable or ID unknown, match family-model-stepping range */
-	ms = (cpu->x86_model << 4) | cpu->x86_mask;
+	ms = (cpu->x86_model << 4) | cpu->x86_stepping;
 	while ((range = *erratum++))
 		if ((cpu->x86 == AMD_MODEL_RANGE_FAMILY(range)) &&
 		    (ms >= AMD_MODEL_RANGE_START(range)) &&
arch/x86/kernel/cpu/bugs.c +11 -23
index 71949bf2de5a..d71c8b54b696 100644
@@ -162,8 +162,7 @@ static enum spectre_v2_mitigation_cmd __init spectre_v2_parse_cmdline(void)
 	if (cmdline_find_option_bool(boot_command_line, "nospectre_v2"))
 		return SPECTRE_V2_CMD_NONE;
 	else {
-		ret = cmdline_find_option(boot_command_line, "spectre_v2", arg,
-					  sizeof(arg));
+		ret = cmdline_find_option(boot_command_line, "spectre_v2", arg, sizeof(arg));
 		if (ret < 0)
 			return SPECTRE_V2_CMD_AUTO;
 
@@ -175,8 +174,7 @@ static enum spectre_v2_mitigation_cmd __init spectre_v2_parse_cmdline(void)
 		}
 
 		if (i >= ARRAY_SIZE(mitigation_options)) {
-			pr_err("unknown option (%s). Switching to AUTO select\n",
-			       mitigation_options[i].option);
+			pr_err("unknown option (%s). Switching to AUTO select\n", arg);
 			return SPECTRE_V2_CMD_AUTO;
 		}
 	}
@@ -185,8 +183,7 @@ static enum spectre_v2_mitigation_cmd __init spectre_v2_parse_cmdline(void)
 	     cmd == SPECTRE_V2_CMD_RETPOLINE_AMD ||
 	     cmd == SPECTRE_V2_CMD_RETPOLINE_GENERIC) &&
 	    !IS_ENABLED(CONFIG_RETPOLINE)) {
-		pr_err("%s selected but not compiled in. Switching to AUTO select\n",
-		       mitigation_options[i].option);
+		pr_err("%s selected but not compiled in. Switching to AUTO select\n", mitigation_options[i].option);
 		return SPECTRE_V2_CMD_AUTO;
 	}
 
@@ -256,14 +253,14 @@ static void __init spectre_v2_select_mitigation(void)
 			goto retpoline_auto;
 		break;
 	}
-	pr_err("kernel not compiled with retpoline; no mitigation available!");
+	pr_err("Spectre mitigation: kernel not compiled with retpoline; no mitigation available!");
 	return;
 
 retpoline_auto:
 	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {
 	retpoline_amd:
 		if (!boot_cpu_has(X86_FEATURE_LFENCE_RDTSC)) {
-			pr_err("LFENCE not serializing. Switching to generic retpoline\n");
+			pr_err("Spectre mitigation: LFENCE not serializing, switching to generic retpoline\n");
 			goto retpoline_generic;
 		}
 		mode = retp_compiler() ? SPECTRE_V2_RETPOLINE_AMD :
@@ -281,7 +278,7 @@ static void __init spectre_v2_select_mitigation(void)
 	pr_info("%s\n", spectre_v2_strings[mode]);
 
 	/*
-	 * If neither SMEP or KPTI are available, there is a risk of
+	 * If neither SMEP nor PTI are available, there is a risk of
 	 * hitting userspace addresses in the RSB after a context switch
 	 * from a shallow call stack to a deeper one. To prevent this fill
 	 * the entire RSB, even when using IBRS.
@@ -295,21 +292,20 @@ static void __init spectre_v2_select_mitigation(void)
 	if ((!boot_cpu_has(X86_FEATURE_PTI) &&
 	     !boot_cpu_has(X86_FEATURE_SMEP)) || is_skylake_era()) {
 		setup_force_cpu_cap(X86_FEATURE_RSB_CTXSW);
-		pr_info("Filling RSB on context switch\n");
+		pr_info("Spectre v2 mitigation: Filling RSB on context switch\n");
 	}
 
 	/* Initialize Indirect Branch Prediction Barrier if supported */
 	if (boot_cpu_has(X86_FEATURE_IBPB)) {
 		setup_force_cpu_cap(X86_FEATURE_USE_IBPB);
-		pr_info("Enabling Indirect Branch Prediction Barrier\n");
+		pr_info("Spectre v2 mitigation: Enabling Indirect Branch Prediction Barrier\n");
 	}
 }
 
 #undef pr_fmt
 
 #ifdef CONFIG_SYSFS
-ssize_t cpu_show_meltdown(struct device *dev,
-			  struct device_attribute *attr, char *buf)
+ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	if (!boot_cpu_has_bug(X86_BUG_CPU_MELTDOWN))
 		return sprintf(buf, "Not affected\n");
@@ -318,16 +314,14 @@ ssize_t cpu_show_meltdown(struct device *dev,
 	return sprintf(buf, "Vulnerable\n");
 }
 
-ssize_t cpu_show_spectre_v1(struct device *dev,
-			    struct device_attribute *attr, char *buf)
+ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	if (!boot_cpu_has_bug(X86_BUG_SPECTRE_V1))
 		return sprintf(buf, "Not affected\n");
 	return sprintf(buf, "Mitigation: __user pointer sanitization\n");
 }
 
-ssize_t cpu_show_spectre_v2(struct device *dev,
-			    struct device_attribute *attr, char *buf)
+ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf)
 {
 	if (!boot_cpu_has_bug(X86_BUG_SPECTRE_V2))
 		return sprintf(buf, "Not affected\n");
@@ -337,9 +331,3 @@ ssize_t cpu_show_spectre_v2(struct device *dev,
 		       spectre_v2_module_string());
 }
 #endif
-
-void __ibp_barrier(void)
-{
-	__wrmsr(MSR_IA32_PRED_CMD, PRED_CMD_IBPB, 0);
-}
-EXPORT_SYMBOL_GPL(__ibp_barrier);
arch/x86/kernel/cpu/centaur.c +2 -2
index 68bc6d9b3132..595be776727d 100644
@@ -136,7 +136,7 @@ static void init_centaur(struct cpuinfo_x86 *c)
 			clear_cpu_cap(c, X86_FEATURE_TSC);
 			break;
 		case 8:
-			switch (c->x86_mask) {
+			switch (c->x86_stepping) {
 			default:
 			name = "2";
 				break;
@@ -211,7 +211,7 @@ centaur_size_cache(struct cpuinfo_x86 *c, unsigned int size)
 	 *  - Note, it seems this may only be in engineering samples.
 	 */
 	if ((c->x86 == 6) && (c->x86_model == 9) &&
-				(c->x86_mask == 1) && (size == 65))
+				(c->x86_stepping == 1) && (size == 65))
 		size -= 1;
 	return size;
 }
arch/x86/kernel/cpu/common.c +5 -5
index 92b66e21bae5..651b7afed4da 100644
@@ -707,7 +707,7 @@ void cpu_detect(struct cpuinfo_x86 *c)
 		cpuid(0x00000001, &tfms, &misc, &junk, &cap0);
 		c->x86		= x86_family(tfms);
 		c->x86_model	= x86_model(tfms);
-		c->x86_mask	= x86_stepping(tfms);
+		c->x86_stepping	= x86_stepping(tfms);
 
 		if (cap0 & (1<<19)) {
 			c->x86_clflush_size = ((misc >> 8) & 0xff) * 8;
@@ -1160,9 +1160,9 @@ static void identify_cpu(struct cpuinfo_x86 *c)
 	int i;
 
 	c->loops_per_jiffy = loops_per_jiffy;
-	c->x86_cache_size = -1;
+	c->x86_cache_size = 0;
 	c->x86_vendor = X86_VENDOR_UNKNOWN;
-	c->x86_model = c->x86_mask = 0;	/* So far unknown... */
+	c->x86_model = c->x86_stepping = 0;	/* So far unknown... */
 	c->x86_vendor_id[0] = '\0'; /* Unset */
 	c->x86_model_id[0] = '\0';  /* Unset */
 	c->x86_max_cores = 1;
@@ -1353,8 +1353,8 @@ void print_cpu_info(struct cpuinfo_x86 *c)
 
 	pr_cont(" (family: 0x%x, model: 0x%x", c->x86, c->x86_model);
 
-	if (c->x86_mask || c->cpuid_level >= 0)
-		pr_cont(", stepping: 0x%x)\n", c->x86_mask);
+	if (c->x86_stepping || c->cpuid_level >= 0)
+		pr_cont(", stepping: 0x%x)\n", c->x86_stepping);
 	else
 		pr_cont(")\n");
 }
arch/x86/kernel/cpu/cyrix.c +1 -1
index 6b4bb335641f..8949b7ae6d92 100644
@@ -215,7 +215,7 @@ static void init_cyrix(struct cpuinfo_x86 *c)
 
 	/* common case step number/rev -- exceptions handled below */
 	c->x86_model = (dir1 >> 4) + 1;
-	c->x86_mask = dir1 & 0xf;
+	c->x86_stepping = dir1 & 0xf;
 
 	/* Now cook; the original recipe is by Channing Corn, from Cyrix.
 	 * We do the same thing for each generation: we work out
arch/x86/kernel/cpu/intel.c +14 -32

120 lines not on this page · raw message

arch/x86/kernel/cpu/intel_rdt.c +1 -1
index 99442370de40..18dd8f22e353 100644
@@ -771,7 +771,7 @@ static __init void rdt_quirks(void)
 			cache_alloc_hsw_probe();
 		break;
 	case INTEL_FAM6_SKYLAKE_X:
-		if (boot_cpu_data.x86_mask <= 4)
+		if (boot_cpu_data.x86_stepping <= 4)
 			set_rdt_options("!cmt,!mbmtotal,!mbmlocal,!l3cat");
 	}
 }
arch/x86/kernel/cpu/mcheck/mce-internal.h +15 -0
index aa0d5df9dc60..e956eb267061 100644
@@ -115,4 +115,19 @@ static inline void mce_unregister_injector_chain(struct notifier_block *nb)	{ }
 
 extern struct mca_config mca_cfg;
 
+#ifndef CONFIG_X86_64
+/*
+ * On 32-bit systems it would be difficult to safely unmap a poison page
+ * from the kernel 1:1 map because there are no non-canonical addresses that
+ * we can use to refer to the address without risking a speculative access.
+ * However, this isn't much of an issue because:
+ * 1) Few unmappable pages are in the 1:1 map. Most are in HIGHMEM which
+ *    are only mapped into the kernel as needed
+ * 2) Few people would run a 32-bit kernel on a machine that supports
+ *    recoverable errors because they have too much memory to boot 32-bit.
+ */
+static inline void mce_unmap_kpfn(unsigned long pfn) {}
+#define mce_unmap_kpfn mce_unmap_kpfn
+#endif
+
 #endif /* __X86_MCE_INTERNAL_H__ */
arch/x86/kernel/cpu/mcheck/mce.c +11 -6
index a9e898b71208..73237aa271ea 100644
@@ -106,6 +106,10 @@ static struct irq_work mce_irq_work;
 
 static void (*quirk_no_way_out)(int bank, struct mce *m, struct pt_regs *regs);
 
+#ifndef mce_unmap_kpfn
+static void mce_unmap_kpfn(unsigned long pfn);
+#endif
+
 /*
  * CPU/chipset specific EDAC code can register a notifier call here to print
  * MCE errors in a human-readable form.
@@ -582,7 +586,8 @@ static int srao_decode_notifier(struct notifier_block *nb, unsigned long val,
 
 	if (mce_usable_address(mce) && (mce->severity == MCE_AO_SEVERITY)) {
 		pfn = mce->addr >> PAGE_SHIFT;
-		memory_failure(pfn, MCE_VECTOR, 0);
+		if (memory_failure(pfn, MCE_VECTOR, 0))
+			mce_unmap_kpfn(pfn);
 	}
 
 	return NOTIFY_OK;
@@ -1049,12 +1054,13 @@ static int do_memory_failure(struct mce *m)
 	ret = memory_failure(m->addr >> PAGE_SHIFT, MCE_VECTOR, flags);
 	if (ret)
 		pr_err("Memory error not recovered");
+	else
+		mce_unmap_kpfn(m->addr >> PAGE_SHIFT);
 	return ret;
 }
 
-#if defined(arch_unmap_kpfn) && defined(CONFIG_MEMORY_FAILURE)
-
-void arch_unmap_kpfn(unsigned long pfn)
+#ifndef mce_unmap_kpfn
+static void mce_unmap_kpfn(unsigned long pfn)
 {
 	unsigned long decoy_addr;
 
@@ -1065,7 +1071,7 @@ void arch_unmap_kpfn(unsigned long pfn)
 	 * We would like to just call:
 	 *	set_memory_np((unsigned long)pfn_to_kaddr(pfn), 1);
 	 * but doing that would radically increase the odds of a
-	 * speculative access to the posion page because we'd have
+	 * speculative access to the poison page because we'd have
 	 * the virtual address of the kernel 1:1 mapping sitting
 	 * around in registers.
 	 * Instead we get tricky.  We create a non-canonical address
@@ -1090,7 +1096,6 @@ void arch_unmap_kpfn(unsigned long pfn)
 
 	if (set_memory_np(decoy_addr, 1))
 		pr_warn("Could not invalidate pfn=0x%lx from 1:1 map\n", pfn);
-
 }
 #endif
 
arch/x86/kernel/cpu/microcode/intel.c +3 -3
index f7c55b0e753a..a15db2b4e0d6 100644
@@ -921,7 +921,7 @@ static bool is_blacklisted(unsigned int cpu)
 	 */
 	if (c->x86 == 6 &&
 	    c->x86_model == INTEL_FAM6_BROADWELL_X &&
-	    c->x86_mask == 0x01 &&
+	    c->x86_stepping == 0x01 &&
 	    llc_size_per_core > 2621440 &&
 	    c->microcode < 0x0b000021) {
 		pr_err_once("Erratum BDF90: late loading with revision < 0x0b000021 (0x%x) disabled.\n", c->microcode);
@@ -944,7 +944,7 @@ static enum ucode_state request_microcode_fw(int cpu, struct device *device,
 		return UCODE_NFOUND;
 
 	sprintf(name, "intel-ucode/%02x-%02x-%02x",
-		c->x86, c->x86_model, c->x86_mask);
+		c->x86, c->x86_model, c->x86_stepping);
 
 	if (request_firmware_direct(&firmware, name, device)) {
 		pr_debug("data file %s load failed\n", name);
@@ -982,7 +982,7 @@ static struct microcode_ops microcode_intel_ops = {
 
 static int __init calc_llc_size_per_core(struct cpuinfo_x86 *c)
 {
-	u64 llc_size = c->x86_cache_size * 1024;
+	u64 llc_size = c->x86_cache_size * 1024ULL;
 
 	do_div(llc_size, c->x86_max_cores);
 
arch/x86/kernel/cpu/mtrr/generic.c +1 -1
index fdc55215d44d..e12ee86906c6 100644
@@ -859,7 +859,7 @@ int generic_validate_add_page(unsigned long base, unsigned long size,
 	 */
 	if (is_cpu(INTEL) && boot_cpu_data.x86 == 6 &&
 	    boot_cpu_data.x86_model == 1 &&
-	    boot_cpu_data.x86_mask <= 7) {
+	    boot_cpu_data.x86_stepping <= 7) {
 		if (base & ((1 << (22 - PAGE_SHIFT)) - 1)) {
 			pr_warn("mtrr: base(0x%lx000) is not 4 MiB aligned\n", base);
 			return -EINVAL;
arch/x86/kernel/cpu/mtrr/main.c +2 -2
index 40d5a8a75212..7468de429087 100644
@@ -711,8 +711,8 @@ void __init mtrr_bp_init(void)
 			if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL &&
 			    boot_cpu_data.x86 == 0xF &&
 			    boot_cpu_data.x86_model == 0x3 &&
-			    (boot_cpu_data.x86_mask == 0x3 ||
-			     boot_cpu_data.x86_mask == 0x4))
+			    (boot_cpu_data.x86_stepping == 0x3 ||
+			     boot_cpu_data.x86_stepping == 0x4))
 				phys_addr = 36;
 
 			size_or_mask = SIZE_OR_MASK_BITS(phys_addr);
arch/x86/kernel/cpu/proc.c +4 -4
index e7ecedafa1c8..2c8522a39ed5 100644
@@ -72,8 +72,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 		   c->x86_model,
 		   c->x86_model_id[0] ? c->x86_model_id : "unknown");
 
-	if (c->x86_mask || c->cpuid_level >= 0)
-		seq_printf(m, "stepping\t: %d\n", c->x86_mask);
+	if (c->x86_stepping || c->cpuid_level >= 0)
+		seq_printf(m, "stepping\t: %d\n", c->x86_stepping);
 	else
 		seq_puts(m, "stepping\t: unknown\n");
 	if (c->microcode)
@@ -91,8 +91,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 	}
 
 	/* Cache size */
-	if (c->x86_cache_size >= 0)
-		seq_printf(m, "cache size\t: %d KB\n", c->x86_cache_size);
+	if (c->x86_cache_size)
+		seq_printf(m, "cache size\t: %u KB\n", c->x86_cache_size);
 
 	show_cpuinfo_core(m, c, cpu);
 	show_cpuinfo_misc(m, c);
arch/x86/kernel/early-quirks.c +1 -0
index 1e82f787c160..c87560e1e3ef 100644
@@ -527,6 +527,7 @@ static const struct pci_device_id intel_early_ids[] __initconst = {
 	INTEL_SKL_IDS(&gen9_early_ops),
 	INTEL_BXT_IDS(&gen9_early_ops),
 	INTEL_KBL_IDS(&gen9_early_ops),
+	INTEL_CFL_IDS(&gen9_early_ops),
 	INTEL_GLK_IDS(&gen9_early_ops),
 	INTEL_CNL_IDS(&gen9_early_ops),
 };
arch/x86/kernel/espfix_64.c +1 -1
index 9c4e7ba6870c..cbded50ee601 100644
@@ -57,7 +57,7 @@
 # error "Need more virtual address space for the ESPFIX hack"
 #endif
 
-#define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
+#define PGALLOC_GFP (GFP_KERNEL | __GFP_ZERO)
 
 /* This contains the *bottom* address of the espfix stack */
 DEFINE_PER_CPU_READ_MOSTLY(unsigned long, espfix_stack);
arch/x86/kernel/head_32.S +2 -2
index c29020907886..b59e4fb40fd9 100644
@@ -37,7 +37,7 @@
 #define X86		new_cpu_data+CPUINFO_x86
 #define X86_VENDOR	new_cpu_data+CPUINFO_x86_vendor
 #define X86_MODEL	new_cpu_data+CPUINFO_x86_model
-#define X86_MASK	new_cpu_data+CPUINFO_x86_mask
+#define X86_STEPPING	new_cpu_data+CPUINFO_x86_stepping
 #define X86_HARD_MATH	new_cpu_data+CPUINFO_hard_math
 #define X86_CPUID	new_cpu_data+CPUINFO_cpuid_level
 #define X86_CAPABILITY	new_cpu_data+CPUINFO_x86_capability
@@ -332,7 +332,7 @@ ENTRY(startup_32_smp)
 	shrb $4,%al
 	movb %al,X86_MODEL
 	andb $0x0f,%cl		# mask mask revision
-	movb %cl,X86_MASK
+	movb %cl,X86_STEPPING
 	movl %edx,X86_CAPABILITY
 
 .Lis486:
arch/x86/kernel/mpparse.c +1 -1
index 3a4b12809ab5..bc6bc6689e68 100644
@@ -407,7 +407,7 @@ static inline void __init construct_default_ISA_mptable(int mpc_default_type)
 	processor.apicver = mpc_default_type > 4 ? 0x10 : 0x01;
 	processor.cpuflag = CPU_ENABLED;
 	processor.cpufeature = (boot_cpu_data.x86 << 8) |
-	    (boot_cpu_data.x86_model << 4) | boot_cpu_data.x86_mask;
+	    (boot_cpu_data.x86_model << 4) | boot_cpu_data.x86_stepping;
 	processor.featureflag = boot_cpu_data.x86_capability[CPUID_1_EDX];
 	processor.reserved[0] = 0;
 	processor.reserved[1] = 0;
arch/x86/kernel/paravirt.c +3 -3
index 19a3e8f961c7..e1df9ef5d78c 100644
@@ -190,9 +190,9 @@ static void native_flush_tlb_global(void)
 	__native_flush_tlb_global();
 }
 
-static void native_flush_tlb_single(unsigned long addr)
+static void native_flush_tlb_one_user(unsigned long addr)
 {
-	__native_flush_tlb_single(addr);
+	__native_flush_tlb_one_user(addr);
 }
 
 struct static_key paravirt_steal_enabled;
@@ -391,7 +391,7 @@ struct pv_mmu_ops pv_mmu_ops __ro_after_init = {
 
 	.flush_tlb_user = native_flush_tlb,
 	.flush_tlb_kernel = native_flush_tlb_global,
-	.flush_tlb_single = native_flush_tlb_single,
+	.flush_tlb_one_user = native_flush_tlb_one_user,
 	.flush_tlb_others = native_flush_tlb_others,
 
 	.pgd_alloc = __paravirt_pgd_alloc,
arch/x86/kernel/relocate_kernel_64.S +8 -0
index 307d3bac5f04..11eda21eb697 100644
@@ -68,6 +68,9 @@ relocate_kernel:
 	movq	%cr4, %rax
 	movq	%rax, CR4(%r11)
 
+	/* Save CR4. Required to enable the right paging mode later. */
+	movq	%rax, %r13
+
 	/* zero out flags, and disable interrupts */
 	pushq $0
 	popfq
@@ -126,8 +129,13 @@ identity_mapped:
 	/*
 	 * Set cr4 to a known state:
 	 *  - physical address extension enabled
+	 *  - 5-level paging, if it was enabled before
 	 */
 	movl	$X86_CR4_PAE, %eax
+	testq	$X86_CR4_LA57, %r13
+	jz	1f
+	orl	$X86_CR4_LA57, %eax
+1:
 	movq	%rax, %cr4
 
 	jmp 1f
arch/x86/kernel/traps.c +1 -6
index b33e860d32fe..a66428dc92ae 100644
@@ -42,7 +42,6 @@
 #include <linux/edac.h>
 #endif
 
-#include <asm/kmemcheck.h>
 #include <asm/stacktrace.h>
 #include <asm/processor.h>
 #include <asm/debugreg.h>
@@ -181,7 +180,7 @@ int fixup_bug(struct pt_regs *regs, int trapnr)
 		break;
 
 	case BUG_TRAP_TYPE_WARN:
-		regs->ip += LEN_UD0;
+		regs->ip += LEN_UD2;
 		return 1;
 	}
 
@@ -764,10 +763,6 @@ dotraplinkage void do_debug(struct pt_regs *regs, long error_code)
 	if (!dr6 && user_mode(regs))
 		user_icebp = 1;
 
-	/* Catch kmemcheck conditions! */
-	if ((dr6 & DR_STEP) && kmemcheck_trap(regs))
-		goto exit;
-
 	/* Store the virtualized DR6 value */
 	tsk->thread.debugreg6 = dr6;
 
arch/x86/kvm/mmu.c +5 -5
index beb7f8795bc1..ca000fc644bc 100644
@@ -5063,7 +5063,7 @@ void kvm_mmu_uninit_vm(struct kvm *kvm)
 typedef bool (*slot_level_handler) (struct kvm *kvm, struct kvm_rmap_head *rmap_head);
 
 /* The caller should hold mmu-lock before calling this function. */
-static bool
+static __always_inline bool
 slot_handle_level_range(struct kvm *kvm, struct kvm_memory_slot *memslot,
 			slot_level_handler fn, int start_level, int end_level,
 			gfn_t start_gfn, gfn_t end_gfn, bool lock_flush_tlb)
@@ -5093,7 +5093,7 @@ slot_handle_level_range(struct kvm *kvm, struct kvm_memory_slot *memslot,
 	return flush;
 }
 
-static bool
+static __always_inline bool
 slot_handle_level(struct kvm *kvm, struct kvm_memory_slot *memslot,
 		  slot_level_handler fn, int start_level, int end_level,
 		  bool lock_flush_tlb)
@@ -5104,7 +5104,7 @@ slot_handle_level(struct kvm *kvm, struct kvm_memory_slot *memslot,
 			lock_flush_tlb);
 }
 
-static bool
+static __always_inline bool
 slot_handle_all_level(struct kvm *kvm, struct kvm_memory_slot *memslot,
 		      slot_level_handler fn, bool lock_flush_tlb)
 {
@@ -5112,7 +5112,7 @@ slot_handle_all_level(struct kvm *kvm, struct kvm_memory_slot *memslot,
 				 PT_MAX_HUGEPAGE_LEVEL, lock_flush_tlb);
 }
 
-static bool
+static __always_inline bool
 slot_handle_large_level(struct kvm *kvm, struct kvm_memory_slot *memslot,
 			slot_level_handler fn, bool lock_flush_tlb)
 {
@@ -5120,7 +5120,7 @@ slot_handle_large_level(struct kvm *kvm, struct kvm_memory_slot *memslot,
 				 PT_MAX_HUGEPAGE_LEVEL, lock_flush_tlb);
 }
 
-static bool
+static __always_inline bool
 slot_handle_leaf(struct kvm *kvm, struct kvm_memory_slot *memslot,
 		 slot_level_handler fn, bool lock_flush_tlb)
 {
arch/x86/kvm/vmx.c +4 -3
index 0ea909ca45c2..dd35c6c50516 100644
@@ -10127,7 +10127,8 @@ static void nested_get_vmcs12_pages(struct kvm_vcpu *vcpu,
 	if (cpu_has_vmx_msr_bitmap() &&
 	    nested_cpu_has(vmcs12, CPU_BASED_USE_MSR_BITMAPS) &&
 	    nested_vmx_merge_msr_bitmap(vcpu, vmcs12))
-		;
+		vmcs_set_bits(CPU_BASED_VM_EXEC_CONTROL,
+			      CPU_BASED_USE_MSR_BITMAPS);
 	else
 		vmcs_clear_bits(CPU_BASED_VM_EXEC_CONTROL,
 				CPU_BASED_USE_MSR_BITMAPS);
@@ -10216,8 +10217,8 @@ static inline bool nested_vmx_merge_msr_bitmap(struct kvm_vcpu *vcpu,
 	 *    updated to reflect this when L1 (or its L2s) actually write to
 	 *    the MSR.
 	 */
-	bool pred_cmd = msr_write_intercepted_l01(vcpu, MSR_IA32_PRED_CMD);
-	bool spec_ctrl = msr_write_intercepted_l01(vcpu, MSR_IA32_SPEC_CTRL);
+	bool pred_cmd = !msr_write_intercepted_l01(vcpu, MSR_IA32_PRED_CMD);
+	bool spec_ctrl = !msr_write_intercepted_l01(vcpu, MSR_IA32_SPEC_CTRL);
 
 	if (!nested_cpu_has_virt_x2apic_mode(vmcs12) &&
 	    !pred_cmd && !spec_ctrl)
arch/x86/lib/cpu.c +1 -1
index d6f848d1211d..2dd1fe13a37b 100644
@@ -18,7 +18,7 @@ unsigned int x86_model(unsigned int sig)
 {
 	unsigned int fam, model;
 
-	 fam = x86_family(sig);
+	fam = x86_family(sig);
 
 	model = (sig >> 4) & 0xf;
 
arch/x86/mm/Makefile +0 -2
index 52906808e277..27e9e90a8d35 100644
@@ -29,8 +29,6 @@ obj-$(CONFIG_X86_PTDUMP)	+= debug_pagetables.o
 
 obj-$(CONFIG_HIGHMEM)		+= highmem_32.o
 
-obj-$(CONFIG_KMEMCHECK)		+= kmemcheck/
-
 KASAN_SANITIZE_kasan_init_$(BITS).o := n
 obj-$(CONFIG_KASAN)		+= kasan_init_$(BITS).o
 
arch/x86/mm/fault.c +0 -6
index b264b590eeec..9150fe2c9b26 100644
@@ -20,7 +20,6 @@
 #include <asm/cpufeature.h>		/* boot_cpu_has, ...		*/
 #include <asm/traps.h>			/* dotraplinkage, ...		*/
 #include <asm/pgalloc.h>		/* pgd_*(), ...			*/
-#include <asm/kmemcheck.h>		/* kmemcheck_*(), ...		*/
 #include <asm/fixmap.h>			/* VSYSCALL_ADDR		*/
 #include <asm/vsyscall.h>		/* emulate_vsyscall		*/
 #include <asm/vm86.h>			/* struct vm86			*/
@@ -1257,8 +1256,6 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code,
 	 * Detect and handle instructions that would cause a page fault for
 	 * both a tracked kernel page and a userspace page.
 	 */
-	if (kmemcheck_active(regs))
-		kmemcheck_hide(regs);
 	prefetchw(&mm->mmap_sem);
 
 	if (unlikely(kmmio_fault(regs, address)))
@@ -1281,9 +1278,6 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code,
 		if (!(error_code & (X86_PF_RSVD | X86_PF_USER | X86_PF_PROT))) {
 			if (vmalloc_fault(address) >= 0)
 				return;
[… more lines in the raw message]

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

arch/x86/mm/init.c +3 -5
index 6b462a472a7b..82f5252c723a 100644

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

arch/x86/mm/init_64.c +2 -2
index adcea90a2046..fe85d1204db8 100644

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

arch/x86/mm/ioremap.c +1 -1
index 34f0e1847dd6..bb120e59c597 100644

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

arch/x86/mm/kmemcheck/Makefile deleted +0 -1
deleted file mode 100644
index 520b3bce4095..000000000000

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

arch/x86/mm/kmemcheck/error.c deleted +0 -228

228 lines not on this page · raw message

arch/x86/mm/kmemcheck/error.h deleted +0 -16
deleted file mode 100644
index 39f80d7a874d..000000000000

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

arch/x86/mm/kmemcheck/kmemcheck.c deleted +0 -658

658 lines not on this page · raw message

arch/x86/mm/kmemcheck/opcode.c deleted +0 -107

107 lines not on this page · raw message

arch/x86/mm/kmemcheck/opcode.h deleted +0 -10
deleted file mode 100644
index 51a1ce94c24a..000000000000

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

arch/x86/mm/kmemcheck/pte.c deleted +0 -23
deleted file mode 100644
index 8a03be90272a..000000000000

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

arch/x86/mm/kmemcheck/pte.h deleted +0 -11
deleted file mode 100644
index b595612382c2..000000000000

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

arch/x86/mm/kmemcheck/selftest.c deleted +0 -71

71 lines not on this page · raw message

arch/x86/mm/kmemcheck/selftest.h deleted +0 -7
deleted file mode 100644
index 8d759aae453d..000000000000

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

arch/x86/mm/kmemcheck/shadow.c deleted +0 -173

173 lines not on this page · raw message

arch/x86/mm/kmemcheck/shadow.h deleted +0 -19
deleted file mode 100644
index 49768dc18664..000000000000

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

arch/x86/mm/kmmio.c +1 -1
index c21c2ed04612..aa44c3aa4cd5 100644

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

arch/x86/mm/pageattr.c +5 -5
index dfb7d657cf43..3ed9a08885c5 100644

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

arch/x86/mm/pgtable.c +1 -1
index 9b7bcbd33cc2..004abf9ebf12 100644

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

arch/x86/mm/pgtable_32.c +1 -1
index c3c5274410a9..9bb7f0ab9fe6 100644

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

arch/x86/mm/tlb.c +3 -3
index 012d02624848..0c936435ea93 100644

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

arch/x86/platform/efi/efi_64.c +1 -1
index 61975b6bcb1a..ad5d9538f0f9 100644

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

arch/x86/platform/uv/tlb_uv.c +1 -1
index 8538a6723171..7d5d53f36a7a 100644

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

arch/x86/xen/mmu_pv.c +3 -3
index a0e2b8c6e5c7..d0b943a6b117 100644

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

arch/x86/xen/p2m.c +6 -0
index 6083ba462f35..15812e553b95 100644

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

arch/x86/xen/xen-head.S +16 -0
index 497cc55a0c16..96f26e026783 100644

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

block/blk-wbt.c +9 -1
index e59d59c11ebb..5c105514bca7 100644

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

crypto/xor.c +1 -6
index 263af9fb45ea..bce9fe7af40a 100644

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

drivers/base/core.c +3 -0
index 12ebd055724c..c8501cdb95f4 100644

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

drivers/block/rbd.c +3 -1
index 609227211295..fe4fd8aee19f 100644

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

drivers/bluetooth/Kconfig +1 -1
index 98a60db8e5d1..b33c8d6eb8c7 100644

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

drivers/char/hw_random/via-rng.c +1 -1
index d1f5bb534e0e..6e9df558325b 100644

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

drivers/char/random.c +0 -1
index 8ad92707e45f..ea0115cf5fc0 100644

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

drivers/cpufreq/acpi-cpufreq.c +1 -1
index 3a2ca0f79daf..d0c34df0529c 100644

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

drivers/cpufreq/longhaul.c +3 -3
index c46a12df40dd..d5e27bc7585a 100644

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

drivers/cpufreq/p4-clockmod.c +1 -1
index fd77812313f3..a25741b1281b 100644

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

drivers/cpufreq/powernow-k7.c +1 -1
index 80ac313e6c59..302e9ce793a0 100644

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

drivers/cpufreq/powernv-cpufreq.c +2 -2
index 3ff5160451b4..7e1e5bbcf430 100644

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

drivers/cpufreq/speedstep-centrino.c +2 -2
index 41bc5397f4bb..4fa5adf16c70 100644

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

drivers/cpufreq/speedstep-lib.c +3 -3
index ccab452a4ef5..dd7bb00991f4 100644

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

drivers/crypto/padlock-aes.c +1 -1
index b3869748cc6b..c939f18f70cc 100644

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

drivers/crypto/sunxi-ss/sun4i-ss-prng.c +3 -3
index 0d01d1624252..63d636424161 100644

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

drivers/devfreq/devfreq.c +1 -1
index a1c4ee818614..202476fbbc4c 100644

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

drivers/dma-buf/reservation.c +5 -3
index b44d9d7db347..012fa3d1f407 100644

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

drivers/edac/amd64_edac.c +1 -1
index ac2f30295efe..59ce32e405ac 100644

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

drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.h +1 -1
index 262c8ded87c0..dafc9c4b1e6f 100644

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

drivers/gpu/drm/ast/ast_mode.c +1 -0
index 6f3849ec0c1d..e9f1e6fe7b94 100644

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

drivers/gpu/drm/i915/i915_drv.h +1 -0
index 18d9da53282b..3f818412765c 100644

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

drivers/gpu/drm/i915/i915_pci.c +150 -43

193 lines not on this page · raw message

drivers/gpu/drm/qxl/qxl_cmd.c +5 -1
index 74fc9362ecf9..3eb920851141 100644

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

drivers/gpu/drm/qxl/qxl_display.c +108 -4

112 lines not on this page · raw message

drivers/gpu/drm/qxl/qxl_drv.h +4 -0
index 3397a1907336..c0a927efa653 100644

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

drivers/gpu/drm/qxl/qxl_dumb.c +1 -0
index 5e65d5d2d937..11085ab01374 100644

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

drivers/gpu/drm/radeon/radeon_uvd.c +1 -1
index d34d1cf33895..95f4db70dd22 100644

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

drivers/gpu/drm/radeon/si_dpm.c +5 -0
index ee3e74266a13..97a0a639dad9 100644

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

drivers/gpu/drm/ttm/ttm_bo.c +2 -1
index c088703777e2..68eed684dff5 100644

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

drivers/gpu/drm/ttm/ttm_bo_vm.c +2 -1
index c8ebb757e36b..b17d0d38f290 100644

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

drivers/hwmon/coretemp.c +3 -3
index c13a4fd86b3c..a42744c7665b 100644

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

drivers/hwmon/hwmon-vid.c +1 -1
index ef91b8a67549..84e91286fc4f 100644

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

drivers/hwmon/k10temp.c +1 -1
index ce3b91f22e30..5c740996aa62 100644

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

drivers/hwmon/k8temp.c +1 -1
index 5a632bcf869b..e59f9113fb93 100644

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

drivers/infiniband/core/device.c +14 -6
index 84fc32a2c8b3..ebfdb5503701 100644

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

drivers/infiniband/core/sysfs.c +0 -1
index abc5ab581f82..0a1e96c25ca3 100644

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

drivers/infiniband/core/user_mad.c +1 -1
index 603acaf91828..6511cb21f6e2 100644

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

drivers/infiniband/core/uverbs_std_types.c +1 -1
index 0a98579700ec..5f9321eda1b7 100644

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

drivers/infiniband/hw/mlx4/main.c +5 -8
index c636842c5be0..8c681a36e6c7 100644

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

drivers/infiniband/hw/qib/qib_rc.c +3 -3
index e9a91736b12d..d80b61a71eb8 100644

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

drivers/infiniband/sw/rxe/rxe_loc.h +0 -1
index 77b3ed0df936..7f945f65d8cd 100644

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

drivers/infiniband/sw/rxe/rxe_qp.c +10 -2
index 00bda9380a2e..aeea994b04c4 100644

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

drivers/infiniband/sw/rxe/rxe_req.c +1 -8
index d84222f9d5d2..44b838ec9420 100644

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

drivers/infiniband/sw/rxe/rxe_resp.c +1 -1
index 4240866a5331..01f926fd9029 100644

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

drivers/infiniband/sw/rxe/rxe_verbs.c +2 -0
index 0b362f49a10a..afbf701dc9a7 100644

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

drivers/infiniband/sw/rxe/rxe_verbs.h +3 -0
index 0c2dbe45c729..1019f5e7dbdd 100644

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

drivers/md/dm.c +2 -1
index 804419635cc7..1dfc855ac708 100644

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

drivers/media/tuners/r820t.c +8 -5
index ba80376a3b86..d097eb04a0e9 100644

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

drivers/misc/c2port/core.c +0 -2
index 1922cb8f6b88..1c5b7aec13d4 100644

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

drivers/mmc/host/bcm2835.c +2 -1
index 229dc18f0581..768972af8b85 100644

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

drivers/mmc/host/meson-gx-mmc.c +1 -18
index 85745ef179e2..08a55c2e96e1 100644

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

drivers/mmc/host/sdhci-of-esdhc.c +37 -27

64 lines not on this page · raw message

drivers/mmc/host/sdhci.c +156 -8

164 lines not on this page · raw message

drivers/mmc/host/sdhci.h +3 -0
index 54bc444c317f..1d7d61e25dbf 100644

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

drivers/mtd/nand/vf610_nfc.c +2 -4
index 8037d4b48a05..e2583a539b41 100644

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

drivers/net/ethernet/marvell/mvpp2.c +8 -3
index 1dd3a1264a53..06f3fe429d82 100644

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

drivers/net/ethernet/mellanox/mlx4/qp.c +3 -0
index 728a2fb1f5c0..22a3bfe1ed8f 100644

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

drivers/net/wireless/marvell/mwifiex/pcie.c +4 -1
index cd314946452c..9511f5fe62f4 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c +3 -2
index 9ac1511de7ba..b82e5b363c05 100644

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

drivers/net/wireless/realtek/rtlwifi/wifi.h +1 -0
index 1ab1024330fb..25c4e3e55921 100644

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

drivers/pci/dwc/pci-keystone.c +4 -1
index 5bee3af47588..39405598b22d 100644

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

drivers/pci/host/pcie-iproc-platform.c +7 -0
index a5073a921a04..32228d41f746 100644

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

drivers/pci/host/pcie-iproc.c +5 -3
index 3a8b9d20ee57..c0ecc9f35667 100644

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

drivers/pci/host/pcie-iproc.h +2 -0
index a6b55cec9a66..4ac6282f2bfd 100644

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

drivers/pci/quirks.c +1 -1
index f66f9375177c..4c3feb96f391 100644

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

drivers/platform/x86/apple-gmux.c +1 -47

48 lines not on this page · raw message

drivers/rtc/rtc-opal.c +10 -2
index e2a946c0e667..304e891e35fc 100644

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

drivers/scsi/scsi_sysfs.c +4 -1
index f796bd61f3f0..40406c162d0d 100644

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

drivers/scsi/smartpqi/Makefile +1 -1
index 0f42a225a664..e6b779930230 100644

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

drivers/target/iscsi/iscsi_target_auth.c +2 -1
index f9bc8ec6fb6b..9518ffd8b8ba 100644

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

drivers/target/iscsi/iscsi_target_nego.c +3 -0
index 7a6751fecd32..87248a2512e5 100644

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

drivers/usb/Kconfig +8 -0
index 939a63bca82f..72eb3e41e3b6 100644

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

drivers/usb/host/Kconfig +0 -8
index fa5692dec832..92b19721b595 100644

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

drivers/video/console/dummycon.c +0 -1
index 9269d5685239..b90ef96e43d6 100644

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

drivers/video/fbdev/atmel_lcdfb.c +7 -1
index e06358da4b99..3dee267d7c75 100644

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

drivers/video/fbdev/geode/video_gx.c +1 -1
index 6082f653c68a..67773e8bbb95 100644

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

drivers/xen/xenbus/xenbus.h +1 -0
index 149c5e7efc89..092981171df1 100644

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

drivers/xen/xenbus/xenbus_comms.c +1 -0
index 5b081a01779d..d239fc3c5e3d 100644

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

drivers/xen/xenbus/xenbus_xs.c +3 -0
index 3e59590c7254..3f3b29398ab8 100644

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

fs/btrfs/inode.c +26 -15

41 lines not on this page · raw message

fs/btrfs/tree-log.c +30 -2
index d3002842d7f6..b6dfe7af7a1f 100644

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

fs/dcache.c +0 -2
index 34c852af215c..b8d999a5768b 100644

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

fs/ext4/inode.c +12 -4
index ea2ccc524bd9..0b9f3f284799 100644

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

fs/ext4/super.c +1 -0
index f29351c66610..16d247f056e2 100644

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

fs/jbd2/transaction.c +4 -1
index 8b08044b3120..c0681814c379 100644

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

fs/mbcache.c +1 -0
index d818fd236787..49c5b25bfa8c 100644

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

fs/ocfs2/dlmglue.c +9 -0
index 4689940a953c..5193218f5889 100644

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

fs/overlayfs/inode.c +27 -10
index 321511ed8c42..d60900b615f9 100644

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

fs/overlayfs/super.c +1 -0
index f5738e96a052..b8f8d666e8d4 100644

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

fs/overlayfs/util.c +2 -2
index b9b239fa5cfd..f60ce2e04df0 100644

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

fs/seq_file.c +4 -1
index 4be761c1a03d..eea09f6d8830 100644

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

include/drm/i915_pciids.h +102 -58

160 lines not on this page · raw message

include/linux/c2port.h +0 -4
index 4efabcb51347..f2736348ca26 100644

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

include/linux/compiler-gcc.h +5 -2
index 2272ded07496..bf09213895f7 100644

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

include/linux/compiler.h +4 -0
index fab5dc250c61..e8c9cd18bb05 100644

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

include/linux/cpuidle.h +1 -1
index 8f7788d23b57..a6989e02d0a0 100644

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

include/linux/dma-mapping.h +1 -7
index 46930f82a988..7bf3b99e6fbb 100644

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

include/linux/filter.h +0 -2
index 48ec57e70f9f..42197b16dd78 100644

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

include/linux/gfp.h +0 -9
index 710143741eb5..b041f94678de 100644

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

include/linux/interrupt.h +0 -15
index baeb872283d9..69c238210325 100644

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

include/linux/jbd2.h +268 -163

431 lines not on this page · raw message

include/linux/kmemcheck.h deleted +0 -172

172 lines not on this page · raw message

include/linux/mlx5/driver.h +1 -1
index a13525daf09b..ae15864c8708 100644

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

include/linux/mm_inline.h +0 -6
index c30b32e3c862..10191c28fc04 100644

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

include/linux/mm_types.h +0 -8
index c85f11dafd56..9f0bb908e2b5 100644

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

include/linux/net.h +0 -3
index d97d80d7fdf8..caeb159abda5 100644

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

include/linux/nospec.h +21 -15
index b99bced39ac2..fbc98e2c8228 100644

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

include/linux/ring_buffer.h +0 -3
index fa6ace66fea5..289e4d54e3e0 100644

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

include/linux/skbuff.h +0 -3
index 051e0939ec19..be45224b01d7 100644

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

include/linux/slab.h +0 -6
index af5aa65c7c18..ae5ed6492d54 100644

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

include/linux/thread_info.h +2 -3
index 4bcdf00c110f..34f053a150a9 100644

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

include/net/inet_sock.h +0 -3
index db8162dd8c0b..8e51b4a69088 100644

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

include/net/inet_timewait_sock.h +0 -4
index 6a75d67a30fd..1356fa6a7566 100644

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

include/net/sock.h +0 -3
index 006580155a87..9bd5d68076d9 100644

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

include/rdma/ib_verbs.h +1 -1
index e8608b2dc844..6533aa64f009 100644

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

include/trace/events/mmflags.h +0 -1
index 648cbf603736..72162f3a03fa 100644

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

include/trace/events/xen.h +1 -1
index a7c8b452aab9..d791863b62fc 100644

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

init/do_mounts.c +1 -2
index f6d4dd764a52..7cf4f6dafd5f 100644

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

init/main.c +0 -1
index b32ec72cdf3d..2d355a61dfc5 100644

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

kernel/bpf/core.c +0 -6
index 2246115365d9..d203a5d6b726 100644

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

kernel/fork.c +6 -6
index 500ce64517d9..98c91bd341b4 100644

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

kernel/locking/lockdep.c +0 -3
index e36e652d996f..4d362d3e4571 100644

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

kernel/memremap.c +2 -1
index 403ab9cdb949..4712ce646e04 100644

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

kernel/signal.c +1 -2
index 1facff1dbbae..6895f6bb98a7 100644

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

kernel/softirq.c +0 -10
index 4e09821f9d9e..e89c3b0cff6d 100644

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

kernel/sysctl.c +0 -10
index 56aca862c4f5..069550540a39 100644

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

kernel/trace/Kconfig +1 -1
index 434c840e2d82..4ad6f6ca18c1 100644

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

kernel/trace/ring_buffer.c +0 -3
index 0476a9372014..39c221454186 100644

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

kernel/trace/trace_events_filter.c +4 -5
index 61e7f0678d33..a764aec3c9a1 100644

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

lib/Kconfig.debug +2 -4
index 00cb02daeddd..62d0e25c054c 100644

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

lib/Kconfig.kmemcheck deleted +0 -94

94 lines not on this page · raw message

lib/swiotlb.c +9 -6
index 8c6c83ef57a4..20df2fd9b150 100644

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

mm/Kconfig.debug +0 -1
index 5b0adf1435de..e5e606ee5f71 100644

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

mm/Makefile +0 -2
index 4659b93cba43..e7ebd176fb93 100644

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

mm/kmemcheck.c deleted +0 -126

126 lines not on this page · raw message

mm/kmemleak.c +0 -9
index a1ba553816eb..bd1374f402cd 100644

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

mm/memory-failure.c +0 -2
index 88366626c0b7..1cd3b3569af8 100644

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

mm/memory.c +1 -1
index a728bed16c20..fc7779165dcf 100644

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

mm/page_alloc.c +0 -14
index 2de080003693..6627caeeaf82 100644

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

mm/slab.c +1 -15
index b7095884fd93..966839a1ac2c 100644

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

mm/slab.h +2 -5
index 86d7c7d860f9..485d9fbb8802 100644

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

mm/slab_common.c +1 -1
index 0d7fe71ff5e4..65212caa1f2a 100644

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

mm/slub.c +3 -28
index 8e1c027a30f4..41c01690d116 100644

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

net/9p/trans_virtio.c +2 -1
index f3a4efcf1456..3aa5a93ad107 100644

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

net/core/skbuff.c +0 -5
index 15fa5baa8fae..cc811add68c6 100644

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

net/core/sock.c +0 -2
index beb1e299fed3..ec6eb546b228 100644

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

net/ipv4/inet_timewait_sock.c +0 -3
index 5b039159e67a..d451b9f19b59 100644

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

net/ipv4/tcp_input.c +0 -1
index ff48ac654e5a..d9d215e27b8a 100644

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

net/mpls/af_mpls.c +14 -10
index c5b9ce41d66f..aee385eb72e7 100644

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

net/socket.c +0 -1
index d894c7c5fa54..43d2f17f5eea 100644

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

net/sunrpc/xprtrdma/rpc_rdma.c +1 -1
index f1889f4d4803..491ae9fc561f 100644

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

net/sunrpc/xprtrdma/verbs.c +4 -4
index 11a1fbf7e59e..9e8e1de19b2e 100644

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

scripts/kernel-doc +0 -2
index 9d3eafea58f0..8323ff9dec71 100755

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

sound/core/seq/seq_clientmgr.c +6 -2
index ac30fc1ab98b..dea11d1babf5 100644

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

sound/pci/hda/patch_realtek.c +72 -0

72 lines not on this page · raw message

sound/soc/intel/common/sst-match-acpi.c +3 -5
index 56d26f36a3cb..b4a929562218 100644

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

sound/usb/mixer.c +11 -7
index 75bce127d768..89efec891e68 100644

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

sound/usb/pcm.c +9 -0
index b9c9a19f9588..3cbfae6604f9 100644

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

sound/usb/quirks.c +5 -2
index 8d7db7cd4f88..ed56cd307059 100644

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

tools/include/linux/kmemcheck.h deleted +0 -9
deleted file mode 100644
index 2bccd2c7b897..000000000000

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

tools/objtool/check.c +9 -3
index 2e458eb45586..c7fb5c2392ee 100644

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

tools/perf/builtin-kmem.c +0 -1
index 35d4b9c9a9e8..9e693ce4b73b 100644

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

tools/testing/selftests/seccomp/seccomp_bpf.c +2 -2
index 24dbf634e2dd..0b457e8e0f0c 100644

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

tools/testing/selftests/vm/compaction_test.c +2 -0
index a65b016d4c13..1097f04e4d80 100644

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

tools/testing/selftests/x86/Makefile +15 -7
index 91fbfa8fdc15..aa6e2d7f6a1f 100644

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

tools/testing/selftests/x86/mpx-mini-test.c +30 -2
index ec0f6b45ce8b..9c0325e1ea68 100644

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

tools/testing/selftests/x86/protection_keys.c +0 -28
index 7a1cc0e56d2d..6cbb83b47150 100644

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

tools/testing/selftests/x86/single_step_syscall.c +4 -1
index a48da95c18fd..ddfdd635de16 100644

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

tools/testing/selftests/x86/test_mremap_vdso.c +4 -0
index bf0d687c7db7..64f11c8d9b76 100644

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

tools/testing/selftests/x86/test_vdso.c +48 -7

55 lines not on this page · raw message

tools/testing/selftests/x86/test_vsyscall.c +8 -3
index 6e0bd52ad53d..003b6c55b10e 100644

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

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.