Linux 4.14.9
Greg KH
maintainerI'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
Greg KH
maintainerDocumentation/x86/orc-unwinder.txt +1 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 iEMIT2 (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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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" + asmvolatile (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" + asmvolatile (RDSEED_INT CC_SET(c) : CC_OUT(c) (ok), "=a" (*v));return ok;
arch/x86/include/asm/bitops.h +5 -5
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/dumpstack.c +59 -15
74 lines not on this page · raw message
arch/x86/kernel/fpu/xstate.c +23 -20
43 lines not on this page · raw message
arch/x86/kernel/head_64.S +23 -22
45 lines not on this page · 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/mm/fault.c +34 -54
88 lines not on this page · raw message
arch/x86/mm/kasan_init_64.c +233 -29
262 lines not on this page · raw message
arch/x86/xen/mmu_pv.c +61 -100
161 lines not on this page · raw message
drivers/acpi/apei/ghes.c +20 -58
78 lines not on this page · raw message
drivers/gpu/drm/drm_dp_dual_mode_helper.c +13 -3
Lines of this file are not shown. View the raw message.
drivers/iio/common/st_sensors/st_sensors_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/iio/common/st_sensors/st_sensors_trigger.c +4 -12
Lines of this file are not shown. View the raw message.
drivers/iio/magnetometer/st_magn_core.c +8 -2
Lines of this file are not shown. View the raw message.
drivers/iio/pressure/st_pressure_core.c +12 -3
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_hw_v1.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/opa_vnic/opa_vnic_vema_iface.c +5 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/fm10k/fm10k.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/fm10k/fm10k_iov.c +8 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_main.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40evf/i40evf_main.c +6 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +2 -0
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
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/intel-pti.h new file +43 -0
43 lines not on this page · raw message
include/linux/pti.h deleted +0 -43
43 lines not on this page · raw message
kernel/bpf/verifier.c +153 -49
202 lines not on this page · raw message
net/ipv6/route.c +29 -29
58 lines not on this page · 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
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.