Linux 4.12.10
Greg KH
maintainerI'm announcing the release of the 4.12.10 kernel.
All users of the 4.12 kernel series must upgrade.
The updated 4.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.12.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
------------
Makefile | 2 arch/arc/include/asm/cache.h | 2 arch/arc/include/asm/mmu.h | 2 arch/arc/mm/cache.c | 50 ++++- arch/arc/mm/tlb.c | 12 + arch/arm64/kernel/fpsimd.c | 2 arch/powerpc/include/asm/mmu_context.h | 20 +- arch/powerpc/include/asm/pgtable-be-types.h | 1 arch/powerpc/include/asm/pgtable-types.h | 1 arch/s390/kvm/sthyi.c | 7 arch/sparc/kernel/pci_sun4v.c | 2 arch/x86/include/asm/fpu/internal.h | 6 arch/x86/include/asm/kvm_host.h | 1 arch/x86/include/asm/mmu_context.h | 4 arch/x86/kvm/cpuid.c | 2 arch/x86/kvm/kvm_cache_regs.h | 5 arch/x86/kvm/mmu.h | 2 arch/x86/kvm/svm.c | 7 arch/x86/kvm/vmx.c | 25 -- arch/x86/kvm/x86.c | 17 + drivers/acpi/acpi_apd.c | 4 drivers/acpi/ec.c | 17 - drivers/acpi/internal.h | 1 drivers/acpi/property.c | 2 drivers/acpi/scan.c | 1 drivers/android/binder.c | 19 - drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 drivers/gpu/drm/drm_atomic.c | 11 - drivers/gpu/drm/drm_gem.c | 6 drivers/gpu/drm/drm_plane.c | 1 drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 drivers/gpu/drm/i915/intel_bios.c | 15 - drivers/gpu/drm/sun4i/sun4i_drv.c | 8 drivers/i2c/busses/i2c-designware-platdrv.c | 14 + drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 8 drivers/iio/imu/adis16480.c | 2 drivers/iio/magnetometer/st_magn_core.c | 4 drivers/infiniband/core/uverbs_cmd.c | 2 drivers/input/mouse/alps.c | 41 +++- drivers/input/mouse/alps.h | 8 drivers/input/mouse/elan_i2c_core.c | 1 drivers/input/mouse/trackpoint.c | 3 drivers/input/mouse/trackpoint.h | 3 drivers/iommu/amd_iommu_types.h | 4 drivers/iommu/intel-iommu.c | 4 drivers/iommu/iommu-sysfs.c | 32 ++- drivers/net/bonding/bond_main.c | 13 - drivers/net/ethernet/mellanox/mlx4/main.c | 4 drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 3 drivers/net/tun.c | 3 drivers/ntb/ntb_transport.c | 4 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 drivers/virtio/virtio_pci_common.c | 10 - fs/cifs/dir.c | 18 + fs/cifs/smb2pdu.c | 4 fs/dax.c | 10 + fs/nfsd/nfs4xdr.c | 6 include/asm-generic/vmlinux.lds.h | 38 ++- include/linux/bpf_verifier.h | 1 include/linux/fs.h | 4 include/linux/iommu.h | 12 + include/linux/ptr_ring.h | 9 include/linux/skb_array.h | 3 include/net/bonding.h | 5 include/net/ip.h | 4 include/net/sch_generic.h | 5 kernel/bpf/verifier.c | 191 +++++++++++++++++--- kernel/events/core.c | 39 +--- kernel/fork.c | 1 kernel/time/timer.c | 50 ++++- kernel/trace/bpf_trace.c | 34 +++ kernel/trace/ftrace.c | 4 kernel/trace/ring_buffer.c | 14 - kernel/trace/ring_buffer_benchmark.c | 2 kernel/trace/trace.c | 19 + kernel/trace/trace_events_filter.c | 4 kernel/trace/tracing_map.c | 11 - mm/madvise.c | 2 mm/memblock.c | 2 mm/page_alloc.c | 20 +- mm/shmem.c | 4 net/bluetooth/bnep/core.c | 11 - net/bluetooth/cmtp/core.c | 17 + net/bluetooth/hidp/core.c | 33 ++- net/dccp/proto.c | 19 + net/ipv4/fib_semantics.c | 12 - net/ipv4/igmp.c | 10 - net/ipv4/route.c | 2 net/ipv4/tcp_input.c | 3 net/ipv6/ip6_fib.c | 26 +- net/irda/af_irda.c | 2 net/key/af_key.c | 48 ++--- net/netfilter/nf_conntrack_expect.c | 2 net/netfilter/nf_nat_core.c | 17 - net/netfilter/nfnetlink.c | 6 net/openvswitch/actions.c | 1 net/openvswitch/datapath.c | 7 net/openvswitch/datapath.h | 2 net/sched/act_ipt.c | 2 net/sched/sch_api.c | 3 net/sched/sch_sfq.c | 5 net/sctp/ipv6.c | 2 net/sunrpc/svcsock.c | 22 ++ net/tipc/netlink_compat.c | 6 sound/core/control.c | 2 sound/firewire/iso-resources.c | 7 sound/firewire/motu/motu.c | 1 sound/pci/hda/patch_conexant.c | 1 sound/usb/quirks.c | 9 tools/testing/selftests/ntb/ntb_test.sh | 4 110 files changed, 863 insertions(+), 358 deletions(-)
Aaron Ma (1):
Input: trackpoint - add new trackpoint firmware ID
Alex Deucher (1):
Revert "drm/amdgpu: fix vblank_time when displays are off"
Alexander Potapenko (1):
sctp: fully initialize the IPv6 address in sctp_v6_to_addr()
Alexey Brodkin (2):
ARCv2: SLC: Make sure busy bit is set properly for region ops
ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses
Andreas Born (2):
bonding: require speed/duplex only for 802.3ad, alb and tlb
bonding: ratelimit failed speed/duplex update warning
Benjamin Herrenschmidt (1):
powerpc/mm: Ensure cpumask update is ordered
Bharat Potnuri (1):
RDMA/uverbs: Initialize cq_context appropriately
Charles Milette (1):
staging: rtl8188eu: add RNX-N150NUB support
Chen Yu (1):
PM/hibernate: touch NMI watchdog when creating snapshot
Chris Wilson (1):
drm: Release driver tracking before making the object available again
Christoph Hellwig (1):
virtio_pci: fix cpu affinity support
Chuck Lever (1):
nfsd: Limit end of page list when decoding NFSv4 WRITE
Chunyu Hu (1):
tracing: Fix kmemleak in tracing_map_array_free()
Colin Ian King (2):
nfp: fix infinite loop on umapping cleanup
irda: do not leak initialized list.dev to userspace
Dan Carpenter (1):
tracing: Missing error code in tracer_alloc_buffers()
Daniel Borkmann (2):
bpf: fix bpf_trace_printk on 32 bit archs
bpf: fix mixed signed/unsigned derived min/max value bounds
Dave Jiang (1):
ntb: transport shouldn't disable link due to bogus values in SPADs
Dave Martin (1):
arm64: fpsimd: Prevent registers leaking across exec
David Ahern (1):
net: igmp: Use ingress interface rather than vrf device
Dragos Bogdan (1):
iio: imu: adis16480: Fix acceleration scale factor for adis16480
Edward Cree (1):
bpf/verifier: fix min/max handling in BPF_SUB
Eric Biggers (3):
mm/madvise.c: fix freeing of locked page with MADV_FREE
fork: fix incorrect fput of ->exe_file causing use-after-free x86/mm: Fix use-after-free of ldt_struct
Eric Dumazet (8):
af_key: do not use GFP_KERNEL in atomic contexts
dccp: purge write queue in dccp_destroy_sock()
dccp: defer ccid_hc_tx_delete() at dismantle time
ipv4: fix NULL dereference in free_fib_info_rcu()
ptr_ring: use kmalloc_array()
ipv4: better IP_MAX_MTU enforcement
tun: handle register_netdevice() failures properly
tipc: fix use-after-free
Florian Westphal (2):
netfilter: expect: fix crash when putting uninited expectation
netfilter: nat: fix src map lookup
Greg Kroah-Hartman (1):
Linux 4.12.10
Hanjun Guo (1):
ACPI: APD: Fix HID for Hisilicon Hip07/08
Heiko Carstens (2):
KVM: s390: sthyi: fix sthyi inline assembly
KVM: s390: sthyi: fix specification exception detection
Huy Nguyen (1):
net/mlx4_core: Enable 4K UAR if SRIOV module parameter is not enabled
Jani Nikula (1):
drm/i915/vbt: ignore extraneous child devices for a port
Jeffy Chen (3):
Bluetooth: hidp: fix possible might sleep error in hidp_session_thread
Bluetooth: cmtp: fix possible might sleep error in cmtp_session
Bluetooth: bnep: fix possible might sleep error in bnep_session
Joakim Tjernlund (1):
ALSA: usb-audio: Add delay quirk for H650e/Jabra 550a USB headsets
Joerg Roedel (1):
iommu: Fix wrong freeing of iommu_device->dev
John Fastabend (1):
bpf, verifier: add additional patterns to evaluate_reg_imm_alu
Jonathan Liu (1):
drm/sun4i: Implement drm_driver lastclose to restore fbdev console
KT Liao (1):
Input: elan_i2c - add ELAN0602 ACPI ID to support Lenovo Yoga310
Kirill A. Shutemov (1):
mm, shmem: fix handling /sys/kernel/mm/transparent_hugepage/shmem_enabled
Konstantin Khlebnikov (3):
net_sched/sfq: update hierarchical backlog when drop packet
net_sched: remove warning from qdisc_hash_add
net_sched: fix order of queue length updates in qdisc_replace()
Linus Torvalds (1):
Clarify (and fix) MAX_LFS_FILESIZE macros
Liping Zhang (1):
openvswitch: fix skb_panic due to the incorrect actions attrlen
Logan Gunthorpe (1):
ntb: ntb_test: ensure the link is up before trying to configure the mws
Lorenzo Bianconi (2):
iio: magnetometer: st_magn: fix status register address for LSM303AGR
iio: magnetometer: st_magn: remove ihl property for LSM303AGR
Lv Zheng (1):
ACPI: EC: Fix regression related to wrong ECDT initialization order
Maarten Lankhorst (2):
drm/atomic: Handle -EDEADLK with out-fences correctly drm/atomic: If the atomic check fails, return its value first
Mark Rutland (1):
perf/core: Fix group {cpu,task} validation
Martijn Coenen (1):
ANDROID: binder: fix proc->tsk check.
Masaki Ota (1):
Input: ALPS - fix two-finger scroll breakage in right side on ALPS touchpad
Mateusz Jurczyk (1):
netfilter: nfnetlink: Improve input length sanitization in nfnetlink_rcv
Neal Cardwell (1):
tcp: when rearming RTO, if RTO time is in past then fire RTO ASAP
Nicholas Piggin (2):
kbuild: linker script do not match C names unless LD_DEAD_CODE_DATA_ELIMINATION is configured
timers: Fix excessive granularity of new timers after a nohz idle
Nikhil Mahale (1):
drm: Fix framebuffer leak
Paolo Bonzini (3):
KVM: x86: simplify handling of PKRU
KVM, pkeys: do not use PKRU value in vcpu->arch.guest_fpu.state
KVM: x86: block guest protection keys unless the host has them enabled
Pavel Tatashin (1):
mm/memblock.c: reversed logic in memblock_discard()
Riley Andrews (1):
binder: Use wake up hint for synchronous transactions.
Ronnie Sahlberg (1):
cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup()
Ross Zwisler (1):
dax: fix deadlock due to misaligned PMD faults
Sachin Prabhu (1):
cifs: Fix df output for users with quota limits
Sakari Ailus (1):
ACPI: device property: Fix node lookup in acpi_graph_get_child_prop_value()
Srinivas Pandruvada (1):
iio: hid-sensor-trigger: Fix the race with user space powering up sensors
Steven Rostedt (VMware) (4):
tracing: Call clear_boot_tracer() at lateinit_sync
tracing: Fix freeing of filter in create_filter() when set_str is false
ring-buffer: Have ring_buffer_alloc_read_page() return error on offline CPU
ftrace: Check for null ret_stack on profile function graph entry function
Takashi Iwai (2):
ALSA: core: Fix unexpected error at replacing user TLV
ALSA: hda - Add stereo mic quirk for Lenovo G50-70 (17aa:3978)
Takashi Sakamoto (2):
ALSA: firewire: fix NULL pointer dereference when releasing uninitialized data of iso-resource
ALSA: firewire-motu: destroy stream data surely at failure of card initialization
Todd Kjos (2):
Revert "android: binder: Sanity check at binder ioctl"
binder: use group leader instead of open thread
Tushar Dave (1):
sparc64: remove unnecessary log message
Ulf Hansson (1):
i2c: designware: Fix system suspend
Vadim Lomovtsev (1):
net: sunrpc: svcsock: fix NULL-pointer exception
Vineet Gupta (1):
ARCv2: PAE40: set MSB even if !CONFIG_ARC_HAS_PAE40 but PAE exists in SoC
Wei Wang (2):
ipv6: reset fn->rr_ptr when replacing route
ipv6: repair fib6 tree in failure case
Xin Long (1):
net: sched: fix NULL pointer dereference when action calls some targets
fred gao (1):
drm/i915/gvt: Fix the kernel null pointer error
Greg KH
maintainerMakefile +4 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 12 -SUBLEVEL = 0 +SUBLEVEL = 10 EXTRAVERSION = NAME = Fearless Coyote
@@ -631,6 +631,9 @@ include arch/$(SRCARCH)/Makefile KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) +KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) +KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) +KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += $(call cc-option,-Oz,-Os)
arch/arc/include/asm/cache.h +2 -0
@@ -96,7 +96,9 @@ extern unsigned long perip_base, perip_end;#define ARC_REG_SLC_FLUSH 0x904#define ARC_REG_SLC_INVALIDATE 0x905#define ARC_REG_SLC_RGN_START 0x914 +#define ARC_REG_SLC_RGN_START1 0x915#define ARC_REG_SLC_RGN_END 0x916 +#define ARC_REG_SLC_RGN_END1 0x917/* Bit val in SLC_CONTROL */ #define SLC_CTRL_DIS 0x001
arch/arc/include/asm/mmu.h +2 -0
@@ -94,6 +94,8 @@ static inline int is_pae40_enabled(void)return IS_ENABLED (CONFIG_ARC_HAS_PAE40 ); } +extern int pae40_exist_but_not_enab (void ); +#endif /* !__ASSEMBLY__ */ #endif
arch/arc/mm/cache.c +42 -8
74 lines not on this page · raw message
arch/arc/mm/tlb.c +11 -1
@@ -104,6 +104,8 @@/* A copy of the ASID from the PID reg is kept in asid_cache */ DEFINE_PER_CPU(unsigned int, asid_cache) = MM_CTXT_FIRST_CYCLE; +static int __read_mostly pae_exists; +/* * Utility Routine to erase a J-TLB entry * Caller needs to setup Index Reg (manually or via getIndex)
@@ -784,7 +786,7 @@ void read_decode_mmu_bcr(void) mmu->u_dtlb = mmu4->u_dtlb *4 ; mmu->u_itlb = mmu4->u_itlb *4 ; mmu->sasid = mmu4->sasid; - mmu->pae = mmu4->pae; + pae_exists = mmu->pae = mmu4->pae; } }
@@ -809,6 +811,11 @@ char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len)return buf; } +int pae40_exist_but_not_enab (void ) +{ +return pae_exists && !is_pae40_enabled (); +} +void arc_mmu_init (void ) {char str[256 ];
@@ -859,6 +866,9 @@ void arc_mmu_init(void)/* swapper_pg_dir is the pgd for the kernel, used by vmalloc */ write_aux_reg (ARC_REG_SCRATCH_DATA0 , swapper_pg_dir);#endif + +if (pae40_exist_but_not_enab ()) +write_aux_reg (ARC_REG_TLBPD1HI ,0 ); }/*
arch/arm/boot/dts/armada-388-gp.dts +2 -2
@@ -75,7 +75,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pca0_pins>; interrupt-parent = <&gpio0>; - interrupts = <18 IRQ_TYPE_EDGE_FALLING>; + interrupts = <18 IRQ_TYPE_LEVEL_LOW>; gpio-controller; #gpio-cells = <2>; interrupt-controller;
@@ -87,7 +87,7 @@ compatible = "nxp,pca9555"; pinctrl-names = "default"; interrupt-parent = <&gpio0>; - interrupts = <18 IRQ_TYPE_EDGE_FALLING>; + interrupts = <18 IRQ_TYPE_LEVEL_LOW>; gpio-controller; #gpio-cells = <2>; interrupt-controller;
arch/arm/boot/dts/imx6qdl-nitrogen6_som2.dtsi +2 -2
@@ -507,7 +507,7 @@ pinctrl_pcie: pciegrp { fsl,pins = < /* PCIe reset */ - MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x030b0 + MX6QDL_PAD_EIM_DA0__GPIO3_IO00 0x030b0 MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x030b0 >; };
@@ -668,7 +668,7 @@ &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pcie>; - reset-gpio = <&gpio6 31 GPIO_ACTIVE_LOW>; + reset-gpio = <&gpio3 0 GPIO_ACTIVE_LOW>; status = "okay"; };
arch/arm/boot/dts/tango4-vantage-1172.dts +1 -1
@@ -22,7 +22,7 @@ }; ð0 { - phy-connection-type = "rgmii"; + phy-connection-type = "rgmii-id"; phy-handle = <ð0_phy>; #address-cells = <1>; #size-cells = <0>;
arch/arm/include/asm/bug.h +1 -1
@@ -37,7 +37,7 @@ do { \".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \ "2:\t.asciz " #__file "\n" \".popsection\n" \ -".pushsection __bug_table,\"a\"\n" \ +".pushsection __bug_table,\"aw\"\n" \".align 2\n" \"3:\t.word 1b, 2b\n" \ "\t.hword " #__line ", 0\n" \
arch/arm/include/asm/elf.h +2 -6
@@ -112,12 +112,8 @@ int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);#define CORE_DUMP_USE_REGSET #define ELF_EXEC_PAGESIZE 4096 -/* This is the location that an ET_DYN program is loaded if exec'ed. Typical -use of this is to invoke "./ld.so someprog" to test out a new version of -the loader. We need to make sure that it is out of the way of the program -that it will "exec", and that there is sufficient room for the brk. */ - -#define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2) +/* This is the base location for PIE (ET_DYN with INTERP) loads. */ +#define ELF_ET_DYN_BASE 0x400000UL/* When the program starts, a1 contains a pointer to a function to be registered with atexit, as per the SVR4 ABI. A value of 0 means we
arch/arm/mach-mvebu/platsmp.c +1 -1
@@ -211,7 +211,7 @@ static int mv98dx3236_resume_set_cpu_boot_addr(int hw_cpu, void *boot_addr)return PTR_ERR (base);writel (0 , base +MV98DX3236_CPU_RESUME_CTRL_REG ); -writel (virt_to_phys (boot_addr), base +MV98DX3236_CPU_RESUME_ADDR_REG ); +writel (__pa_symbol (boot_addr), base +MV98DX3236_CPU_RESUME_ADDR_REG );iounmap (base);
arch/arm64/boot/dts/marvell/armada-37xx.dtsi +5 -9
@@ -75,14 +75,10 @@ timer { compatible = "arm,armv8-timer"; - interrupts = <GIC_PPI 13 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>, - <GIC_PPI 14 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>, - <GIC_PPI 11 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>, - <GIC_PPI 10 - (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; }; soc {
@@ -223,7 +219,7 @@ reg = <0x18800 0x100>, <0x18C00 0x20>; gpiosb: gpio { #gpio-cells = <2>; - gpio-ranges = <&pinctrl_sb 0 0 29>; + gpio-ranges = <&pinctrl_sb 0 0 30>; gpio-controller; interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/include/asm/bug.h +1 -1
@@ -36,7 +36,7 @@#ifdef CONFIG_GENERIC_BUG #define __BUG_ENTRY (flags) \ - ".pushsection __bug_table,\"a\"\n\t" \ + ".pushsection __bug_table,\"aw\"\n\t" \ ".align 2\n\t" \ "0: .long 1f - 0b\n\t" \ _BUGVERBOSE_LOCATION(__FILE__, __LINE__) \
arch/arm64/include/asm/elf.h +12 -6
@@ -113,12 +113,11 @@#define ELF_EXEC_PAGESIZE PAGE_SIZE/* -* This is the location that an ET_DYN program is loaded if exec'ed. Typical -* use of this is to invoke "./ld.so someprog" to test out a new version of -* the loader. We need to make sure that it is out of the way of the program -* that it will "exec", and that there is sufficient room for the brk. +* This is the base location for PIE (ET_DYN with INTERP) loads. On +* 64-bit, this is above 4GB to leave the entire 32-bit address +* space open for things that want to use the area for 32-bit pointers. */ -#define ELF_ET_DYN_BASE (2 * TASK_SIZE_64 / 3) +#define ELF_ET_DYN_BASE (2 * TASK_SIZE_64 / 3)#ifndef __ASSEMBLY__
@@ -142,6 +141,7 @@ typedef struct user_fpsimd_state elf_fpregset_t; ({ \clear_bit (TIF_32BIT , ¤t->mm->context.flags); \clear_thread_flag (TIF_32BIT ); \ + current->personality &= ~READ_IMPLIES_EXEC ; \ })/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
@@ -173,7 +173,8 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,#ifdef CONFIG_COMPAT -#define COMPAT_ELF_ET_DYN_BASE (2 * TASK_SIZE_32 / 3) +/* PIE load location for compat arm. Must match ARM ELF_ET_DYN_BASE. */ +#define COMPAT_ELF_ET_DYN_BASE 0x000400000UL/* AArch32 registers. */ #define COMPAT_ELF_NGREG 18
@@ -187,6 +188,11 @@ typedef compat_elf_greg_t compat_elf_gregset_t[COMPAT_ELF_NGREG]; ((x)->e_flags & EF_ARM_EABI_MASK))#define compat_start_thread compat_start_thread +/* +* Unlike the native SET_PERSONALITY macro, the compat version inherits +* READ_IMPLIES_EXEC across a fork() since this is the behaviour on +* arch/arm/. +*/ #define COMPAT_SET_PERSONALITY (ex) \ ({ \ set_bit(TIF_32BIT, ¤t->mm->context.flags); \
arch/arm64/kernel/fpsimd.c +2 -0
@@ -161,9 +161,11 @@ void fpsimd_flush_thread(void) {if (!system_supports_fpsimd ())return ; +preempt_disable ();memset (¤t->thread.fpsimd_state,0 ,sizeof (struct fpsimd_state ));fpsimd_flush_task_state (current);set_thread_flag (TIF_FOREIGN_FPSTATE ); +preempt_enable (); }/*
arch/blackfin/include/asm/bug.h +2 -2
@@ -21,7 +21,7 @@#define _BUG_OR_WARN (flags) \ asm volatile( \ "1: .hword %0\n" \ - " .section __bug_table,\"a\",@progbits\n" \ + " .section __bug_table,\"aw\",@progbits\n" \ "2: .long 1b\n" \ " .long %1\n" \ " .short %2\n" \
@@ -38,7 +38,7 @@#define _BUG_OR_WARN (flags) \ asm volatile( \ "1: .hword %0\n" \ - " .section __bug_table,\"a\",@progbits\n" \ + " .section __bug_table,\"aw\",@progbits\n" \ "2: .long 1b\n" \ " .short %1\n" \ " .org 2b + %2\n" \
arch/mips/dec/int-handler.S +6 -28
@@ -147,23 +147,12 @@ * Find irq with highest priority */ # open coded PTR_LA t1, cpu_mask_nr_tbl -#if (_MIPS_SZPTR == 32) +#if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) # open coded la t1, cpu_mask_nr_tbl lui t1, %hi(cpu_mask_nr_tbl) addiu t1, %lo(cpu_mask_nr_tbl) - -#endif -#if (_MIPS_SZPTR == 64) - # open coded dla t1, cpu_mask_nr_tbl - .set push - .set noat - lui t1, %highest(cpu_mask_nr_tbl) - lui AT, %hi(cpu_mask_nr_tbl) - daddiu t1, t1, %higher(cpu_mask_nr_tbl) - daddiu AT, AT, %lo(cpu_mask_nr_tbl) - dsll t1, 32 - daddu t1, t1, AT - .set pop +#else +#error GCC `-msym32' option required for 64-bit DECstation builds #endif 1: lw t2,(t1) nop
@@ -214,23 +203,12 @@ * Find irq with highest priority */ # open coded PTR_LA t1,asic_mask_nr_tbl -#if (_MIPS_SZPTR == 32) +#if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) # open coded la t1, asic_mask_nr_tbl lui t1, %hi(asic_mask_nr_tbl) addiu t1, %lo(asic_mask_nr_tbl) - -#endif -#if (_MIPS_SZPTR == 64) - # open coded dla t1, asic_mask_nr_tbl - .set push - .set noat - lui t1, %highest(asic_mask_nr_tbl) - lui AT, %hi(asic_mask_nr_tbl) - daddiu t1, t1, %higher(asic_mask_nr_tbl) - daddiu AT, AT, %lo(asic_mask_nr_tbl) - dsll t1, 32 - daddu t1, t1, AT - .set pop +#else +#error GCC `-msym32' option required for 64-bit DECstation builds #endif 2: lw t2,(t1) nop
arch/mips/include/asm/branch.h +1 -4
@@ -74,10 +74,7 @@ static inline int compute_return_epc(struct pt_regs *regs)return __microMIPS_compute_return_epc (regs);if (cpu_has_mips16)return __MIPS16e_compute_return_epc (regs); -return regs->cp0_epc; - } - -if (!delay_slot (regs)) { + }else if (!delay_slot (regs)) { regs->cp0_epc +=4 ;return 0 ; }
arch/mips/include/asm/cache.h +2 -0
@@ -9,6 +9,8 @@#ifndef _ASM_CACHE_H#define _ASM_CACHE_H +#include <kmalloc.h> +#define L1_CACHE_SHIFT CONFIG_MIPS_L1_CACHE_SHIFT#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
arch/mips/include/asm/mach-ralink/ralink_regs.h +2 -0
@@ -13,6 +13,8 @@#ifndef _RALINK_REGS_H_#define _RALINK_REGS_H_ +#include <linux/io.h> +enum ralink_soc_type {RALINK_UNKNOWN =0 , RT2880_SOC,
arch/mips/include/asm/octeon/cvmx-l2c-defs.h +36 -1
@@ -33,6 +33,10 @@#define CVMX_L2C_DBG (CVMX_ADD_IO_SEG(0x0001180080000030ull))#define CVMX_L2C_CFG (CVMX_ADD_IO_SEG(0x0001180080000000ull))#define CVMX_L2C_CTL (CVMX_ADD_IO_SEG(0x0001180080800000ull)) +#define CVMX_L2C_ERR_TDTX (block_id) \ + (CVMX_ADD_IO_SEG(0x0001180080A007E0ull) + ((block_id) & 3) * 0x40000ull) +#define CVMX_L2C_ERR_TTGX (block_id) \ + (CVMX_ADD_IO_SEG(0x0001180080A007E8ull) + ((block_id) & 3) * 0x40000ull)#define CVMX_L2C_LCKBASE (CVMX_ADD_IO_SEG(0x0001180080000058ull))#define CVMX_L2C_LCKOFF (CVMX_ADD_IO_SEG(0x0001180080000060ull))#define CVMX_L2C_PFCTL (CVMX_ADD_IO_SEG(0x0001180080000090ull))
@@ -66,9 +70,40 @@ ((offset) & 1) * 8)#define CVMX_L2C_WPAR_PPX (offset) (CVMX_ADD_IO_SEG(0x0001180080840000ull) + \ ((offset) & 31) * 8) -#define CVMX_L2D_FUS3 (CVMX_ADD_IO_SEG(0x00011800800007B8ull)) +union cvmx_l2c_err_tdtx { + uint64_t u64; + struct cvmx_l2c_err_tdtx_s { + __BITFIELD_FIELD(uint64_t dbe:1, + __BITFIELD_FIELD(uint64_t sbe:1, + __BITFIELD_FIELD(uint64_t vdbe:1, + __BITFIELD_FIELD(uint64_t vsbe:1, + __BITFIELD_FIELD(uint64_t syn:10, + __BITFIELD_FIELD(uint64_t reserved_22_49:28, + __BITFIELD_FIELD(uint64_t wayidx:18, + __BITFIELD_FIELD(uint64_t reserved_2_3:2, + __BITFIELD_FIELD(uint64_t type:2, + ;))))))))) + } s; +}; + +union cvmx_l2c_err_ttgx { + uint64_t u64; + struct cvmx_l2c_err_ttgx_s { + __BITFIELD_FIELD(uint64_t dbe:1, + __BITFIELD_FIELD(uint64_t sbe:1, + __BITFIELD_FIELD(uint64_t noway:1, + __BITFIELD_FIELD(uint64_t reserved_56_60:5, + __BITFIELD_FIELD(uint64_t syn:6, + __BITFIELD_FIELD(uint64_t reserved_22_49:28, + __BITFIELD_FIELD(uint64_t wayidx:15, + __BITFIELD_FIELD(uint64_t reserved_2_6:5, + __BITFIELD_FIELD(uint64_t type:2, + ;))))))))) + } s; +}; + union cvmx_l2c_cfg { uint64_t u64; struct cvmx_l2c_cfg_s {
arch/mips/include/asm/octeon/cvmx-l2d-defs.h new file +60 -0
60 lines not on this page · raw message
arch/mips/include/asm/octeon/cvmx.h +1 -0
@@ -62,6 +62,7 @@ enum cvmx_mips_space {#include <asm/octeon/cvmx-iob-defs.h> #include <asm/octeon/cvmx-ipd-defs.h> #include <asm/octeon/cvmx-l2c-defs.h> +#include <asm/octeon/cvmx-l2d-defs.h> #include <asm/octeon/cvmx-l2t-defs.h> #include <asm/octeon/cvmx-led-defs.h> #include <asm/octeon/cvmx-mio-defs.h>
arch/mips/kernel/branch.c +32 -39
170 lines not on this page · raw message
arch/mips/kernel/proc.c +1 -1
@@ -83,7 +83,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) }seq_printf (m,"isa\t\t\t:" ); -if (cpu_has_mips_r1) +if (cpu_has_mips_1)seq_printf (m," mips1" );if (cpu_has_mips_2)seq_printf (m,"%s" ," mips2" );
arch/mips/kernel/ptrace.c +1 -1
@@ -895,7 +895,7 @@ asmlinkage void syscall_trace_leave(struct pt_regs *regs)audit_syscall_exit (regs);if (unlikely (test_thread_flag (TIF_SYSCALL_TRACEPOINT ))) -trace_sys_exit (regs, regs->regs[2 ]); +trace_sys_exit (regs,regs_return_value (regs));if (test_thread_flag (TIF_SYSCALL_TRACE ))tracehook_report_syscall_exit (regs,0 );
arch/mips/kernel/scall32-o32.S +1 -1
@@ -371,7 +371,7 @@ EXPORT(sys_call_table) PTR sys_writev PTR sys_cacheflush PTR sys_cachectl - PTR sys_sysmips + PTR __sys_sysmips PTR sys_ni_syscall /* 4150 */ PTR sys_getsid PTR sys_fdatasync
arch/mips/kernel/scall64-64.S +1 -1
@@ -311,7 +311,7 @@ EXPORT(sys_call_table) PTR sys_sched_getaffinity PTR sys_cacheflush PTR sys_cachectl - PTR sys_sysmips + PTR __sys_sysmips PTR sys_io_setup /* 5200 */ PTR sys_io_destroy PTR sys_io_getevents
arch/mips/kernel/scall64-n32.S +1 -1
@@ -302,7 +302,7 @@ EXPORT(sysn32_call_table) PTR compat_sys_sched_getaffinity PTR sys_cacheflush PTR sys_cachectl - PTR sys_sysmips + PTR __sys_sysmips PTR compat_sys_io_setup /* 6200 */ PTR sys_io_destroy PTR compat_sys_io_getevents
arch/mips/kernel/scall64-o32.S +1 -1
@@ -371,7 +371,7 @@ EXPORT(sys32_call_table) PTR compat_sys_writev PTR sys_cacheflush PTR sys_cachectl - PTR sys_sysmips + PTR __sys_sysmips PTR sys_ni_syscall /* 4150 */ PTR sys_getsid PTR sys_fdatasync
arch/mips/kernel/syscall.c +12 -3
@@ -29,6 +29,7 @@#include <linux/sched/task_stack.h> #include <asm/asm.h> +#include <asm/asm-eva.h> #include <asm/branch.h> #include <asm/cachectl.h> #include <asm/cacheflush.h>
@@ -131,10 +132,12 @@ static inline int mips_atomic_set(unsigned long addr, unsigned long new) __asm__ __volatile__ (" .set " MIPS_ISA_ARCH_LEVEL " \n" " li %[err], 0 \n" -"1: ll %[old], (%[addr]) \n" +"1: \n" + user_ll("%[old]", "(%[addr])")" move %[tmp], %[new] \n" -"2: sc %[tmp], (%[addr]) \n" -" bnez %[tmp], 4f \n" +"2: \n" + user_sc("%[tmp]", "(%[addr])") +" beqz %[tmp], 4f \n" "3: \n" " .insn \n" " .subsection 2 \n"
@@ -192,6 +195,12 @@ static inline int mips_atomic_set(unsigned long addr, unsigned long new)unreachable (); } +/* +* mips_atomic_set() normally returns directly via syscall_exit potentially +* clobbering static registers, so be sure to preserve them. +*/ +save_static_function (sys_sysmips); + SYSCALL_DEFINE3(sysmips, long, cmd, long, arg1, long, arg2) {switch (cmd) {
arch/mips/math-emu/cp1emu.c +38 -0
@@ -2524,6 +2524,35 @@ static int fpu_emu(struct pt_regs *xcp, struct mips_fpu_struct *ctx,return 0 ; } +/* +* Emulate FPU instructions. +* +* If we use FPU hardware, then we have been typically called to handle +* an unimplemented operation, such as where an operand is a NaN or +* denormalized. In that case exit the emulation loop after a single +* iteration so as to let hardware execute any subsequent instructions. +* +* If we have no FPU hardware or it has been disabled, then continue +* emulating floating-point instructions until one of these conditions +* has occurred: +* +* - a non-FPU instruction has been encountered, +* +* - an attempt to emulate has ended with a signal, +* +* - the ISA mode has been switched. +* +* We need to terminate the emulation loop if we got switched to the +* MIPS16 mode, whether supported or not, so that we do not attempt +* to emulate a MIPS16 instruction as a regular MIPS FPU instruction. +* Similarly if we got switched to the microMIPS mode and only the +* regular MIPS mode is supported, so that we do not attempt to emulate +* a microMIPS instruction as a regular MIPS FPU instruction. Or if +* we got switched to the regular MIPS mode and only the microMIPS mode +* is supported, so that we do not attempt to emulate a regular MIPS +* instruction that should cause an Address Error exception instead. +* For simplicity we always terminate upon an ISA mode switch. +*/ int fpu_emulator_cop1Handler (struct pt_regs *xcp,struct mips_fpu_struct *ctx,int has_fpu,void *__user *fault_addr) {
@@ -2609,6 +2638,15 @@ int fpu_emulator_cop1Handler(struct pt_regs *xcp, struct mips_fpu_struct *ctx,break ;if (sig)break ; +/* +* We have to check for the ISA bit explicitly here, +* because `get_isa16_mode' may return 0 if support +* for code compression has been globally disabled, +* or otherwise we may produce the wrong signal or +* even proceed successfully where we must not. +*/ +if ((xcp->cp0_epc ^ prevepc) &0x1 ) +break ;cond_resched (); }while (xcp->cp0_epc > prevepc);
arch/mn10300/include/asm/bug.h +1 -1
@@ -21,7 +21,7 @@ do { \ asmvolatile ( \" syscall 15 \n" \"0: \n" \ -" .section __bug_table,\"a\" \n" \ +" .section __bug_table,\"aw\" \n" \" .long 0b,%0,%1 \n" \" .previous \n" \ : \
arch/parisc/include/asm/bug.h +3 -3
@@ -27,7 +27,7 @@ do { \ asm volatile("\n" \ "1:\t" PARISC_BUG_BREAK_ASM "\n" \ - "\t.pushsection __bug_table,\"a\"\n" \ + "\t.pushsection __bug_table,\"aw\"\n" \ "2:\t" ASM_WORD_INSN "1b, %c0\n" \ "\t.short %c1, %c2\n" \ "\t.org 2b+%c3\n" \
@@ -50,7 +50,7 @@ do { \ asm volatile("\n" \ "1:\t" PARISC_BUG_BREAK_ASM "\n" \ - "\t.pushsection __bug_table,\"a\"\n" \ + "\t.pushsection __bug_table,\"aw\"\n" \ "2:\t" ASM_WORD_INSN "1b, %c0\n" \ "\t.short %c1, %c2\n" \ "\t.org 2b+%c3\n" \
@@ -64,7 +64,7 @@ do { \ asm volatile("\n" \ "1:\t" PARISC_BUG_BREAK_ASM "\n" \ - "\t.pushsection __bug_table,\"a\"\n" \ + "\t.pushsection __bug_table,\"aw\"\n" \ "2:\t" ASM_WORD_INSN "1b\n" \ "\t.short %c0\n" \ "\t.org 2b+%c1\n" \
arch/parisc/include/asm/dma-mapping.h +7 -4
@@ -20,6 +20,8 @@** flush/purge and allocate "regular" cacheable pages for everything. */ +#define DMA_ERROR_CODE (~(dma_addr_t)0) +#ifdef CONFIG_PA11 extern const struct dma_map_ops pcxl_dma_ops;extern const struct dma_map_ops pcx_dma_ops;
@@ -54,12 +56,13 @@ parisc_walk_tree(struct device *dev)break ; } } -BUG_ON (!dev->platform_data);return dev->platform_data; } - -#define GET_IOC (dev) (HBA_DATA(parisc_walk_tree(dev))->iommu) - + +#define GET_IOC (dev) ({ \ + void *__pdata = parisc_walk_tree(dev); \ + __pdata ? HBA_DATA(__pdata)->iommu : NULL; \ +})#ifdef CONFIG_IOMMU_CCIO struct parisc_device ;
arch/parisc/include/asm/mmu_context.h +13 -2
@@ -49,15 +49,26 @@ static inline void load_context(mm_context_t context)mtctl (__space_to_prot (context),8 ); } -static inline void switch_mm (struct mm_struct *prev,struct mm_struct *next,struct task_struct *tsk) +static inline void switch_mm_irqs_off (struct mm_struct *prev, +struct mm_struct *next,struct task_struct *tsk) { -if (prev != next) {mtctl (__pa (next->pgd),25 );load_context (next->context); } } +static inline void switch_mm (struct mm_struct *prev, +struct mm_struct *next,struct task_struct *tsk) +{ +unsigned long flags; + +local_irq_save (flags); +switch_mm_irqs_off (prev, next, tsk); +local_irq_restore (flags); +} +#define switch_mm_irqs_off switch_mm_irqs_off +#define deactivate_mm (tsk,mm) do { } while (0)static inline void activate_mm (struct mm_struct *prev,struct mm_struct *next)
arch/parisc/include/asm/thread_info.h +1 -1
@@ -34,7 +34,7 @@ struct thread_info {/* thread information allocation */ -#define THREAD_SIZE_ORDER 2/* PA-RISC requires at least 16k stack */ +#define THREAD_SIZE_ORDER 3/* PA-RISC requires at least 32k stack */ /* Be sure to hunt all references to this down when you change the size of * the kernel stack */ #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
arch/parisc/kernel/cache.c +16 -23
@@ -453,8 +453,8 @@ void copy_user_page(void *vto, void *vfrom, unsigned long vaddr,before it can be accessed through the kernel mapping. */ preempt_disable ();flush_dcache_page_asm (__pa (vfrom), vaddr); -preempt_enable ();copy_page_asm (vto, vfrom); +preempt_enable (); }EXPORT_SYMBOL (copy_user_page);
@@ -539,6 +539,10 @@ void flush_cache_mm(struct mm_struct *mm)struct vm_area_struct *vma;pgd_t *pgd; +/* Flush the TLB to avoid speculation if coherency is required. */ +if (parisc_requires_coherency ()) +flush_tlb_all (); +/* Flushing the whole cache on each cpu takes forever on rp3440, etc. So, avoid it if the mm isn't too big. */ if (mm_total_size (mm) >= parisc_cache_flush_threshold) {
@@ -577,33 +581,21 @@ void flush_cache_mm(struct mm_struct *mm)void flush_cache_range (struct vm_area_struct *vma,unsigned long start,unsigned long end) { -unsigned long addr; -pgd_t *pgd; -BUG_ON (!vma->vm_mm->context); -if ((end - start) >= parisc_cache_flush_threshold) { -flush_cache_all (); -return ; - } +/* Flush the TLB to avoid speculation if coherency is required. */ +if (parisc_requires_coherency ()) +flush_tlb_range (vma, start, end); -if (vma->vm_mm->context ==mfsp (3 )) { -flush_user_dcache_range_asm (start, end); -if (vma->vm_flags &VM_EXEC ) -flush_user_icache_range_asm (start, end); +if ((end - start) >= parisc_cache_flush_threshold + || vma->vm_mm->context !=mfsp (3 )) { +flush_cache_all ();return ; } - pgd = vma->vm_mm->pgd; -for (addr = start &PAGE_MASK ; addr < end; addr +=PAGE_SIZE ) { -unsigned long pfn; -pte_t *ptep =get_ptep (pgd, addr); -if (!ptep) -continue ; - pfn =pte_pfn (*ptep); -if (pfn_valid (pfn)) -__flush_cache_page (vma, addr,PFN_PHYS (pfn)); - } +flush_user_dcache_range_asm (start, end); +if (vma->vm_flags &VM_EXEC ) +flush_user_icache_range_asm (start, end); }void
@@ -612,7 +604,8 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned longBUG_ON (!vma->vm_mm->context);if (pfn_valid (pfn)) { -flush_tlb_page (vma, vmaddr); +if (parisc_requires_coherency ()) +flush_tlb_page (vma, vmaddr);__flush_cache_page (vma, vmaddr,PFN_PHYS (pfn)); } }
arch/parisc/kernel/irq.c +1 -1
@@ -380,7 +380,7 @@ static inline int eirr_to_irq(unsigned long eirr)/* * IRQ STACK - used for irq handler */ -#define IRQ_STACK_SIZE (4096 << 2)/* 16k irq stack size */ +#define IRQ_STACK_SIZE (4096 << 3)/* 32k irq stack size */ union irq_stack_union {unsigned long stack[IRQ_STACK_SIZE /sizeof (unsigned long )];
arch/parisc/kernel/process.c +2 -0
@@ -53,6 +53,7 @@#include <linux/uaccess.h> #include <linux/rcupdate.h> #include <linux/random.h> +#include <linux/nmi.h> #include <asm/io.h> #include <asm/asm-offsets.h>
@@ -145,6 +146,7 @@ void machine_power_off(void)/* prevent soft lockup/stalled CPU messages for endless loop. */ rcu_sysrq_start (); +lockup_detector_suspend ();for (;;); }
arch/parisc/kernel/syscall_table.S +1 -1
@@ -361,7 +361,7 @@ ENTRY_SAME(ni_syscall) /* 263: reserved for vserver */ ENTRY_SAME(add_key) ENTRY_SAME(request_key) /* 265 */ - ENTRY_SAME(keyctl) + ENTRY_COMP(keyctl) ENTRY_SAME(ioprio_set) ENTRY_SAME(ioprio_get) ENTRY_SAME(inotify_init)
arch/parisc/mm/fault.c +1 -1
@@ -367,7 +367,7 @@ void do_page_fault(struct pt_regs *regs, unsigned long code,case 15 :/* Data TLB miss fault/Data page fault */ /* send SIGSEGV when outside of vma */ if (!vma || - address < vma->vm_start || address > vma->vm_end) { + address < vma->vm_start || address >= vma->vm_end) { si.si_signo =SIGSEGV ; si.si_code =SEGV_MAPERR ;break ;
arch/powerpc/include/asm/atomic.h +2 -2
@@ -560,7 +560,7 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)* Atomically increments @v by 1, so long as @v is non-zero. * Returns non-zero if @v was non-zero, and zero otherwise. */ -static __inline__long atomic64_inc_not_zero (atomic64_t *v) +static __inline__int atomic64_inc_not_zero (atomic64_t *v) {long t1, t2;
@@ -579,7 +579,7 @@ static __inline__ long atomic64_inc_not_zero(atomic64_t *v) : "r" (&v->counter) : "cc", "xer", "memory"); - return t1; + return t1 != 0; }#endif /* __powerpc64__ */
arch/powerpc/include/asm/bug.h +4 -4
@@ -18,7 +18,7 @@#include <asm/asm-offsets.h> #ifdef CONFIG_DEBUG_BUGVERBOSE .macro EMIT_BUG_ENTRY addr,file,line,flags - .section __bug_table,"a" + .section __bug_table,"aw" 5001: PPC_LONG \addr, 5002f .short \line, \flags .org 5001b+BUG_ENTRY_SIZE
@@ -29,7 +29,7 @@ .endm #else .macro EMIT_BUG_ENTRY addr,file,line,flags - .section __bug_table,"a" + .section __bug_table,"aw" 5001: PPC_LONG \addr .short \flags .org 5001b+BUG_ENTRY_SIZE
@@ -42,14 +42,14 @@sizeof(struct bug_entry), respectively */ #ifdef CONFIG_DEBUG_BUGVERBOSE #define _EMIT_BUG_ENTRY \ - ".section __bug_table,\"a\"\n" \ + ".section __bug_table,\"aw\"\n" \ "2:\t" PPC_LONG "1b, %0\n" \ "\t.short %1, %2\n" \ ".org 2b+%3\n" \ ".previous\n"#else #define _EMIT_BUG_ENTRY \ - ".section __bug_table,\"a\"\n" \ + ".section __bug_table,\"aw\"\n" \ "2:\t" PPC_LONG "1b\n" \ "\t.short %2\n" \ ".org 2b+%3\n" \
arch/powerpc/include/asm/elf.h +7 -6
@@ -23,12 +23,13 @@#define CORE_DUMP_USE_REGSET #define ELF_EXEC_PAGESIZE PAGE_SIZE -/* This is the location that an ET_DYN program is loaded if exec'ed. Typical -use of this is to invoke "./ld.so someprog" to test out a new version of -the loader. We need to make sure that it is out of the way of the program -that it will "exec", and that there is sufficient room for the brk. */ - -#define ELF_ET_DYN_BASE 0x20000000 +/* +* This is the base location for PIE (ET_DYN with INTERP) loads. On +* 64-bit, this is raised to 4GB to leave the entire 32-bit address +* space open for things that want to use the area for 32-bit pointers. +*/ +#define ELF_ET_DYN_BASE (is_32bit_task() ? 0x000400000UL : \ + 0x100000000UL)#define ELF_CORE_EFLAGS (is_elf2_task() ? 2 : 0)
arch/powerpc/include/asm/mmu_context.h +19 -1
@@ -80,9 +80,27 @@ static inline void switch_mm_irqs_off(struct mm_struct *prev, struct task_struct *tsk) {/* Mark this context has been used on the new CPU */ -if (!cpumask_test_cpu (smp_processor_id (),mm_cpumask (next))) +if (!cpumask_test_cpu (smp_processor_id (),mm_cpumask (next))) {cpumask_set_cpu (smp_processor_id (),mm_cpumask (next)); +/* +* This full barrier orders the store to the cpumask above vs +* a subsequent operation which allows this CPU to begin loading +* translations for next. +* +* When using the radix MMU that operation is the load of the +* MMU context id, which is then moved to SPRN_PID. +* +* For the hash MMU it is either the first load from slb_cache +* in switch_slb(), and/or the store of paca->mm_ctx_id in +* copy_mm_to_paca(). +* +* On the read side the barrier is in pte_xchg(), which orders +* the store to the PTE vs the load of mm_cpumask. +*/ +smp_mb (); + } +/* 32-bit keeps track of the current PGDIR in the thread struct */ #ifdef CONFIG_PPC32 tsk->thread.pgdir = next->pgd;
arch/powerpc/include/asm/pgtable-be-types.h +1 -0
@@ -87,6 +87,7 @@ static inline bool pte_xchg(pte_t *ptep, pte_t old, pte_t new)unsigned long *p = (unsigned long *)ptep;__be64 prev; +/* See comment in switch_mm_irqs_off() */ prev = (__force __be64 )__cmpxchg_u64 (p, (__force unsigned long )pte_raw (old), (__force unsigned long )pte_raw (new));
arch/powerpc/include/asm/pgtable-types.h +1 -0
@@ -62,6 +62,7 @@ static inline bool pte_xchg(pte_t *ptep, pte_t old, pte_t new) {unsigned long *p = (unsigned long *)ptep; +/* See comment in switch_mm_irqs_off() */ return pte_val (old) ==__cmpxchg_u64 (p,pte_val (old),pte_val (new)); }#endif
arch/powerpc/include/asm/reg.h +1 -1
@@ -1303,7 +1303,7 @@ static inline void msr_check_and_clear(unsigned long bits) " .llong 0\n" \ ".previous" \ : "=r" (rval) \ - : "i" (CPU_FTR_CELL_TB_BUG), "i" (SPRN_TBRL)); \ + : "i" (CPU_FTR_CELL_TB_BUG), "i" (SPRN_TBRL) : "cr0"); \ rval;}) #else #define mftb() ({unsigned long rval; \
arch/powerpc/kernel/irq.c +14 -1
@@ -145,6 +145,19 @@ notrace unsigned int __check_irq_replay(void)/* Clear bit 0 which we wouldn't clear otherwise */ local_paca->irq_happened &= ~PACA_IRQ_HARD_DIS ; +if (happened &PACA_IRQ_HARD_DIS ) { +/* +* We may have missed a decrementer interrupt if hard disabled. +* Check the decrementer register in case we had a rollover +* while hard disabled. +*/ +if (!(happened &PACA_IRQ_DEC )) { +if (decrementer_check_overflow ()) { + local_paca->irq_happened |=PACA_IRQ_DEC ; + happened |=PACA_IRQ_DEC ; + } + } + }/* * Force the delivery of pending soft-disabled interrupts on PS3.
@@ -170,7 +183,7 @@ notrace unsigned int __check_irq_replay(void)* in case we also had a rollover while hard disabled */ local_paca->irq_happened &= ~PACA_IRQ_DEC ; -if ((happened &PACA_IRQ_DEC ) ||decrementer_check_overflow ()) +if (happened &PACA_IRQ_DEC )return 0x900 ;/* Finally check if an external interrupt happened */
arch/powerpc/kernel/misc_64.S +12 -0
@@ -614,6 +614,18 @@ _GLOBAL(kexec_sequence) li r0,0 std r0,16(r1) +BEGIN_FTR_SECTION + /* + * This is the best time to turn AMR/IAMR off. + * key 0 is used in radix for supervisor<->user + * protection, but on hash key 0 is reserved + * ideally we want to enter with a clean state. + * NOTE, we rely on r0 being 0 from above. + */ + mtspr SPRN_IAMR,r0 + mtspr SPRN_AMOR,r0 +END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300) + /* save regs for local vars on new stack. * yes, we won't go back, but ... */
arch/powerpc/kernel/process.c +3 -2
@@ -362,7 +362,8 @@ void enable_kernel_vsx(void) cpumsr =msr_check_and_set (MSR_FP |MSR_VEC |MSR_VSX ); -if (current->thread.regs && (current->thread.regs->msr &MSR_VSX )) { +if (current->thread.regs && + (current->thread.regs->msr & (MSR_VSX |MSR_VEC |MSR_FP ))) {check_if_tm_restore_required (current);/* * If a thread has already been reclaimed then the
@@ -386,7 +387,7 @@ void flush_vsx_to_thread(struct task_struct *tsk) {if (tsk->thread.regs) {preempt_disable (); -if (tsk->thread.regs->msr &MSR_VSX ) { +if (tsk->thread.regs->msr & (MSR_VSX |MSR_VEC |MSR_FP )) {BUG_ON (tsk != current);giveup_vsx (tsk); }
arch/powerpc/kernel/ptrace.c +10 -3
@@ -127,12 +127,19 @@ static void flush_tmregs_to_thread(struct task_struct *tsk)* If task is not current, it will have been flushed already to * it's thread_struct during __switch_to(). * -* A reclaim flushes ALL the state. +* A reclaim flushes ALL the state or if not in TM save TM SPRs +* in the appropriate thread structures from live. */ -if (tsk == current &&MSR_TM_SUSPENDED (mfmsr ())) - tm_reclaim_current(TM_CAUSE_SIGNAL); +if (tsk != current) +return ; +if (MSR_TM_SUSPENDED (mfmsr ())) { +tm_reclaim_current (TM_CAUSE_SIGNAL ); + }else { +tm_enable (); +tm_save_sprs (&(tsk->thread)); + } }#else static inline void flush_tmregs_to_thread (struct task_struct *tsk) { }
arch/powerpc/kernel/setup-common.c +4 -0
@@ -335,6 +335,10 @@ static int show_cpuinfo(struct seq_file *m, void *v) maj = ((pvr >>8 ) &0xFF ) -1 ; min = pvr &0xFF ;break ; +case 0x004e :/* POWER9 bits 12-15 give chip type */ + maj = (pvr >>8 ) &0x0F ; + min = pvr &0xFF ; +break ;default : maj = (pvr >>8 ) &0xFF ; min = pvr &0xFF ;
arch/powerpc/kvm/book3s_64_mmu_hv.c +3 -1
@@ -164,8 +164,10 @@ long kvmppc_alloc_reset_hpt(struct kvm *kvm, int order) goto out; } -if (kvm->arch.hpt.virt) +if (kvm->arch.hpt.virt) {kvmppc_free_hpt (&kvm->arch.hpt); +kvmppc_rmap_reset (kvm); + } err =kvmppc_allocate_hpt (&info, order);if (err <0 )
arch/powerpc/kvm/book3s_hv.c +2 -0
@@ -2938,6 +2938,8 @@ static int kvmppc_vcpu_run_hv(struct kvm_run *run, struct kvm_vcpu *vcpu) run->fail_entry.hardware_entry_failure_reason =0 ;return -EINVAL ; } +/* Enable TM so we can read the TM SPRs */ +mtmsr (mfmsr () |MSR_TM ); current->thread.tm_tfhar =mfspr (SPRN_TFHAR ); current->thread.tm_tfiar =mfspr (SPRN_TFIAR ); current->thread.tm_texasr =mfspr (SPRN_TEXASR );
arch/powerpc/kvm/book3s_xive.c +2 -2
@@ -1257,8 +1257,8 @@ static void xive_pre_save_scan(struct kvmppc_xive *xive)if (!xc)continue ;for (j =0 ; j <KVMPPC_XIVE_Q_COUNT ; j++) { -if (xc->queues[i].qpage) -xive_pre_save_queue (xive, &xc->queues[i]); +if (xc->queues[j].qpage) +xive_pre_save_queue (xive, &xc->queues[j]); } }
arch/powerpc/lib/sstep.c +17 -2
@@ -683,8 +683,10 @@ int analyse_instr(struct instruction_op *op, struct pt_regs *regs,case 19 :switch ((instr >>1 ) &0x3ff ) {case 0 :/* mcrf */ - rd = (instr >>21 ) &0x1c ; - ra = (instr >>16 ) &0x1c ; + rd =7 - ((instr >>23 ) &0x7 ); + ra =7 - ((instr >>18 ) &0x7 ); + rd *=4 ; + ra *=4 ; val = (regs->ccr >> ra) &0xf ; regs->ccr = (regs->ccr & ~(0xfUL << rd)) | (val << rd); goto instr_done;
@@ -964,6 +966,19 @@ int analyse_instr(struct instruction_op *op, struct pt_regs *regs,#endif case 19 :/* mfcr */ +if ((instr >>20 ) &1 ) { + imm =0xf0000000UL ; +for (sh =0 ; sh <8 ; ++sh) { +if (instr & (0x80000 >> sh)) { + regs->gpr[rd] = regs->ccr & imm; +break ; + } + imm >>=4 ; + } + + goto instr_done; + } + regs->gpr[rd] = regs->ccr; regs->gpr[rd] &=0xffffffffUL ; goto instr_done;
arch/powerpc/mm/mmu_context_book3s64.c +9 -3
@@ -223,9 +223,15 @@ void destroy_context(struct mm_struct *mm) mm->context.cop_lockp =NULL ;#endif /* CONFIG_PPC_ICSWX */ -if (radix_enabled ()) - process_tb[mm->context.id].prtb1 =0 ; -else +if (radix_enabled ()) { +/* +* Radix doesn't have a valid bit in the process table +* entries. However we know that at least P9 implementation +* will avoid caching an entry with an invalid RTS field, +* and 0 is invalid. So this will do. +*/ + process_tb[mm->context.id].prtb0 =0 ; + }else subpage_prot_free (mm);destroy_pagetable_page (mm);__destroy_context (mm->context.id);
arch/powerpc/mm/pgtable-radix.c +12 -3
@@ -19,6 +19,7 @@#include <asm/mmu.h> #include <asm/firmware.h> #include <asm/powernv.h> +#include <asm/sections.h> #include <trace/events/thp.h>
@@ -121,7 +122,8 @@ static inline void __meminit print_mapping(unsigned long start,static int __meminit create_physical_mapping (unsigned long start,unsigned long end) { -unsigned long addr, mapping_size =0 ; +unsigned long vaddr, addr, mapping_size =0 ; +pgprot_t prot; start =_ALIGN_UP (start,PAGE_SIZE );for (addr = start; addr < end; addr += mapping_size) {
@@ -145,8 +147,15 @@ static int __meminit create_physical_mapping(unsigned long start, start = addr; } - rc =radix__map_kernel_page ((unsigned long )__va (addr), addr, -PAGE_KERNEL_X , mapping_size); + vaddr = (unsigned long )__va (addr); + +if (overlaps_kernel_text (vaddr, vaddr + mapping_size) || +overlaps_interrupt_vector_text (vaddr, vaddr + mapping_size)) + prot =PAGE_KERNEL_X ; +else + prot =PAGE_KERNEL ; + + rc =radix__map_kernel_page (vaddr, addr, prot, mapping_size);if (rc)return rc; }
arch/powerpc/perf/isa207-common.c +4 -2
@@ -90,13 +90,15 @@ static void mmcra_sdar_mode(u64 event, unsigned long *mmcra)* MMCRA[SDAR_MODE] will be set to 0b01 * For rest * MMCRA[SDAR_MODE] will be set from event code. +* If sdar_mode from event is zero, default to 0b01. Hardware +* requires that we set a non-zero value. */ if (cpu_has_feature (CPU_FTR_ARCH_300 )) {if (is_event_marked (event) || (*mmcra &MMCRA_SAMPLE_ENABLE )) *mmcra &=MMCRA_SDAR_MODE_NO_UPDATES ; -else if (!cpu_has_feature (CPU_FTR_POWER9_DD1 )) +else if (!cpu_has_feature (CPU_FTR_POWER9_DD1 ) &&p9_SDAR_MODE (event)) *mmcra |=p9_SDAR_MODE (event) <<MMCRA_SDAR_MODE_SHIFT ; -else if (cpu_has_feature (CPU_FTR_POWER9_DD1 )) +else *mmcra |=MMCRA_SDAR_MODE_TLB ; }else *mmcra |=MMCRA_SDAR_MODE_TLB ;
arch/powerpc/platforms/powernv/idle.c +2 -0
@@ -261,6 +261,7 @@ static u64 pnv_deepest_stop_psscr_val;static u64 pnv_deepest_stop_psscr_mask;static bool deepest_stop_found; +#ifdef CONFIG_HOTPLUG_CPU /* * pnv_cpu_offline: A function that puts the CPU into the deepest * available platform idle state on a CPU-Offline.
@@ -293,6 +294,7 @@ unsigned long pnv_cpu_offline(unsigned int cpu) return srr1; } +#endif /* * Power ISA 3.0 idle initialization.
arch/powerpc/platforms/pseries/lpar.c +10 -1
@@ -301,7 +301,7 @@ static long pSeries_lpar_hpte_updatepp(unsigned long slot, int ssize, unsigned long inv_flags) { unsigned long lpar_rc; -unsigned long flags = (newpp &7 ) |H_AVPN ; +unsigned long flags;unsigned long want_v; want_v =hpte_encode_avpn (vpn, psize, ssize);
@@ -309,6 +309,11 @@ static long pSeries_lpar_hpte_updatepp(unsigned long slot,pr_devel (" update: avpnv=%016lx, hash=%016lx, f=%lx, psize: %d ..." , want_v, slot, flags, psize); + flags = (newpp &7 ) |H_AVPN ; +if (mmu_has_feature (MMU_FTR_KERNEL_RO )) +/* Move pp0 into bit 8 (IBM 55) */ + flags |= (newpp &HPTE_R_PP0 ) >>55 ; + lpar_rc =plpar_pte_protect (flags, slot, want_v);if (lpar_rc ==H_NOT_FOUND ) {
@@ -380,6 +385,10 @@ static void pSeries_lpar_hpte_updateboltedpp(unsigned long newpp,BUG_ON (slot ==-1 ); flags = newpp &7 ; +if (mmu_has_feature (MMU_FTR_KERNEL_RO )) +/* Move pp0 into bit 8 (IBM 55) */ + flags |= (newpp &HPTE_R_PP0 ) >>55 ; + lpar_rc =plpar_pte_protect (flags, slot,0 );BUG_ON (lpar_rc !=H_SUCCESS );
arch/powerpc/platforms/pseries/reconfig.c +0 -1
@@ -82,7 +82,6 @@ static int pSeries_reconfig_remove_node(struct device_node *np)of_detach_node (np);of_node_put (parent); -of_node_put (np);/* Must decrement the refcount */ return 0 ; }
arch/s390/include/asm/bug.h +2 -2
@@ -14,7 +14,7 @@".section .rodata.str,\"aMS\",@progbits,1\n" \"2: .asciz \"" __FILE__"\"\n" \".previous\n" \ -".section __bug_table,\"a\"\n" \ +".section __bug_table,\"aw\"\n" \"3: .long 1b-3b,2b-3b\n" \" .short %0,%1\n" \" .org 3b+%2\n" \
@@ -30,7 +30,7 @@ asmvolatile ( \"0: j 0b+2\n" \"1:\n" \ -".section __bug_table,\"a\"\n" \ +".section __bug_table,\"aw\"\n" \"2: .long 1b-2b\n" \" .short %0\n" \ " .org 2b+%1\n" \
arch/s390/include/asm/elf.h +7 -8
@@ -161,14 +161,13 @@ extern unsigned int vdso_enabled;#define CORE_DUMP_USE_REGSET #define ELF_EXEC_PAGESIZE 4096 -/* This is the location that an ET_DYN program is loaded if exec'ed. Typical -use of this is to invoke "./ld.so someprog" to test out a new version of -the loader. We need to make sure that it is out of the way of the program -that it will "exec", and that there is sufficient room for the brk. 64-bit -tasks are aligned to 4GB. */ -#define ELF_ET_DYN_BASE (is_compat_task() ? \ - (STACK_TOP / 3 * 2) : \ - (STACK_TOP / 3 * 2) & ~((1UL << 32) - 1)) +/* +* This is the base location for PIE (ET_DYN with INTERP) loads. On +* 64-bit, this is raised to 4GB to leave the entire 32-bit address +* space open for things that want to use the area for 32-bit pointers. +*/ +#define ELF_ET_DYN_BASE (is_compat_task() ? 0x000400000UL : \ + 0x100000000UL)/* This yields a mask that user programs can use to figure out what instruction set this CPU supports. */
arch/s390/include/asm/syscall.h +6 -0
@@ -64,6 +64,12 @@ static inline void syscall_get_arguments(struct task_struct *task, {unsigned long mask =-1UL ; +/* +* No arguments for this syscall, there's nothing to do. +*/ +if (!n) +return ; +BUG_ON (i + n >6 );#ifdef CONFIG_COMPAT if (test_tsk_thread_flag (task,TIF_31BIT ))
arch/s390/kvm/sthyi.c +5 -2
@@ -394,7 +394,7 @@ static int sthyi(u64 vaddr)"srl %[cc],28\n" : [cc] "=d" (cc) : [code] "d" (code), [addr] "a" (addr) - : "memory", "cc"); + : "3", "memory", "cc"); return cc; }
@@ -425,7 +425,7 @@ int handle_sthyi(struct kvm_vcpu *vcpu)VCPU_EVENT (vcpu,3 ,"STHYI: fc: %llu addr: 0x%016llx" , code, addr);trace_kvm_s390_handle_sthyi (vcpu, code, addr); -if (reg1 == reg2 || reg1 &1 || reg2 &1 || addr & ~PAGE_MASK ) +if (reg1 == reg2 || reg1 &1 || reg2 &1 )return kvm_s390_inject_program_int (vcpu,PGM_SPECIFICATION );if (code &0xffff ) {
@@ -433,6 +433,9 @@ int handle_sthyi(struct kvm_vcpu *vcpu) goto out; } +if (addr & ~PAGE_MASK ) +return kvm_s390_inject_program_int (vcpu,PGM_SPECIFICATION ); +/* * If the page has not yet been faulted in, we want to do that * now and not after all the expensive calculations.
arch/s390/net/bpf_jit_comp.c +2 -1
@@ -1253,7 +1253,8 @@ static int bpf_jit_prog(struct bpf_jit *jit, struct bpf_prog *fp) insn_count =bpf_jit_insn (jit, fp, i);if (insn_count <0 )return -1 ; - jit->addrs[i +1 ] = jit->prg;/* Next instruction address */ +/* Next instruction address */ + jit->addrs[i + insn_count] = jit->prg; }bpf_jit_epilogue (jit);
arch/sh/include/asm/bug.h +2 -2
@@ -24,14 +24,14 @@*/ #ifdef CONFIG_DEBUG_BUGVERBOSE #define _EMIT_BUG_ENTRY \ - "\t.pushsection __bug_table,\"a\"\n" \ + "\t.pushsection __bug_table,\"aw\"\n" \ "2:\t.long 1b, %O1\n" \ "\t.short %O2, %O3\n" \ "\t.org 2b+%O4\n" \ "\t.popsection\n"#else #define _EMIT_BUG_ENTRY \ - "\t.pushsection __bug_table,\"a\"\n" \ + "\t.pushsection __bug_table,\"aw\"\n" \ "2:\t.long 1b\n" \ "\t.short %O3\n" \ "\t.org 2b+%O4\n" \
arch/sparc/include/asm/asm-prototypes.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. +*/ + +#include <asm/xor.h> +#include <asm/checksum.h> +#include <asm/trap_block.h> +#include <asm/uaccess.h> +#include <asm/atomic.h> +#include <asm/ftrace.h> +#include <asm/cacheflush.h> +#include <asm/oplib.h> +#include <linux/atomic.h> + +void *__memscan_zero (void *,size_t ); +void *__memscan_generic (void *,int ,size_t ); +void *__bzero (void *,size_t ); +void VISenter (void );/* Dummy prototype to supress warning */ +#undef memcpy +#undef memset +void *memcpy (void *dest,const void *src,size_t n); +void *memset (void *s,int c,size_t n); +typedef int TItype __attribute__((mode (TI ))); +TItype __multi3 (TItype a,TItype b);
arch/sparc/include/asm/mmu_context_64.h +9 -5
@@ -27,9 +27,11 @@ void destroy_context(struct mm_struct *mm);void __tsb_context_switch (unsigned long pgd_pa,struct tsb_config *tsb_base,struct tsb_config *tsb_huge, -unsigned long tsb_descr_pa); +unsigned long tsb_descr_pa, +unsigned long secondary_ctx); -static inline void tsb_context_switch (struct mm_struct *mm) +static inline void tsb_context_switch_ctx (struct mm_struct *mm, +unsigned long ctx) { __tsb_context_switch(__pa(mm->pgd), &mm->context.tsb_block[MM_TSB_BASE],
@@ -40,9 +42,12 @@ static inline void tsb_context_switch(struct mm_struct *mm)#else NULL #endif - , __pa(&mm->context.tsb_descr[MM_TSB_BASE])); + ,__pa (&mm->context.tsb_descr[MM_TSB_BASE ]), + ctx); } +#define tsb_context_switch (X ) tsb_context_switch_ctx(X, 0) +void tsb_grow (struct mm_struct *mm,unsigned long tsb_index,unsigned long mm_rss);
@@ -112,8 +117,7 @@ static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str* cpu0 to update it's TSB because at that point the cpu_vm_mask * only had cpu1 set in it. */ -load_secondary_context (mm); -tsb_context_switch (mm); +tsb_context_switch_ctx (mm,CTX_HWBITS (mm->context));/* Any time a processor runs a context on an address space * for the first time, we must flush that context out of the
arch/sparc/include/asm/trap_block.h +1 -0
@@ -54,6 +54,7 @@ extern struct trap_per_cpu trap_block[NR_CPUS];void init_cur_cpu_trap (struct thread_info *);void setup_tba (void );extern int ncpus_probed; +extern u64 cpu_mondo_counter[NR_CPUS ];unsigned long real_hard_smp_processor_id (void );
arch/sparc/kernel/pci_sun4v.c +0 -2
@@ -1241,8 +1241,6 @@ static int pci_sun4v_probe(struct platform_device *op)* ATU group, but ATU hcalls won't be available. */ hv_atu = false; -pr_err (PFX "Could not register hvapi ATU err=%d\n" , - err); }else {pr_info (PFX "Registered hvapi ATU major[%lu] minor[%lu]\n" , vatu_major, vatu_minor);
arch/sparc/kernel/smp_64.c +115 -70
231 lines not on this page · raw message
arch/sparc/kernel/sun4v_ivec.S +15 -0
@@ -26,6 +26,21 @@ sun4v_cpu_mondo: ldxa [%g0] ASI_SCRATCHPAD, %g4 sub %g4, TRAP_PER_CPU_FAULT_INFO, %g4 + /* Get smp_processor_id() into %g3 */ + sethi %hi(trap_block), %g5 + or %g5, %lo(trap_block), %g5 + sub %g4, %g5, %g3 + srlx %g3, TRAP_BLOCK_SZ_SHIFT, %g3 + + /* Increment cpu_mondo_counter[smp_processor_id()] */ + sethi %hi(cpu_mondo_counter), %g5 + or %g5, %lo(cpu_mondo_counter), %g5 + sllx %g3, 3, %g3 + add %g5, %g3, %g5 + ldx [%g5], %g3 + add %g3, 1, %g3 + stx %g3, [%g5] + /* Get CPU mondo queue base phys address into %g7. */ ldx [%g4 + TRAP_PER_CPU_CPU_MONDO_PA], %g7
arch/sparc/kernel/traps_64.c +1 -0
@@ -2733,6 +2733,7 @@ void do_getpsr(struct pt_regs *regs) } } +u64 cpu_mondo_counter[NR_CPUS ] = {0 };struct trap_per_cpu trap_block[NR_CPUS ];EXPORT_SYMBOL (trap_block);
arch/sparc/kernel/tsb.S +12 -0
@@ -360,6 +360,7 @@ tsb_flush: * %o1: TSB base config pointer * %o2: TSB huge config pointer, or NULL if none * %o3: Hypervisor TSB descriptor physical address + * %o4: Secondary context to load, if non-zero * * We have to run this whole thing with interrupts * disabled so that the current cpu doesn't change
@@ -372,6 +373,17 @@ __tsb_context_switch: rdpr %pstate, %g1 wrpr %g1, PSTATE_IE, %pstate + brz,pn %o4, 1f + mov SECONDARY_CONTEXT, %o5 + +661: stxa %o4, [%o5] ASI_DMMU + .section .sun4v_1insn_patch, "ax" + .word 661b + stxa %o4, [%o5] ASI_MMU + .previous + flush %g6 + +1: TRAP_LOAD_TRAP_BLOCK(%g2, %g3) stx %o0, [%g2 + TRAP_PER_CPU_PGD_PADDR]
arch/sparc/lib/U3memcpy.S +2 -2
@@ -145,13 +145,13 @@ ENDPROC(U3_retl_o2_plus_GS_plus_0x08) ENTRY(U3_retl_o2_and_7_plus_GS) and %o2, 7, %o2 retl - add %o2, GLOBAL_SPARE, %o2 + add %o2, GLOBAL_SPARE, %o0 ENDPROC(U3_retl_o2_and_7_plus_GS) ENTRY(U3_retl_o2_and_7_plus_GS_plus_8) add GLOBAL_SPARE, 8, GLOBAL_SPARE and %o2, 7, %o2 retl - add %o2, GLOBAL_SPARE, %o2 + add %o2, GLOBAL_SPARE, %o0 ENDPROC(U3_retl_o2_and_7_plus_GS_plus_8) #endif
arch/sparc/lib/atomic_64.S +26 -18
64 lines not on this page · raw message
arch/sparc/lib/checksum_64.S +1 -0
@@ -38,6 +38,7 @@ csum_partial_fix_alignment: .align 32 .globl csum_partial + .type csum_partial,#function EXPORT_SYMBOL(csum_partial) csum_partial: /* %o0=buff, %o1=len, %o2=sum */ prefetch [%o0 + 0x000], #n_reads
arch/sparc/lib/csum_copy.S +1 -0
@@ -65,6 +65,7 @@ add %o5, %o4, %o4 .globl FUNC_NAME + .type FUNC_NAME,#function EXPORT_SYMBOL(FUNC_NAME) FUNC_NAME: /* %o0=src, %o1=dst, %o2=len, %o3=sum */ LOAD(prefetch, %o0 + 0x000, #n_reads)
arch/sparc/lib/memscan_64.S +2 -0
@@ -14,6 +14,8 @@ .text .align 32 .globl __memscan_zero, __memscan_generic + .type __memscan_zero,#function + .type __memscan_generic,#function .globl memscan EXPORT_SYMBOL(__memscan_zero) EXPORT_SYMBOL(__memscan_generic)
arch/sparc/lib/memset.S +1 -0
@@ -63,6 +63,7 @@ __bzero_begin: .globl __bzero + .type __bzero,#function .globl memset EXPORT_SYMBOL(__bzero) EXPORT_SYMBOL(memset)
arch/sparc/mm/gup.c +2 -2
@@ -78,8 +78,8 @@ static int gup_huge_pmd(pmd_t *pmdp, pmd_t pmd, unsigned long addr,return 0 ; refs =0 ; - head =pmd_page (pmd); - page = head + ((addr & ~PMD_MASK ) >>PAGE_SHIFT ); + page =pmd_page (pmd) + ((addr & ~PMD_MASK ) >>PAGE_SHIFT ); + head =compound_head (page); do { VM_BUG_ON(compound_head(page) != head); pages[*nr] = page;
arch/sparc/mm/init_64.c +24 -1
@@ -325,6 +325,29 @@ static void __update_mmu_tsb_insert(struct mm_struct *mm, unsigned long tsb_inde }#ifdef CONFIG_HUGETLB_PAGE +static void __init add_huge_page_size (unsigned long size) +{ +unsigned int order; + +if (size_to_hstate (size)) +return ; + + order =ilog2 (size) -PAGE_SHIFT ; +hugetlb_add_hstate (order); +} + +static int __init hugetlbpage_init (void ) +{ +add_huge_page_size (1UL <<HPAGE_64K_SHIFT ); +add_huge_page_size (1UL <<HPAGE_SHIFT ); +add_huge_page_size (1UL <<HPAGE_256MB_SHIFT ); +add_huge_page_size (1UL <<HPAGE_2GB_SHIFT ); + +return 0 ; +} + +arch_initcall (hugetlbpage_init); +static int __init setup_hugepagesz (char *string) {unsigned long long hugepage_size;
@@ -364,7 +387,7 @@ static int __init setup_hugepagesz(char *string) goto out; } -hugetlb_add_hstate (hugepage_shift -PAGE_SHIFT ); +add_huge_page_size (hugepage_size); rc =1 ; out:
arch/sparc/power/hibernate.c +1 -2
@@ -35,6 +35,5 @@ void restore_processor_state(void) {struct mm_struct *mm = current->active_mm; -load_secondary_context (mm); -tsb_context_switch (mm); +tsb_context_switch_ctx (mm,CTX_HWBITS (mm->context)); }
arch/x86/Kconfig +1 -0
@@ -94,6 +94,7 @@ config X86 select GENERIC_STRNCPY_FROM_USER select GENERIC_STRNLEN_USER select GENERIC_TIME_VSYSCALL + select HARDLOCKUP_CHECK_TIMESTAMP if X86_64 select HAVE_ACPI_APEI if ACPI select HAVE_ACPI_APEI_NMI if ACPI select HAVE_ALIGNED_STRUCT_PAGE if SLUB
arch/x86/crypto/sha1_avx2_x86_64_asm.S +36 -31
149 lines not on this page · raw message
arch/x86/entry/entry_64.S +2 -0
@@ -1209,6 +1209,8 @@ ENTRY(nmi) * other IST entries. */ + ASM_CLAC + /* Use %rdx as our temp variable throughout */ pushq %rdx
arch/x86/events/core.c +7 -9
@@ -2105,7 +2105,7 @@ static void refresh_pce(void *ignored)load_mm_cr4 (current->active_mm); } -static void x86_pmu_event_mapped (struct perf_event *event) +static void x86_pmu_event_mapped (struct perf_event *event,struct mm_struct *mm) {if (!(event->hw.flags &PERF_X86_EVENT_RDPMC_ALLOWED ))return ;
@@ -2120,22 +2120,20 @@ static void x86_pmu_event_mapped(struct perf_event *event)* For now, this can't happen because all callers hold mmap_sem * for write. If this changes, we'll need a different solution. */ -lockdep_assert_held_exclusive (¤t->mm->mmap_sem); +lockdep_assert_held_exclusive (&mm->mmap_sem); -if (atomic_inc_return (¤t->mm->context.perf_rdpmc_allowed) ==1 ) -on_each_cpu_mask (mm_cpumask (current->mm), refresh_pce,NULL ,1 ); +if (atomic_inc_return (&mm->context.perf_rdpmc_allowed) ==1 ) +on_each_cpu_mask (mm_cpumask (mm), refresh_pce,NULL ,1 ); } -static void x86_pmu_event_unmapped (struct perf_event *event) +static void x86_pmu_event_unmapped (struct perf_event *event,struct mm_struct *mm) { -if (!current->mm) -return ;if (!(event->hw.flags &PERF_X86_EVENT_RDPMC_ALLOWED ))return ; -if (atomic_dec_and_test (¤t->mm->context.perf_rdpmc_allowed)) -on_each_cpu_mask (mm_cpumask (current->mm), refresh_pce,NULL ,1 ); +if (atomic_dec_and_test (&mm->context.perf_rdpmc_allowed)) +on_each_cpu_mask (mm_cpumask (mm), refresh_pce,NULL ,1 ); }static int x86_pmu_event_idx (struct perf_event *event)
arch/x86/include/asm/bug.h +2 -2
@@ -35,7 +35,7 @@#define _BUG_FLAGS (ins, flags) \ do { \ asm volatile("1:\t" ins "\n" \ - ".pushsection __bug_table,\"a\"\n" \ + ".pushsection __bug_table,\"aw\"\n" \ "2:\t" __BUG_REL(1b) "\t# bug_entry::bug_addr\n" \ "\t" __BUG_REL(%c0) "\t# bug_entry::file\n" \ "\t.word %c1" "\t# bug_entry::line\n" \
@@ -52,7 +52,7 @@ do { \#define _BUG_FLAGS (ins, flags) \ do { \ asm volatile("1:\t" ins "\n" \ - ".pushsection __bug_table,\"a\"\n" \ + ".pushsection __bug_table,\"aw\"\n" \ "2:\t" __BUG_REL(1b) "\t# bug_entry::bug_addr\n" \ "\t.word %c0" "\t# bug_entry::flags\n" \ "\t.org 2b+%c1\n" \
arch/x86/include/asm/elf.h +7 -6
@@ -245,12 +245,13 @@ extern int force_personality32;#define CORE_DUMP_USE_REGSET #define ELF_EXEC_PAGESIZE 4096 -/* This is the location that an ET_DYN program is loaded if exec'ed. Typical -use of this is to invoke "./ld.so someprog" to test out a new version of -the loader. We need to make sure that it is out of the way of the program -that it will "exec", and that there is sufficient room for the brk. */ - -#define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2) +/* +* This is the base location for PIE (ET_DYN with INTERP) loads. On +* 64-bit, this is above 4GB to leave the entire 32-bit address +* space open for things that want to use the area for 32-bit pointers. +*/ +#define ELF_ET_DYN_BASE (mmap_is_ia32() ? 0x000400000UL : \ + (TASK_SIZE / 3 * 2))/* This yields a mask that user programs can use to figure out what instruction set this CPU supports. This could be done in user space,
arch/x86/include/asm/fpu/internal.h +3 -3
@@ -450,10 +450,10 @@ static inline int copy_fpregs_to_fpstate(struct fpu *fpu)return 0 ; } -static inline void __copy_kernel_to_fpregs (union fpregs_state *fpstate) +static inline void __copy_kernel_to_fpregs (union fpregs_state *fpstate,u64 mask) {if (use_xsave ()) { -copy_kernel_to_xregs (&fpstate->xsave,-1 ); +copy_kernel_to_xregs (&fpstate->xsave, mask); }else {if (use_fxsr ())copy_kernel_to_fxregs (&fpstate->fxsave);
@@ -477,7 +477,7 @@ static inline void copy_kernel_to_fpregs(union fpregs_state *fpstate) : : [addr] "m" (fpstate)); } -__copy_kernel_to_fpregs (fpstate); +__copy_kernel_to_fpregs (fpstate,-1 ); }extern int copy_fpstate_to_sigframe (void __user *buf,void __user *fp,int size);
arch/x86/include/asm/kvm_host.h +1 -0
@@ -486,6 +486,7 @@ struct kvm_vcpu_arch {unsigned long cr4;unsigned long cr4_guest_owned_bits;unsigned long cr8; +u32 pkru;u32 hflags;u64 efer;u64 apic_base;
arch/x86/include/asm/mmu_context.h +1 -3
@@ -116,9 +116,7 @@ static inline int init_new_context(struct task_struct *tsk, mm->context.execute_only_pkey = -1; }#endif -init_new_context_ldt (tsk, mm); - -return 0 ; +return init_new_context_ldt (tsk, mm); }static inline void destroy_context (struct mm_struct *mm) {
arch/x86/include/asm/msr-index.h +2 -0
@@ -420,6 +420,8 @@#define MSR_IA32_TSC_ADJUST 0x0000003b#define MSR_IA32_BNDCFGS 0x00000d90 +#define MSR_IA32_BNDCFGS_RSVD 0x00000ffc +#define MSR_IA32_XSS 0x00000da0#define FEATURE_CONTROL_LOCKED (1<<0)
arch/x86/include/asm/pat.h +1 -0
@@ -7,6 +7,7 @@bool pat_enabled (void );void pat_disable (const char *reason);extern void pat_init (void ); +extern void init_cache_modes (void );extern int reserve_memtype (u64 start,u64 end,enum page_cache_mode req_pcm,enum page_cache_mode *ret_pcm);
arch/x86/include/asm/xen/hypercall.h +8 -1
@@ -43,6 +43,7 @@#include <asm/page.h> #include <asm/pgtable.h> +#include <asm/smap.h> #include <xen/interface/xen.h> #include <xen/interface/sched.h>
@@ -214,10 +215,12 @@ privcmd_call(unsigned call, __HYPERCALL_DECLS;__HYPERCALL_5ARG (a1, a2, a3, a4, a5); +stac (); asmvolatile ("call *%[call]" : __HYPERCALL_5PARAM : [call]"a" (&hypercall_page[call]) : __HYPERCALL_CLOBBER5); +clac ();return (long )__res; }
@@ -476,7 +479,11 @@ static inline intHYPERVISOR_dm_op ( domid_t dom, unsigned int nr_bufs, void *bufs) { - return _hypercall3(int, dm_op, dom, nr_bufs, bufs); + int ret; +stac (); + ret =_hypercall3 (int, dm_op, dom, nr_bufs, bufs); +clac (); +return ret; } static inline void
arch/x86/kernel/acpi/boot.c +8 -0
@@ -346,6 +346,14 @@ static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger,int pin;struct mpc_intsrc mp_irq; +/* +* Check bus_irq boundary. +*/ +if (bus_irq >=NR_IRQS_LEGACY ) { +pr_warn ("Invalid bus_irq %u for legacy override\n" , bus_irq); +return ; + } +/* * Convert 'gsi' to 'ioapic.pin'. */
arch/x86/kernel/apic/io_apic.c +1 -1
@@ -2115,7 +2115,7 @@ static inline void __init check_timer(void)int idx; idx =find_irq_entry (apic1, pin1, mp_INT);if (idx !=-1 &&irq_trigger (idx)) -unmask_ioapic_irq (irq_get_chip_data (0 )); +unmask_ioapic_irq (irq_get_irq_data (0 )); }irq_domain_deactivate_irq (irq_data);irq_domain_activate_irq (irq_data);
arch/x86/kernel/kvm.c +4 -2
@@ -151,6 +151,8 @@ void kvm_async_pf_task_wait(u32 token)if (hlist_unhashed (&n.link))break ; +rcu_irq_exit (); +if (!n.halted) {local_irq_enable ();schedule ();
@@ -159,11 +161,11 @@ void kvm_async_pf_task_wait(u32 token)/* * We cannot reschedule. So halt. */ -rcu_irq_exit ();native_safe_halt ();local_irq_disable (); -rcu_irq_enter (); } + +rcu_irq_enter (); }if (!n.halted)finish_swait (&n.wq, &wait);
arch/x86/kernel/setup.c +7 -0
@@ -1075,6 +1075,13 @@ void __init setup_arch(char **cmdline_p) max_possible_pfn = max_pfn; +/* +* This call is required when the CPU does not support PAT. If +* mtrr_bp_init() invoked it already via pat_init() the call has no +* effect. +*/ +init_cache_modes (); +/* * Define random base addresses for memory sections after max_pfn is * defined and before each memory section base is used.
arch/x86/kvm/cpuid.c +1 -1
@@ -469,7 +469,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, entry->ecx &= kvm_cpuid_7_0_ecx_x86_features;cpuid_mask (&entry->ecx,CPUID_7_ECX );/* PKU is not yet implemented for shadow paging. */ -if (!tdp_enabled) +if (!tdp_enabled || !boot_cpu_has (X86_FEATURE_OSPKE )) entry->ecx &= ~F (PKU ); entry->edx &= kvm_cpuid_7_0_edx_x86_features; entry->edx &=get_scattered_cpuid_leaf (7 ,0 ,CPUID_EDX );
arch/x86/kvm/cpuid.h +8 -0
@@ -144,6 +144,14 @@ static inline bool guest_cpuid_has_rtm(struct kvm_vcpu *vcpu)return best && (best->ebx &bit (X86_FEATURE_RTM )); } +static inline bool guest_cpuid_has_mpx (struct kvm_vcpu *vcpu) +{ +struct kvm_cpuid_entry2 *best; + + best =kvm_find_cpuid_entry (vcpu,7 ,0 ); +return best && (best->ebx &bit (X86_FEATURE_MPX )); +} +static inline bool guest_cpuid_has_rdtscp (struct kvm_vcpu *vcpu) {struct kvm_cpuid_entry2 *best;
arch/x86/kvm/kvm_cache_regs.h +0 -5
@@ -84,11 +84,6 @@ static inline u64 kvm_read_edx_eax(struct kvm_vcpu *vcpu) | ((u64)(kvm_register_read(vcpu, VCPU_REGS_RDX) & -1u) << 32); } -static inline u32 kvm_read_pkru (struct kvm_vcpu *vcpu) -{ -return kvm_x86_ops->get_pkru (vcpu); -} -static inline void enter_guest_mode (struct kvm_vcpu *vcpu) { vcpu->arch.hflags |=HF_GUEST_MASK ;
arch/x86/kvm/mmu.h +1 -1
@@ -182,7 +182,7 @@ static inline u8 permission_fault(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,* index of the protection domain, so pte_pkey * 2 is * is the index of the first bit for the domain. */ - pkru_bits = (kvm_read_pkru (vcpu) >> (pte_pkey *2 )) &3 ; + pkru_bits = (vcpu->arch.pkru >> (pte_pkey *2 )) &3 ;/* clear present bit, replace PFEC.RSVD with ACC_USER_MASK. */ offset = (pfec & ~1) +
arch/x86/kvm/svm.c +0 -7
@@ -1725,11 +1725,6 @@ static void svm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags)to_svm (vcpu)->vmcb->save.rflags = rflags; } -static u32 svm_get_pkru (struct kvm_vcpu *vcpu) -{ -return 0 ; -} -static void svm_cache_reg (struct kvm_vcpu *vcpu,enum kvm_reg reg) {switch (reg) {
@@ -5313,8 +5308,6 @@ static struct kvm_x86_ops svm_x86_ops __ro_after_init = { .get_rflags = svm_get_rflags, .set_rflags = svm_set_rflags, - .get_pkru = svm_get_pkru, - .tlb_flush = svm_flush_tlb, .run = svm_vcpu_run,
arch/x86/kvm/vmx.c +15 -20
@@ -636,8 +636,6 @@ struct vcpu_vmx {u64 current_tsc_ratio; -bool guest_pkru_valid; -u32 guest_pkru;u32 host_pkru;/*
@@ -2368,11 +2366,6 @@ static void vmx_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags)vmcs_writel (GUEST_RFLAGS , rflags); } -static u32 vmx_get_pkru (struct kvm_vcpu *vcpu) -{ -return to_vmx (vcpu)->guest_pkru; -} -static u32 vmx_get_interrupt_shadow (struct kvm_vcpu *vcpu) {u32 interruptibility =vmcs_read32 (GUEST_INTERRUPTIBILITY_INFO );
@@ -3195,7 +3188,8 @@ static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) msr_info->data =vmcs_readl (GUEST_SYSENTER_ESP );break ;case MSR_IA32_BNDCFGS : -if (!kvm_mpx_supported ()) +if (!kvm_mpx_supported () || + (!msr_info->host_initiated && !guest_cpuid_has_mpx (vcpu)))return 1 ; msr_info->data =vmcs_read64 (GUEST_BNDCFGS );break ;
@@ -3277,7 +3271,11 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)vmcs_writel (GUEST_SYSENTER_ESP , data);break ;case MSR_IA32_BNDCFGS : -if (!kvm_mpx_supported ()) +if (!kvm_mpx_supported () || + (!msr_info->host_initiated && !guest_cpuid_has_mpx (vcpu))) +return 1 ; +if (is_noncanonical_address (data &PAGE_MASK ) || + (data &MSR_IA32_BNDCFGS_RSVD ))return 1 ;vmcs_write64 (GUEST_BNDCFGS , data);break ;
@@ -6547,7 +6545,6 @@ static __init int hardware_setup(void)vmx_disable_intercept_for_msr (MSR_IA32_SYSENTER_CS , false);vmx_disable_intercept_for_msr (MSR_IA32_SYSENTER_ESP , false);vmx_disable_intercept_for_msr (MSR_IA32_SYSENTER_EIP , false); -vmx_disable_intercept_for_msr (MSR_IA32_BNDCFGS , true);memcpy (vmx_msr_bitmap_legacy_x2apic_apicv, vmx_msr_bitmap_legacy,PAGE_SIZE );
@@ -8856,8 +8853,10 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)if (vcpu->guest_debug &KVM_GUESTDBG_SINGLESTEP )vmx_set_interrupt_shadow (vcpu,0 ); -if (vmx->guest_pkru_valid) -__write_pkru (vmx->guest_pkru); +if (static_cpu_has (X86_FEATURE_PKU ) && +kvm_read_cr4_bits (vcpu,X86_CR4_PKE ) && + vcpu->arch.pkru != vmx->host_pkru) +__write_pkru (vcpu->arch.pkru);atomic_switch_perf_msrs (vmx); debugctlmsr =get_debugctlmsr ();
@@ -9005,13 +9004,11 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)* back on host, so it is safe to read guest PKRU from current * XSAVE. */ -if (boot_cpu_has (X86_FEATURE_OSPKE )) { - vmx->guest_pkru =__read_pkru (); -if (vmx->guest_pkru != vmx->host_pkru) { - vmx->guest_pkru_valid = true; +if (static_cpu_has (X86_FEATURE_PKU ) && +kvm_read_cr4_bits (vcpu,X86_CR4_PKE )) { + vcpu->arch.pkru =__read_pkru (); +if (vcpu->arch.pkru != vmx->host_pkru)__write_pkru (vmx->host_pkru); - }else - vmx->guest_pkru_valid = false; }/*
@@ -11503,8 +11500,6 @@ static struct kvm_x86_ops vmx_x86_ops __ro_after_init = { .get_rflags = vmx_get_rflags, .set_rflags = vmx_set_rflags, - .get_pkru = vmx_get_pkru, - .tlb_flush = vmx_flush_tlb, .run = vmx_vcpu_run,
arch/x86/kvm/x86.c +14 -3
@@ -3236,7 +3236,12 @@ static void fill_xsave(u8 *dest, struct kvm_vcpu *vcpu)u32 size, offset, ecx, edx;cpuid_count (XSTATE_CPUID , index, &size, &offset, &ecx, &edx); -memcpy (dest + offset, src, size); +if (feature ==XFEATURE_MASK_PKRU ) +memcpy (dest + offset, &vcpu->arch.pkru, +sizeof (vcpu->arch.pkru)); +else +memcpy (dest + offset, src, size); + } valid -= feature;
@@ -3274,7 +3279,11 @@ static void load_xsave(struct kvm_vcpu *vcpu, u8 *src)u32 size, offset, ecx, edx;cpuid_count (XSTATE_CPUID , index, &size, &offset, &ecx, &edx); -memcpy (dest, src + offset, size); +if (feature ==XFEATURE_MASK_PKRU ) +memcpy (&vcpu->arch.pkru, src + offset, +sizeof (vcpu->arch.pkru)); +else +memcpy (dest, src + offset, size); } valid -= feature;
@@ -7616,7 +7625,9 @@ void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)*/ vcpu->guest_fpu_loaded =1 ;__kernel_fpu_begin (); -__copy_kernel_to_fpregs (&vcpu->arch.guest_fpu.state); +/* PKRU is separately restored in kvm_x86_ops->run. */ +__copy_kernel_to_fpregs (&vcpu->arch.guest_fpu.state, + ~XFEATURE_MASK_PKRU );trace_kvm_fpu (1 ); }
arch/x86/lib/copy_user_64.S +5 -2
@@ -37,7 +37,7 @@ ENTRY(copy_user_generic_unrolled) movl %edx,%ecx andl $63,%edx shrl $6,%ecx - jz 17f + jz .L_copy_short_string 1: movq (%rsi),%r8 2: movq 1*8(%rsi),%r9 3: movq 2*8(%rsi),%r10
@@ -58,7 +58,8 @@ ENTRY(copy_user_generic_unrolled) leaq 64(%rdi),%rdi decl %ecx jnz 1b -17: movl %edx,%ecx +.L_copy_short_string: + movl %edx,%ecx andl $7,%edx shrl $3,%ecx jz 20f
@@ -174,6 +175,8 @@ EXPORT_SYMBOL(copy_user_generic_string) */ ENTRY(copy_user_enhanced_fast_string) ASM_STAC + cmpl $64,%edx + jb .L_copy_short_string /* less then 64 bytes, avoid the costly 'rep' */ movl %edx,%ecx 1: rep movsb
arch/x86/mm/mmap.c +3 -4
@@ -50,8 +50,7 @@ unsigned long tasksize_64bit(void)static unsigned long stack_maxrandom_size (unsigned long task_size) {unsigned long max =0 ; -if ((current->flags &PF_RANDOMIZE ) && - !(current->personality &ADDR_NO_RANDOMIZE )) { +if (current->flags &PF_RANDOMIZE ) { max = (-1UL ) &__STACK_RND_MASK (task_size ==tasksize_32bit ()); max <<=PAGE_SHIFT ; }
@@ -82,13 +81,13 @@ static int mmap_is_legacy(void)static unsigned long arch_rnd (unsigned int rndbits) { +if (!(current->flags &PF_RANDOMIZE )) +return 0 ;return (get_random_long () & ((1UL << rndbits) -1 )) <<PAGE_SHIFT ; }unsigned long arch_mmap_rnd (void ) { -if (!(current->flags &PF_RANDOMIZE )) -return 0 ;return arch_rnd (mmap_is_ia32 () ? mmap32_rnd_bits : mmap64_rnd_bits); }
arch/x86/mm/pat.c +12 -16
@@ -37,14 +37,14 @@#undef pr_fmt#define pr_fmt (fmt) "" fmt -static bool boot_cpu_done; - -static int __read_mostly __pat_enabled =IS_ENABLED (CONFIG_X86_PAT ); -static void init_cache_modes (void ); +static bool __read_mostly boot_cpu_done; +static bool __read_mostly pat_disabled = !IS_ENABLED (CONFIG_X86_PAT ); +static bool __read_mostly pat_initialized; +static bool __read_mostly init_cm_done;void pat_disable (const char *reason) { -if (!__pat_enabled) +if (pat_disabled)return ;if (boot_cpu_done) {
@@ -52,10 +52,8 @@ void pat_disable(const char *reason)return ; } - __pat_enabled =0 ; + pat_disabled = true;pr_info ("x86/PAT: %s\n" , reason); - -init_cache_modes (); }static int __init nopat (char *str)
@@ -67,7 +65,7 @@ early_param("nopat", nopat);bool pat_enabled (void ) { -return !!__pat_enabled; +return pat_initialized; }EXPORT_SYMBOL_GPL (pat_enabled);
@@ -205,6 +203,8 @@ static void __init_cache_modes(u64 pat)update_cache_mode_entry (i, cache); }pr_info ("x86/PAT: Configuration [0-7]: %s\n" , pat_msg); + + init_cm_done = true; }#define PAT (x, y) ((u64)PAT_ ## y << ((x)*8))
@@ -225,6 +225,7 @@ static void pat_bsp_init(u64 pat) }wrmsrl (MSR_IA32_CR_PAT , pat); + pat_initialized = true;__init_cache_modes (pat); }
@@ -242,10 +243,9 @@ static void pat_ap_init(u64 pat)wrmsrl (MSR_IA32_CR_PAT , pat); } -static void init_cache_modes (void ) +void init_cache_modes (void ) {u64 pat =0 ; -static int init_cm_done;if (init_cm_done)return ;
@@ -287,8 +287,6 @@ static void init_cache_modes(void) }__init_cache_modes (pat); - - init_cm_done =1 ; }/**
@@ -306,10 +304,8 @@ void pat_init(void)u64 pat;struct cpuinfo_x86 *c = &boot_cpu_data; -if (!pat_enabled ()) { -init_cache_modes (); +if (pat_disabled)return ; - } if ((c->x86_vendor == X86_VENDOR_INTEL) && (((c->x86 == 0x6) && (c->x86_model <= 0xd)) ||
arch/x86/pci/fixup.c +32 -0
@@ -571,3 +571,35 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x2fc0, pci_invalid_bar);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL ,0x6f60 , pci_invalid_bar);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL ,0x6fa0 , pci_invalid_bar);DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_INTEL ,0x6fc0 , pci_invalid_bar); + +/* +* Apple MacBook Pro: Avoid [mem 0x7fa00000-0x7fbfffff] +* +* Using the [mem 0x7fa00000-0x7fbfffff] region, e.g., by assigning it to +* the 00:1c.0 Root Port, causes a conflict with [io 0x1804], which is used +* for soft poweroff and suspend-to-RAM. +* +* As far as we know, this is related to the address space, not to the Root +* Port itself. Attaching the quirk to the Root Port is a convenience, but +* it could probably also be a standalone DMI quirk. +* +* https://bugzilla.kernel.org/show_bug.cgi?id=103211 +*/ +static void quirk_apple_mbp_poweroff (struct pci_dev *pdev) +{ +struct device *dev = &pdev->dev; +struct resource *res; + +if ((!dmi_match (DMI_PRODUCT_NAME ,"MacBookPro11,4" ) && + !dmi_match (DMI_PRODUCT_NAME ,"MacBookPro11,5" )) || + pdev->bus->number !=0 || pdev->devfn !=PCI_DEVFN (0x1c ,0 )) +return ; + + res =request_mem_region (0x7fa00000 ,0x200000 , +"MacBook Pro poweroff workaround" ); +if (res) +dev_info (dev,"claimed %s %pR\n" , res->name, res); +else +dev_info (dev,"can't work around MacBook Pro poweroff issue\n" ); +} +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x8c10 , quirk_apple_mbp_poweroff);
arch/x86/xen/smp_pv.c +2 -1
@@ -19,6 +19,7 @@#include <linux/irq_work.h> #include <linux/tick.h> #include <linux/nmi.h> +#include <linux/cpuhotplug.h> #include <asm/paravirt.h> #include <asm/desc.h>
@@ -417,7 +418,7 @@ static void xen_pv_play_dead(void) /* used only with HOTPLUG_CPU */*/ tick_nohz_idle_enter (); - cpu_startup_entry(CPUHP_AP_ONLINE_IDLE); + cpuhp_online_idle(CPUHP_AP_ONLINE_IDLE); }#else /* !CONFIG_HOTPLUG_CPU */
arch/xtensa/kernel/xtensa_ksyms.c +0 -2
@@ -94,13 +94,11 @@ unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v) }EXPORT_SYMBOL (__sync_fetch_and_or_4); -#ifdef CONFIG_NET /* * Networking support */ EXPORT_SYMBOL (csum_partial);EXPORT_SYMBOL (csum_partial_copy_generic); -#endif /* CONFIG_NET */ /* * Architecture-specific symbols
arch/xtensa/mm/cache.c +8 -8
@@ -103,6 +103,7 @@ void clear_user_highpage(struct page *page, unsigned long vaddr)clear_page_alias (kvaddr, paddr);preempt_enable (); } +EXPORT_SYMBOL (clear_user_highpage);void copy_user_highpage (struct page *dst,struct page *src,unsigned long vaddr,struct vm_area_struct *vma)
@@ -119,10 +120,7 @@ void copy_user_highpage(struct page *dst, struct page *src,copy_page_alias (dst_vaddr, src_vaddr, dst_paddr, src_paddr);preempt_enable (); } - -#endif /* DCACHE_WAY_SIZE > PAGE_SIZE */ - -#if (DCACHE_WAY_SIZE >PAGE_SIZE ) &&XCHAL_DCACHE_IS_WRITEBACK +EXPORT_SYMBOL (copy_user_highpage);/* * Any time the kernel writes to a user page cache page, or it is about to
@@ -176,7 +174,7 @@ void flush_dcache_page(struct page *page)/* There shouldn't be an entry in the cache for this page anymore. */ } - +EXPORT_SYMBOL (flush_dcache_page);/* * For now, flush the whole cache. FIXME??
@@ -188,6 +186,7 @@ void local_flush_cache_range(struct vm_area_struct *vma,__flush_invalidate_dcache_all ();__invalidate_icache_all (); } +EXPORT_SYMBOL (local_flush_cache_range);/* * Remove any entry in the cache for this page.
@@ -207,8 +206,9 @@ void local_flush_cache_page(struct vm_area_struct *vma, unsigned long address,__flush_invalidate_dcache_page_alias (virt, phys); __invalidate_icache_page_alias(virt, phys); } +EXPORT_SYMBOL (local_flush_cache_page); -#endif +#endif /* DCACHE_WAY_SIZE > PAGE_SIZE */ void update_mmu_cache (struct vm_area_struct * vma,unsigned long addr,pte_t *ptep)
@@ -225,7 +225,7 @@ update_mmu_cache(struct vm_area_struct * vma, unsigned long addr, pte_t *ptep)flush_tlb_page (vma, addr); -#if (DCACHE_WAY_SIZE >PAGE_SIZE ) &&XCHAL_DCACHE_IS_WRITEBACK +#if (DCACHE_WAY_SIZE >PAGE_SIZE )if (!PageReserved (page) &&test_bit (PG_arch_1, &page->flags)) {unsigned long phys =page_to_phys (page);
@@ -256,7 +256,7 @@ update_mmu_cache(struct vm_area_struct * vma, unsigned long addr, pte_t *ptep)* flush_dcache_page() on the page. */ -#if (DCACHE_WAY_SIZE >PAGE_SIZE ) &&XCHAL_DCACHE_IS_WRITEBACK +#if (DCACHE_WAY_SIZE >PAGE_SIZE ) void copy_to_user_page(struct vm_area_struct *vma, struct page *page, unsigned long vaddr, void *dst, const void *src,
block/blk-core.c +4 -0
@@ -3307,6 +3307,10 @@ EXPORT_SYMBOL(blk_finish_plug);*/ void blk_pm_runtime_init (struct request_queue *q,struct device *dev) { +/* not support for RQF_PM and ->rpm_status in blk-mq yet */ +if (q->mq_ops) +return ; + q->dev = dev; q->rpm_status =RPM_ACTIVE ;pm_runtime_set_autosuspend_delay (q->dev,-1 );
block/blk-mq-cpumap.c +2 -3
@@ -35,7 +35,6 @@ int blk_mq_map_queues(struct blk_mq_tag_set *set) {unsigned int *map = set->mq_map;unsigned int nr_queues = set->nr_hw_queues; -const struct cpumask *online_mask = cpu_online_mask;unsigned int i, nr_cpus, nr_uniq_cpus, queue, first_sibling;cpumask_var_t cpus;
@@ -44,7 +43,7 @@ int blk_mq_map_queues(struct blk_mq_tag_set *set)cpumask_clear (cpus); nr_cpus = nr_uniq_cpus =0 ; -for_each_cpu (i, online_mask) { +for_each_present_cpu (i) { nr_cpus++; first_sibling =get_first_sibling (i);if (!cpumask_test_cpu (first_sibling, cpus))
@@ -54,7 +53,7 @@ int blk_mq_map_queues(struct blk_mq_tag_set *set) queue =0 ;for_each_possible_cpu (i) { -if (!cpumask_test_cpu (i, online_mask)) { +if (!cpumask_test_cpu (i, cpu_present_mask)) { map[i] =0 ;continue ; }
block/blk-mq-pci.c +7 -1
@@ -36,12 +36,18 @@ int blk_mq_pci_map_queues(struct blk_mq_tag_set *set, struct pci_dev *pdev)for (queue =0 ; queue < set->nr_hw_queues; queue++) { mask =pci_irq_get_affinity (pdev, queue);if (!mask) -return -EINVAL ; + goto fallback;for_each_cpu (cpu, mask) set->mq_map[cpu] = queue; }return 0 ; + +fallback: +WARN_ON_ONCE (set->nr_hw_queues >1 ); +for_each_possible_cpu (cpu) + set->mq_map[cpu] =0 ; +return 0 ; }EXPORT_SYMBOL_GPL (blk_mq_pci_map_queues);
block/blk-mq.c +13 -111
117 lines not on this page · raw message
drivers/base/firmware_class.c +34 -15
49 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +7 -8
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +6 -7
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h +21 -20
41 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +2 -69
71 lines not on this page · raw message
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/drm_dp_mst_topology.c +33 -8
41 lines not on this page · raw message
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/i915_gem_render_state.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/radeon/atombios_encoders.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/i2c/busses/i2c-designware-platdrv.c +15 -2
Lines of this file are not shown. View the raw message.
drivers/iio/common/hid-sensors/hid-sensor-trigger.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/iio/common/st_sensors/st_sensors_core.c +29 -0
Lines of this file are not shown. View the raw message.
drivers/iio/magnetometer/st_magn_core.c +1 -3
Lines of this file are not shown. View the raw message.
drivers/iio/pressure/st_pressure_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/iser/iscsi_iser.c +11 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/isert/ib_isert.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/input/mouse/alps.c +31 -10
41 lines not on this page · raw message
drivers/md/raid1.c +27 -29
56 lines not on this page · raw message
drivers/media/pci/saa7164/saa7164-bus.c +1 -12
Lines of this file are not shown. View the raw message.
drivers/media/platform/davinci/vpfe_capture.c +2 -20
Lines of this file are not shown. View the raw message.
drivers/media/platform/s5p-jpeg/jpeg-core.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/media/usb/dvb-usb-v2/mxl111sf.c +19 -13
Lines of this file are not shown. View the raw message.
drivers/media/usb/dvb-usb-v2/mxl111sf.h +7 -1
Lines of this file are not shown. View the raw message.
drivers/media/usb/pulse8-cec/pulse8-cec.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/mmc/core/host.c +35 -37
72 lines not on this page · raw message
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cavium/liquidio/cn66xx_device.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c +25 -17
42 lines not on this page · raw message
drivers/net/ethernet/intel/igb/e1000_82575.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/en_rx.c +18 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx4/main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +21 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en.h +9 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_clock.c +159 -63
222 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +0 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eq.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/health.c +14 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/ipoib.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lag.c +10 -15
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfp_net_common.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/geneve.c +32 -16
48 lines not on this page · raw message
drivers/net/ppp/ppp_generic.c +29 -15
44 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/ar9003_phy.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +3 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +7 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +0 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/dvm/tx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +25 -7
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/cfg80211.c +35 -36
71 lines not on this page · raw message
drivers/pci/pci.c +103 -62
165 lines not on this page · raw message
drivers/pinctrl/intel/pinctrl-cherryview.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/intel/pinctrl-merrifield.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/pinctrl/meson/pinctrl-meson-gxbb.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/meson/pinctrl-meson-gxl.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/samsung/pinctrl-exynos.c +0 -4
Lines of this file are not shown. View the raw message.
drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c +192 -172
364 lines not on this page · raw message
drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c +194 -189
383 lines not on this page · raw message
drivers/scsi/scsi_lib.c +29 -18
47 lines not on this page · raw message
drivers/staging/comedi/drivers/ni_mio_common.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/staging/iio/resolver/ad2s1210.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c +15 -4
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8188eu/os_dep/usb_intf.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_configfs.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_login.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_nego.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_parameters.c +28 -13
41 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_parameters.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_tpg.c +19 -0
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_tpg.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/target/target_core_transport.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/usb/host/pci-quirks.c +86 -5
91 lines not on this page · raw message
drivers/usb/renesas_usbhs/mod_gadget.c +24 -7
Lines of this file are not shown. View the raw message.
drivers/vfio/vfio.c +45 -39
84 lines not on this page · raw message
fs/binfmt_elf.c +52 -10
62 lines not on this page · raw message
fs/nfs/flexfilelayout/flexfilelayoutdev.c +1 -0
Lines of this file are not shown. View the raw message.
fs/pnode.c +163 -49
212 lines not on this page · raw message
fs/proc/proc_sysctl.c +30 -13
43 lines not on this page · raw message
include/linux/platform_data/st_sensors_pdata.h +2 -0
Lines of this file are not shown. View the raw message.
include/linux/sched.h +46 -34
80 lines not on this page · raw message
include/target/iscsi/iscsi_target_core.h +10 -0
Lines of this file are not shown. View the raw message.
kernel/bpf/verifier.c +171 -20
191 lines not on this page · raw message
kernel/cgroup/cgroup.c +37 -29
66 lines not on this page · raw message
kernel/events/core.c +29 -44
73 lines not on this page · raw message
kernel/sched/cputime.c +97 -61
158 lines not on this page · raw message
kernel/sched/fair.c +127 -237
364 lines not on this page · raw message
kernel/time/timer.c +42 -10
52 lines not on this page · raw message
kernel/watchdog_hld.c +59 -0
59 lines not on this page · raw message
net/ipv4/tcp_bbr.c +38 -11
49 lines not on this page · raw message
net/key/af_key.c +26 -22
48 lines not on this page · raw message
tools/lib/lockdep/uinclude/linux/lockdep.h +1 -1
Lines of this file are not shown. View the raw message.
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +60 -18
78 lines not on this page · raw message
tools/testing/selftests/capabilities/test_execve.c +2 -5
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ntb/ntb_test.sh +4 -0
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.