Skip to contentSkip to conversation

Linux 4.14.9

DISCUSSION Greg KH 1 participant 2 messages Dec 25, 2017 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.9 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/x86/orc-unwinder.txt                    |    2 
 Documentation/x86/x86_64/mm.txt                       |    2 
 Makefile                                              |    6 
 arch/arm/configs/exynos_defconfig                     |    2 
 arch/arm/include/asm/ptrace.h                         |    3 
 arch/arm64/include/asm/fixmap.h                       |    7 
 arch/powerpc/kernel/watchdog.c                        |    7 
 arch/powerpc/net/bpf_jit_comp64.c                     |    6 
 arch/powerpc/xmon/xmon.c                              |   17 
 arch/s390/net/bpf_jit_comp.c                          |   11 
 arch/sparc/include/asm/ptrace.h                       |    1 
 arch/sparc/net/bpf_jit_comp_64.c                      |    6 
 arch/um/include/asm/Kbuild                            |    1 
 arch/um/include/shared/init.h                         |    2 
 arch/x86/Kconfig                                      |    5 
 arch/x86/Kconfig.debug                                |   39 -
 arch/x86/configs/tiny.config                          |    4 
 arch/x86/configs/x86_64_defconfig                     |    1 
 arch/x86/entry/calling.h                              |   69 --
 arch/x86/entry/entry_32.S                             |    6 
 arch/x86/entry/entry_64.S                             |  322 +++++++---
 arch/x86/entry/entry_64_compat.S                      |   10 
 arch/x86/entry/syscalls/Makefile                      |    4 
 arch/x86/events/core.c                                |    2 
 arch/x86/events/intel/core.c                          |    4 
 arch/x86/events/perf_event.h                          |   24 
 arch/x86/hyperv/hv_init.c                             |    2 
 arch/x86/include/asm/archrandom.h                     |    8 
 arch/x86/include/asm/bitops.h                         |   10 
 arch/x86/include/asm/compat.h                         |    1 
 arch/x86/include/asm/cpufeature.h                     |   11 
 arch/x86/include/asm/cpufeatures.h                    |  538 +++++++++--------
 arch/x86/include/asm/desc.h                           |   11 
 arch/x86/include/asm/fixmap.h                         |   74 ++
 arch/x86/include/asm/hypervisor.h                     |   53 -
 arch/x86/include/asm/irqflags.h                       |    3 
 arch/x86/include/asm/kdebug.h                         |    1 
 arch/x86/include/asm/mmu_context.h                    |    4 
 arch/x86/include/asm/module.h                         |    2 
 arch/x86/include/asm/paravirt.h                       |   14 
 arch/x86/include/asm/paravirt_types.h                 |    2 
 arch/x86/include/asm/percpu.h                         |    2 
 arch/x86/include/asm/pgtable_types.h                  |    3 
 arch/x86/include/asm/processor.h                      |  109 +--
 arch/x86/include/asm/ptrace.h                         |    6 
 arch/x86/include/asm/rmwcc.h                          |    2 
 arch/x86/include/asm/stacktrace.h                     |    3 
 arch/x86/include/asm/switch_to.h                      |   26 
 arch/x86/include/asm/thread_info.h                    |    2 
 arch/x86/include/asm/trace/fpu.h                      |   10 
 arch/x86/include/asm/traps.h                          |   21 
 arch/x86/include/asm/unwind.h                         |   15 
 arch/x86/include/asm/x86_init.h                       |   24 
 arch/x86/include/uapi/asm/processor-flags.h           |    3 
 arch/x86/kernel/Makefile                              |   10 
 arch/x86/kernel/apic/apic.c                           |    2 
 arch/x86/kernel/apic/x2apic_uv_x.c                    |    5 
 arch/x86/kernel/asm-offsets.c                         |    6 
 arch/x86/kernel/asm-offsets_32.c                      |    9 
 arch/x86/kernel/asm-offsets_64.c                      |    4 
 arch/x86/kernel/cpu/Makefile                          |    1 
 arch/x86/kernel/cpu/amd.c                             |    7 
 arch/x86/kernel/cpu/common.c                          |  195 ++++--
 arch/x86/kernel/cpu/cpuid-deps.c                      |  121 +++
 arch/x86/kernel/cpu/hypervisor.c                      |   64 +-
 arch/x86/kernel/cpu/mshyperv.c                        |    6 
 arch/x86/kernel/cpu/vmware.c                          |    8 
 arch/x86/kernel/doublefault.c                         |   36 -
 arch/x86/kernel/dumpstack.c                           |   74 +-
 arch/x86/kernel/dumpstack_32.c                        |    6 
 arch/x86/kernel/dumpstack_64.c                        |    6 
 arch/x86/kernel/fpu/init.c                            |   11 
 arch/x86/kernel/fpu/xstate.c                          |   43 -
 arch/x86/kernel/head_32.S                             |    5 
 arch/x86/kernel/head_64.S                             |   45 -
 arch/x86/kernel/ioport.c                              |    2 
 arch/x86/kernel/irq.c                                 |   12 
 arch/x86/kernel/irq_64.c                              |    4 
 arch/x86/kernel/kvm.c                                 |    6 
 arch/x86/kernel/ldt.c                                 |    2 
 arch/x86/kernel/paravirt_patch_64.c                   |    2 
 arch/x86/kernel/process.c                             |   27 
 arch/x86/kernel/process_32.c                          |    8 
 arch/x86/kernel/process_64.c                          |   19 
 arch/x86/kernel/smpboot.c                             |    3 
 arch/x86/kernel/traps.c                               |   72 +-
 arch/x86/kernel/unwind_orc.c                          |   88 +-
 arch/x86/kernel/verify_cpu.S                          |    3 
 arch/x86/kernel/vm86_32.c                             |   20 
 arch/x86/kernel/vmlinux.lds.S                         |    9 
 arch/x86/kernel/x86_init.c                            |    9 
 arch/x86/kvm/mmu.c                                    |    4 
 arch/x86/kvm/vmx.c                                    |    2 
 arch/x86/lib/delay.c                                  |    4 
 arch/x86/mm/fault.c                                   |   88 +-
 arch/x86/mm/init.c                                    |    2 
 arch/x86/mm/init_64.c                                 |   10 
 arch/x86/mm/kasan_init_64.c                           |  262 +++++++-
 arch/x86/power/cpu.c                                  |   16 
 arch/x86/xen/enlighten_hvm.c                          |   12 
 arch/x86/xen/enlighten_pv.c                           |   15 
 arch/x86/xen/mmu_pv.c                                 |  161 ++---
 arch/x86/xen/smp_pv.c                                 |   17 
 arch/x86/xen/xen-asm_64.S                             |    2 
 arch/x86/xen/xen-head.S                               |   11 
 block/bfq-iosched.c                                   |    3 
 block/blk-wbt.c                                       |    2 
 crypto/lrw.c                                          |    6 
 drivers/acpi/apei/ghes.c                              |   78 --
 drivers/base/power/opp/core.c                         |    2 
 drivers/bluetooth/hci_bcm.c                           |   23 
 drivers/bluetooth/hci_ldisc.c                         |    7 
 drivers/clk/sunxi-ng/ccu-sun5i.c                      |    4 
 drivers/clk/sunxi-ng/ccu-sun6i-a31.c                  |    2 
 drivers/clk/sunxi-ng/ccu_nm.c                         |    3 
 drivers/cpuidle/cpuidle.c                             |    1 
 drivers/crypto/amcc/crypto4xx_core.h                  |   10 
 drivers/gpu/drm/drm_dp_dual_mode_helper.c             |   16 
 drivers/gpu/drm/vc4/vc4_dsi.c                         |    3 
 drivers/hv/vmbus_drv.c                                |    2 
 drivers/iio/accel/st_accel_core.c                     |   35 -
 drivers/iio/common/st_sensors/st_sensors_core.c       |    2 
 drivers/iio/common/st_sensors/st_sensors_trigger.c    |   16 
 drivers/iio/gyro/st_gyro_core.c                       |   15 
 drivers/iio/magnetometer/st_magn_core.c               |   10 
 drivers/iio/pressure/st_pressure_core.c               |   15 
 drivers/infiniband/hw/hns/hns_roce_hw_v1.c            |    5 
 drivers/infiniband/sw/rxe/rxe_pool.c                  |    2 
 drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c      |    1 
 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c |    8 
 drivers/input/mouse/vmmouse.c                         |   10 
 drivers/leds/leds-pca955x.c                           |   17 
 drivers/md/dm-mpath.c                                 |   20 
 drivers/md/md.c                                       |    4 
 drivers/misc/pti.c                                    |    2 
 drivers/misc/vmw_balloon.c                            |    2 
 drivers/net/ethernet/ibm/ibmvnic.c                    |    2 
 drivers/net/ethernet/intel/fm10k/fm10k.h              |    4 
 drivers/net/ethernet/intel/fm10k/fm10k_iov.c          |   12 
 drivers/net/ethernet/intel/i40e/i40e_main.c           |   16 
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c    |    7 
 drivers/net/ethernet/intel/i40evf/i40evf_main.c       |    9 
 drivers/net/ethernet/intel/igb/igb_main.c             |    2 
 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c       |    4 
 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c         |    2 
 drivers/net/phy/at803x.c                              |    2 
 drivers/pci/iov.c                                     |    3 
 drivers/pci/pci.c                                     |    4 
 drivers/pci/pcie/aer/aerdrv_core.c                    |    9 
 drivers/platform/x86/asus-wireless.c                  |    1 
 drivers/rtc/interface.c                               |    2 
 drivers/rtc/rtc-pl031.c                               |   14 
 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c                    |    1 
 drivers/scsi/lpfc/lpfc_hbadisc.c                      |    3 
 drivers/scsi/lpfc/lpfc_hw4.h                          |    2 
 drivers/scsi/lpfc/lpfc_nvmet.c                        |    2 
 drivers/scsi/mpt3sas/mpt3sas_scsih.c                  |    5 
 drivers/staging/greybus/light.c                       |    2 
 drivers/tee/optee/core.c                              |    1 
 drivers/thermal/hisi_thermal.c                        |   74 +-
 drivers/vfio/pci/vfio_pci_config.c                    |    6 
 drivers/video/backlight/pwm_bl.c                      |    7 
 fs/dcache.c                                           |    4 
 fs/overlayfs/ovl_entry.h                              |    2 
 fs/overlayfs/readdir.c                                |    2 
 include/asm-generic/vmlinux.lds.h                     |    2 
 include/linux/bpf_verifier.h                          |    6 
 include/linux/compiler-clang.h                        |    2 
 include/linux/compiler-gcc.h                          |    2 
 include/linux/compiler-intel.h                        |    2 
 include/linux/compiler.h                              |  266 --------
 include/linux/compiler_types.h                        |  274 ++++++++
 include/linux/hypervisor.h                            |    8 
 include/linux/iio/common/st_sensors.h                 |    7 
 include/linux/intel-pti.h                             |   43 +
 include/linux/linkage.h                               |    2 
 include/linux/mm.h                                    |    2 
 include/linux/mmzone.h                                |    6 
 include/linux/pti.h                                   |   43 -
 include/linux/rculist.h                               |    4 
 include/linux/rcupdate.h                              |    4 
 include/uapi/linux/stddef.h                           |    2 
 kernel/bpf/verifier.c                                 |  202 +++++-
 kernel/events/core.c                                  |    4 
 kernel/seccomp.c                                      |    2 
 kernel/task_work.c                                    |    2 
 kernel/trace/bpf_trace.c                              |   19 
 kernel/trace/trace_events_hist.c                      |    4 
 lib/Kconfig.debug                                     |    2 
 mm/slab.h                                             |    2 
 mm/sparse.c                                           |   27 
 net/ipv4/ip_gre.c                                     |    8 
 net/ipv4/tcp_vegas.c                                  |    2 
 net/ipv6/addrconf.c                                   |   12 
 net/ipv6/route.c                                      |   58 -
 net/sctp/stream.c                                     |    8 
 scripts/Makefile.build                                |    2 
 scripts/headers_install.sh                            |    2 
 sound/soc/codecs/msm8916-wcd-analog.c                 |    9 
 sound/soc/img/img-parallel-out.c                      |    2 
 tools/objtool/check.c                                 |    7 
 tools/objtool/objtool.c                               |    6 
 tools/testing/selftests/bpf/test_verifier.c           |  549 +++++++++++++++++-
 tools/testing/selftests/x86/ldt_gdt.c                 |   61 +-
 virt/kvm/kvm_main.c                                   |    2 
 205 files changed, 3453 insertions(+), 1823 deletions(-)

Alan Brady (1):
i40e: fix client notify of VF reset

Alex Williamson (1):
vfio/pci: Virtualize Maximum Payload Size

Alexandre Belloni (1):
rtc: set the alarm to the next expiring timer

Andi Kleen (6):
bitops: Add clear/set_bit32() to linux/bitops.h x86/cpuid: Add generic table for CPUID dependencies x86/fpu: Parse clearcpuid= as early XSAVE argument x86/fpu: Make XSAVE check the base CPUID features before enabling x86/fpu: Remove the explicit clearing of XSAVE dependent features perf/x86: Enable free running PEBS for REGS_USER/INTR

Andrew Jeffery (1):
leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

Andrey Ryabinin (2):
x86/kasan: Use the same shadow offset for 4- and 5-level paging x86/mm/kasan: Don't use vmemmap_populate() to initialize shadow

Andy Lutomirski (42):
x86/entry/64: Remove the restore_c_regs_and_iret label
x86/entry/64: Split the IRET-to-user and IRET-to-kernel paths x86/entry/64: Move SWAPGS into the common IRET-to-usermode path x86/entry/64: Simplify reg restore code in the standard IRET paths x86/entry/64: Shrink paranoid_exit_restore and make labels local x86/entry/64: Use pop instead of movq in syscall_return_via_sysret x86/entry/64: Merge the fast and slow SYSRET paths
x86/entry/64: Use POP instead of MOV to restore regs on NMI return x86/entry/64: Remove the RESTORE_..._REGS infrastructure x86/entry/64: De-Xen-ify our NMI code
x86/entry/32: Pull the MSR_IA32_SYSENTER_CS update code out of native_load_sp0() x86/entry/64: Pass SP0 directly to load_sp0()
x86/entry: Add task_top_of_stack() to find the top of a task's stack x86/xen/64, x86/entry/64: Clean up SP code in cpu_initialize_context() x86/entry/64: Stop initializing TSS.sp0 at boot
x86/entry/64: Remove all remaining direct thread_struct::sp0 reads x86/entry/32: Fix cpu_current_top_of_stack initialization at boot x86/entry/64: Remove thread_struct::sp0
x86/traps: Use a new on_thread_stack() helper to clean up an assertion selftests/x86/ldt_gdt: Add infrastructure to test set_thread_area() selftests/x86/ldt_gdt: Run most existing LDT test cases against the GDT as well x86/unwinder/orc: Dont bail on stack overflow
x86/irq: Remove an old outdated comment about context tracking races x86/irq/64: Print the offending IP in the stack overflow warning x86/entry/64: Allocate and enable the SYSENTER stack
x86/dumpstack: Add get_stack_info() support for the SYSENTER stack x86/entry/gdt: Put per-CPU GDT remaps in ascending order x86/mm/fixmap: Generalize the GDT fixmap mechanism, introduce struct cpu_entry_area x86/kasan/64: Teach KASAN about the cpu_entry_area
x86/entry: Fix assumptions that the HW TSS is at the beginning of cpu_tss x86/dumpstack: Handle stack overflow on all stacks
x86/entry: Move SYSENTER_stack to the beginning of struct tss_struct x86/entry: Remap the TSS into the CPU entry area
x86/entry/64: Separate cpu_current_top_of_stack from TSS.sp0 x86/espfix/64: Stop assuming that pt_regs is on the entry stack x86/entry/64: Use a per-CPU trampoline stack for IDT entries x86/entry/64: Return to userspace from the trampoline stack x86/entry/64: Create a per-CPU SYSCALL entry trampoline
x86/entry/64: Move the IST stacks into struct cpu_entry_area x86/entry/64: Remove the SYSENTER stack canary
x86/entry: Clean up the SYSENTER_stack code
x86/entry/64: Make cpu_entry_area.tss read-only

Arvind Yadav (1):
staging: greybus: light: Release memory obtained by kasprintf

Baoquan He (1):
x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'

Boris Ostrovsky (1):
x86/entry/64/paravirt: Use paravirt-safe macro to access eflags

Borislav Petkov (2):
x86/entry/64: Shorten TEST instructions x86/mm: Define _PAGE_TABLE using _KERNPG_TABLE

Chen-Yu Tsai (3):
clk: sunxi-ng: nm: Check if requested rate is supported by fractional clock
clk: sunxi-ng: sun5i: Fix bit offset of audio PLL post-divider
clk: sunxi-ng: sun6i: Rename HDMI DDC clock to avoid name collision

Christian Lamparter (1):
crypto: crypto4xx - increase context and scatter ring buffer elements

Christophe JAILLET (1):
igb: check memory allocation failure

Christophe Jaillet (1):
crypto: lrw - Fix an error handling path in 'create()'

Colin Ian King (1):
IB/rxe: check for allocation failure on elem

Dan Murphy (1):
net: phy: at803x: Change error to EINVAL for invalid MAC

Daniel Borkmann (15):
bpf: fix build issues on um due to mising bpf_perf_event.h
bpf: fix branch pruning logic
bpf: fix corruption on concurrent perf_event_output calls bpf, s390x: do not reload skb pointers in non-skb context bpf, ppc64: do not reload skb pointers in non-skb context bpf, sparc: fix usage of wrong reg for load_skb_regs after call bpf/verifier: fix bounds calculation on BPF_RSH
bpf: fix incorrect sign extension in check_alu_op()
bpf: fix incorrect tracking of register size truncation
bpf: fix 32-bit ALU op verification
bpf: fix missing error return in check_stack_boundary()
bpf: force strict alignment checks for stack pointers
bpf: don't prune branches when a scalar is replaced with a pointer
bpf: fix integer overflows
selftests/bpf: add tests for recent bugfixes

Daniel Lezcano (4):
thermal/drivers/hisi: Fix missing interrupt enablement thermal/drivers/hisi: Fix kernel panic on alarm interrupt thermal/drivers/hisi: Simplify the temperature/step computation thermal/drivers/hisi: Fix multiple alarm interrupts firing

David Daney (1):
PCI: Avoid bus reset if bridge itself is broken

Derek Basehore (1):
backlight: pwm_bl: Fix overflow condition

Dick Kennedy (3):
scsi: lpfc: Fix secure firmware updates
scsi: lpfc: PLOGI failures during NPIV testing
scsi: lpfc: Fix warning messages when NVME_TARGET_FC not defined

Dongjiu Geng (1):
ACPI / APEI: remove the unused dead-code for SEA/NMI notification type

Ed Blake (1):
ASoC: img-parallel-out: Add pm_runtime_get/put to set_fmt callback

Emil Tantilov (1):
ixgbe: fix use of uninitialized padding

Eric Anholt (1):

      drm/vc4: Avoid using vrefresh==0 mode in DSI htotal math.

Fabio Estevam (1):
PM / OPP: Move error message to debug level

Gabriele Paoloni (1):
PCI/AER: Report non-fatal errors only to the affected endpoint

Gayatri Kammela (1):
x86/cpufeatures: Enable new SSE/AVX/AVX512 CPU features

Greg Kroah-Hartman (1):

      Linux 4.14.9

Guoqing Jiang (1):
md: always set THREAD_WAKEUP and wake up wqueue if thread existed

Hans de Goede (2):
Bluetooth: hci_uart_set_flow_control: Fix NULL deref when using serdev
Bluetooth: hci_bcm: Fix setting of irq trigger type

Hoang Tran (1):
tcp: fix under-evaluated ssthresh in TCP Vegas

Ingo Molnar (4):
x86/unwinder: Make CONFIG_UNWINDER_ORC=y the default in the 64-bit defconfig x86/cpufeatures: Re-tabulate the X86_FEATURE definitions x86/cpufeatures: Fix various details in the feature definitions drivers/misc/intel/pti: Rename the header file to free up the namespace

Jacob Keller (3):
i40e/i40evf: spread CPU affinity hints across online CPUs only
fm10k: fix mis-ordered parameters in declaration for .ndo_set_vf_bw
fm10k: ensure we process SM mbx when processing VF mbx

James Morse (1):
ACPI / APEI: Replace ioremap_page_range() with fixmap

Jan Beulich (1):
ACPI / APEI: adjust a local variable type in ghes_ioremap_pfn_irq()

Jean-François Têtu (1):
ASoC: codecs: msm8916-wcd-analog: fix micbias level

Jens Wiklander (1):
optee: fix invalid of_node_put() in optee_driver_init()

Josh Poimboeuf (12):
objtool: Don't report end of section error after an empty unwind hint x86/head: Remove confusing comment
x86/head: Remove unused 'bad_address' code
x86/head: Fix head ELF function annotations
x86/boot: Annotate verify_cpu() as a callable function x86/xen: Fix xen head ELF annotations
x86/xen: Add unwind hint annotations
x86/head: Add unwind hint annotations
x86/unwind: Rename unwinder config options to 'CONFIG_UNWINDER_*' x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit x86/asm: Don't use the confusing '.ifeq' directive x86/unwinder: Handle stack overflows more gracefully

Juergen Gross (3):
xen, x86/entry/64: Add xen NMI trap entry
x86/virt, x86/platform: Merge 'struct x86_hyper' into 'struct x86_platform' and 'struct x86_init' x86/virt: Add enum for hypervisors to replace x86_hyper

Kamalesh Babulal (1):
objtool: Print top level commands on incorrect usage

Kees Cook (1):
x86/platform/UV: Convert timers to use timer_setup()

Kirill A. Shutemov (4):
mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y x86/xen: Provide pre-built page tables only for CONFIG_XEN_PV=y and CONFIG_XEN_PVH=y x86/xen: Drop 5-level paging support code from the XEN_PV code mm/sparsemem: Fix ARM64 boot crash when CONFIG_SPARSEMEM_EXTREME=y

Lihong Yang (1):
i40e: use the safe hash table iterator when deleting mac filters

Lorenzo Bianconi (1):
iio: st_sensors: add register mask for status register

Luca Miccio (1):
block,bfq: Disable writeback throttling

Marcelo Ricardo Leitner (1):
sctp: silence warns on sctp_stream_init allocations

Marek Szyprowski (1):
ARM: exynos_defconfig: Enable UAS support for Odroid HC1 board

Masahiro Yamada (1):
x86/build: Beautify build log of syscall headers

Mick Tarsel (1):
ibmvnic: Set state UP

Mike Manning (1):
net: ipv6: send NS for DAD when link operationally up

Nicholas Piggin (3):
powerpc/xmon: Avoid tripping SMP hardlockup watchdog powerpc/watchdog: Do not trigger SMP crash from touch_nmi_watchdog
cpuidle: fix broadcast control when broadcast can not be entered

Nicolas Dechesne (1):
ASoC: codecs: msm8916-wcd-analog: fix module autoload

Niranjana Vishwanathapura (1):
IB/opa_vnic: Properly return the total MACs in UC MAC list

Peter Hutterer (1):
platform/x86: asus-wireless: send an EV_SYN/SYN_REPORT between state changes

Ricardo Neri (4):
x86/mm: Relocate page fault error codes to traps.h x86/boot: Relocate definition of the initial state of CR0 ptrace,x86: Make user_64bit_mode() available to 32-bit builds x86/cpufeature: Add User-Mode Instruction Prevention definitions

Rudolf Marek (1):
x86: Make X86_BUG_FXSAVE_LEAK detectable in CPUID on AMD

Russell King (1):
rtc: pl031: make interrupt optional

Scott Franco (1):
IB/opa_vnic: Properly clear Mac Table Digest

Shakeel Butt (1):
kvm, mm: account kvm related kmem slabs to kmemcg

Shashank Sharma (1):
drm: Add retries for lspcon mode detection

Sreekanth Reddy (1):
scsi: mpt3sas: Fix IO error occurs on pulling out a drive from RAID1 volume created on two SATA drive

Steven Rostedt (VMware) (1):
x86/fpu/debug: Remove unused 'x86_fpu_state' and 'x86_fpu_deactivate_state' tracepoints

Stuart Hayes (1):
PCI: Create SR-IOV virtfn/physfn links before attaching driver

Thomas Gleixner (6):
x86/cpuid: Prevent out of bound access in do_clear_cpu_cap() x86/cpuid: Replace set/clear_bit32()
bitops: Revert cbe96375025e ("bitops: Add clear/set_bit32() to linux/bitops.h") x86/paravirt: Dont patch flush_tlb_single
x86/paravirt: Provide a way to check for hypervisors x86/cpufeatures: Make CPU bugs sticky

Tom Zanussi (1):
tracing: Exclude 'generic fields' from histograms

Uros Bizjak (1):
x86/asm: Remove unnecessary \n\t in front of CC_SET() from asm templates

Varun Prakash (1):
scsi: cxgb4i: fix Tx skb leak

Wei Hu(Xavier) (1):
RDMA/hns: Avoid NULL pointer exception

Wei Wang (1):

      ipv6: grab rt->rt6i_ref before allocating pcpu rt

Will Deacon (3):
locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE() locking/barriers: Convert users of lockless_dereference() to READ_ONCE() linux/compiler.h: Split into compiler.h and compiler_types.h

William Tu (1):
ip_gre: check packet length and mtu correctly in erspan tx

author maintainer
#1 lore raw
Documentation/x86/orc-unwinder.txt +1 -1
index af0c9a4c65a6..cd4b29be29af 100644
@@ -4,7 +4,7 @@ ORC unwinder
 Overview
 --------
 
-The kernel CONFIG_ORC_UNWINDER option enables the ORC unwinder, which is
+The kernel CONFIG_UNWINDER_ORC option enables the ORC unwinder, which is
 similar in concept to a DWARF unwinder.  The difference is that the
 format of the ORC data is much simpler than DWARF, which in turn allows
 the ORC unwinder to be much simpler and faster.
Documentation/x86/x86_64/mm.txt +1 -1
index b0798e281aa6..3448e675b462 100644
@@ -34,7 +34,7 @@ ff92000000000000 - ffd1ffffffffffff (=54 bits) vmalloc/ioremap space
 ffd2000000000000 - ffd3ffffffffffff (=49 bits) hole
 ffd4000000000000 - ffd5ffffffffffff (=49 bits) virtual memory map (512TB)
 ... unused hole ...
-ffd8000000000000 - fff7ffffffffffff (=53 bits) kasan shadow memory (8PB)
+ffdf000000000000 - fffffc0000000000 (=53 bits) kasan shadow memory (8PB)
 ... unused hole ...
 ffffff0000000000 - ffffff7fffffffff (=39 bits) %esp fixup stacks
 ... unused hole ...
Makefile +3 -3
index 97b5ae76ac8c..ed2132c6d286 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 8
+SUBLEVEL = 9
 EXTRAVERSION =
 NAME = Petit Gorille
 
@@ -935,8 +935,8 @@ ifdef CONFIG_STACK_VALIDATION
   ifeq ($(has_libelf),1)
     objtool_target := tools/objtool FORCE
   else
-    ifdef CONFIG_ORC_UNWINDER
-      $(error "Cannot generate ORC metadata for CONFIG_ORC_UNWINDER=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
+    ifdef CONFIG_UNWINDER_ORC
+      $(error "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
     else
       $(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel")
     endif
arch/arm/configs/exynos_defconfig +1 -1
index 8c2a2619971b..f1d7834990ec 100644
@@ -244,7 +244,7 @@ CONFIG_USB_STORAGE_ONETOUCH=m
 CONFIG_USB_STORAGE_KARMA=m
 CONFIG_USB_STORAGE_CYPRESS_ATACB=m
 CONFIG_USB_STORAGE_ENE_UB6250=m
-CONFIG_USB_UAS=m
+CONFIG_USB_UAS=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC2=y
 CONFIG_USB_HSIC_USB3503=y
arch/arm/include/asm/ptrace.h +1 -2
index e9c9a117bd25..c7cdbb43ae7c 100644
@@ -126,8 +126,7 @@ extern unsigned long profile_pc(struct pt_regs *regs);
 /*
  * kprobe-based event tracer support
  */
-#include <linux/stddef.h>
-#include <linux/types.h>
+#include <linux/compiler.h>
 #define MAX_REG_OFFSET (offsetof(struct pt_regs, ARM_ORIG_r0))
 
 extern int regs_query_register_offset(const char *name);
arch/arm64/include/asm/fixmap.h +7 -0
index caf86be815ba..4052ec39e8db 100644
@@ -51,6 +51,13 @@ enum fixed_addresses {
 
 	FIX_EARLYCON_MEM_BASE,
 	FIX_TEXT_POKE0,
+
+#ifdef CONFIG_ACPI_APEI_GHES
+	/* Used for GHES mapping from assorted contexts */
+	FIX_APEI_GHES_IRQ,
+	FIX_APEI_GHES_NMI,
+#endif /* CONFIG_ACPI_APEI_GHES */
+
 	__end_of_permanent_fixed_addresses,
 
 	/*
arch/powerpc/kernel/watchdog.c +5 -2
index 57190f384f63..ce848ff84edd 100644
@@ -276,9 +276,12 @@ void arch_touch_nmi_watchdog(void)
 {
 	unsigned long ticks = tb_ticks_per_usec * wd_timer_period_ms * 1000;
 	int cpu = smp_processor_id();
+	u64 tb = get_tb();
 
-	if (get_tb() - per_cpu(wd_timer_tb, cpu) >= ticks)
-		watchdog_timer_interrupt(cpu);
+	if (tb - per_cpu(wd_timer_tb, cpu) >= ticks) {
+		per_cpu(wd_timer_tb, cpu) = tb;
+		wd_smp_clear_cpu_pending(cpu, tb);
+	}
 }
 EXPORT_SYMBOL(arch_touch_nmi_watchdog);
 
arch/powerpc/net/bpf_jit_comp64.c +4 -2
index a66e64b0b251..5d115bd32539 100644
@@ -762,7 +762,8 @@ static int bpf_jit_build_body(struct bpf_prog *fp, u32 *image,
 			func = (u8 *) __bpf_call_base + imm;
 
 			/* Save skb pointer if we need to re-cache skb data */
-			if (bpf_helper_changes_pkt_data(func))
+			if ((ctx->seen & SEEN_SKB) &&
+			    bpf_helper_changes_pkt_data(func))
 				PPC_BPF_STL(3, 1, bpf_jit_stack_local(ctx));
 
 			bpf_jit_emit_func_call(image, ctx, (u64)func);
@@ -771,7 +772,8 @@ static int bpf_jit_build_body(struct bpf_prog *fp, u32 *image,
 			PPC_MR(b2p[BPF_REG_0], 3);
 
 			/* refresh skb cache */
-			if (bpf_helper_changes_pkt_data(func)) {
+			if ((ctx->seen & SEEN_SKB) &&
+			    bpf_helper_changes_pkt_data(func)) {
 				/* reload skb pointer to r3 */
 				PPC_BPF_LL(3, 1, bpf_jit_stack_local(ctx));
 				bpf_jit_emit_skb_loads(image, ctx);
arch/powerpc/xmon/xmon.c +13 -4
index c008083fbc4f..2c8b325591cc 100644
@@ -530,14 +530,19 @@ static int xmon_core(struct pt_regs *regs, int fromipi)
 
  waiting:
 	secondary = 1;
+	spin_begin();
 	while (secondary && !xmon_gate) {
 		if (in_xmon == 0) {
-			if (fromipi)
+			if (fromipi) {
+				spin_end();
 				goto leave;
+			}
 			secondary = test_and_set_bit(0, &in_xmon);
 		}
-		barrier();
+		spin_cpu_relax();
+		touch_nmi_watchdog();
 	}
+	spin_end();
 
 	if (!secondary && !xmon_gate) {
 		/* we are the first cpu to come in */
@@ -568,21 +573,25 @@ static int xmon_core(struct pt_regs *regs, int fromipi)
 		mb();
 		xmon_gate = 1;
 		barrier();
+		touch_nmi_watchdog();
 	}
 
  cmdloop:
 	while (in_xmon) {
 		if (secondary) {
+			spin_begin();
 			if (cpu == xmon_owner) {
 				if (!test_and_set_bit(0, &xmon_taken)) {
 					secondary = 0;
+					spin_end();
 					continue;
 				}
 				/* missed it */
 				while (cpu == xmon_owner)
-					barrier();
+					spin_cpu_relax();
 			}
-			barrier();
+			spin_cpu_relax();
+			touch_nmi_watchdog();
 		} else {
 			cmd = cmds(regs);
 			if (cmd != 0) {
arch/s390/net/bpf_jit_comp.c +5 -6
index b15cd2f0320f..33e2785f6842 100644
@@ -55,8 +55,7 @@ struct bpf_jit {
 #define SEEN_LITERAL	8	/* code uses literals */
 #define SEEN_FUNC	16	/* calls C functions */
 #define SEEN_TAIL_CALL	32	/* code uses tail calls */
-#define SEEN_SKB_CHANGE	64	/* code changes skb data */
-#define SEEN_REG_AX	128	/* code uses constant blinding */
+#define SEEN_REG_AX	64	/* code uses constant blinding */
 #define SEEN_STACK	(SEEN_FUNC | SEEN_MEM | SEEN_SKB)
 
 /*
@@ -448,12 +447,12 @@ static void bpf_jit_prologue(struct bpf_jit *jit)
 			EMIT6_DISP_LH(0xe3000000, 0x0024, REG_W1, REG_0,
 				      REG_15, 152);
 	}
-	if (jit->seen & SEEN_SKB)
+	if (jit->seen & SEEN_SKB) {
 		emit_load_skb_data_hlen(jit);
-	if (jit->seen & SEEN_SKB_CHANGE)
 		/* stg %b1,ST_OFF_SKBP(%r0,%r15) */
 		EMIT6_DISP_LH(0xe3000000, 0x0024, BPF_REG_1, REG_0, REG_15,
 			      STK_OFF_SKBP);
+	}
 }
 
 /*
@@ -983,8 +982,8 @@ static noinline int bpf_jit_insn(struct bpf_jit *jit, struct bpf_prog *fp, int i
 		EMIT2(0x0d00, REG_14, REG_W1);
 		/* lgr %b0,%r2: load return value into %b0 */
 		EMIT4(0xb9040000, BPF_REG_0, REG_2);
-		if (bpf_helper_changes_pkt_data((void *)func)) {
-			jit->seen |= SEEN_SKB_CHANGE;
+		if ((jit->seen & SEEN_SKB) &&
+		    bpf_helper_changes_pkt_data((void *)func)) {
 			/* lg %b1,ST_OFF_SKBP(%r15) */
 			EMIT6_DISP_LH(0xe3000000, 0x0004, BPF_REG_1, REG_0,
 				      REG_15, STK_OFF_SKBP);
arch/sparc/include/asm/ptrace.h +1 -0
index 6a339a78f4f4..71dd82b43cc5 100644
@@ -7,6 +7,7 @@
 #if defined(__sparc__) && defined(__arch64__)
 #ifndef __ASSEMBLY__
 
+#include <linux/compiler.h>
 #include <linux/threads.h>
 #include <asm/switch_to.h>
 
arch/sparc/net/bpf_jit_comp_64.c +4 -2
index 5765e7e711f7..ff5f9cb3039a 100644
@@ -1245,14 +1245,16 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
 		u8 *func = ((u8 *)__bpf_call_base) + imm;
 
 		ctx->saw_call = true;
+		if (ctx->saw_ld_abs_ind && bpf_helper_changes_pkt_data(func))
+			emit_reg_move(bpf2sparc[BPF_REG_1], L7, ctx);
 
 		emit_call((u32 *)func, ctx);
 		emit_nop(ctx);
 
 		emit_reg_move(O0, bpf2sparc[BPF_REG_0], ctx);
 
-		if (bpf_helper_changes_pkt_data(func) && ctx->saw_ld_abs_ind)
-			load_skb_regs(ctx, bpf2sparc[BPF_REG_6]);
+		if (ctx->saw_ld_abs_ind && bpf_helper_changes_pkt_data(func))
+			load_skb_regs(ctx, L7);
 		break;
 	}
 
arch/um/include/asm/Kbuild +1 -0
index 50a32c33d729..73c57f614c9e 100644
@@ -1,4 +1,5 @@
 generic-y += barrier.h
+generic-y += bpf_perf_event.h
 generic-y += bug.h
 generic-y += clkdev.h
 generic-y += current.h
arch/um/include/shared/init.h +1 -1
index 390572daa40d..b3f5865a92c9 100644
@@ -41,7 +41,7 @@
 typedef int (*initcall_t)(void);
 typedef void (*exitcall_t)(void);
 
-#include <linux/compiler.h>
+#include <linux/compiler_types.h>
 
 /* These are for everybody (although not all archs will actually
    discard it in modules) */
arch/x86/Kconfig +2 -3
index 9bceea6a5852..48646160eb83 100644
@@ -108,7 +108,7 @@ config X86
 	select HAVE_ARCH_AUDITSYSCALL
 	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
 	select HAVE_ARCH_JUMP_LABEL
-	select HAVE_ARCH_KASAN			if X86_64 && SPARSEMEM_VMEMMAP
+	select HAVE_ARCH_KASAN			if X86_64
 	select HAVE_ARCH_KGDB
 	select HAVE_ARCH_KMEMCHECK
 	select HAVE_ARCH_MMAP_RND_BITS		if MMU
@@ -171,7 +171,7 @@ config X86
 	select HAVE_PERF_USER_STACK_DUMP
 	select HAVE_RCU_TABLE_FREE
 	select HAVE_REGS_AND_STACK_ACCESS_API
-	select HAVE_RELIABLE_STACKTRACE		if X86_64 && FRAME_POINTER_UNWINDER && STACK_VALIDATION
+	select HAVE_RELIABLE_STACKTRACE		if X86_64 && UNWINDER_FRAME_POINTER && STACK_VALIDATION
 	select HAVE_STACK_VALIDATION		if X86_64
 	select HAVE_SYSCALL_TRACEPOINTS
 	select HAVE_UNSTABLE_SCHED_CLOCK
@@ -303,7 +303,6 @@ config ARCH_SUPPORTS_DEBUG_PAGEALLOC
 config KASAN_SHADOW_OFFSET
 	hex
 	depends on KASAN
-	default 0xdff8000000000000 if X86_5LEVEL
 	default 0xdffffc0000000000
 
 config HAVE_INTEL_TXT
arch/x86/Kconfig.debug +20 -19
index 90b123056f4b..6293a8768a91 100644
@@ -359,28 +359,14 @@ config PUNIT_ATOM_DEBUG
 
 choice
 	prompt "Choose kernel unwinder"
-	default FRAME_POINTER_UNWINDER
+	default UNWINDER_ORC if X86_64
+	default UNWINDER_FRAME_POINTER if X86_32
 	---help---
 	  This determines which method will be used for unwinding kernel stack
 	  traces for panics, oopses, bugs, warnings, perf, /proc/<pid>/stack,
 	  livepatch, lockdep, and more.
 
-config FRAME_POINTER_UNWINDER
-	bool "Frame pointer unwinder"
-	select FRAME_POINTER
-	---help---
-	  This option enables the frame pointer unwinder for unwinding kernel
-	  stack traces.
-
-	  The unwinder itself is fast and it uses less RAM than the ORC
-	  unwinder, but the kernel text size will grow by ~3% and the kernel's
-	  overall performance will degrade by roughly 5-10%.
-
-	  This option is recommended if you want to use the livepatch
-	  consistency model, as this is currently the only way to get a
-	  reliable stack trace (CONFIG_HAVE_RELIABLE_STACKTRACE).
-
-config ORC_UNWINDER
+config UNWINDER_ORC
 	bool "ORC unwinder"
 	depends on X86_64
 	select STACK_VALIDATION
@@ -396,7 +382,22 @@ config ORC_UNWINDER
 	  Enabling this option will increase the kernel's runtime memory usage
 	  by roughly 2-4MB, depending on your kernel config.
 
-config GUESS_UNWINDER
+config UNWINDER_FRAME_POINTER
+	bool "Frame pointer unwinder"
+	select FRAME_POINTER
+	---help---
+	  This option enables the frame pointer unwinder for unwinding kernel
+	  stack traces.
+
+	  The unwinder itself is fast and it uses less RAM than the ORC
+	  unwinder, but the kernel text size will grow by ~3% and the kernel's
+	  overall performance will degrade by roughly 5-10%.
+
+	  This option is recommended if you want to use the livepatch
+	  consistency model, as this is currently the only way to get a
+	  reliable stack trace (CONFIG_HAVE_RELIABLE_STACKTRACE).
+
+config UNWINDER_GUESS
 	bool "Guess unwinder"
 	depends on EXPERT
 	---help---
@@ -411,7 +412,7 @@ config GUESS_UNWINDER
 endchoice
 
 config FRAME_POINTER
-	depends on !ORC_UNWINDER && !GUESS_UNWINDER
+	depends on !UNWINDER_ORC && !UNWINDER_GUESS
 	bool
 
 endmenu
arch/x86/configs/tiny.config +2 -2
index 550cd5012b73..66c9e2aab16c 100644
@@ -1,5 +1,5 @@
 CONFIG_NOHIGHMEM=y
 # CONFIG_HIGHMEM4G is not set
 # CONFIG_HIGHMEM64G is not set
-CONFIG_GUESS_UNWINDER=y
-# CONFIG_FRAME_POINTER_UNWINDER is not set
+CONFIG_UNWINDER_GUESS=y
+# CONFIG_UNWINDER_FRAME_POINTER is not set
arch/x86/configs/x86_64_defconfig +1 -0
index 4a4b16e56d35..e32fc1f274d8 100644
@@ -299,6 +299,7 @@ CONFIG_DEBUG_STACKOVERFLOW=y
 # CONFIG_DEBUG_RODATA_TEST is not set
 CONFIG_DEBUG_BOOT_PARAMS=y
 CONFIG_OPTIMIZE_INLINING=y
+CONFIG_UNWINDER_ORC=y
 CONFIG_SECURITY=y
 CONFIG_SECURITY_NETWORK=y
 CONFIG_SECURITY_SELINUX=y
arch/x86/entry/calling.h +19 -50

75 lines not on this page · raw message

arch/x86/entry/entry_32.S +4 -2
index 4838037f97f6..bd8b57a5c874 100644
@@ -941,7 +941,8 @@ ENTRY(debug)
 	movl	%esp, %eax			# pt_regs pointer
 
 	/* Are we currently on the SYSENTER stack? */
-	PER_CPU(cpu_tss + CPU_TSS_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx)
+	movl	PER_CPU_VAR(cpu_entry_area), %ecx
+	addl	$CPU_ENTRY_AREA_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx
 	subl	%eax, %ecx	/* ecx = (end of SYSENTER_stack) - esp */
 	cmpl	$SIZEOF_SYSENTER_stack, %ecx
 	jb	.Ldebug_from_sysenter_stack
@@ -984,7 +985,8 @@ ENTRY(nmi)
 	movl	%esp, %eax			# pt_regs pointer
 
 	/* Are we currently on the SYSENTER stack? */
-	PER_CPU(cpu_tss + CPU_TSS_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx)
+	movl	PER_CPU_VAR(cpu_entry_area), %ecx
+	addl	$CPU_ENTRY_AREA_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx
 	subl	%eax, %ecx	/* ecx = (end of SYSENTER_stack) - esp */
 	cmpl	$SIZEOF_SYSENTER_stack, %ecx
 	jb	.Lnmi_from_sysenter_stack
arch/x86/entry/entry_64.S +243 -79

518 lines not on this page · raw message

arch/x86/entry/entry_64_compat.S +6 -4
index b5c7a56ed256..95ad40eb7eff 100644
@@ -48,7 +48,7 @@
  */
 ENTRY(entry_SYSENTER_compat)
 	/* Interrupts are off on entry. */
-	SWAPGS_UNSAFE_STACK
+	SWAPGS
 	movq	PER_CPU_VAR(cpu_current_top_of_stack), %rsp
 
 	/*
@@ -306,8 +306,11 @@ ENTRY(entry_INT80_compat)
 	 */
 	movl	%eax, %eax
 
-	/* Construct struct pt_regs on stack (iret frame is already on stack) */
 	pushq	%rax			/* pt_regs->orig_ax */
+
+	/* switch to thread stack expects orig_ax to be pushed */
+	call	switch_to_thread_stack
+
 	pushq	%rdi			/* pt_regs->di */
 	pushq	%rsi			/* pt_regs->si */
 	pushq	%rdx			/* pt_regs->dx */
@@ -337,8 +340,7 @@ ENTRY(entry_INT80_compat)
 
 	/* Go back to user mode. */
 	TRACE_IRQS_ON
-	SWAPGS
-	jmp	restore_regs_and_iret
+	jmp	swapgs_restore_regs_and_return_to_usermode
 END(entry_INT80_compat)
 
 ENTRY(stub32_clone)
arch/x86/entry/syscalls/Makefile +2 -2
index 331f1dca5085..6fb9b57ed5ba 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
-out := $(obj)/../../include/generated/asm
-uapi := $(obj)/../../include/generated/uapi/asm
+out := arch/$(SRCARCH)/include/generated/asm
+uapi := arch/$(SRCARCH)/include/generated/uapi/asm
 
 # Create output directory if not already present
 _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') \
arch/x86/events/core.c +1 -1
index 80534d3c2480..589af1eec7c1 100644
@@ -2371,7 +2371,7 @@ static unsigned long get_segment_base(unsigned int segment)
 		struct ldt_struct *ldt;
 
 		/* IRQs are off, so this synchronizes with smp_store_release */
-		ldt = lockless_dereference(current->active_mm->context.ldt);
+		ldt = READ_ONCE(current->active_mm->context.ldt);
 		if (!ldt || idx >= ldt->nr_entries)
 			return 0;
 
arch/x86/events/intel/core.c +4 -0
index f94855000d4e..09c26a4f139c 100644
@@ -2958,6 +2958,10 @@ static unsigned long intel_pmu_free_running_flags(struct perf_event *event)
 
 	if (event->attr.use_clockid)
 		flags &= ~PERF_SAMPLE_TIME;
+	if (!event->attr.exclude_kernel)
+		flags &= ~PERF_SAMPLE_REGS_USER;
+	if (event->attr.sample_regs_user & ~PEBS_REGS)
+		flags &= ~(PERF_SAMPLE_REGS_USER | PERF_SAMPLE_REGS_INTR);
 	return flags;
 }
 
arch/x86/events/perf_event.h +23 -1
index 4196f81ec0e1..f7aaadf9331f 100644
@@ -85,13 +85,15 @@ struct amd_nb {
  * Flags PEBS can handle without an PMI.
  *
  * TID can only be handled by flushing at context switch.
+ * REGS_USER can be handled for events limited to ring 3.
  *
  */
 #define PEBS_FREERUNNING_FLAGS \
 	(PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_ADDR | \
 	PERF_SAMPLE_ID | PERF_SAMPLE_CPU | PERF_SAMPLE_STREAM_ID | \
 	PERF_SAMPLE_DATA_SRC | PERF_SAMPLE_IDENTIFIER | \
-	PERF_SAMPLE_TRANSACTION | PERF_SAMPLE_PHYS_ADDR)
+	PERF_SAMPLE_TRANSACTION | PERF_SAMPLE_PHYS_ADDR | \
+	PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER)
 
 /*
  * A debug store configuration.
@@ -110,6 +112,26 @@ struct debug_store {
 	u64	pebs_event_reset[MAX_PEBS_EVENTS];
 };
 
+#define PEBS_REGS \
+	(PERF_REG_X86_AX | \
+	 PERF_REG_X86_BX | \
+	 PERF_REG_X86_CX | \
+	 PERF_REG_X86_DX | \
+	 PERF_REG_X86_DI | \
+	 PERF_REG_X86_SI | \
+	 PERF_REG_X86_SP | \
+	 PERF_REG_X86_BP | \
+	 PERF_REG_X86_IP | \
+	 PERF_REG_X86_FLAGS | \
+	 PERF_REG_X86_R8 | \
+	 PERF_REG_X86_R9 | \
+	 PERF_REG_X86_R10 | \
+	 PERF_REG_X86_R11 | \
+	 PERF_REG_X86_R12 | \
+	 PERF_REG_X86_R13 | \
+	 PERF_REG_X86_R14 | \
+	 PERF_REG_X86_R15)
+
 /*
  * Per register state.
  */
arch/x86/hyperv/hv_init.c +1 -1
index a5db63f728a2..a0b86cf486e0 100644
@@ -113,7 +113,7 @@ void hyperv_init(void)
 	u64 guest_id;
 	union hv_x64_msr_hypercall_contents hypercall_msr;
 
-	if (x86_hyper != &x86_hyper_ms_hyperv)
+	if (x86_hyper_type != X86_HYPER_MS_HYPERV)
 		return;
 
 	/* Allocate percpu VP index */
arch/x86/include/asm/archrandom.h +4 -4
index 5b0579abb398..3ac991d81e74 100644
@@ -45,7 +45,7 @@ static inline bool rdrand_long(unsigned long *v)
 	bool ok;
 	unsigned int retry = RDRAND_RETRY_LOOPS;
 	do {
-		asm volatile(RDRAND_LONG "\n\t"
+		asm volatile(RDRAND_LONG
 			     CC_SET(c)
 			     : CC_OUT(c) (ok), "=a" (*v));
 		if (ok)
@@ -59,7 +59,7 @@ static inline bool rdrand_int(unsigned int *v)
 	bool ok;
 	unsigned int retry = RDRAND_RETRY_LOOPS;
 	do {
-		asm volatile(RDRAND_INT "\n\t"
+		asm volatile(RDRAND_INT
 			     CC_SET(c)
 			     : CC_OUT(c) (ok), "=a" (*v));
 		if (ok)
@@ -71,7 +71,7 @@ static inline bool rdrand_int(unsigned int *v)
 static inline bool rdseed_long(unsigned long *v)
 {
 	bool ok;
-	asm volatile(RDSEED_LONG "\n\t"
+	asm volatile(RDSEED_LONG
 		     CC_SET(c)
 		     : CC_OUT(c) (ok), "=a" (*v));
 	return ok;
@@ -80,7 +80,7 @@ static inline bool rdseed_long(unsigned long *v)
 static inline bool rdseed_int(unsigned int *v)
 {
 	bool ok;
-	asm volatile(RDSEED_INT "\n\t"
+	asm volatile(RDSEED_INT
 		     CC_SET(c)
 		     : CC_OUT(c) (ok), "=a" (*v));
 	return ok;
arch/x86/include/asm/bitops.h +5 -5
index 2bcf47314959..3fa039855b8f 100644
@@ -143,7 +143,7 @@ static __always_inline void __clear_bit(long nr, volatile unsigned long *addr)
 static __always_inline bool clear_bit_unlock_is_negative_byte(long nr, volatile unsigned long *addr)
 {
 	bool negative;
-	asm volatile(LOCK_PREFIX "andb %2,%1\n\t"
+	asm volatile(LOCK_PREFIX "andb %2,%1"
 		CC_SET(s)
 		: CC_OUT(s) (negative), ADDR
 		: "ir" ((char) ~(1 << nr)) : "memory");
@@ -246,7 +246,7 @@ static __always_inline bool __test_and_set_bit(long nr, volatile unsigned long *
 {
 	bool oldbit;
 
-	asm("bts %2,%1\n\t"
+	asm("bts %2,%1"
 	    CC_SET(c)
 	    : CC_OUT(c) (oldbit), ADDR
 	    : "Ir" (nr));
@@ -286,7 +286,7 @@ static __always_inline bool __test_and_clear_bit(long nr, volatile unsigned long
 {
 	bool oldbit;
 
-	asm volatile("btr %2,%1\n\t"
+	asm volatile("btr %2,%1"
 		     CC_SET(c)
 		     : CC_OUT(c) (oldbit), ADDR
 		     : "Ir" (nr));
@@ -298,7 +298,7 @@ static __always_inline bool __test_and_change_bit(long nr, volatile unsigned lon
 {
 	bool oldbit;
 
-	asm volatile("btc %2,%1\n\t"
+	asm volatile("btc %2,%1"
 		     CC_SET(c)
 		     : CC_OUT(c) (oldbit), ADDR
 		     : "Ir" (nr) : "memory");
@@ -329,7 +329,7 @@ static __always_inline bool variable_test_bit(long nr, volatile const unsigned l
 {
 	bool oldbit;
 
-	asm volatile("bt %2,%1\n\t"
+	asm volatile("bt %2,%1"
 		     CC_SET(c)
 		     : CC_OUT(c) (oldbit)
 		     : "m" (*(unsigned long *)addr), "Ir" (nr));
arch/x86/include/asm/compat.h +1 -0
index 70bc1df580b2..2cbd75dd2fd3 100644
@@ -7,6 +7,7 @@
  */
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/sched/task_stack.h>
 #include <asm/processor.h>
 #include <asm/user32.h>
 #include <asm/unistd.h>
arch/x86/include/asm/cpufeature.h +6 -5
index 0dfa68438e80..ea9a7dde62e5 100644
@@ -126,16 +126,17 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
 #define boot_cpu_has(bit)	cpu_has(&boot_cpu_data, bit)
 
 #define set_cpu_cap(c, bit)	set_bit(bit, (unsigned long *)((c)->x86_capability))
-#define clear_cpu_cap(c, bit)	clear_bit(bit, (unsigned long *)((c)->x86_capability))
-#define setup_clear_cpu_cap(bit) do { \
-	clear_cpu_cap(&boot_cpu_data, bit);	\
-	set_bit(bit, (unsigned long *)cpu_caps_cleared); \
-} while (0)
+
+extern void setup_clear_cpu_cap(unsigned int bit);
+extern void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int bit);
+
 #define setup_force_cpu_cap(bit) do { \
 	set_cpu_cap(&boot_cpu_data, bit);	\
 	set_bit(bit, (unsigned long *)cpu_caps_set);	\
 } while (0)
 
+#define setup_force_cpu_bug(bit) setup_force_cpu_cap(bit)
+
 #if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_X86_FAST_FEATURE_TESTS)
 /*
  * Static testing of CPU features.  Used the same as boot_cpu_has().
arch/x86/include/asm/cpufeatures.h +275 -263

594 lines not on this page · raw message

arch/x86/include/asm/desc.h +2 -9
index 0a3e808b9123..2ace1f90d138 100644
@@ -60,17 +60,10 @@ static inline struct desc_struct *get_current_gdt_rw(void)
 	return this_cpu_ptr(&gdt_page)->gdt;
 }
 
-/* Get the fixmap index for a specific processor */
-static inline unsigned int get_cpu_gdt_ro_index(int cpu)
-{
-	return FIX_GDT_REMAP_BEGIN + cpu;
-}
-
 /* Provide the fixmap address of the remapped GDT */
 static inline struct desc_struct *get_cpu_gdt_ro(int cpu)
 {
-	unsigned int idx = get_cpu_gdt_ro_index(cpu);
-	return (struct desc_struct *)__fix_to_virt(idx);
+	return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt;
 }
 
 /* Provide the current read-only GDT */
@@ -185,7 +178,7 @@ static inline void set_tssldt_descriptor(void *d, unsigned long addr,
 #endif
 }
 
-static inline void __set_tss_desc(unsigned cpu, unsigned int entry, void *addr)
+static inline void __set_tss_desc(unsigned cpu, unsigned int entry, struct x86_hw_tss *addr)
 {
 	struct desc_struct *d = get_cpu_gdt_rw(cpu);
 	tss_desc tss;
arch/x86/include/asm/fixmap.h +72 -2

91 lines not on this page · raw message

arch/x86/include/asm/hypervisor.h +24 -29

78 lines not on this page · raw message

arch/x86/include/asm/irqflags.h +3 -0
index c8ef23f2c28f..89f08955fff7 100644
@@ -142,6 +142,9 @@ static inline notrace unsigned long arch_local_irq_save(void)
 	swapgs;					\
 	sysretl
 
+#ifdef CONFIG_DEBUG_ENTRY
+#define SAVE_FLAGS(x)		pushfq; popq %rax
+#endif
 #else
 #define INTERRUPT_RETURN		iret
 #define ENABLE_INTERRUPTS_SYSEXIT	sti; sysexit
arch/x86/include/asm/kdebug.h +1 -0
index f86a8caa561e..395c9631e000 100644
@@ -26,6 +26,7 @@ extern void die(const char *, struct pt_regs *,long);
 extern int __must_check __die(const char *, struct pt_regs *, long);
 extern void show_stack_regs(struct pt_regs *regs);
 extern void __show_regs(struct pt_regs *regs, int all);
+extern void show_iret_regs(struct pt_regs *regs);
 extern unsigned long oops_begin(void);
 extern void oops_end(unsigned long, struct pt_regs *, int signr);
 
arch/x86/include/asm/mmu_context.h +2 -2
index 6699fc441644..6d16d15d09a0 100644
@@ -73,8 +73,8 @@ static inline void load_mm_ldt(struct mm_struct *mm)
 #ifdef CONFIG_MODIFY_LDT_SYSCALL
 	struct ldt_struct *ldt;
 
-	/* lockless_dereference synchronizes with smp_store_release */
-	ldt = lockless_dereference(mm->context.ldt);
+	/* READ_ONCE synchronizes with smp_store_release */
+	ldt = READ_ONCE(mm->context.ldt);
 
 	/*
 	 * Any change to mm->context.ldt is followed by an IPI to all
arch/x86/include/asm/module.h +1 -1
index 8546fafa21a9..7948a17febb4 100644
@@ -6,7 +6,7 @@
 #include <asm/orc_types.h>
 
 struct mod_arch_specific {
-#ifdef CONFIG_ORC_UNWINDER
+#ifdef CONFIG_UNWINDER_ORC
 	unsigned int num_orcs;
 	int *orc_unwind_ip;
 	struct orc_entry *orc_unwind;
arch/x86/include/asm/paravirt.h +11 -3
index fd81228e8037..892df375b615 100644
@@ -16,10 +16,9 @@
 #include <linux/cpumask.h>
 #include <asm/frame.h>
 
-static inline void load_sp0(struct tss_struct *tss,
-			     struct thread_struct *thread)
+static inline void load_sp0(unsigned long sp0)
 {
-	PVOP_VCALL2(pv_cpu_ops.load_sp0, tss, thread);
+	PVOP_VCALL1(pv_cpu_ops.load_sp0, sp0);
 }
 
 /* The paravirtualized CPUID instruction. */
@@ -928,6 +927,15 @@ extern void default_banner(void);
 	PARA_SITE(PARA_PATCH(pv_cpu_ops, PV_CPU_usergs_sysret64),	\
 		  CLBR_NONE,						\
 		  jmp PARA_INDIRECT(pv_cpu_ops+PV_CPU_usergs_sysret64))
+
+#ifdef CONFIG_DEBUG_ENTRY
+#define SAVE_FLAGS(clobbers)                                        \
+	PARA_SITE(PARA_PATCH(pv_irq_ops, PV_IRQ_save_fl), clobbers, \
+		  PV_SAVE_REGS(clobbers | CLBR_CALLEE_SAVE);        \
+		  call PARA_INDIRECT(pv_irq_ops+PV_IRQ_save_fl);    \
+		  PV_RESTORE_REGS(clobbers | CLBR_CALLEE_SAVE);)
+#endif
+
 #endif	/* CONFIG_X86_32 */
 
 #endif /* __ASSEMBLY__ */
arch/x86/include/asm/paravirt_types.h +1 -1
index 10cc3b9709fe..6ec54d01972d 100644
@@ -134,7 +134,7 @@ struct pv_cpu_ops {
 	void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries);
 	void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
 
-	void (*load_sp0)(struct tss_struct *tss, struct thread_struct *t);
+	void (*load_sp0)(unsigned long sp0);
 
 	void (*set_iopl_mask)(unsigned mask);
 
arch/x86/include/asm/percpu.h +1 -1
index 377f1ffd18be..ba3c523aaf16 100644
@@ -526,7 +526,7 @@ static inline bool x86_this_cpu_variable_test_bit(int nr,
 {
 	bool oldbit;
 
-	asm volatile("bt "__percpu_arg(2)",%1\n\t"
+	asm volatile("bt "__percpu_arg(2)",%1"
 			CC_SET(c)
 			: CC_OUT(c) (oldbit)
 			: "m" (*(unsigned long __percpu *)addr), "Ir" (nr));
arch/x86/include/asm/pgtable_types.h +1 -2
index 59df7b47a434..9e9b05fc4860 100644
@@ -200,10 +200,9 @@ enum page_cache_mode {
 
 #define _PAGE_ENC	(_AT(pteval_t, sme_me_mask))
 
-#define _PAGE_TABLE	(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |	\
-			 _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_ENC)
 #define _KERNPG_TABLE	(_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED |	\
 			 _PAGE_DIRTY | _PAGE_ENC)
+#define _PAGE_TABLE	(_KERNPG_TABLE | _PAGE_USER)
 
 #define __PAGE_KERNEL_ENC	(__PAGE_KERNEL | _PAGE_ENC)
 #define __PAGE_KERNEL_ENC_WP	(__PAGE_KERNEL_WP | _PAGE_ENC)
arch/x86/include/asm/processor.h +57 -52

200 lines not on this page · raw message

arch/x86/include/asm/ptrace.h +5 -1
index c0e3c45cf6ab..14131dd06b29 100644
@@ -136,9 +136,9 @@ static inline int v8086_mode(struct pt_regs *regs)
 #endif
 }
 
-#ifdef CONFIG_X86_64
 static inline bool user_64bit_mode(struct pt_regs *regs)
 {
+#ifdef CONFIG_X86_64
 #ifndef CONFIG_PARAVIRT
 	/*
 	 * On non-paravirt systems, this is the only long mode CPL 3
@@ -149,8 +149,12 @@ static inline bool user_64bit_mode(struct pt_regs *regs)
 	/* Headers are too twisted for this to go in paravirt.h. */
 	return regs->cs == __USER_CS || regs->cs == pv_info.extra_user_64bit_cs;
 #endif
+#else /* !CONFIG_X86_64 */
+	return false;
+#endif
 }
 
+#ifdef CONFIG_X86_64
 #define current_user_stack_pointer()	current_pt_regs()->sp
 #define compat_user_stack_pointer()	current_pt_regs()->sp
 #endif
arch/x86/include/asm/rmwcc.h +1 -1
index d8f3a6ae9f6c..f91c365e57c3 100644
@@ -29,7 +29,7 @@ cc_label:								\
 #define __GEN_RMWcc(fullop, var, cc, clobbers, ...)			\
 do {									\
 	bool c;								\
-	asm volatile (fullop ";" CC_SET(cc)				\
+	asm volatile (fullop CC_SET(cc)					\
 			: [counter] "+m" (var), CC_OUT(cc) (c)		\
 			: __VA_ARGS__ : clobbers);			\
 	return c;							\
arch/x86/include/asm/stacktrace.h +3 -0
index 8da111b3c342..f8062bfd43a0 100644
@@ -16,6 +16,7 @@ enum stack_type {
 	STACK_TYPE_TASK,
 	STACK_TYPE_IRQ,
 	STACK_TYPE_SOFTIRQ,
+	STACK_TYPE_SYSENTER,
 	STACK_TYPE_EXCEPTION,
 	STACK_TYPE_EXCEPTION_LAST = STACK_TYPE_EXCEPTION + N_EXCEPTION_STACKS-1,
 };
@@ -28,6 +29,8 @@ struct stack_info {
 bool in_task_stack(unsigned long *stack, struct task_struct *task,
 		   struct stack_info *info);
 
+bool in_sysenter_stack(unsigned long *stack, struct stack_info *info);
+
 int get_stack_info(unsigned long *stack, struct task_struct *task,
 		   struct stack_info *info, unsigned long *visit_mask);
 
arch/x86/include/asm/switch_to.h +26 -0
index 899084b70412..9b6df68d8fd1 100644
@@ -2,6 +2,8 @@
 #ifndef _ASM_X86_SWITCH_TO_H
 #define _ASM_X86_SWITCH_TO_H
 
+#include <linux/sched/task_stack.h>
+
 struct task_struct; /* one of the stranger aspects of C forward declarations */
 
 struct task_struct *__switch_to_asm(struct task_struct *prev,
@@ -73,4 +75,28 @@ do {									\
 	((last) = __switch_to_asm((prev), (next)));			\
 } while (0)
 
+#ifdef CONFIG_X86_32
+static inline void refresh_sysenter_cs(struct thread_struct *thread)
+{
+	/* Only happens when SEP is enabled, no need to test "SEP"arately: */
+	if (unlikely(this_cpu_read(cpu_tss_rw.x86_tss.ss1) == thread->sysenter_cs))
+		return;
+
+	this_cpu_write(cpu_tss_rw.x86_tss.ss1, thread->sysenter_cs);
+	wrmsr(MSR_IA32_SYSENTER_CS, thread->sysenter_cs, 0);
+}
+#endif
+
+/* This is used when switching tasks or entering/exiting vm86 mode. */
+static inline void update_sp0(struct task_struct *task)
+{
+	/* On x86_64, sp0 always points to the entry trampoline stack, which is constant: */
+#ifdef CONFIG_X86_32
+	load_sp0(task->thread.sp0);
+#else
+	if (static_cpu_has(X86_FEATURE_XENPV))
+		load_sp0(task_top_of_stack(task));
+#endif
+}
+
 #endif /* _ASM_X86_SWITCH_TO_H */
arch/x86/include/asm/thread_info.h +1 -1
index 70f425947dc5..00223333821a 100644
@@ -207,7 +207,7 @@ static inline int arch_within_stack_frames(const void * const stack,
 #else /* !__ASSEMBLY__ */
 
 #ifdef CONFIG_X86_64
-# define cpu_current_top_of_stack (cpu_tss + TSS_sp0)
+# define cpu_current_top_of_stack (cpu_tss_rw + TSS_sp1)
 #endif
 
 #endif
arch/x86/include/asm/trace/fpu.h +0 -10
index fa60398bbc3a..069c04be1507 100644
@@ -34,11 +34,6 @@ DECLARE_EVENT_CLASS(x86_fpu,
 	)
 );
 
-DEFINE_EVENT(x86_fpu, x86_fpu_state,
-	TP_PROTO(struct fpu *fpu),
-	TP_ARGS(fpu)
-);
-
 DEFINE_EVENT(x86_fpu, x86_fpu_before_save,
 	TP_PROTO(struct fpu *fpu),
 	TP_ARGS(fpu)
@@ -74,11 +69,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_activate_state,
 	TP_ARGS(fpu)
 );
 
-DEFINE_EVENT(x86_fpu, x86_fpu_deactivate_state,
-	TP_PROTO(struct fpu *fpu),
-	TP_ARGS(fpu)
-);
-
 DEFINE_EVENT(x86_fpu, x86_fpu_init_state,
 	TP_PROTO(struct fpu *fpu),
 	TP_ARGS(fpu)
arch/x86/include/asm/traps.h +19 -2
index b0cced97a6ce..31051f35cbb7 100644
@@ -38,9 +38,9 @@ asmlinkage void simd_coprocessor_error(void);
 
 #if defined(CONFIG_X86_64) && defined(CONFIG_XEN_PV)
 asmlinkage void xen_divide_error(void);
+asmlinkage void xen_xennmi(void);
 asmlinkage void xen_xendebug(void);
 asmlinkage void xen_xenint3(void);
-asmlinkage void xen_nmi(void);
 asmlinkage void xen_overflow(void);
 asmlinkage void xen_bounds(void);
 asmlinkage void xen_invalid_op(void);
@@ -75,7 +75,6 @@ dotraplinkage void do_segment_not_present(struct pt_regs *, long);
 dotraplinkage void do_stack_segment(struct pt_regs *, long);
 #ifdef CONFIG_X86_64
 dotraplinkage void do_double_fault(struct pt_regs *, long);
-asmlinkage struct pt_regs *sync_regs(struct pt_regs *);
 #endif
 dotraplinkage void do_general_protection(struct pt_regs *, long);
 dotraplinkage void do_page_fault(struct pt_regs *, unsigned long);
@@ -145,4 +144,22 @@ enum {
 	X86_TRAP_IRET = 32,	/* 32, IRET Exception */
 };
 
+/*
+ * Page fault error code bits:
+ *
+ *   bit 0 ==	 0: no page found	1: protection fault
+ *   bit 1 ==	 0: read access		1: write access
+ *   bit 2 ==	 0: kernel-mode access	1: user-mode access
+ *   bit 3 ==				1: use of reserved bit detected
+ *   bit 4 ==				1: fault was an instruction fetch
+ *   bit 5 ==				1: protection keys block access
+ */
+enum x86_pf_error_code {
+	X86_PF_PROT	=		1 << 0,
+	X86_PF_WRITE	=		1 << 1,
+	X86_PF_USER	=		1 << 2,
+	X86_PF_RSVD	=		1 << 3,
+	X86_PF_INSTR	=		1 << 4,
+	X86_PF_PK	=		1 << 5,
+};
 #endif /* _ASM_X86_TRAPS_H */
arch/x86/include/asm/unwind.h +11 -4
index 87adc0d38c4a..c1688c2d0a12 100644
@@ -7,17 +7,20 @@
 #include <asm/ptrace.h>
 #include <asm/stacktrace.h>
 
+#define IRET_FRAME_OFFSET (offsetof(struct pt_regs, ip))
+#define IRET_FRAME_SIZE   (sizeof(struct pt_regs) - IRET_FRAME_OFFSET)
+
 struct unwind_state {
 	struct stack_info stack_info;
 	unsigned long stack_mask;
 	struct task_struct *task;
 	int graph_idx;
 	bool error;
-#if defined(CONFIG_ORC_UNWINDER)
+#if defined(CONFIG_UNWINDER_ORC)
 	bool signal, full_regs;
 	unsigned long sp, bp, ip;
 	struct pt_regs *regs;
-#elif defined(CONFIG_FRAME_POINTER_UNWINDER)
+#elif defined(CONFIG_UNWINDER_FRAME_POINTER)
 	bool got_irq;
 	unsigned long *bp, *orig_sp, ip;
 	struct pt_regs *regs;
@@ -51,7 +54,11 @@ void unwind_start(struct unwind_state *state, struct task_struct *task,
 	__unwind_start(state, task, regs, first_frame);
 }
 
-#if defined(CONFIG_ORC_UNWINDER) || defined(CONFIG_FRAME_POINTER_UNWINDER)
+#if defined(CONFIG_UNWINDER_ORC) || defined(CONFIG_UNWINDER_FRAME_POINTER)
+/*
+ * WARNING: The entire pt_regs may not be safe to dereference.  In some cases,
+ * only the iret frame registers are accessible.  Use with caution!
+ */
 static inline struct pt_regs *unwind_get_entry_regs(struct unwind_state *state)
 {
 	if (unwind_done(state))
@@ -66,7 +73,7 @@ static inline struct pt_regs *unwind_get_entry_regs(struct unwind_state *state)
 }
 #endif
 
-#ifdef CONFIG_ORC_UNWINDER
+#ifdef CONFIG_UNWINDER_ORC
 void unwind_init(void);
 void unwind_module_init(struct module *mod, void *orc_ip, size_t orc_ip_size,
 			void *orc, size_t orc_size);
arch/x86/include/asm/x86_init.h +24 -0
index 8a1ebf9540dd..ad15a0fda917 100644
@@ -114,6 +114,18 @@ struct x86_init_pci {
 	void (*fixup_irqs)(void);
 };
 
+/**
+ * struct x86_hyper_init - x86 hypervisor init functions
+ * @init_platform:		platform setup
+ * @x2apic_available:		X2APIC detection
+ * @init_mem_mapping:		setup early mappings during init_mem_mapping()
+ */
+struct x86_hyper_init {
+	void (*init_platform)(void);
+	bool (*x2apic_available)(void);
+	void (*init_mem_mapping)(void);
+};
+
 /**
  * struct x86_init_ops - functions for platform specific setup
  *
@@ -127,6 +139,7 @@ struct x86_init_ops {
 	struct x86_init_timers		timers;
 	struct x86_init_iommu		iommu;
 	struct x86_init_pci		pci;
+	struct x86_hyper_init		hyper;
 };
 
 /**
@@ -199,6 +212,15 @@ struct x86_legacy_features {
 	struct x86_legacy_devices devices;
 };
 
+/**
+ * struct x86_hyper_runtime - x86 hypervisor specific runtime callbacks
+ *
+ * @pin_vcpu:		pin current vcpu to specified physical cpu (run rarely)
+ */
+struct x86_hyper_runtime {
+	void (*pin_vcpu)(int cpu);
+};
+
 /**
  * struct x86_platform_ops - platform specific runtime functions
  * @calibrate_cpu:		calibrate CPU
@@ -218,6 +240,7 @@ struct x86_legacy_features {
  * 				possible in x86_early_init_platform_quirks() by
  * 				only using the current x86_hardware_subarch
  * 				semantics.
+ * @hyper:			x86 hypervisor specific runtime callbacks
  */
 struct x86_platform_ops {
 	unsigned long (*calibrate_cpu)(void);
@@ -233,6 +256,7 @@ struct x86_platform_ops {
 	void (*apic_post_init)(void);
 	struct x86_legacy_features legacy;
 	void (*set_legacy_features)(void);
+	struct x86_hyper_runtime hyper;
 };
 
 struct pci_dev;
arch/x86/include/uapi/asm/processor-flags.h +3 -0
index 6f3355399665..53b4ca55ebb6 100644
@@ -152,5 +152,8 @@
 #define CX86_ARR_BASE	0xc4
 #define CX86_RCR_BASE	0xdc
 
+#define CR0_STATE	(X86_CR0_PE | X86_CR0_MP | X86_CR0_ET | \
+			 X86_CR0_NE | X86_CR0_WP | X86_CR0_AM | \
+			 X86_CR0_PG)
 
 #endif /* _UAPI_ASM_X86_PROCESSOR_FLAGS_H */
arch/x86/kernel/Makefile +5 -5
index 5f70044340ff..295abaa58add 100644
@@ -25,9 +25,9 @@ endif
 KASAN_SANITIZE_head$(BITS).o				:= n
 KASAN_SANITIZE_dumpstack.o				:= n
 KASAN_SANITIZE_dumpstack_$(BITS).o			:= n
-KASAN_SANITIZE_stacktrace.o := n
+KASAN_SANITIZE_stacktrace.o				:= n
+KASAN_SANITIZE_paravirt.o				:= n
 
-OBJECT_FILES_NON_STANDARD_head_$(BITS).o		:= y
 OBJECT_FILES_NON_STANDARD_relocate_kernel_$(BITS).o	:= y
 OBJECT_FILES_NON_STANDARD_ftrace_$(BITS).o		:= y
 OBJECT_FILES_NON_STANDARD_test_nx.o			:= y
@@ -128,9 +128,9 @@ obj-$(CONFIG_PERF_EVENTS)		+= perf_regs.o
 obj-$(CONFIG_TRACING)			+= tracepoint.o
 obj-$(CONFIG_SCHED_MC_PRIO)		+= itmt.o
 
-obj-$(CONFIG_ORC_UNWINDER)		+= unwind_orc.o
-obj-$(CONFIG_FRAME_POINTER_UNWINDER)	+= unwind_frame.o
-obj-$(CONFIG_GUESS_UNWINDER)		+= unwind_guess.o
+obj-$(CONFIG_UNWINDER_ORC)		+= unwind_orc.o
+obj-$(CONFIG_UNWINDER_FRAME_POINTER)	+= unwind_frame.o
+obj-$(CONFIG_UNWINDER_GUESS)		+= unwind_guess.o
 
 ###
 # 64 bit specific files
arch/x86/kernel/apic/apic.c +1 -1
index ff891772c9f8..89c7c8569e5e 100644
@@ -1645,7 +1645,7 @@ static __init void try_to_enable_x2apic(int remap_mode)
 		 * under KVM
 		 */
 		if (max_physical_apicid > 255 ||
-		    !hypervisor_x2apic_available()) {
+		    !x86_init.hyper.x2apic_available()) {
 			pr_info("x2apic: IRQ remapping doesn't support X2APIC mode\n");
 			x2apic_disable();
 			return;
arch/x86/kernel/apic/x2apic_uv_x.c +2 -3
index 0d57bb9079c9..c0b694810ff4 100644
@@ -920,9 +920,8 @@ static __init void uv_rtc_init(void)
 /*
  * percpu heartbeat timer
  */
-static void uv_heartbeat(unsigned long ignored)
+static void uv_heartbeat(struct timer_list *timer)
 {
-	struct timer_list *timer = &uv_scir_info->timer;
 	unsigned char bits = uv_scir_info->state;
 
 	/* Flip heartbeat bit: */
@@ -947,7 +946,7 @@ static int uv_heartbeat_enable(unsigned int cpu)
 		struct timer_list *timer = &uv_cpu_scir_info(cpu)->timer;
 
 		uv_set_cpu_scir_bits(cpu, SCIR_CPU_HEARTBEAT|SCIR_CPU_ACTIVITY);
-		setup_pinned_timer(timer, uv_heartbeat, cpu);
+		timer_setup(timer, uv_heartbeat, TIMER_PINNED);
 		timer->expires = jiffies + SCIR_CPU_HB_INTERVAL;
 		add_timer_on(timer, cpu);
 		uv_cpu_scir_info(cpu)->enabled = 1;
arch/x86/kernel/asm-offsets.c +6 -0
index 8ea78275480d..cd360a5e0dca 100644
@@ -93,4 +93,10 @@ void common(void) {
 
 	BLANK();
 	DEFINE(PTREGS_SIZE, sizeof(struct pt_regs));
+
+	/* Layout info for cpu_entry_area */
+	OFFSET(CPU_ENTRY_AREA_tss, cpu_entry_area, tss);
+	OFFSET(CPU_ENTRY_AREA_entry_trampoline, cpu_entry_area, entry_trampoline);
+	OFFSET(CPU_ENTRY_AREA_SYSENTER_stack, cpu_entry_area, SYSENTER_stack_page);
+	DEFINE(SIZEOF_SYSENTER_stack, sizeof(struct SYSENTER_stack));
 }
arch/x86/kernel/asm-offsets_32.c +2 -7
index dedf428b20b6..7d20d9c0b3d6 100644
@@ -47,13 +47,8 @@ void foo(void)
 	BLANK();
 
 	/* Offset from the sysenter stack to tss.sp0 */
-	DEFINE(TSS_sysenter_sp0, offsetof(struct tss_struct, x86_tss.sp0) -
-	       offsetofend(struct tss_struct, SYSENTER_stack));
-
-	/* Offset from cpu_tss to SYSENTER_stack */
-	OFFSET(CPU_TSS_SYSENTER_stack, tss_struct, SYSENTER_stack);
-	/* Size of SYSENTER_stack */
-	DEFINE(SIZEOF_SYSENTER_stack, sizeof(((struct tss_struct *)0)->SYSENTER_stack));
+	DEFINE(TSS_sysenter_sp0, offsetof(struct cpu_entry_area, tss.x86_tss.sp0) -
+	       offsetofend(struct cpu_entry_area, SYSENTER_stack_page.stack));
 
 #ifdef CONFIG_CC_STACKPROTECTOR
 	BLANK();
arch/x86/kernel/asm-offsets_64.c +4 -0
index 630212fa9b9d..bf51e51d808d 100644
@@ -23,6 +23,9 @@ int main(void)
 #ifdef CONFIG_PARAVIRT
 	OFFSET(PV_CPU_usergs_sysret64, pv_cpu_ops, usergs_sysret64);
 	OFFSET(PV_CPU_swapgs, pv_cpu_ops, swapgs);
+#ifdef CONFIG_DEBUG_ENTRY
+	OFFSET(PV_IRQ_save_fl, pv_irq_ops, save_fl);
+#endif
 	BLANK();
 #endif
 
@@ -63,6 +66,7 @@ int main(void)
 
 	OFFSET(TSS_ist, tss_struct, x86_tss.ist);
 	OFFSET(TSS_sp0, tss_struct, x86_tss.sp0);
+	OFFSET(TSS_sp1, tss_struct, x86_tss.sp1);
 	BLANK();
 
 #ifdef CONFIG_CC_STACKPROTECTOR
arch/x86/kernel/cpu/Makefile +1 -0
index c60922a66385..90cb82dbba57 100644
@@ -23,6 +23,7 @@ obj-y			+= rdrand.o
 obj-y			+= match.o
 obj-y			+= bugs.o
 obj-$(CONFIG_CPU_FREQ)	+= aperfmperf.o
+obj-y			+= cpuid-deps.o
 
 obj-$(CONFIG_PROC_FS)	+= proc.o
 obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
arch/x86/kernel/cpu/amd.c +5 -2
index d58184b7cd44..bcb75dc97d44 100644
@@ -804,8 +804,11 @@ static void init_amd(struct cpuinfo_x86 *c)
 	case 0x17: init_amd_zn(c); break;
 	}
 
-	/* Enable workaround for FXSAVE leak */
-	if (c->x86 >= 6)
+	/*
+	 * Enable workaround for FXSAVE leak on CPUs
+	 * without a XSaveErPtr feature
+	 */
+	if ((c->x86 >= 6) && (!cpu_has(c, X86_FEATURE_XSAVEERPTR)))
 		set_cpu_bug(c, X86_BUG_FXSAVE_LEAK);
 
 	cpu_detect_cache_sizes(c);
arch/x86/kernel/cpu/common.c +139 -56

313 lines not on this page · raw message

arch/x86/kernel/cpu/cpuid-deps.c new file +121 -0

115 lines not on this page · raw message

arch/x86/kernel/cpu/hypervisor.c +34 -30

64 lines not on this page · raw message

arch/x86/kernel/cpu/mshyperv.c +3 -3
index 236324e83a3a..85eb5fc180c8 100644

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

arch/x86/kernel/cpu/vmware.c +4 -4
index 40ed26852ebd..8e005329648b 100644

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

arch/x86/kernel/doublefault.c +17 -19
index 0e662c55ae90..0b8cedb20d6d 100644

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

arch/x86/kernel/dumpstack.c +59 -15

74 lines not on this page · raw message

arch/x86/kernel/dumpstack_32.c +6 -0
index daefae83a3aa..5ff13a6b3680 100644

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

arch/x86/kernel/dumpstack_64.c +6 -0
index 88ce2ffdb110..abc828f8c297 100644

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

arch/x86/kernel/fpu/init.c +11 -0
index 7affb7e3d9a5..6abd83572b01 100644

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

arch/x86/kernel/fpu/xstate.c +23 -20

43 lines not on this page · raw message

arch/x86/kernel/head_32.S +1 -4
index f1d528bb66a6..c29020907886 100644

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

arch/x86/kernel/head_64.S +23 -22

45 lines not on this page · raw message

arch/x86/kernel/ioport.c +1 -1
index 3feb648781c4..2f723301eb58 100644

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

arch/x86/kernel/irq.c +0 -12
index 52089c043160..aa9d51eea9d0 100644

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

arch/x86/kernel/irq_64.c +2 -2
index 020efbf5786b..d86e344f5b3d 100644

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

arch/x86/kernel/kvm.c +3 -3
index 8bb9594d0761..a94de09edbed 100644

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

arch/x86/kernel/ldt.c +1 -1
index ae5615b03def..1c1eae961340 100644

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

arch/x86/kernel/paravirt_patch_64.c +0 -2
index ac0be8283325..9edadabf04f6 100644

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

arch/x86/kernel/process.c +20 -7
index c67685337c5a..517415978409 100644

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

arch/x86/kernel/process_32.c +5 -3
index 11966251cd42..5224c6099184 100644

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

arch/x86/kernel/process_64.c +9 -10
index 302e7b2572d1..c75466232016 100644

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

arch/x86/kernel/smpboot.c +1 -2
index 5e0453f18a57..142126ab5aae 100644

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

arch/x86/kernel/traps.c +43 -29

72 lines not on this page · raw message

arch/x86/kernel/unwind_orc.c +37 -51

88 lines not on this page · raw message

arch/x86/kernel/verify_cpu.S +2 -1
index 014ea59aa153..3d3c2f71f617 100644

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

arch/x86/kernel/vm86_32.c +11 -9
index 68244742ecb0..5edb27f1a2c4 100644

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

arch/x86/kernel/vmlinux.lds.S +9 -0
index a4009fb9be87..d2a8b5a24a44 100644

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

arch/x86/kernel/x86_init.c +9 -0
index a088b2c47f73..5b2d10c1973a 100644

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

arch/x86/kvm/mmu.c +2 -2
index 7a69cf053711..13ebeedcec07 100644

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

arch/x86/kvm/vmx.c +1 -1
index bc5921c1e2f2..47d9432756f3 100644

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

arch/x86/lib/delay.c +2 -2
index 553f8fd23cc4..4846eff7e4c8 100644

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

arch/x86/mm/fault.c +34 -54

88 lines not on this page · raw message

arch/x86/mm/init.c +1 -1
index af5c1ed21d43..a22c2b95e513 100644

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

arch/x86/mm/init_64.c +5 -5
index 048fbe8fc274..adcea90a2046 100644

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

arch/x86/mm/kasan_init_64.c +233 -29

262 lines not on this page · raw message

arch/x86/power/cpu.c +9 -7
index 84fcfde53f8f..04d5157fe7f8 100644

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

arch/x86/xen/enlighten_hvm.c +6 -6
index de503c225ae1..754d5391d9fa 100644

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

arch/x86/xen/enlighten_pv.c +7 -8
index d4396e27b1fb..ae3a071e1d0f 100644

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

arch/x86/xen/mmu_pv.c +61 -100

161 lines not on this page · raw message

arch/x86/xen/smp_pv.c +14 -3
index 05f91ce9b55e..c0c756c76afe 100644

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

arch/x86/xen/xen-asm_64.S +1 -1
index c98a48c861fd..8a10c9a9e2b5 100644

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

arch/x86/xen/xen-head.S +8 -3
index b5b8d7f43557..497cc55a0c16 100644

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

block/bfq-iosched.c +2 -1
index a4783da90ba8..0f860cf0d56d 100644

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

block/blk-wbt.c +1 -1
index 6a9a0f03a67b..e59d59c11ebb 100644

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

crypto/lrw.c +4 -2
index a8bfae4451bf..eb681e9fe574 100644

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

drivers/acpi/apei/ghes.c +20 -58

78 lines not on this page · raw message

drivers/base/power/opp/core.c +1 -1
index a6de32530693..0459b1204694 100644

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

drivers/bluetooth/hci_bcm.c +10 -13
index e2540113d0da..73d2d88ddc03 100644

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

drivers/bluetooth/hci_ldisc.c +7 -0
index 6e2403805784..6aef3bde10d7 100644

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

drivers/clk/sunxi-ng/ccu-sun5i.c +2 -2
index ab9e850b3707..2f385a57cd91 100644

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

drivers/clk/sunxi-ng/ccu-sun6i-a31.c +1 -1
index 8af434815fba..241fb13f1c06 100644

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

drivers/clk/sunxi-ng/ccu_nm.c +3 -0
index a32158e8f2e3..84a5e7f17f6f 100644

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

drivers/cpuidle/cpuidle.c +1 -0
index 484cc8909d5c..ed4df58a855e 100644

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

drivers/crypto/amcc/crypto4xx_core.h +5 -5
index ecfdcfe3698d..4f41d6da5acc 100644

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

drivers/gpu/drm/drm_dp_dual_mode_helper.c +13 -3
index 0ef9011a1856..02a50929af67 100644

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

drivers/gpu/drm/vc4/vc4_dsi.c +2 -1
index d1e0dc908048..04796d7d0fdb 100644

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

drivers/hv/vmbus_drv.c +1 -1
index 937801ac2fe0..2cd134dd94d2 100644

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

drivers/iio/accel/st_accel_core.c +28 -7
index 752856b3a849..379de1829cdb 100644

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

drivers/iio/common/st_sensors/st_sensors_core.c +1 -1
index 02e833b14db0..34115f05d5c4 100644

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

drivers/iio/common/st_sensors/st_sensors_trigger.c +4 -12
index fa73e6795359..fdcc5a891958 100644

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

drivers/iio/gyro/st_gyro_core.c +12 -3
index e366422e8512..2536a8400c98 100644

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

drivers/iio/magnetometer/st_magn_core.c +8 -2
index 08aafba4481c..19031a7bce23 100644

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

drivers/iio/pressure/st_pressure_core.c +12 -3
index 34611a8ea2ce..ea075fcd5a6f 100644

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

drivers/infiniband/hw/hns/hns_roce_hw_v1.c +5 -0
index 747efd1ae5a6..8208c30f03c5 100644

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

drivers/infiniband/sw/rxe/rxe_pool.c +2 -0
index c1b5f38f31a5..3b4916680018 100644

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

drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c +1 -0
index afa938bd26d6..a72278e9cd27 100644

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

drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c +5 -3
index c2733964379c..9655cc3aa3a0 100644

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

drivers/input/mouse/vmmouse.c +4 -6
index 0f586780ceb4..1ae5c1ef3f5b 100644

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

drivers/leds/leds-pca955x.c +12 -5
index 905729191d3e..78183f90820e 100644

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

drivers/md/dm-mpath.c +10 -10
index 35e82b14ded7..ddf0a4341ae2 100644

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

drivers/md/md.c +2 -2
index 98ea86309ceb..6bf093cef958 100644

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

drivers/misc/pti.c +1 -1
index eda38cbe8530..41f2a9f6851d 100644

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

drivers/misc/vmw_balloon.c +1 -1
index 1e688bfec567..9047c0a529b2 100644

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

drivers/net/ethernet/ibm/ibmvnic.c +2 -0
index c66abd476023..3b0db01ead1f 100644

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

drivers/net/ethernet/intel/fm10k/fm10k.h +2 -2
index 689c413b7782..d2f9a2dd76a2 100644

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

drivers/net/ethernet/intel/fm10k/fm10k_iov.c +8 -4
index 5f4dac0d36ef..e72fd52bacfe 100644

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

drivers/net/ethernet/intel/i40e/i40e_main.c +11 -5
index ea20aacd5e1d..b2cde9b16d82 100644

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

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +4 -3
index 4d1e670f490e..e368b0237a1b 100644

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

drivers/net/ethernet/intel/i40evf/i40evf_main.c +6 -3
index 1825d956bb00..1ccad6f30ebf 100644

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

drivers/net/ethernet/intel/igb/igb_main.c +2 -0
index b0031c5ff767..667dbc7d4a4e 100644

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

drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +2 -2
index 6e6ab6f6875e..64429a14c630 100644

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

drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +2 -0
index 19fbb2f28ea4..8a85217845ae 100644

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

drivers/net/phy/at803x.c +1 -1
index c1e52b9dc58d..5f93e6add563 100644

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

drivers/pci/iov.c +2 -1
index ac41c8be9200..0fd8e164339c 100644

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

drivers/pci/pci.c +4 -0
index 6078dfc11b11..74f1c57ab93b 100644

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

drivers/pci/pcie/aer/aerdrv_core.c +8 -1
index 890efcc574cb..744805232155 100644

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

drivers/platform/x86/asus-wireless.c +1 -0
index f3796164329e..d4aeac3477f5 100644

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

drivers/rtc/interface.c +1 -1
index 8cec9a02c0b8..9eb32ead63db 100644

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

drivers/rtc/rtc-pl031.c +8 -6
index e1687e19c59f..a30f24cb6c83 100644

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

drivers/scsi/cxgbi/cxgb4i/cxgb4i.c +1 -0
index 1d02cf9fe06c..30d5f0ef29bb 100644

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

drivers/scsi/lpfc/lpfc_hbadisc.c +2 -1
index 499df9d17339..d9a03beb76a4 100644

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

drivers/scsi/lpfc/lpfc_hw4.h +1 -1
index 1db0a38683f4..2b145966c73f 100644

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

drivers/scsi/lpfc/lpfc_nvmet.c +2 -0
index 3c5b054a56ac..7ac1a067d780 100644

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

drivers/scsi/mpt3sas/mpt3sas_scsih.c +5 -0
index 22998cbd538f..33ff691878e2 100644

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

drivers/staging/greybus/light.c +2 -0
index 3f4148c92308..0f538b8c3a07 100644

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

drivers/tee/optee/core.c +0 -1
index 7952357df9c8..edb6e4e9ef3a 100644

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

drivers/thermal/hisi_thermal.c +48 -26

74 lines not on this page · raw message

drivers/vfio/pci/vfio_pci_config.c +4 -2
index 5628fe114347..91335e6de88a 100644

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

drivers/video/backlight/pwm_bl.c +5 -2
index 9bd17682655a..1c2289ddd555 100644

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

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

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

fs/overlayfs/ovl_entry.h +1 -1
index 25d9b5adcd42..36b49bd09264 100644

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

fs/overlayfs/readdir.c +1 -1
index b2c7f33e08fc..d94a51dc4e32 100644

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

include/asm-generic/vmlinux.lds.h +1 -1
index e549bff87c5b..353f52fdc35e 100644

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

include/linux/bpf_verifier.h +3 -3
index b8d200f60a40..73bec75b74c8 100644

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

include/linux/compiler-clang.h +1 -1
index 780b1242bf24..3b609edffa8f 100644

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

include/linux/compiler-gcc.h +1 -1
index bb78e5bdff26..2272ded07496 100644

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

include/linux/compiler-intel.h +1 -1
index 523d1b74550f..bfa08160db3a 100644

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

include/linux/compiler.h +4 -262

266 lines not on this page · raw message

include/linux/compiler_types.h new file +274 -0

274 lines not on this page · raw message

include/linux/hypervisor.h +6 -2
index b4054fd5b6f6..b19563f9a8eb 100644

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

include/linux/iio/common/st_sensors.h +5 -2
index 7b0fa8b5c120..ce0ef1c0a30a 100644

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

include/linux/intel-pti.h new file +43 -0

43 lines not on this page · raw message

include/linux/linkage.h +1 -1
index 2e6f90bd52aa..f68db9e450eb 100644

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

include/linux/mm.h +1 -1
index db647d428100..f50deada0f5c 100644

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

include/linux/mmzone.h +5 -1
index 18b06983131a..f0938257ee6d 100644

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

include/linux/pti.h deleted +0 -43

43 lines not on this page · raw message

include/linux/rculist.h +2 -2
index c2cdd45a880a..127f534fec94 100644

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

include/linux/rcupdate.h +2 -2
index 1a9f70d44af9..a6ddc42f87a5 100644

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

include/uapi/linux/stddef.h +1 -1
index f65b92e0e1f9..ee8220f8dcf5 100644

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

kernel/bpf/verifier.c +153 -49

202 lines not on this page · raw message

kernel/events/core.c +2 -2
index 4f1d4bfc607a..24ebad5567b4 100644

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

kernel/seccomp.c +1 -1
index 418a1c045933..5f0dfb2abb8d 100644

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

kernel/task_work.c +1 -1
index 5718b3ea202a..0fef395662a6 100644

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

kernel/trace/bpf_trace.c +12 -7
index dc498b605d5d..6350f64d5aa4 100644

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

kernel/trace/trace_events_hist.c +2 -2
index 1c21d0e2a145..7eb975a2d0e1 100644

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

lib/Kconfig.debug +1 -1
index dfdad67d8f6c..ff21b4dbb392 100644

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

mm/slab.h +1 -1
index 028cdc7df67e..86d7c7d860f9 100644

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

mm/sparse.c +21 -6
index 4900707ae146..60805abf98af 100644

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

net/ipv4/ip_gre.c +4 -4
index 467e44d7587d..045331204097 100644

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

net/ipv4/tcp_vegas.c +1 -1
index 218cfcc77650..ee113ff15fd0 100644

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

net/ipv6/addrconf.c +6 -6
index 8a1c846d3df9..2ec39404c449 100644

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

net/ipv6/route.c +29 -29

58 lines not on this page · raw message

net/sctp/stream.c +7 -1
index fa8371ff05c4..724adf2786a2 100644

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

scripts/Makefile.build +1 -1
index bb831d49bcfd..e63af4e19382 100644

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

scripts/headers_install.sh +1 -1
index 4d1ea96e8794..a18bca720995 100755

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

sound/soc/codecs/msm8916-wcd-analog.c +6 -3
index 549c269acc7d..18933bf6473f 100644

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

sound/soc/img/img-parallel-out.c +2 -0
index 23b0f0f6ec9c..2fc8a6372206 100644

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

tools/objtool/check.c +5 -2
index c0e26ad1fa7e..9b341584eb1b 100644

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

tools/objtool/objtool.c +2 -4
index 31e0f9143840..07f329919828 100644

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

tools/testing/selftests/bpf/test_verifier.c +533 -16

549 lines not on this page · raw message

tools/testing/selftests/x86/ldt_gdt.c +45 -16

61 lines not on this page · raw message

virt/kvm/kvm_main.c +1 -1
index 484e8820c382..2447d7c017e7 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.