Linux 4.3.5
Greg KH
maintainerI'm announcing the release of the 4.3.5 kernel.
All users of the 4.3 kernel series must upgrade.
The updated 4.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.3.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/ABI/testing/sysfs-bus-usb | 16 - Documentation/usb/power-management.txt | 11 Makefile | 2 arch/arm/kvm/mmu.c | 15 - arch/arm/net/bpf_jit_32.c | 16 - arch/arm64/Kconfig | 21 + arch/arm64/include/asm/atomic_ll_sc.h | 2 arch/arm64/include/asm/atomic_lse.h | 2 arch/arm64/include/asm/cpufeature.h | 3 arch/arm64/include/asm/kvm_emulate.h | 8 arch/arm64/kernel/cpu_errata.c | 9 arch/arm64/kernel/head.S | 5 arch/arm64/kernel/perf_event.c | 3 arch/arm64/kernel/ptrace.c | 6 arch/arm64/kernel/setup.c | 4 arch/arm64/kernel/suspend.c | 10 arch/arm64/kvm/hyp.S | 6 arch/arm64/kvm/inject_fault.c | 2 arch/arm64/mm/mmu.c | 3 arch/arm64/mm/proc-macros.S | 12 + arch/arm64/mm/proc.S | 2 arch/arm64/net/bpf_jit.h | 3 arch/arm64/net/bpf_jit_comp.c | 54 +++- arch/mips/net/bpf_jit.c | 16 - arch/mn10300/Kconfig | 4 arch/powerpc/include/asm/cmpxchg.h | 16 - arch/powerpc/include/asm/reg.h | 1 arch/powerpc/include/asm/synch.h | 2 arch/powerpc/include/uapi/asm/elf.h | 2 arch/powerpc/kernel/module_64.c | 27 ++ arch/powerpc/kernel/process.c | 18 + arch/powerpc/kernel/signal_32.c | 14 - arch/powerpc/kernel/signal_64.c | 4 arch/powerpc/kvm/book3s_hv.c | 8 arch/powerpc/net/bpf_jit_comp.c | 13 - arch/powerpc/platforms/powernv/opal-irqchip.c | 64 +++-- arch/powerpc/platforms/powernv/opal.c | 2 arch/sparc/net/bpf_jit_comp.c | 17 - arch/x86/include/asm/boot.h | 2 arch/x86/include/asm/mmu_context.h | 34 ++- arch/x86/include/asm/paravirt.h | 6 arch/x86/include/asm/paravirt_types.h | 5 arch/x86/include/asm/processor.h | 1 arch/x86/kernel/cpu/mcheck/mce.c | 11 arch/x86/kernel/reboot.c | 8 arch/x86/kernel/rtc.c | 3 arch/x86/kernel/signal.c | 17 - arch/x86/kernel/smpboot.c | 9 arch/x86/kvm/svm.c | 14 - arch/x86/kvm/trace.h | 2 arch/x86/kvm/vmx.c | 19 - arch/x86/kvm/x86.c | 11 arch/x86/lguest/boot.c | 1 arch/x86/mm/mpx.c | 6 arch/x86/mm/tlb.c | 29 ++ arch/x86/xen/enlighten.c | 4 arch/x86/xen/suspend.c | 3 drivers/char/ipmi/ipmi_si_intf.c | 81 ++++--- drivers/connector/connector.c | 11 drivers/hid/hid-core.c | 2 drivers/hid/wacom_wac.c | 28 ++ drivers/hid/wacom_wac.h | 1 drivers/infiniband/hw/mlx5/cq.c | 2 drivers/iommu/arm-smmu-v3.c | 9 drivers/iommu/intel-iommu.c | 9 drivers/isdn/i4l/isdn_ppp.c | 12 - drivers/media/platform/vivid/vivid-osd.c | 1 drivers/media/usb/airspy/airspy.c | 2 drivers/net/bonding/bond_main.c | 5 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 6 drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 drivers/net/ethernet/synopsys/dwc_eth_qos.c | 2 drivers/net/ppp/ppp_generic.c | 6 drivers/net/slip/slhc.c | 12 - drivers/net/slip/slip.c | 2 drivers/net/team/team.c | 6 drivers/net/usb/cdc_mbim.c | 2 drivers/net/usb/cdc_ncm.c | 31 ++ drivers/net/veth.c | 6 drivers/net/vxlan.c | 12 - drivers/parisc/iommu-helpers.h | 15 - drivers/staging/lustre/lustre/obdecho/echo_client.c | 20 - drivers/usb/core/hub.c | 61 ++++- drivers/usb/core/sysfs.c | 31 ++ drivers/usb/host/xhci.c | 12 + drivers/usb/serial/cp210x.c | 1 drivers/usb/serial/ipaq.c | 3 drivers/xen/gntdev.c | 2 fs/direct-io.c | 11 include/linux/filter.h | 19 + include/linux/mlx5/cq.h | 2 include/linux/mlx5/driver.h | 5 include/linux/sched.h | 1 include/linux/skbuff.h | 3 include/linux/syscalls.h | 2 include/linux/types.h | 2 include/linux/usb.h | 4 include/linux/usb/cdc_ncm.h | 1 include/net/inet_ecn.h | 19 + kernel/bpf/verifier.c | 10 kernel/time/timer.c | 22 + net/batman-adv/bridge_loop_avoidance.c | 10 net/batman-adv/hard-interface.h | 12 - net/batman-adv/network-coding.c | 19 - net/batman-adv/originator.c | 149 +++++-------- net/batman-adv/originator.h | 1 net/batman-adv/translation-table.c | 28 +- net/bridge/br_device.c | 8 net/bridge/br_stp_if.c | 5 net/core/dev.c | 5 net/core/dst.c | 3 net/core/filter.c | 5 net/core/pktgen.c | 4 net/ipv4/ip_output.c | 3 net/ipv4/tcp_input.c | 3 net/ipv4/tcp_yeah.c | 2 net/ipv4/xfrm4_policy.c | 46 +++- net/ipv6/addrconf.c | 11 net/ipv6/addrlabel.c | 2 net/ipv6/ip6_output.c | 2 net/ipv6/tcp_ipv6.c | 2 net/ipv6/xfrm6_mode_tunnel.c | 2 net/ipv6/xfrm6_policy.c | 53 +++- net/openvswitch/datapath.c | 5 net/openvswitch/flow_netlink.c | 4 net/phonet/af_phonet.c | 4 net/sched/cls_flower.c | 10 net/sched/sch_generic.c | 4 net/sctp/sm_statefuns.c | 6 net/sctp/socket.c | 3 net/sctp/sysctl.c | 2 net/unix/af_unix.c | 90 +++++--- net/unix/garbage.c | 13 - net/xfrm/xfrm_output.c | 2 net/xfrm/xfrm_policy.c | 38 --- scripts/recordmcount.c | 24 ++ scripts/recordmcount.h | 2 scripts/recordmcount.pl | 3 sound/core/control.c | 2 sound/core/hrtimer.c | 3 sound/core/pcm_compat.c | 13 - sound/core/seq/seq_clientmgr.c | 2 sound/core/seq/seq_compat.c | 9 sound/core/seq/seq_queue.c | 2 sound/core/timer.c | 100 +++++++- sound/firewire/bebob/Makefile | 2 sound/firewire/dice/Makefile | 2 sound/firewire/fireworks/Makefile | 2 sound/firewire/oxfw/Makefile | 2 sound/pci/hda/hda_controller.c | 3 sound/pci/hda/hda_intel.c | 52 ++++ sound/pci/hda/patch_ca0132.c | 3 sound/pci/hda/patch_hdmi.c | 6 sound/pci/hda/patch_realtek.c | 225 +++++++++++++++++--- sound/pci/hda/patch_sigmatel.c | 46 ++-- sound/pci/rme96.c | 41 ++- sound/soc/codecs/arizona.c | 2 sound/soc/codecs/es8328.c | 25 +- sound/soc/codecs/es8328.h | 1 sound/soc/codecs/rt286.c | 8 sound/soc/codecs/wm5110.c | 8 sound/soc/codecs/wm8962.c | 4 sound/soc/codecs/wm8974.c | 1 sound/soc/davinci/davinci-mcasp.c | 4 sound/soc/sh/rcar/gen.c | 2 sound/soc/soc-compress.c | 23 +- sound/usb/card.c | 2 sound/usb/mixer.c | 2 sound/usb/mixer_maps.c | 12 - sound/usb/mixer_quirks.c | 39 +++ sound/usb/mixer_quirks.h | 4 sound/usb/quirks.c | 2 172 files changed, 1622 insertions(+), 722 deletions(-)
Al Viro (2):
staging: lustre: echo_copy.._lsm() dereferences userland pointers directly fix the regression from "direct-io: Fix negative return from dio read beyond eof"
Alan Stern (1):
USB: fix invalid memory access in hub_activate()
Alexandra Yates (1):
ALSA: hda - Add Intel Lewisburg device IDs Audio
Alistair Popple (2):
powerpc/opal-irqchip: Fix double endian conversion powerpc/opal-irqchip: Fix deadlock introduced by "Fix double endian conversion"
Andrey Ryabinin (1):
ipv6/addrlabel: fix ip6addrlbl_get()
Andy Lutomirski (2):
x86/mm: Add barriers and document switch_mm()-vs-flush synchronization x86/mm: Improve switch_mm() barrier comments
Anssi Hannula (2):
ALSA: usb-audio: Add a more accurate volume quirk for AudioQuest DragonFly
ALSA: usb-audio: Add sample rate inquiry quirk for AudioQuest DragonFly
Antti Palosaari (1):
airspy: increase USB control message buffer size
Ard Biesheuvel (2):
ARM/arm64: KVM: test properly for a PTE's uncachedness ARM/arm64: KVM: correct PTE uncachedness check
Arnd Bergmann (1):
arm64: fix building without CONFIG_UID16
Ashok Raj (1):
x86/mce: Ensure offline CPUs don't participate in rendezvous process
Axel Lin (1):
ASoC: rt286: Fix run time error while modifying const data
Ben Hutchings (2):
isdn_ppp: Add checks for allocation failure in isdn_ppp_open() ppp, slip: Validate VJ compression slot parameters completely
Bjørn Mork (1):
net: cdc_ncm: avoid changing RX/TX buffers on MTU changes
Boqun Feng (2):
powerpc: Make value-returning atomics fully ordered
powerpc: Make {cmp}xchg* and their atomic_ versions fully ordered
Boris Ostrovsky (1):
xen/gntdev: Grant maps should not be subject to NUMA balancing
Charles Keepax (1):
ASoC: wm5110: Fix PGA clear when disabling DRE
Chunfeng Yun (1):
usb: xhci: fix config fail of FS hub behind a HS hub with MTT
Corey Minyard (1):
ipmi: Start the timer and thread on internal msgs
Dan Carpenter (1):
USB: ipaq.c: fix a timeout loop
Dan Streetman (1):
xfrm: dst_entries_init() per-net dst_ops
Dave Hansen (1):
x86/mpx: Fix instruction decoder condition
David Henningsson (3):
ALSA: hda - Add inverted dmic for Packard Bell DOTS
ALSA: hda - Fix headphone mic input on a few Dell ALC293 machines
ALSA: hda - Fixup inverted internal mic for Lenovo E50-80
David Vrabel (1):
x86/paravirt: Prevent rtc_cmos platform device init on PV guests
David Woodhouse (1):
iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints
Dmitry V. Levin (1):
x86/signal: Fix restart_syscall number for x32 tasks
Doron Tsur (1):
net/mlx5_core: Fix trimming down IRQ number
Eric Dumazet (3):
ipv6: tcp: add rcu locking in tcp_v6_send_synack()
phonet: properly unshare skbs in phonet_rcv()
ipv6: update skb->csum when CE mark is propagated
Florian Westphal (1):
connector: bump skb->users before callback invocation
Francesco Ruggeri (1):
net: possible use after free in dst_release
Gabriele Martino (1):
ALSA: hda/ca0132 - quirk for Alienware 17 2015
Greg Kroah-Hartman (1):
Linux 4.3.5
Guenter Roeck (1):
mn10300: Select CONFIG_HAVE_UID16 to fix build failure
H.J. Lu (1):
x86/boot: Double BOOT_HEAP_SIZE to 64KB
Hannes Frederic Sowa (1):
bridge: Only call /sbin/bridge-stp for the initial network namespace
Hui Wang (4):
ALSA: hda - Fix headphone noise after Dell XPS 13 resume back from S3
ALSA: hda - Fixing speaker noise on the two latest thinkpad models
ALSA: hda - Add keycode map for alc input device
ALSA: hda - fix the headset mic detection problem for a Dell laptop
Ido Schimmel (1):
team: Replace rcu_read_lock with a mutex in team_vlan_rx_kill_vid
Jamal Hadi Salim (1):
sched,cls_flower: set key address type when present
Jan Kara (1):
direct-io: Fix negative return from dio read beyond eof
Jan Stancek (1):
ipmi: move timer init to before irq is setup
Jason Gerecke (2):
HID: wacom: Tie cached HID_DG_CONTACTCOUNT indices to report ID
HID: wacom: Expect 'touch_max' touches if HID_DG_CONTACTCOUNT not present
John Blackwood (1):
arm64: Clear out any singlestep state on a ptrace detach operation
John Fastabend (2):
net: sched: fix missing free per cpu on qstats
net: pktgen: fix null ptr deref in skb allocation
John Keeping (1):
ASoC: es8328: Fix deemphasis values
Jurgen Kramer (1):
ALSA: usb: Add native DSD support for Oppo HA-1
Kailang (1):
ALSA: hda - Add mic mute hotkey quirk for Lenovo ThinkCentre AIO
Kailang Yang (1):
ALSA: hda/realtek - Dell XPS one ALC3260 speaker no sound after resume back
Karl Heiss (1):
bonding: Prevent IPv6 link local address on enslaved devices
Konstantin Khlebnikov (1):
net: preserve IP control block during GSO segmentation
Kuninori Morimoto (1):
ASoC: rsnd: fixup SCU_SYS_INT_EN1 address
Lars Persson (1):
dwc_eth_qos: Fix dma address for multi-fragment skbs
Len Brown (1):
x86 smpboot: Re-enable init_udelay=0 by default on modern CPUs
Li Bin (1):
recordmcount: arm64: Replace the ignored mcount call into nop
Lorenzo Pieralisi (4):
arm64: cmpxchg_dbl: fix return value type
arm64: kernel: pause/unpause function graph tracer in cpu_suspend()
arm64: kernel: enforce pmuserenr_el0 initialization and restore
arm64: kernel: fix architected PMU registers unconditional access
Lu Baolu (1):
usb: core: lpm: fix usb3_hardware_lpm sysfs node
Mans Rullgard (1):
ASoC: wm8974: set cache type for regmap
Marc Zyngier (2):
arm64: KVM: Fix AArch32 to AArch64 register mapping
arm64: KVM: Add workaround for Cortex-A57 erratum 834220
Mario Kleiner (2):
x86/reboot/quirks: Add iMac10,1 to pci_reboot_dmi_table[]
ALSA: hda/realtek - Fix silent headphone output on MacPro 4,1 (v2)
Michael Neuling (2):
powerpc/tm: Block signal return setting invalid MSR state powerpc/tm: Check for already reclaimed tasks
Michal Kubeček (1):
udp: disallow UFO for sockets with SO_NO_CHECK option
Mikulas Patocka (1):
parisc iommu: fix panic due to trying to allocate too large region
Neal Cardwell (1):
tcp_yeah: don't set ssthresh below 2
Nicolas Boichat (2):
ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode
ALSA: pcm: Fix snd_pcm_hw_params struct copy in compat mode
Nicolas Dichtel (1):
vxlan: fix test which detect duplicate vxlan iface
Nikesh Oswal (1):
ASoC: arizona: Fix bclk for sample rates that are multiple of 4kHz
Nikolay Aleksandrov (1):
bridge: fix lockdep addr_list_lock false positive splat
Oliver Freyermuth (1):
USB: cp210x: add ID for ELV Marble Sound Board 1
Oliver Neukum (1):
xhci: refuse loading if nousb is used
Ouyang Zhaowei (Charles) (1):
x86/xen: don't reset vcpu_info on a cancelled suspend
Paolo Bonzini (3):
KVM: svm: unconditionally intercept #DB
KVM: x86: expose MSR_TSC_AUX to userspace
KVM: x86: correctly print #AC in traces
Paul Mackerras (2):
KVM: PPC: Book3S HV: Don't dynamically split core when already split
KVM: PPC: Book3S HV: Prohibit setting illegal transaction state in MSR
Peter Ujfalusi (1):
ASoC: davinci-mcasp: Fix XDATA check in mcasp_start_tx
Rabin Vincent (2):
net: filter: make JITs zero A for SKF_AD_ALU_XOR_X
net: bpf: reject invalid shifts
Radim Krčmář (1):
KVM: VMX: fix SMEP and SMAP without EPT
Rainer Weikusat (1):
af_unix: Fix splice-bind deadlock
Richard Purdie (1):
HID: core: Avoid uninitialized buffer access
Sachin Pandhare (1):
ASoC: wm8962: correct addresses for HPF_C_0/1
Salva Peiró (1):
media/vivid-osd: fix info leak in ioctl
Sasha Levin (1):
net: sctp: prevent writes to cookie_hmac_alg from accessing invalid memory
Simon Horman (1):
openvswitch: correct encoding of set tunnel action attributes
Stewart Smith (1):
powerpc/powernv: pr_warn_once on unsupported OPAL_MSG type
Sven Eckelmann (7):
batman-adv: Avoid recursive call_rcu for batadv_bla_claim
batman-adv: Avoid recursive call_rcu for batadv_nc_node
batman-adv: Drop immediate batadv_orig_ifinfo free function
batman-adv: Drop immediate batadv_neigh_node free function
batman-adv: Drop immediate neigh_ifinfo free function
batman-adv: Drop immediate batadv_hard_iface free function
batman-adv: Drop immediate orig_node free function
Takashi Iwai (27):
ALSA: hda - Disable 64bit address for Creative HDA controllers
ALSA: hda - Fix lost 4k BDL boundary workaround
ALSA: hda - Apply pin fixup for HP ProBook 6550b
ALSA: hda - Apply HP headphone fixups more generically
ALSA: hda - Fix noise on Dell Latitude E6440
ALSA: hda - Add fixup for Acer Aspire One Cloudbook 14
ALSA: hda - Fix noise on Gigabyte Z170X mobo
ALSA: hda - Skip ELD notification during system suspend
ALSA: rme96: Fix unexpected volume reset after rate changes
ALSA: hda - Fix noise problems on Thinkpad T440s
ALSA: hda - Add a fixup for Thinkpad X1 Carbon 2nd
ALSA: hda - Apply click noise workaround for Thinkpads generically
ALSA: hda - Set codec to D3 at reboot/shutdown on Thinkpads
ALSA: seq: Fix missing NULL check at remove_events ioctl
ALSA: usb-audio: Avoid calling usb_autopm_put_interface() at disconnect
ALSA: seq: Fix race at timer setup and close
ALSA: hda - Fix white noise on Dell Latitude E5550
ALSA: usb-audio: Fix mixer ctl regression of Native Instrument devices
ALSA: timer: Harden slave timer list handling
ALSA: timer: Fix race among timer ioctls
ALSA: timer: Fix double unlink of active_list
ALSA: hda - Add fixup for Dell Latitidue E6540
ALSA: hrtimer: Fix stall by hrtimer_cancel()
ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0
ALSA: hda - Fix bass pin fixup for ASUS N550JX
ALSA: hda - Flush the pending probe work at remove
ALSA: timer: Handle disconnection more safely
Takashi Sakamoto (1):
ALSA: fireworks/bebob/oxfw/dice: enable to make as built-in
Tejun Heo (1):
timers: Use proper base migration in add_timer_on()
Ulrich Weigand (2):
scripts/recordmcount.pl: support data in text section on powerpc powerpc/module: Handle R_PPC64_ENTRY relocations
Vijay Pandurangan (1):
veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.
Vinod Koul (1):
ASoC: compress: Fix compress device direction check
WANG Cong (1):
addrconf: always initialize sysctl table data
Will Deacon (2):
arm64: mm: ensure that the zero page is visible to the page table walker iommu/arm-smmu: Fix error checking for ASID and VMID allocation
Xin Long (1):
sctp: sctp should release assoc when sctp_make_abort_user return NULL in sctp_close
Xiong Zhang (1):
ALSA: hda - Set SKL+ hda controller power at freeze() and thaw()
Yang Shi (1):
arm64: restore bogomips information in /proc/cpuinfo
Yuchung Cheng (1):
tcp: fix zero cwnd in tcp_cwnd_reduction
Zi Shen Lim (2):
arm64: bpf: fix div-by-zero case
arm64: bpf: fix mod-by-zero case
libin (1):
recordmcount: Fix endianness handling bug for nop_mcount
willy tarreau (1):
unix: properly account for FDs passed over unix sockets
Greg KH
maintainerDocumentation/ABI/testing/sysfs-bus-usb +9 -7
@@ -114,19 +114,21 @@ Description: enabled for the device. Developer can write y/Y/1 or n/N/0 to the file to enable/disable the feature. -What: /sys/bus/usb/devices/.../power/usb3_hardware_lpm -Date: June 2015 +What: /sys/bus/usb/devices/.../power/usb3_hardware_lpm_u1 + /sys/bus/usb/devices/.../power/usb3_hardware_lpm_u2 +Date: November 2015 Contact: Kevin Strasser <[email protected]> + Lu Baolu <[email protected]> Description: If CONFIG_PM is set and a USB 3.0 lpm-capable device is plugged in to a xHCI host which supports link PM, it will check if U1 and U2 exit latencies have been set in the BOS descriptor; if - the check is is passed and the host supports USB3 hardware LPM, + the check is passed and the host supports USB3 hardware LPM, USB3 hardware LPM will be enabled for the device and the USB - device directory will contain a file named - power/usb3_hardware_lpm. The file holds a string value (enable - or disable) indicating whether or not USB3 hardware LPM is - enabled for the device. + device directory will contain two files named + power/usb3_hardware_lpm_u1 and power/usb3_hardware_lpm_u2. These + files hold a string value (enable or disable) indicating whether + or not USB3 hardware LPM U1 or U2 is enabled for the device. What: /sys/bus/usb/devices/.../removable Date: February 2012
Documentation/usb/power-management.txt +6 -5
@@ -537,17 +537,18 @@ relevant attribute files are usb2_hardware_lpm and usb3_hardware_lpm. can write y/Y/1 or n/N/0 to the file to enable/disable USB2 hardware LPM manually. This is for test purpose mainly. - power/usb3_hardware_lpm + power/usb3_hardware_lpm_u1 + power/usb3_hardware_lpm_u2 When a USB 3.0 lpm-capable device is plugged in to a xHCI host which supports link PM, it will check if U1 and U2 exit latencies have been set in the BOS descriptor; if the check is is passed and the host supports USB3 hardware LPM, USB3 hardware LPM will be - enabled for the device and this file will be created. - The file holds a string value (enable or disable) - indicating whether or not USB3 hardware LPM is - enabled for the device. + enabled for the device and these files will be created. + The files hold a string value (enable or disable) + indicating whether or not USB3 hardware LPM U1 or U2 + is enabled for the device. USB Port Power Control ----------------------
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 3 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = Blurry Fish Butt
arch/arm/kvm/mmu.c +7 -8
@@ -98,6 +98,11 @@ static void kvm_flush_dcache_pud(pud_t pud)__kvm_flush_dcache_pud (pud); } +static bool kvm_is_device_pfn (unsigned long pfn) +{ +return !pfn_valid (pfn); +} +/** * stage2_dissolve_pmd() - clear and flush huge PMD entry * @kvm: pointer to kvm structure.
@@ -213,7 +218,7 @@ static void unmap_ptes(struct kvm *kvm, pmd_t *pmd,kvm_tlb_flush_vmid_ipa (kvm, addr);/* No need to invalidate the cache for device mappings */ -if ((pte_val (old_pte) &PAGE_S2_DEVICE ) !=PAGE_S2_DEVICE ) +if (!kvm_is_device_pfn (pte_pfn (old_pte)))kvm_flush_dcache_pte (old_pte);put_page (virt_to_page (pte));
@@ -305,8 +310,7 @@ static void stage2_flush_ptes(struct kvm *kvm, pmd_t *pmd, pte =pte_offset_kernel (pmd, addr);do { -if (!pte_none (*pte) && - (pte_val (*pte) &PAGE_S2_DEVICE ) !=PAGE_S2_DEVICE ) +if (!pte_none (*pte) && !kvm_is_device_pfn (pte_pfn (*pte)))kvm_flush_dcache_pte (*pte); }while (pte++, addr +=PAGE_SIZE , addr != end); }
@@ -1037,11 +1041,6 @@ static bool kvm_is_write_fault(struct kvm_vcpu *vcpu)return kvm_vcpu_dabt_iswrite (vcpu); } -static bool kvm_is_device_pfn (unsigned long pfn) -{ -return !pfn_valid (pfn); -} -/** * stage2_wp_ptes - write protect PMD range * @pmd: pointer to pmd entry
arch/arm/net/bpf_jit_32.c +1 -15
@@ -182,19 +182,6 @@ static inline int mem_words_used(struct jit_ctx *ctx)return fls (ctx->seen &SEEN_MEM ); } -static inline bool is_load_to_a (u16 inst) -{ -switch (inst) { -case BPF_LD |BPF_W |BPF_LEN : -case BPF_LD |BPF_W |BPF_ABS : -case BPF_LD |BPF_H |BPF_ABS : -case BPF_LD |BPF_B |BPF_ABS : -return true; -default : -return false; - } -} -static void jit_fill_hole (void *area,unsigned int size) {u32 *ptr;
@@ -206,7 +193,6 @@ static void jit_fill_hole(void *area, unsigned int size)static void build_prologue (struct jit_ctx *ctx) {u16 reg_set =saved_regs (ctx); -u16 first_inst = ctx->skf->insns[0 ].code;u16 off;#ifdef CONFIG_FRAME_POINTER
@@ -236,7 +222,7 @@ static void build_prologue(struct jit_ctx *ctx)emit (ARM_MOV_I (r_X,0 ), ctx);/* do not leak kernel data to userspace */ -if ((first_inst != (BPF_RET |BPF_K )) && !(is_load_to_a (first_inst))) +if (bpf_needs_clear_a (&ctx->skf->insns[0 ]))emit (ARM_MOV_I (r_A,0 ), ctx);/* stack space for the BPF_MEM words */
arch/arm64/Kconfig +21 -0
@@ -311,6 +311,27 @@ config ARM64_ERRATUM_832075 If unsure, say Y. +config ARM64_ERRATUM_834220 + bool "Cortex-A57: 834220: Stage 2 translation fault might be incorrectly reported in presence of a Stage 1 fault" + depends on KVM + default y + help + This option adds an alternative code sequence to work around ARM + erratum 834220 on Cortex-A57 parts up to r1p2. + + Affected Cortex-A57 parts might report a Stage 2 translation + fault as a the result of a Stage 1 fault for a load crossing + a page boundary when there is a Stage 1 permission or device + memory alignment fault and a Stage 2 translation fault + + The workaround is to verify that the Stage-1 translation + doesn't generate a fault before handling the Stage-2 fault. + Please note that this does not necessarily enable the workaround, + as it depends on the alternative framework, which will only patch + the kernel if an affected CPU is detected. + + If unsure, say Y. + config ARM64_ERRATUM_845719 bool "Cortex-A53: 845719: a load might read incorrect data" depends on COMPAT
arch/arm64/include/asm/atomic_ll_sc.h +1 -1
@@ -211,7 +211,7 @@ __CMPXCHG_CASE( , , mb_8, dmb ish, l, "memory")#undef __CMPXCHG_CASE#define __CMPXCHG_DBL (name, mb, rel, cl) \ -__LL_SC_INLINE int \ +__LL_SC_INLINE long \ __LL_SC_PREFIX(__cmpxchg_double##name(unsigned long old1, \ unsigned long old2, \ unsigned long new1, \
arch/arm64/include/asm/atomic_lse.h +1 -1
@@ -348,7 +348,7 @@ __CMPXCHG_CASE(x, , mb_8, al, "memory")#define __LL_SC_CMPXCHG_DBL (op) __LL_SC_CALL(__cmpxchg_double##op) #define __CMPXCHG_DBL(name, mb, cl...) \ -static inline int __cmpxchg_double##name(unsigned long old1, \ +static inline long __cmpxchg_double##name(unsigned long old1, \ unsigned long old2, \ unsigned long new1, \ unsigned long new2, \
arch/arm64/include/asm/cpufeature.h +2 -1
@@ -27,8 +27,9 @@#define ARM64_HAS_SYSREG_GIC_CPUIF 3#define ARM64_HAS_PAN 4#define ARM64_HAS_LSE_ATOMICS 5 +#define ARM64_WORKAROUND_834220 6 -#define ARM64_NCAPS 6 +#define ARM64_NCAPS 7#ifndef __ASSEMBLY__
arch/arm64/include/asm/kvm_emulate.h +5 -3
@@ -99,11 +99,13 @@ static inline void vcpu_set_thumb(struct kvm_vcpu *vcpu) *vcpu_cpsr (vcpu) |=COMPAT_PSR_T_BIT ; } +/* +* vcpu_reg should always be passed a register number coming from a +* read of ESR_EL2. Otherwise, it may give the wrong result on AArch32 +* with banked registers. +*/ static inline unsigned long *vcpu_reg (const struct kvm_vcpu *vcpu,u8 reg_num) { -if (vcpu_mode_is_32bit (vcpu)) -return vcpu_reg32 (vcpu, reg_num); -return (unsigned long *)&vcpu_gp_regs (vcpu)->regs.regs[reg_num]; }
arch/arm64/kernel/cpu_errata.c +9 -0
@@ -74,6 +74,15 @@ const struct arm64_cpu_capabilities arm64_errata[] = { (1 << MIDR_VARIANT_SHIFT) | 2), },#endif +#ifdef CONFIG_ARM64_ERRATUM_834220 + { + /* Cortex-A57 r0p0 - r1p2 */ + .desc = "ARM erratum 834220", + .capability = ARM64_WORKAROUND_834220, + MIDR_RANGE(MIDR_CORTEX_A57, 0x00, + (1 << MIDR_VARIANT_SHIFT) | 2), + }, +#endif #ifdef CONFIG_ARM64_ERRATUM_845719 { /* Cortex-A53 r0p[01234] */
arch/arm64/kernel/head.S +5 -0
@@ -524,9 +524,14 @@ CPU_LE( movk x0, #0x30d0, lsl #16 ) // Clear EE and E0E on LE systems #endif /* EL2 debug */ + mrs x0, id_aa64dfr0_el1 // Check ID_AA64DFR0_EL1 PMUVer + sbfx x0, x0, #8, #4 + cmp x0, #1 + b.lt 4f // Skip if no PMU present mrs x0, pmcr_el0 // Disable debug access traps ubfx x0, x0, #11, #5 // to EL2 and allow access to msr mdcr_el2, x0 // all PMU counters from EL1 +4: /* Stage-2 translation */ msr vttbr_el2, xzr
arch/arm64/kernel/perf_event.c +0 -3
@@ -1159,9 +1159,6 @@ static void armv8pmu_reset(void *info)/* Initialize & Reset PMNC: C and P bits. */ armv8pmu_pmcr_write (ARMV8_PMCR_P |ARMV8_PMCR_C ); - -/* Disable access from userspace. */ - asmvolatile ("msr pmuserenr_el0, %0" ::"r" (0 )); }static int armv8_pmuv3_map_event (struct perf_event *event)
arch/arm64/kernel/ptrace.c +6 -0
@@ -58,6 +58,12 @@*/ void ptrace_disable (struct task_struct *child) { +/* +* This would be better off in core code, but PTRACE_DETACH has +* grown its fair share of arch-specific worts and changing it +* is likely to cause regressions on obscure architectures. +*/ +user_disable_single_step (child); }#ifdef CONFIG_HAVE_HW_BREAKPOINT
arch/arm64/kernel/setup.c +4 -0
@@ -558,6 +558,10 @@ static int c_show(struct seq_file *m, void *v)*/ seq_printf (m,"processor\t: %d\n" , i); +seq_printf (m,"BogoMIPS\t: %lu.%02lu\n" , + loops_per_jiffy / (500000UL /HZ ), + loops_per_jiffy / (5000UL /HZ ) %100 ); +/* * Dump out the common processor features in a single line. * Userspace should read the hwcaps with getauxval(AT_HWCAP)
arch/arm64/kernel/suspend.c +10 -0
@@ -1,3 +1,4 @@ +#include <linux/ftrace.h> #include <linux/percpu.h> #include <linux/slab.h> #include <asm/cacheflush.h>
@@ -71,6 +72,13 @@ int cpu_suspend(unsigned long arg, int (*fn)(unsigned long))local_dbg_save (flags);/* +* Function graph tracer state gets incosistent when the kernel +* calls functions that never return (aka suspend finishers) hence +* disable graph tracing during their execution. +*/ +pause_graph_tracing (); + +/* * mm context saved on the stack, it will be restored when * the cpu comes out of reset through the identity mapped * page tables, so that the thread address space is properly
@@ -111,6 +119,8 @@ int cpu_suspend(unsigned long arg, int (*fn)(unsigned long))hw_breakpoint_restore (NULL ); } +unpause_graph_tracing (); +/* * Restore pstate flags. OS lock and mdscr have been already * restored, so from this point onwards, debugging is fully
arch/arm64/kvm/hyp.S +6 -0
@@ -1007,9 +1007,15 @@ el1_trap: b.ne 1f // Not an abort we care about /* This is an abort. Check for permission fault */ +alternative_if_not ARM64_WORKAROUND_834220 and x2, x1, #ESR_ELx_FSC_TYPE cmp x2, #FSC_PERM b.ne 1f // Not a permission fault +alternative_else + nop // Force a Stage-1 translation to occur + nop // and return to the guest if it failed + nop +alternative_endif /* * Check for Stage-1 page table walk, which is guaranteed
arch/arm64/kvm/inject_fault.c +1 -1
@@ -48,7 +48,7 @@ static void prepare_fault32(struct kvm_vcpu *vcpu, u32 mode, u32 vect_offset)/* Note: These now point to the banked copies */ *vcpu_spsr (vcpu) = new_spsr_value; - *vcpu_reg (vcpu,14 ) = *vcpu_pc (vcpu) + return_offset; + *vcpu_reg32 (vcpu,14 ) = *vcpu_pc (vcpu) + return_offset;/* Branch to exception vector */ if (sctlr & (1 <<13 ))
arch/arm64/mm/mmu.c +3 -0
@@ -451,6 +451,9 @@ void __init paging_init(void) empty_zero_page =virt_to_page (zero_page); +/* Ensure the zero page is visible to the page table walker */ +dsb (ishst); +/* * TTBR0 is only used for the identity mapping at this stage. Make it * point to zero page to avoid speculatively fetching new entries.
arch/arm64/mm/proc-macros.S +12 -0
@@ -62,3 +62,15 @@ bfi \valreg, \tmpreg, #TCR_T0SZ_OFFSET, #TCR_TxSZ_WIDTH #endif .endm + +/* + * reset_pmuserenr_el0 - reset PMUSERENR_EL0 if PMUv3 present + */ + .macro reset_pmuserenr_el0, tmpreg + mrs \tmpreg, id_aa64dfr0_el1 // Check ID_AA64DFR0_EL1 PMUVer + sbfx \tmpreg, \tmpreg, #8, #4 + cmp \tmpreg, #1 // Skip if no PMU present + b.lt 9000f + msr pmuserenr_el0, xzr // Disable PMU access from EL0 +9000: + .endm
arch/arm64/mm/proc.S +2 -0
@@ -115,6 +115,7 @@ ENTRY(cpu_do_resume) */ ubfx x11, x11, #1, #1 msr oslar_el1, x11 + reset_pmuserenr_el0 x0 // Disable PMU access from EL0 mov x0, x12 dsb nsh // Make sure local tlb invalidation completed isb
@@ -153,6 +154,7 @@ ENTRY(__cpu_setup) msr cpacr_el1, x0 // Enable FP/ASIMD mov x0, #1 << 12 // Reset mdscr_el1 and disable msr mdscr_el1, x0 // access to the DCC from EL0 + reset_pmuserenr_el0 x0 // Disable PMU access from EL0 /* * Memory region attributes for LPAE: *
arch/arm64/net/bpf_jit.h +2 -1
@@ -1,7 +1,7 @@/* * BPF JIT compiler for ARM64 * -* Copyright (C) 2014 Zi Shen Lim <[email protected]> +* Copyright (C) 2014-2015 Zi Shen Lim <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as
@@ -35,6 +35,7 @@aarch64_insn_gen_comp_branch_imm (0 , offset, Rt,A64_VARIANT (sf), \ AARCH64_INSN_BRANCH_COMP_##type)#define A64_CBZ (sf, Rt, imm19) A64_COMP_BRANCH(sf, Rt, (imm19) << 2, ZERO) +#define A64_CBNZ (sf, Rt, imm19) A64_COMP_BRANCH(sf, Rt, (imm19) << 2, NONZERO)/* Conditional branch (immediate) */ #define A64_COND_BRANCH (cond, offset) \
arch/arm64/net/bpf_jit_comp.c +36 -18
81 lines not on this page · raw message
arch/mips/net/bpf_jit.c +1 -15
@@ -521,19 +521,6 @@ static inline u16 align_sp(unsigned int num)return num; } -static bool is_load_to_a (u16 inst) -{ -switch (inst) { -case BPF_LD |BPF_W |BPF_LEN : -case BPF_LD |BPF_W |BPF_ABS : -case BPF_LD |BPF_H |BPF_ABS : -case BPF_LD |BPF_B |BPF_ABS : -return true; -default : -return false; - } -} -static void save_bpf_jit_regs (struct jit_ctx *ctx,unsigned offset) {int i =0 , real_off =0 ;
@@ -614,7 +601,6 @@ static unsigned int get_stack_depth(struct jit_ctx *ctx)static void build_prologue (struct jit_ctx *ctx) { -u16 first_inst = ctx->skf->insns[0 ].code;int sp_off;/* Calculate the total offset for the stack pointer */
@@ -641,7 +627,7 @@ static void build_prologue(struct jit_ctx *ctx)emit_jit_reg_move (r_X, r_zero, ctx);/* Do not leak kernel data to userspace */ -if ((first_inst != (BPF_RET |BPF_K )) && !(is_load_to_a (first_inst))) +if (bpf_needs_clear_a (&ctx->skf->insns[0 ]))emit_jit_reg_move (r_A, r_zero, ctx); }
arch/mn10300/Kconfig +1 -3
@@ -1,6 +1,7 @@ config MN10300 def_bool y select HAVE_OPROFILE + select HAVE_UID16 select GENERIC_IRQ_SHOW select ARCH_WANT_IPC_PARSE_VERSION select HAVE_ARCH_TRACEHOOK
@@ -37,9 +38,6 @@ config HIGHMEM config NUMA def_bool n -config UID16 - def_bool y - config RWSEM_GENERIC_SPINLOCK def_bool y
arch/powerpc/include/asm/cmpxchg.h +8 -8
@@ -18,12 +18,12 @@ __xchg_u32(volatile void *p, unsigned long val)unsigned long prev; __asm__ __volatile__( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: lwarx %0,0,%2 \n" PPC405_ERR77(0,%2)" stwcx. %3,0,%2 \n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER : "=&r" (prev), "+m" (*(volatile unsigned int *)p) : "r" (p), "r" (val) : "cc", "memory");
@@ -61,12 +61,12 @@ __xchg_u64(volatile void *p, unsigned long val)unsigned long prev; __asm__ __volatile__( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: ldarx %0,0,%2 \n" PPC405_ERR77(0,%2)" stdcx. %3,0,%2 \n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER : "=&r" (prev), "+m" (*(volatile unsigned long *)p) : "r" (p), "r" (val) : "cc", "memory");
@@ -151,14 +151,14 @@ __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new)unsigned int prev; __asm__ __volatile__ ( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: lwarx %0,0,%2 # __cmpxchg_u32\n\ cmpw 0,%0,%3\n\ bne- 2f\n" PPC405_ERR77(0,%2)" stwcx. %4,0,%2\n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER "\n\ 2:" : "=&r" (prev), "+m" (*p)
@@ -197,13 +197,13 @@ __cmpxchg_u64(volatile unsigned long *p, unsigned long old, unsigned long new)unsigned long prev; __asm__ __volatile__ ( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: ldarx %0,0,%2 # __cmpxchg_u64\n\ cmpd 0,%0,%3\n\ bne- 2f\n\ stdcx. %4,0,%2\n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER "\n\ 2:" : "=&r" (prev), "+m" (*p)
arch/powerpc/include/asm/reg.h +1 -0
@@ -108,6 +108,7 @@#define MSR_TS_T __MASK(MSR_TS_T_LG)/* Transaction Transactional */ #define MSR_TS_MASK (MSR_TS_T | MSR_TS_S)/* Transaction State bits */ #define MSR_TM_ACTIVE (x) (((x) & MSR_TS_MASK) != 0)/* Transaction active? */ +#define MSR_TM_RESV (x) (((x) & MSR_TS_MASK) == MSR_TS_MASK)/* Reserved */ #define MSR_TM_TRANSACTIONAL (x) (((x) & MSR_TS_MASK) == MSR_TS_T)#define MSR_TM_SUSPENDED (x) (((x) & MSR_TS_MASK) == MSR_TS_S)
arch/powerpc/include/asm/synch.h +1 -1
@@ -44,7 +44,7 @@ static inline void isync(void)MAKE_LWSYNC_SECTION_ENTRY (97 , __lwsync_fixup);#define PPC_ACQUIRE_BARRIER "\n" stringify_in_c(__PPC_ACQUIRE_BARRIER)#define PPC_RELEASE_BARRIER stringify_in_c(LWSYNC) "\n" -#define PPC_ATOMIC_ENTRY_BARRIER "\n" stringify_in_c(LWSYNC) "\n" +#define PPC_ATOMIC_ENTRY_BARRIER "\n" stringify_in_c(sync) "\n"#define PPC_ATOMIC_EXIT_BARRIER "\n" stringify_in_c(sync) "\n"#else #define PPC_ACQUIRE_BARRIER
arch/powerpc/include/uapi/asm/elf.h +2 -0
@@ -295,6 +295,8 @@ do { \#define R_PPC64_TLSLD 108#define R_PPC64_TOCSAVE 109 +#define R_PPC64_ENTRY 118 +#define R_PPC64_REL16 249#define R_PPC64_REL16_LO 250#define R_PPC64_REL16_HI 251
arch/powerpc/kernel/module_64.c +27 -0
@@ -635,6 +635,33 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,*/ break ; +case R_PPC64_ENTRY : +/* +* Optimize ELFv2 large code model entry point if +* the TOC is within 2GB range of current location. +*/ + value =my_r2 (sechdrs, me) - (unsigned long )location; +if (value +0x80008000 >0xffffffff ) +break ; +/* +* Check for the large code model prolog sequence: +* ld r2, ...(r12) +* add r2, r2, r12 +*/ +if ((((uint32_t *)location)[0 ] & ~0xfffc ) + !=0xe84c0000 ) +break ; +if (((uint32_t *)location)[1 ] !=0x7c426214 ) +break ; +/* +* If found, replace it with: +* addis r2, r12, (.TOC.-func)@ha +* addi r2, r12, (.TOC.-func)@l +*/ + ((uint32_t *)location)[0 ] =0x3c4c0000 +PPC_HA (value); + ((uint32_t *)location)[1 ] =0x38420000 +PPC_LO (value); +break ; +case R_PPC64_REL16_HA :/* Subtract location pointer */ value -= (unsigned long )location;
arch/powerpc/kernel/process.c +18 -0
@@ -551,6 +551,24 @@ static void tm_reclaim_thread(struct thread_struct *thr, msr_diff &=MSR_FP |MSR_VEC |MSR_VSX |MSR_FE0 |MSR_FE1 ; } +/* +* Use the current MSR TM suspended bit to track if we have +* checkpointed state outstanding. +* On signal delivery, we'd normally reclaim the checkpointed +* state to obtain stack pointer (see:get_tm_stackpointer()). +* This will then directly return to userspace without going +* through __switch_to(). However, if the stack frame is bad, +* we need to exit this thread which calls __switch_to() which +* will again attempt to reclaim the already saved tm state. +* Hence we need to check that we've not already reclaimed +* this state. +* We do this using the current MSR, rather tracking it in +* some specific thread_struct bit, as it has the additional +* benifit of checking for a potential TM bad thing exception. +*/ +if (!MSR_TM_SUSPENDED (mfmsr ())) +return ; +tm_reclaim (thr, thr->regs->msr, cause);/* Having done the reclaim, we now have the checkpointed
arch/powerpc/kernel/signal_32.c +9 -5
@@ -875,6 +875,15 @@ static long restore_tm_user_regs(struct pt_regs *regs,return 1 ;#endif /* CONFIG_SPE */ +/* Get the top half of the MSR from the user context */ +if (__get_user (msr_hi, &tm_sr->mc_gregs[PT_MSR ])) +return 1 ; + msr_hi <<=32 ; +/* If TM bits are set to the reserved value, it's an invalid context */ +if (MSR_TM_RESV (msr_hi)) +return 1 ; +/* Pull in the MSR TM bits from the user context */ + regs->msr = (regs->msr & ~MSR_TS_MASK ) | (msr_hi &MSR_TS_MASK );/* Now, recheckpoint. This loads up all of the checkpointed (older) * registers, including FP and V[S]Rs. After recheckpointing, the * transactional versions should be loaded.
@@ -884,11 +893,6 @@ static long restore_tm_user_regs(struct pt_regs *regs, current->thread.tm_texasr |=TEXASR_FS ;/* This loads the checkpointed FP/VEC state, if used */ tm_recheckpoint (¤t->thread, msr); -/* Get the top half of the MSR */ -if (__get_user (msr_hi, &tm_sr->mc_gregs[PT_MSR ])) -return 1 ; -/* Pull in MSR TM from user context */ - regs->msr = (regs->msr & ~MSR_TS_MASK ) | ((msr_hi<<32 ) &MSR_TS_MASK );/* This loads the speculative FP/VEC state, if used */ if (msr &MSR_FP ) {
arch/powerpc/kernel/signal_64.c +4 -0
@@ -438,6 +438,10 @@ static long restore_tm_sigcontexts(struct pt_regs *regs,/* get MSR separately, transfer the LE bit if doing signal return */ err |=__get_user (msr, &sc->gp_regs[PT_MSR ]); +/* Don't allow reserved mode. */ +if (MSR_TM_RESV (msr)) +return -EINVAL ; +/* pull in MSR TM from user context */ regs->msr = (regs->msr & ~MSR_TS_MASK ) | (msr &MSR_TS_MASK );
arch/powerpc/kvm/book3s_hv.c +7 -1
@@ -224,6 +224,12 @@ static void kvmppc_core_vcpu_put_hv(struct kvm_vcpu *vcpu)static void kvmppc_set_msr_hv (struct kvm_vcpu *vcpu,u64 msr) { +/* +* Check for illegal transactional state bit combination +* and if we find it, force the TS field to a safe state. +*/ +if ((msr &MSR_TS_MASK ) ==MSR_TS_MASK ) + msr &= ~MSR_TS_MASK ; vcpu->arch.shregs.msr = msr;kvmppc_end_cede (vcpu); }
@@ -2019,7 +2025,7 @@ static bool can_split_piggybacked_subcores(struct core_info *cip)return false; n_subcores += (cip->subcore_threads[sub] -1 ) >>1 ; } -if (n_subcores >3 || large_sub <0 ) +if (large_sub <0 || !subcore_config_ok (n_subcores +1 ,2 ))return false;/*
arch/powerpc/net/bpf_jit_comp.c +2 -11
@@ -78,18 +78,9 @@ static void bpf_jit_build_prologue(struct bpf_prog *fp, u32 *image,PPC_LI (r_X,0 ); } -switch (filter[0 ].code) { -case BPF_RET |BPF_K : -case BPF_LD |BPF_W |BPF_LEN : -case BPF_LD |BPF_W |BPF_ABS : -case BPF_LD |BPF_H |BPF_ABS : -case BPF_LD |BPF_B |BPF_ABS : -/* first instruction sets A register (or is RET 'constant') */ -break ; -default : -/* make sure we dont leak kernel information to user */ +/* make sure we dont leak kernel information to user */ +if (bpf_needs_clear_a (&filter[0 ]))PPC_LI (r_A,0 ); - } }static void bpf_jit_build_epilogue (u32 *image,struct codegen_context *ctx)
arch/powerpc/platforms/powernv/opal-irqchip.c +38 -26
94 lines not on this page · raw message
arch/powerpc/platforms/powernv/opal.c +1 -1
@@ -278,7 +278,7 @@ static void opal_handle_message(void)/* Sanity check */ if (type >=OPAL_MSG_TYPE_MAX ) { -pr_warning ("%s: Unknown message type: %u\n" , __func__, type); +pr_warn_once ("%s: Unknown message type: %u\n" , __func__, type);return ; }opal_message_do_notify (type, (void *)&msg);
arch/sparc/net/bpf_jit_comp.c +2 -15
@@ -420,22 +420,9 @@ void bpf_jit_compile(struct bpf_prog *fp) }emit_reg_move (O7 , r_saved_O7); -switch (filter[0 ].code) { -case BPF_RET |BPF_K : -case BPF_LD |BPF_W |BPF_LEN : -case BPF_LD |BPF_W |BPF_ABS : -case BPF_LD |BPF_H |BPF_ABS : -case BPF_LD |BPF_B |BPF_ABS : -/* The first instruction sets the A register (or is -* a "RET 'constant'") -*/ -break ; -default : -/* Make sure we dont leak kernel information to the -* user. -*/ +/* Make sure we dont leak kernel information to the user. */ +if (bpf_needs_clear_a (&filter[0 ]))emit_clear (r_A);/* A = 0 */ - }for (i =0 ; i < flen; i++) {unsigned int K = filter[i].k;
arch/x86/include/asm/boot.h +1 -1
@@ -27,7 +27,7 @@#define BOOT_HEAP_SIZE 0x400000#else /* !CONFIG_KERNEL_BZIP2 */ -#define BOOT_HEAP_SIZE 0x8000 +#define BOOT_HEAP_SIZE 0x10000#endif /* !CONFIG_KERNEL_BZIP2 */
arch/x86/include/asm/mmu_context.h +33 -1
@@ -116,8 +116,36 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,#endif cpumask_set_cpu (cpu,mm_cpumask (next)); -/* Re-load page tables */ +/* +* Re-load page tables. +* +* This logic has an ordering constraint: +* +* CPU 0: Write to a PTE for 'next' +* CPU 0: load bit 1 in mm_cpumask. if nonzero, send IPI. +* CPU 1: set bit 1 in next's mm_cpumask +* CPU 1: load from the PTE that CPU 0 writes (implicit) +* +* We need to prevent an outcome in which CPU 1 observes +* the new PTE value and CPU 0 observes bit 1 clear in +* mm_cpumask. (If that occurs, then the IPI will never +* be sent, and CPU 0's TLB will contain a stale entry.) +* +* The bad outcome can occur if either CPU's load is +* reordered before that CPU's store, so both CPUs must +* execute full barriers to prevent this from happening. +* +* Thus, switch_mm needs a full barrier between the +* store to mm_cpumask and any operation that could load +* from next->pgd. TLB fills are special and can happen +* due to instruction fetches or for no reason at all, +* and neither LOCK nor MFENCE orders them. +* Fortunately, load_cr3() is serializing and gives the +* ordering guarantee we need. +* +*/ load_cr3 (next->pgd); +trace_tlb_flush (TLB_FLUSH_ON_TASK_SWITCH ,TLB_FLUSH_ALL );/* Stop flush ipis for the previous mm */
@@ -156,10 +184,14 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,* schedule, protecting us from simultaneous changes. */ cpumask_set_cpu (cpu,mm_cpumask (next)); +/* * We were in lazy tlb mode and leave_mm disabled * tlb flush IPI delivery. We must reload CR3 * to make sure to use no freed page tables. +* +* As above, load_cr3() is serializing and orders TLB +* fills with respect to the mm_cpumask write. */ load_cr3 (next->pgd);trace_tlb_flush (TLB_FLUSH_ON_TASK_SWITCH ,TLB_FLUSH_ALL );
arch/x86/include/asm/paravirt.h +6 -0
@@ -19,6 +19,12 @@ static inline int paravirt_enabled(void)return pv_info.paravirt_enabled; } +static inline int paravirt_has_feature (unsigned int feature) +{ +WARN_ON_ONCE (!pv_info.paravirt_enabled); +return (pv_info.features & feature); +} +static inline void load_sp0 (struct tss_struct *tss,struct thread_struct *thread) {
arch/x86/include/asm/paravirt_types.h +5 -0
@@ -70,9 +70,14 @@ struct pv_info {#endif int paravirt_enabled; +unsigned int features;/* valid only if paravirt_enabled is set */ const char *name; }; +#define paravirt_has (x) paravirt_has_feature(PV_SUPPORTED_##x) +/* Supported features */ +#define PV_SUPPORTED_RTC (1<<0) +struct pv_init_ops {/* * Patch may replace one of the defined code sequences with
arch/x86/include/asm/processor.h +1 -0
@@ -472,6 +472,7 @@ static inline unsigned long current_top_of_stack(void)#else #define __cpuid native_cpuid#define paravirt_enabled () 0 +#define paravirt_has (x) 0static inline void load_sp0 (struct tss_struct *tss,struct thread_struct *thread)
arch/x86/kernel/cpu/mcheck/mce.c +11 -0
@@ -999,6 +999,17 @@ void do_machine_check(struct pt_regs *regs, long error_code)int flags =MF_ACTION_REQUIRED ;int lmce =0 ; +/* If this CPU is offline, just bail out. */ +if (cpu_is_offline (smp_processor_id ())) { +u64 mcgstatus; + + mcgstatus =mce_rdmsrl (MSR_IA32_MCG_STATUS ); +if (mcgstatus &MCG_STATUS_RIPV ) { +mce_wrmsrl (MSR_IA32_MCG_STATUS ,0 ); +return ; + } + } +ist_enter (regs);this_cpu_inc (mce_exception_count);
arch/x86/kernel/reboot.c +8 -0
@@ -182,6 +182,14 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"), }, }, + { /* Handle problems with rebooting on the iMac10,1. */ + .callback = set_pci_reboot, + .ident = "Apple iMac10,1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac10,1"), + }, + },/* ASRock */ {/* Handle problems with rebooting on ASRock Q1900DC-ITX */
arch/x86/kernel/rtc.c +3 -0
@@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void) }#endif +if (paravirt_enabled () && !paravirt_has (RTC )) +return -ENODEV ; +platform_device_register (&rtc_device);dev_info (&rtc_device.dev,"registered platform RTC device (no PNP device found)\n" );
arch/x86/kernel/signal.c +10 -7
@@ -688,12 +688,15 @@ handle_signal(struct ksignal *ksig, struct pt_regs *regs)signal_setup_done (failed, ksig, stepping); } -#ifdef CONFIG_X86_32 -#define NR_restart_syscall __NR_restart_syscall -#else /* !CONFIG_X86_32 */ -#define NR_restart_syscall \ - test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall -#endif /* CONFIG_X86_32 */ +static inline unsigned long get_nr_restart_syscall (const struct pt_regs *regs) +{ +#if defined(CONFIG_X86_32 ) || !defined(CONFIG_X86_64 ) +return __NR_restart_syscall; +#else /* !CONFIG_X86_32 && CONFIG_X86_64 */ +return test_thread_flag (TIF_IA32 ) ? __NR_ia32_restart_syscall : + __NR_restart_syscall | (regs->orig_ax & __X32_SYSCALL_BIT); +#endif /* CONFIG_X86_32 || !CONFIG_X86_64 */ +}/* * Note that 'init' is a special process: it doesn't get signals it doesn't
@@ -722,7 +725,7 @@ void do_signal(struct pt_regs *regs)break ;case -ERESTART_RESTARTBLOCK : - regs->ax = NR_restart_syscall; + regs->ax =get_nr_restart_syscall (regs); regs->ip -=2 ;break ; }
arch/x86/kernel/smpboot.c +5 -4
@@ -509,7 +509,7 @@ void __inquire_remote_apic(int apicid)*/ #define UDELAY_10MS_DEFAULT 10000 -static unsigned int init_udelay =INT_MAX ; +static unsigned int init_udelay =UINT_MAX ;static int __init cpu_init_udelay (char *str) {
@@ -522,14 +522,15 @@ early_param("cpu_init_udelay", cpu_init_udelay);static void __init smp_quirk_init_udelay (void ) {/* if cmdline changed it from default, leave it alone */ -if (init_udelay !=INT_MAX ) +if (init_udelay !=UINT_MAX )return ;/* if modern processor, use no delay */ if (((boot_cpu_data.x86_vendor ==X86_VENDOR_INTEL ) && (boot_cpu_data.x86 ==6 )) || - ((boot_cpu_data.x86_vendor ==X86_VENDOR_AMD ) && (boot_cpu_data.x86 >=0xF ))) + ((boot_cpu_data.x86_vendor ==X86_VENDOR_AMD ) && (boot_cpu_data.x86 >=0xF ))) { init_udelay =0 ; - +return ; + }/* else, use legacy delay */ init_udelay =UDELAY_10MS_DEFAULT ; }
arch/x86/kvm/svm.c +3 -11
@@ -1108,6 +1108,7 @@ static void init_vmcb(struct vcpu_svm *svm)set_exception_intercept (svm,UD_VECTOR );set_exception_intercept (svm,MC_VECTOR );set_exception_intercept (svm,AC_VECTOR ); +set_exception_intercept (svm,DB_VECTOR );set_intercept (svm,INTERCEPT_INTR );set_intercept (svm,INTERCEPT_NMI );
@@ -1642,20 +1643,13 @@ static void svm_set_segment(struct kvm_vcpu *vcpu,mark_dirty (svm->vmcb,VMCB_SEG ); } -static void update_db_bp_intercept (struct kvm_vcpu *vcpu) +static void update_bp_intercept (struct kvm_vcpu *vcpu) {struct vcpu_svm *svm =to_svm (vcpu); -clr_exception_intercept (svm,DB_VECTOR );clr_exception_intercept (svm,BP_VECTOR ); -if (svm->nmi_singlestep) -set_exception_intercept (svm,DB_VECTOR ); -if (vcpu->guest_debug &KVM_GUESTDBG_ENABLE ) { -if (vcpu->guest_debug & - (KVM_GUESTDBG_SINGLESTEP |KVM_GUESTDBG_USE_HW_BP )) -set_exception_intercept (svm,DB_VECTOR );if (vcpu->guest_debug &KVM_GUESTDBG_USE_SW_BP )set_exception_intercept (svm,BP_VECTOR ); }else
@@ -1761,7 +1755,6 @@ static int db_interception(struct vcpu_svm *svm)if (!(svm->vcpu.guest_debug &KVM_GUESTDBG_SINGLESTEP )) svm->vmcb->save.rflags &= ~(X86_EFLAGS_TF |X86_EFLAGS_RF ); -update_db_bp_intercept (&svm->vcpu); } if (svm->vcpu.guest_debug &
@@ -3761,7 +3754,6 @@ static void enable_nmi_window(struct kvm_vcpu *vcpu)*/ svm->nmi_singlestep = true; svm->vmcb->save.rflags |= (X86_EFLAGS_TF |X86_EFLAGS_RF ); -update_db_bp_intercept (vcpu); }static int svm_set_tss_addr (struct kvm *kvm,unsigned int addr)
@@ -4383,7 +4375,7 @@ static struct kvm_x86_ops svm_x86_ops = { .vcpu_load = svm_vcpu_load, .vcpu_put = svm_vcpu_put, - .update_db_bp_intercept = update_db_bp_intercept, + .update_db_bp_intercept = update_bp_intercept, .get_msr = svm_get_msr, .set_msr = svm_set_msr, .get_segment_base = svm_get_segment_base,
arch/x86/kvm/trace.h +1 -1
@@ -250,7 +250,7 @@ TRACE_EVENT(kvm_inj_virq,#define kvm_trace_sym_exc \ EXS(DE), EXS(DB), EXS(BP), EXS(OF), EXS(BR), EXS(UD), EXS(NM), \ EXS(DF), EXS(TS), EXS(NP), EXS(SS), EXS(GP), EXS(PF), \ - EXS(MF), EXS(MC) + EXS(MF), EXS(AC), EXS(MC)/* * Tracepoint for kvm interrupt injection:
arch/x86/kvm/vmx.c +10 -9
@@ -3644,20 +3644,21 @@ static int vmx_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4)if (!is_paging (vcpu)) { hw_cr4 &= ~X86_CR4_PAE ; hw_cr4 |=X86_CR4_PSE ; -/* -* SMEP/SMAP is disabled if CPU is in non-paging mode -* in hardware. However KVM always uses paging mode to -* emulate guest non-paging mode with TDP. -* To emulate this behavior, SMEP/SMAP needs to be -* manually disabled when guest switches to non-paging -* mode. -*/ - hw_cr4 &= ~(X86_CR4_SMEP |X86_CR4_SMAP ); }else if (!(cr4 &X86_CR4_PAE )) { hw_cr4 &= ~X86_CR4_PAE ; } } +if (!enable_unrestricted_guest && !is_paging (vcpu)) +/* +* SMEP/SMAP is disabled if CPU is in non-paging mode in +* hardware. However KVM always uses paging mode without +* unrestricted guest. +* To emulate this behavior, SMEP/SMAP needs to be manually +* disabled when guest switches to non-paging mode. +*/ + hw_cr4 &= ~(X86_CR4_SMEP |X86_CR4_SMAP ); +vmcs_writel (CR4_READ_SHADOW , cr4);vmcs_writel (GUEST_CR4 , hw_cr4);return 0 ;
arch/x86/kvm/x86.c +6 -5
@@ -942,7 +942,7 @@ static u32 msrs_to_save[] = {MSR_CSTAR ,MSR_KERNEL_GS_BASE ,MSR_SYSCALL_MASK ,MSR_LSTAR , #endifMSR_IA32_TSC ,MSR_IA32_CR_PAT ,MSR_VM_HSAVE_PA , -MSR_IA32_FEATURE_CONTROL ,MSR_IA32_BNDCFGS + MSR_IA32_FEATURE_CONTROL, MSR_IA32_BNDCFGS, MSR_TSC_AUX, };static unsigned num_msrs_to_save;
@@ -3847,16 +3847,17 @@ static void kvm_init_msr_list(void)/* * Even MSRs that are valid in the host may not be exposed -* to the guests in some cases. We could work around this -* in VMX with the generic MSR save/load machinery, but it -* is not really worthwhile since it will really only -* happen with nested virtualization. +* to the guests in some cases. */ switch (msrs_to_save[i]) {case MSR_IA32_BNDCFGS :if (!kvm_x86_ops->mpx_supported ())continue ;break ; +case MSR_TSC_AUX : +if (!kvm_x86_ops->rdtscp_supported ()) +continue ; +break ;default :break ; }
arch/x86/lguest/boot.c +1 -0
@@ -1414,6 +1414,7 @@ __init void lguest_init(void) pv_info.kernel_rpl =1 ;/* Everyone except Xen runs with this set. */ pv_info.shared_kernel_pmd =1 ; + pv_info.features =0 ;/* * We set up all the lguest overrides for sensitive operations. These
arch/x86/mm/mpx.c +3 -3
@@ -101,19 +101,19 @@ static int get_reg_offset(struct insn *insn, struct pt_regs *regs,switch (type) {case REG_TYPE_RM : regno =X86_MODRM_RM (insn->modrm.value); -if (X86_REX_B (insn->rex_prefix.value) ==1 ) +if (X86_REX_B (insn->rex_prefix.value)) regno +=8 ;break ;case REG_TYPE_INDEX : regno =X86_SIB_INDEX (insn->sib.value); -if (X86_REX_X (insn->rex_prefix.value) ==1 ) +if (X86_REX_X (insn->rex_prefix.value)) regno +=8 ;break ;case REG_TYPE_BASE : regno =X86_SIB_BASE (insn->sib.value); -if (X86_REX_B (insn->rex_prefix.value) ==1 ) +if (X86_REX_B (insn->rex_prefix.value)) regno +=8 ;break ;
arch/x86/mm/tlb.c +26 -3
@@ -161,7 +161,10 @@ void flush_tlb_current_task(void)preempt_disable ();count_vm_tlb_event (NR_TLB_LOCAL_FLUSH_ALL ); + +/* This is an implicit full barrier that synchronizes with switch_mm. */ local_flush_tlb (); +trace_tlb_flush (TLB_LOCAL_SHOOTDOWN ,TLB_FLUSH_ALL );if (cpumask_any_but (mm_cpumask (mm),smp_processor_id ()) < nr_cpu_ids)flush_tlb_others (mm_cpumask (mm), mm,0UL ,TLB_FLUSH_ALL );
@@ -188,17 +191,29 @@ void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,unsigned long base_pages_to_flush =TLB_FLUSH_ALL ;preempt_disable (); -if (current->active_mm != mm) +if (current->active_mm != mm) { +/* Synchronize with switch_mm. */ +smp_mb (); + goto out; + }if (!current->mm) {leave_mm (smp_processor_id ()); + +/* Synchronize with switch_mm. */ +smp_mb (); + goto out; }if ((end !=TLB_FLUSH_ALL ) && !(vmflag &VM_HUGETLB )) base_pages_to_flush = (end - start) >>PAGE_SHIFT ; +/* +* Both branches below are implicit full barriers (MOV to CR or +* INVLPG) that synchronize with switch_mm. +*/ if (base_pages_to_flush > tlb_single_page_flush_ceiling) { base_pages_to_flush =TLB_FLUSH_ALL ;count_vm_tlb_event (NR_TLB_LOCAL_FLUSH_ALL );
@@ -228,10 +243,18 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long start)preempt_disable ();if (current->active_mm == mm) { -if (current->mm) +if (current->mm) { +/* +* Implicit full barrier (INVLPG) that synchronizes +* with switch_mm. +*/ __flush_tlb_one (start); -else + }else {leave_mm (smp_processor_id ()); + +/* Synchronize with switch_mm. */ +smp_mb (); + } }if (cpumask_any_but (mm_cpumask (mm),smp_processor_id ()) < nr_cpu_ids)
arch/x86/xen/enlighten.c +3 -1
@@ -1191,7 +1191,7 @@ static const struct pv_info xen_info __initconst = {#ifdef CONFIG_X86_64 .extra_user_64bit_cs = FLAT_USER_CS64, #endif - + .features = 0, .name = "Xen", };
@@ -1534,6 +1534,8 @@ asmlinkage __visible void __init xen_start_kernel(void)/* Install Xen paravirt ops */ pv_info = xen_info; +if (xen_initial_domain ()) + pv_info.features |=PV_SUPPORTED_RTC ; pv_init_ops = xen_init_ops; pv_apic_ops = xen_apic_ops;if (!xen_pvh_domain ()) {
arch/x86/xen/suspend.c +2 -1
@@ -33,7 +33,8 @@ static void xen_hvm_post_suspend(int suspend_cancelled) {#ifdef CONFIG_XEN_PVHVM int cpu; -xen_hvm_init_shared_info (); +if (!suspend_cancelled) +xen_hvm_init_shared_info ();xen_callback_vector ();xen_unplug_emulated_devices ();if (xen_feature (XENFEAT_hvm_safe_pvclock)) {
drivers/char/ipmi/ipmi_si_intf.c +48 -33
178 lines not on this page · raw message
drivers/connector/connector.c +3 -8
@@ -178,26 +178,21 @@ static int cn_call_callback(struct sk_buff *skb)* * It checks skb, netlink header and msg sizes, and calls callback helper. */ -static void cn_rx_skb (struct sk_buff *__skb) +static void cn_rx_skb (struct sk_buff *skb) {struct nlmsghdr *nlh; -struct sk_buff *skb;int len, err; - skb =skb_get (__skb); -if (skb->len >=NLMSG_HDRLEN ) { nlh =nlmsg_hdr (skb); len =nlmsg_len (nlh);if (len < (int )sizeof (struct cn_msg ) || skb->len < nlh->nlmsg_len || - len >CONNECTOR_MAX_MSG_SIZE ) { -kfree_skb (skb); + len >CONNECTOR_MAX_MSG_SIZE )return ; - } - err =cn_call_callback (skb); + err =cn_call_callback (skb_get (skb));if (err <0 )kfree_skb (skb); }
drivers/hid/hid-core.c +1 -1
@@ -1611,7 +1611,7 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask) "Multi-Axis Controller" };const char *type, *bus; -char buf[64 ]; +char buf[64 ] ="" ;unsigned int i;int len;int ret;
drivers/hid/wacom_wac.c +27 -1
@@ -1628,6 +1628,7 @@ static void wacom_wac_finger_usage_mapping(struct hid_device *hdev,wacom_map_usage (input, usage, field,EV_KEY ,BTN_TOUCH ,0 );break ;case HID_DG_CONTACTCOUNT : + wacom_wac->hid_data.cc_report = field->report->id; wacom_wac->hid_data.cc_index = field->index; wacom_wac->hid_data.cc_value_index = usage->usage_index;break ;
@@ -1715,7 +1716,32 @@ static void wacom_wac_finger_pre_report(struct hid_device *hdev,struct wacom_wac *wacom_wac = &wacom->wacom_wac;struct hid_data * hid_data = &wacom_wac->hid_data; -if (hid_data->cc_index >=0 ) { +if (hid_data->cc_report !=0 && + hid_data->cc_report != report->id) { +int i; + + hid_data->cc_report = report->id; + hid_data->cc_index =-1 ; + hid_data->cc_value_index =-1 ; + +for (i =0 ; i < report->maxfield; i++) { +struct hid_field *field = report->field[i]; +int j; + +for (j =0 ; j < field->maxusage; j++) { +if (field->usage[j].hid ==HID_DG_CONTACTCOUNT ) { + hid_data->cc_index = i; + hid_data->cc_value_index = j; + +/* break */ + i = report->maxfield; + j = field->maxusage; + } + } + } + } +if (hid_data->cc_report !=0 && + hid_data->cc_index >=0 ) {struct hid_field *field = report->field[hid_data->cc_index];int value = field->value[hid_data->cc_value_index];if (value)
drivers/hid/wacom_wac.h +1 -0
@@ -198,6 +198,7 @@ struct hid_data {int width;int height;int id; +int cc_report;int cc_index;int cc_value_index;int num_expected;
drivers/infiniband/hw/mlx5/cq.c +1 -1
@@ -756,7 +756,7 @@ struct ib_cq *mlx5_ib_create_cq(struct ib_device *ibdev,int uninitialized_var (index );int uninitialized_var (inlen );int cqe_size; -int irqn; +unsigned int irqn;int eqn;int err;
drivers/iommu/arm-smmu-v3.c +5 -4
@@ -1427,7 +1427,7 @@ static int arm_smmu_domain_finalise_s1(struct arm_smmu_domain *smmu_domain, struct io_pgtable_cfg *pgtbl_cfg) {int ret; -u16 asid; +int asid;struct arm_smmu_device *smmu = smmu_domain->smmu;struct arm_smmu_s1_cfg *cfg = &smmu_domain->s1_cfg;
@@ -1439,10 +1439,11 @@ static int arm_smmu_domain_finalise_s1(struct arm_smmu_domain *smmu_domain, &cfg->cdptr_dma, GFP_KERNEL);if (!cfg->cdptr) {dev_warn (smmu->dev,"failed to allocate context descriptor\n" ); + ret = -ENOMEM ; goto out_free_asid; } - cfg->cd.asid = asid; + cfg->cd.asid = (u16 )asid; cfg->cd.ttbr = pgtbl_cfg->arm_lpae_s1_cfg.ttbr[0 ]; cfg->cd.tcr = pgtbl_cfg->arm_lpae_s1_cfg.tcr; cfg->cd.mair = pgtbl_cfg->arm_lpae_s1_cfg.mair[0 ];
@@ -1456,7 +1457,7 @@ out_free_asid:static int arm_smmu_domain_finalise_s2 (struct arm_smmu_domain *smmu_domain,struct io_pgtable_cfg *pgtbl_cfg) { -u16 vmid; +int vmid;struct arm_smmu_device *smmu = smmu_domain->smmu;struct arm_smmu_s2_cfg *cfg = &smmu_domain->s2_cfg;
@@ -1464,7 +1465,7 @@ static int arm_smmu_domain_finalise_s2(struct arm_smmu_domain *smmu_domain,if (IS_ERR_VALUE (vmid))return vmid; - cfg->vmid = vmid; + cfg->vmid = (u16 )vmid; cfg->vttbr = pgtbl_cfg->arm_lpae_s2_cfg.vttbr; cfg->vtcr = pgtbl_cfg->arm_lpae_s2_cfg.vtcr;return 0 ;
drivers/iommu/intel-iommu.c +6 -3
@@ -4194,14 +4194,17 @@ int dmar_find_matched_atsr_unit(struct pci_dev *dev) dev =pci_physfn (dev);for (bus = dev->bus; bus; bus = bus->parent) { bridge = bus->self; -if (!bridge || !pci_is_pcie (bridge) || +/* If it's an integrated device, allow ATS */ +if (!bridge) +return 1 ; +/* Connected via non-PCIe: no ATS */ +if (!pci_is_pcie (bridge) ||pci_pcie_type (bridge) ==PCI_EXP_TYPE_PCI_BRIDGE )return 0 ; +/* If we found the root port, look it up in the ATSR */ if (pci_pcie_type (bridge) ==PCI_EXP_TYPE_ROOT_PORT )break ; } -if (!bridge) -return 0 ;rcu_read_lock ();list_for_each_entry_rcu (atsru, &dmar_atsr_units, list) {
drivers/isdn/i4l/isdn_ppp.c +8 -4
@@ -301,6 +301,8 @@ isdn_ppp_open(int min, struct file *file) is->compflags =0 ; is->reset =isdn_ppp_ccp_reset_alloc (is); +if (!is->reset) +return -ENOMEM ; is->lp =NULL ; is->mp_seqno =0 ;/* MP sequence number */
@@ -320,6 +322,10 @@ isdn_ppp_open(int min, struct file *file)* VJ header compression init */ is->slcomp =slhc_init (16 ,16 );/* not necessary for 2. link in bundle */ +if (IS_ERR (is->slcomp)) { +isdn_ppp_ccp_reset_free (is); +return PTR_ERR (is->slcomp); + }#endif #ifdef CONFIG_IPPP_FILTER is->pass_filter =NULL ;
@@ -567,10 +573,8 @@ isdn_ppp_ioctl(int min, struct file *file, unsigned int cmd, unsigned long arg) is->maxcid = val;#ifdef CONFIG_ISDN_PPP_VJ sltmp =slhc_init (16 , val); -if (!sltmp) { -printk (KERN_ERR "ippp, can't realloc slhc struct\n" ); -return -ENOMEM ; - } +if (IS_ERR (sltmp)) +return PTR_ERR (sltmp);if (is->slcomp)slhc_free (is->slcomp); is->slcomp = sltmp;
drivers/media/platform/vivid/vivid-osd.c +1 -0
@@ -85,6 +85,7 @@ static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg)case FBIOGET_VBLANK : {struct fb_vblank vblank; +memset (&vblank,0 ,sizeof (vblank)); vblank.flags =FB_VBLANK_HAVE_COUNT |FB_VBLANK_HAVE_VCOUNT |FB_VBLANK_HAVE_VSYNC ; vblank.count =0 ;
drivers/media/usb/airspy/airspy.c +1 -1
@@ -132,7 +132,7 @@ struct airspy {int urbs_submitted;/* USB control message buffer */ -#define BUF_SIZE 24 +#define BUF_SIZE 128u8 buf[BUF_SIZE ];/* Current configuration */
drivers/net/bonding/bond_main.c +4 -1
@@ -1207,7 +1207,6 @@ static int bond_master_upper_dev_link(struct net_device *bond_dev, err =netdev_master_upper_dev_link_private (slave_dev, bond_dev, slave);if (err)return err; - slave_dev->flags |=IFF_SLAVE ;rtmsg_ifinfo (RTM_NEWLINK , slave_dev,IFF_SLAVE ,GFP_KERNEL );return 0 ; }
@@ -1465,6 +1464,9 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev) } } +/* set slave flag before open to prevent IPv6 addrconf */ + slave_dev->flags |=IFF_SLAVE ; +/* open the slave since the application closed it */ res =dev_open (slave_dev);if (res) {
@@ -1725,6 +1727,7 @@ err_close:dev_close (slave_dev); err_restore_mac: + slave_dev->flags &= ~IFF_SLAVE ;if (!bond->params.fail_over_mac ||BOND_MODE (bond) !=BOND_MODE_ACTIVEBACKUP ) {/* XXX TODO - fom follow mode needs to change master's
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +3 -3
@@ -746,7 +746,7 @@ static int mlx5e_create_cq(struct mlx5e_channel *c,struct mlx5_core_dev *mdev = priv->mdev;struct mlx5_core_cq *mcq = &cq->mcq;int eqn_not_used; -int irqn; +unsigned int irqn;int err;u32 i;
@@ -800,7 +800,7 @@ static int mlx5e_enable_cq(struct mlx5e_cq *cq, struct mlx5e_cq_param *param)void *in;void *cqc;int inlen; -int irqn_not_used; +unsigned int irqn_not_used;int eqn;int err;
@@ -1498,7 +1498,7 @@ static int mlx5e_create_drop_cq(struct mlx5e_priv *priv,struct mlx5_core_dev *mdev = priv->mdev;struct mlx5_core_cq *mcq = &cq->mcq;int eqn_not_used; -int irqn; +unsigned int irqn;int err; err = mlx5_cqwq_create(mdev, ¶m->wq, param->cqc, &cq->wq,
drivers/net/ethernet/mellanox/mlx5/core/main.c +2 -1
@@ -520,7 +520,8 @@ static void mlx5_irq_clear_affinity_hints(struct mlx5_core_dev *mdev)mlx5_irq_clear_affinity_hint (mdev, i); } -int mlx5_vector2eqn (struct mlx5_core_dev *dev,int vector,int *eqn,int *irqn) +int mlx5_vector2eqn (struct mlx5_core_dev *dev,int vector,int *eqn, +unsigned int *irqn) {struct mlx5_eq_table *table = &dev->priv.eq_table;struct mlx5_eq *eq, *n;
drivers/net/ethernet/synopsys/dwc_eth_qos.c +1 -1
@@ -2107,7 +2107,7 @@ static int dwceqos_tx_frags(struct sk_buff *skb, struct net_local *lp, dd = &lp->tx_descs[lp->tx_next];/* Set DMA Descriptor fields */ - dd->des0 = dma_handle; + dd->des0 = dma_handle + consumed_size; dd->des1 =0 ; dd->des2 = dma_size;
drivers/net/ppp/ppp_generic.c +2 -4
@@ -721,10 +721,8 @@ static long ppp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) val &=0xffff ; } vj =slhc_init (val2+1 , val+1 ); -if (!vj) { -netdev_err (ppp->dev, -"PPP: no memory (VJ compressor)\n" ); - err = -ENOMEM ; +if (IS_ERR (vj)) { + err =PTR_ERR (vj);break ; }ppp_lock (ppp);
drivers/net/slip/slhc.c +8 -4
@@ -84,8 +84,9 @@ static long decode(unsigned char **cpp);static unsigned char *put16 (unsigned char *cp,unsigned short x);static unsigned short pull16 (unsigned char **cpp); -/* Initialize compression data structure +/* Allocate compression data structure * slots must be in range 0 to 255 (zero meaning no compression) +* Returns pointer to structure or ERR_PTR() on error. */ struct slcompress *slhc_init (int rslots,int tslots)
@@ -94,11 +95,14 @@ slhc_init(int rslots, int tslots) registerstruct cstate *ts;struct slcompress *comp; +if (rslots <0 || rslots >255 || tslots <0 || tslots >255 ) +return ERR_PTR (-EINVAL ); + comp =kzalloc (sizeof (struct slcompress ),GFP_KERNEL );if (! comp) goto out_fail; -if ( rslots >0 && rslots <256 ) { +if (rslots >0 ) {size_t rsize = rslots *sizeof (struct cstate ); comp->rstate =kzalloc (rsize,GFP_KERNEL );if (! comp->rstate)
@@ -106,7 +110,7 @@ slhc_init(int rslots, int tslots) comp->rslot_limit = rslots -1 ; } -if ( tslots >0 && tslots <256 ) { +if (tslots >0 ) {size_t tsize = tslots *sizeof (struct cstate ); comp->tstate =kzalloc (tsize,GFP_KERNEL );if (! comp->tstate)
@@ -141,7 +145,7 @@ out_free2: out_free:kfree (comp); out_fail: -return NULL ; +return ERR_PTR (-ENOMEM ); }
drivers/net/slip/slip.c +1 -1
@@ -164,7 +164,7 @@ static int sl_alloc_bufs(struct slip *sl, int mtu)if (cbuff ==NULL ) goto err_exit; slcomp =slhc_init (16 ,16 ); -if (slcomp ==NULL ) +if (IS_ERR (slcomp)) goto err_exit;#endif spin_lock_bh (&sl->lock);
drivers/net/team/team.c +3 -3
@@ -1845,10 +1845,10 @@ static int team_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid)struct team *team =netdev_priv (dev);struct team_port *port; -rcu_read_lock (); -list_for_each_entry_rcu (port, &team->port_list, list) +mutex_lock (&team->lock); +list_for_each_entry (port, &team->port_list, list)vlan_vid_del (port->dev, proto, vid); -rcu_read_unlock (); +mutex_unlock (&team->lock);return 0 ; }
drivers/net/usb/cdc_mbim.c +1 -1
@@ -100,7 +100,7 @@ static const struct net_device_ops cdc_mbim_netdev_ops = { .ndo_stop = usbnet_stop, .ndo_start_xmit = usbnet_start_xmit, .ndo_tx_timeout = usbnet_tx_timeout, - .ndo_change_mtu = usbnet_change_mtu, + .ndo_change_mtu = cdc_ncm_change_mtu, .ndo_set_mac_address = eth_mac_addr, .ndo_validate_addr = eth_validate_addr, .ndo_vlan_rx_add_vid = cdc_mbim_rx_add_vid,
drivers/net/usb/cdc_ncm.c +31 -0
@@ -41,6 +41,7 @@#include <linux/module.h> #include <linux/netdevice.h> #include <linux/ctype.h> +#include <linux/etherdevice.h> #include <linux/ethtool.h> #include <linux/workqueue.h> #include <linux/mii.h>
@@ -689,6 +690,33 @@ static void cdc_ncm_free(struct cdc_ncm_ctx *ctx)kfree (ctx); } +/* we need to override the usbnet change_mtu ndo for two reasons: +* - respect the negotiated maximum datagram size +* - avoid unwanted changes to rx and tx buffers +*/ +int cdc_ncm_change_mtu (struct net_device *net,int new_mtu) +{ +struct usbnet *dev =netdev_priv (net); +struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0 ]; +int maxmtu = ctx->max_datagram_size -cdc_ncm_eth_hlen (dev); + +if (new_mtu <=0 || new_mtu > maxmtu) +return -EINVAL ; + net->mtu = new_mtu; +return 0 ; +} +EXPORT_SYMBOL_GPL (cdc_ncm_change_mtu); + +static const struct net_device_ops cdc_ncm_netdev_ops = { + .ndo_open = usbnet_open, + .ndo_stop = usbnet_stop, + .ndo_start_xmit = usbnet_start_xmit, + .ndo_tx_timeout = usbnet_tx_timeout, + .ndo_change_mtu = cdc_ncm_change_mtu, + .ndo_set_mac_address = eth_mac_addr, + .ndo_validate_addr = eth_validate_addr, +}; +int cdc_ncm_bind_common (struct usbnet *dev,struct usb_interface *intf,u8 data_altsetting,int drvflags) {const struct usb_cdc_union_desc *union_desc =NULL ;
@@ -874,6 +902,9 @@ advance:/* add our sysfs attrs */ dev->net->sysfs_groups[0 ] = &cdc_ncm_sysfs_attr_group; +/* must handle MTU changes */ + dev->net->netdev_ops = &cdc_ncm_netdev_ops; +return 0 ; error2:
drivers/net/veth.c +0 -6
@@ -117,12 +117,6 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)kfree_skb (skb); goto drop; } -/* don't change ip_summed == CHECKSUM_PARTIAL, as that -* will cause bad checksum on forwarded packets -*/ -if (skb->ip_summed ==CHECKSUM_NONE && - rcv->features &NETIF_F_RXCSUM ) - skb->ip_summed =CHECKSUM_UNNECESSARY ;if (likely (dev_forward_skb (rcv, skb) ==NET_RX_SUCCESS )) {struct pcpu_vstats *stats =this_cpu_ptr (dev->vstats);
drivers/net/vxlan.c +9 -3
@@ -2660,7 +2660,7 @@ static int vxlan_dev_configure(struct net *src_net, struct net_device *dev, struct vxlan_config *conf) {struct vxlan_net *vn =net_generic (src_net, vxlan_net_id); -struct vxlan_dev *vxlan =netdev_priv (dev); +struct vxlan_dev *vxlan =netdev_priv (dev), *tmp;struct vxlan_rdst *dst = &vxlan->default_dst;int err;bool use_ipv6 = false;
@@ -2725,9 +2725,15 @@ static int vxlan_dev_configure(struct net *src_net, struct net_device *dev,if (!vxlan->cfg.age_interval) vxlan->cfg.age_interval =FDB_AGE_DEFAULT ; -if (vxlan_find_vni (src_net, conf->vni, use_ipv6 ?AF_INET6 :AF_INET , - vxlan->cfg.dst_port, vxlan->flags)) +list_for_each_entry (tmp, &vn->vxlan_list, next) { +if (tmp->cfg.vni == conf->vni && + (tmp->default_dst.remote_ip.sa.sa_family ==AF_INET6 || + tmp->cfg.saddr.sa.sa_family ==AF_INET6 ) == use_ipv6 && + tmp->cfg.dst_port == vxlan->cfg.dst_port && + (tmp->flags &VXLAN_F_RCV_FLAGS ) == + (vxlan->flags &VXLAN_F_RCV_FLAGS ))return -EEXIST ; + } dev->ethtool_ops = &vxlan_ethtool_ops;
drivers/parisc/iommu-helpers.h +8 -7
@@ -104,7 +104,11 @@ iommu_coalesce_chunks(struct ioc *ioc, struct device *dev,struct scatterlist *contig_sg;/* contig chunk head */ unsigned long dma_offset, dma_len;/* start/len of DMA stream */ unsigned int n_mappings =0 ; -unsigned int max_seg_size =dma_get_max_seg_size (dev); +unsigned int max_seg_size =min (dma_get_max_seg_size (dev), + (unsigned )DMA_CHUNK_SIZE ); +unsigned int max_seg_boundary =dma_get_seg_boundary (dev) +1 ; +if (max_seg_boundary)/* check if the addition above didn't overflow */ + max_seg_size =min (max_seg_size, max_seg_boundary);while (nents >0 ) {
@@ -138,14 +142,11 @@ iommu_coalesce_chunks(struct ioc *ioc, struct device *dev,/* ** First make sure current dma stream won't -** exceed DMA_CHUNK_SIZE if we coalesce the +** exceed max_seg_size if we coalesce the ** next entry. */ -if (unlikely (ALIGN (dma_len + dma_offset + startsg->length, -IOVP_SIZE ) >DMA_CHUNK_SIZE )) -break ; - -if (startsg->length + dma_len > max_seg_size) +if (unlikely (ALIGN (dma_len + dma_offset + startsg->length,IOVP_SIZE ) > + max_seg_size))break ;/*
drivers/staging/lustre/lustre/obdecho/echo_client.c +11 -9
@@ -1268,6 +1268,7 @@ static int echo_copyout_lsm(struct lov_stripe_md *lsm, void *_ulsm, int ulsm_nob) { struct lov_stripe_md *ulsm = _ulsm; +struct lov_oinfo **p;int nob, i; nob = offsetof(struct lov_stripe_md, lsm_oinfo[lsm->lsm_stripe_count]);
@@ -1277,9 +1278,10 @@ echo_copyout_lsm(struct lov_stripe_md *lsm, void *_ulsm, int ulsm_nob)if (copy_to_user (ulsm, lsm,sizeof (*ulsm)))return -EFAULT ; -for (i =0 ; i < lsm->lsm_stripe_count; i++) { -if (copy_to_user (ulsm->lsm_oinfo[i], lsm->lsm_oinfo[i], -sizeof (lsm->lsm_oinfo[0 ]))) +for (i =0 , p = lsm->lsm_oinfo; i < lsm->lsm_stripe_count; i++, p++) { +struct lov_oinfo __user *up; +if (get_user (up, ulsm->lsm_oinfo + i) || +copy_to_user (up, *p,sizeof (struct lov_oinfo )))return -EFAULT ; }return 0 ;
@@ -1287,9 +1289,10 @@ echo_copyout_lsm(struct lov_stripe_md *lsm, void *_ulsm, int ulsm_nob)static int echo_copyin_lsm (struct echo_device *ed,struct lov_stripe_md *lsm, -void *ulsm,int ulsm_nob) +struct lov_stripe_md __user *ulsm,int ulsm_nob) {struct echo_client_obd *ec = ed->ed_ec; +struct lov_oinfo **p;int i;if (ulsm_nob <sizeof (*lsm))
@@ -1305,11 +1308,10 @@ echo_copyin_lsm(struct echo_device *ed, struct lov_stripe_md *lsm,return -EINVAL ; -for (i =0 ; i < lsm->lsm_stripe_count; i++) { -if (copy_from_user (lsm->lsm_oinfo[i], - ((struct lov_stripe_md *)ulsm)-> \ - lsm_oinfo[i], -sizeof (lsm->lsm_oinfo[0 ]))) +for (i =0 , p = lsm->lsm_oinfo; i < lsm->lsm_stripe_count; i++, p++) { +struct lov_oinfo __user *up; +if (get_user (up, ulsm->lsm_oinfo + i) || +copy_from_user (*p, up,sizeof (struct lov_oinfo )))return -EFAULT ; }return 0 ;
drivers/usb/core/hub.c +49 -12
110 lines not on this page · raw message
drivers/usb/core/sysfs.c +26 -5
@@ -531,7 +531,7 @@ static ssize_t usb2_lpm_besl_store(struct device *dev, }static DEVICE_ATTR_RW (usb2_lpm_besl); -static ssize_t usb3_hardware_lpm_show (struct device *dev, +static ssize_t usb3_hardware_lpm_u1_show (struct device *dev,struct device_attribute *attr,char *buf) {struct usb_device *udev =to_usb_device (dev);
@@ -539,7 +539,7 @@ static ssize_t usb3_hardware_lpm_show(struct device *dev,usb_lock_device (udev); -if (udev->usb3_lpm_enabled) +if (udev->usb3_lpm_u1_enabled) p ="enabled" ;else p ="disabled" ;
@@ -548,7 +548,26 @@ static ssize_t usb3_hardware_lpm_show(struct device *dev,return sprintf (buf,"%s\n" , p); } -static DEVICE_ATTR_RO (usb3_hardware_lpm); +static DEVICE_ATTR_RO (usb3_hardware_lpm_u1); + +static ssize_t usb3_hardware_lpm_u2_show (struct device *dev, +struct device_attribute *attr,char *buf) +{ +struct usb_device *udev =to_usb_device (dev); +const char *p; + +usb_lock_device (udev); + +if (udev->usb3_lpm_u2_enabled) + p ="enabled" ; +else + p ="disabled" ; + +usb_unlock_device (udev); + +return sprintf (buf,"%s\n" , p); +} +static DEVICE_ATTR_RO (usb3_hardware_lpm_u2);static struct attribute *usb2_hardware_lpm_attr[] = { &dev_attr_usb2_hardware_lpm.attr,
@@ -562,7 +581,8 @@ static struct attribute_group usb2_hardware_lpm_attr_group = { };static struct attribute *usb3_hardware_lpm_attr[] = { - &dev_attr_usb3_hardware_lpm.attr, + &dev_attr_usb3_hardware_lpm_u1.attr, + &dev_attr_usb3_hardware_lpm_u2.attr,NULL , };static struct attribute_group usb3_hardware_lpm_attr_group = {
@@ -592,7 +612,8 @@ static int add_power_attributes(struct device *dev)if (udev->usb2_hw_lpm_capable ==1 ) rc =sysfs_merge_group (&dev->kobj, &usb2_hardware_lpm_attr_group); -if (udev->lpm_capable ==1 ) +if (udev->speed ==USB_SPEED_SUPER && + udev->lpm_capable ==1 ) rc =sysfs_merge_group (&dev->kobj, &usb3_hardware_lpm_attr_group); }
drivers/usb/host/xhci.c +12 -0
@@ -4778,8 +4778,16 @@ int xhci_update_hub_device(struct usb_hcd *hcd, struct usb_device *hdev, ctrl_ctx->add_flags |=cpu_to_le32 (SLOT_FLAG ); slot_ctx =xhci_get_slot_ctx (xhci, config_cmd->in_ctx); slot_ctx->dev_info |=cpu_to_le32 (DEV_HUB ); +/* +* refer to section 6.2.2: MTT should be 0 for full speed hub, +* but it may be already set to 1 when setup an xHCI virtual +* device, so clear it anyway. +*/ if (tt->multi) slot_ctx->dev_info |=cpu_to_le32 (DEV_MTT ); +else if (hdev->speed ==USB_SPEED_FULL ) + slot_ctx->dev_info &=cpu_to_le32 (~DEV_MTT ); +if (xhci->hci_version >0x95 ) { xhci_dbg(xhci, "xHCI version %x needs hub " "TT think time and number of ports\n",
@@ -5034,6 +5042,10 @@ static int __init xhci_hcd_init(void)BUILD_BUG_ON (sizeof (struct xhci_intr_reg ) !=8 *32 /8 );/* xhci_run_regs has eight fields and embeds 128 xhci_intr_regs */ BUILD_BUG_ON (sizeof (struct xhci_run_regs ) != (8 +8 *128 )*32 /8 ); + +if (usb_disabled ()) +return -ENODEV ; +return 0 ; }
drivers/usb/serial/cp210x.c +1 -0
@@ -160,6 +160,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */ { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */ + { USB_DEVICE(0x18EF, 0xE025) }, /* ELV Marble Sound Board 1 */ { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */ { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */ { USB_DEVICE(0x1BA4, 0x0002) }, /* Silicon Labs 358x factory default */
drivers/usb/serial/ipaq.c +2 -1
@@ -531,7 +531,8 @@ static int ipaq_open(struct tty_struct *tty,* through. Since this has a reasonably high failure rate, we retry * several times. */ -while (retries--) { +while (retries) { + retries--; result =usb_control_msg (serial->dev,usb_sndctrlpipe (serial->dev,0 ),0x22 ,0x21 ,0x1 ,0 ,NULL ,0 ,100 );
drivers/xen/gntdev.c +1 -1
@@ -804,7 +804,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) vma->vm_ops = &gntdev_vmops; - vma->vm_flags |=VM_DONTEXPAND |VM_DONTDUMP ; + vma->vm_flags |=VM_DONTEXPAND |VM_DONTDUMP |VM_IO ;if (use_ptemod) vma->vm_flags |=VM_DONTCOPY ;
fs/direct-io.c +10 -1
@@ -1161,6 +1161,16 @@ do_blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, } } +/* Once we sampled i_size check for reads beyond EOF */ + dio->i_size =i_size_read (inode); +if (iov_iter_rw (iter) ==READ && offset >= dio->i_size) { +if (dio->flags &DIO_LOCKING ) +mutex_unlock (&inode->i_mutex); +kmem_cache_free (dio_cache, dio); + retval =0 ; + goto out; + } +/* * For file extending writes updating i_size before data writeouts * complete can expose uninitialized blocks in dumb filesystems.
@@ -1214,7 +1224,6 @@ do_blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, sdio.next_block_for_io =-1 ; dio->iocb = iocb; - dio->i_size =i_size_read (inode);spin_lock_init (&dio->bio_lock); dio->refcount =1 ;
include/linux/filter.h +19 -0
@@ -459,6 +459,25 @@ static inline void bpf_jit_free(struct bpf_prog *fp)#define BPF_ANC BIT(15) +static inline bool bpf_needs_clear_a (const struct sock_filter *first) +{ +switch (first->code) { +case BPF_RET |BPF_K : +case BPF_LD |BPF_W |BPF_LEN : +return false; + +case BPF_LD |BPF_W |BPF_ABS : +case BPF_LD |BPF_H |BPF_ABS : +case BPF_LD |BPF_B |BPF_ABS : +if (first->k ==SKF_AD_OFF +SKF_AD_ALU_XOR_X ) +return true; +return false; + +default : +return true; + } +} +static inline u16 bpf_anc_helper (const struct sock_filter *ftest) {BUG_ON (ftest->code &BPF_ANC );
include/linux/mlx5/cq.h +1 -1
@@ -45,7 +45,7 @@ struct mlx5_core_cq {atomic_t refcount;struct completion free;unsigned vector; -int irqn; +unsigned int irqn;void (*comp) (struct mlx5_core_cq *);void (*event) (struct mlx5_core_cq *,enum mlx5_event );struct mlx5_uar *uar;
include/linux/mlx5/driver.h +3 -2
@@ -303,7 +303,7 @@ struct mlx5_eq {u32 cons_index;struct mlx5_buf buf;int size; -u8 irqn; +unsigned int irqn;u8 eqn;int nent;u64 mask;
@@ -738,7 +738,8 @@ int mlx5_create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, u8 vecidx,int mlx5_destroy_unmap_eq (struct mlx5_core_dev *dev,struct mlx5_eq *eq);int mlx5_start_eqs (struct mlx5_core_dev *dev);int mlx5_stop_eqs (struct mlx5_core_dev *dev); -int mlx5_vector2eqn (struct mlx5_core_dev *dev,int vector,int *eqn,int *irqn); +int mlx5_vector2eqn (struct mlx5_core_dev *dev,int vector,int *eqn, +unsigned int *irqn);int mlx5_core_attach_mcg (struct mlx5_core_dev *dev,union ib_gid *mgid,u32 qpn);int mlx5_core_detach_mcg (struct mlx5_core_dev *dev,union ib_gid *mgid,u32 qpn);
include/linux/sched.h +1 -0
@@ -830,6 +830,7 @@ struct user_struct {unsigned long mq_bytes;/* How many bytes can be allocated to mqueue? */ #endif unsigned long locked_shm;/* How many pages of mlocked shm ? */ +unsigned long unix_inflight;/* How many files in flight in unix sockets */ #ifdef CONFIG_KEYS struct key *uid_keyring;/* UID specific keyring */
include/linux/skbuff.h +2 -1
@@ -3437,7 +3437,8 @@ struct skb_gso_cb {int encap_level;__u16 csum_start; }; -#define SKB_GSO_CB (skb) ((struct skb_gso_cb *)(skb)->cb) +#define SKB_SGO_CB_OFFSET 32 +#define SKB_GSO_CB (skb) ((struct skb_gso_cb *)((skb)->cb + SKB_SGO_CB_OFFSET))static inline int skb_tnl_header_len (const struct sk_buff *inner_skb) {
include/linux/syscalls.h +1 -1
@@ -524,7 +524,7 @@ asmlinkage long sys_chown(const char __user *filename,asmlinkage long sys_lchown (const char __user *filename,uid_t user,gid_t group);asmlinkage long sys_fchown (unsigned int fd,uid_t user,gid_t group); -#ifdef CONFIG_UID16 +#ifdef CONFIG_HAVE_UID16 asmlinkage long sys_chown16 (const char __user *filename,old_uid_t user,old_gid_t group); asmlinkage long sys_lchown16(const char __user *filename,
include/linux/types.h +1 -1
@@ -35,7 +35,7 @@ typedef __kernel_gid16_t gid16_t;typedef unsigned long uintptr_t ; -#ifdef CONFIG_UID16 +#ifdef CONFIG_HAVE_UID16 /* This is defined by include/asm-{arch}/posix_types.h */ typedef __kernel_old_uid_t old_uid_t ;typedef __kernel_old_gid_t old_gid_t ;
include/linux/usb.h +4 -0
@@ -507,6 +507,8 @@ struct usb3_lpm_parameters {* @usb2_hw_lpm_enabled: USB2 hardware LPM is enabled * @usb2_hw_lpm_allowed: Userspace allows USB 2.0 LPM to be enabled * @usb3_lpm_enabled: USB3 hardware LPM enabled +* @usb3_lpm_u1_enabled: USB3 hardware U1 LPM enabled +* @usb3_lpm_u2_enabled: USB3 hardware U2 LPM enabled * @string_langid: language ID for strings * @product: iProduct string, if present (static) * @manufacturer: iManufacturer string, if present (static)
@@ -580,6 +582,8 @@ struct usb_device { unsigned usb2_hw_lpm_enabled:1; unsigned usb2_hw_lpm_allowed:1; unsigned usb3_lpm_enabled:1; + unsigned usb3_lpm_u1_enabled:1; + unsigned usb3_lpm_u2_enabled:1;int string_langid;/* static strings from the device */
include/linux/usb/cdc_ncm.h +1 -0
@@ -138,6 +138,7 @@ struct cdc_ncm_ctx { };u8 cdc_ncm_select_altsetting (struct usb_interface *intf); +int cdc_ncm_change_mtu (struct net_device *net,int new_mtu);int cdc_ncm_bind_common (struct usbnet *dev,struct usb_interface *intf,u8 data_altsetting,int drvflags);void cdc_ncm_unbind (struct usbnet *dev,struct usb_interface *intf);struct sk_buff *cdc_ncm_fill_tx_frame (struct usbnet *dev,struct sk_buff *skb,__le32 sign);
include/net/inet_ecn.h +16 -3
@@ -111,11 +111,24 @@ static inline void ipv4_copy_dscp(unsigned int dscp, struct iphdr *inner)struct ipv6hdr ; -static inline int IP6_ECN_set_ce (struct ipv6hdr *iph) +/* Note: +* IP_ECN_set_ce() has to tweak IPV4 checksum when setting CE, +* meaning both changes have no effect on skb->csum if/when CHECKSUM_COMPLETE +* In IPv6 case, no checksum compensates the change in IPv6 header, +* so we have to update skb->csum. +*/ +static inline int IP6_ECN_set_ce (struct sk_buff *skb,struct ipv6hdr *iph) { +__be32 from, to; +if (INET_ECN_is_not_ect (ipv6_get_dsfield (iph)))return 0 ; - *(__be32 *)iph |=htonl (INET_ECN_CE <<20 ); + + from = *(__be32 *)iph; + to = from |htonl (INET_ECN_CE <<20 ); + *(__be32 *)iph = to; +if (skb->ip_summed ==CHECKSUM_COMPLETE ) + skb->csum =csum_add (csum_sub (skb->csum, from), to);return 1 ; }
@@ -142,7 +155,7 @@ static inline int INET_ECN_set_ce(struct sk_buff *skb)case cpu_to_be16 (ETH_P_IPV6 ):if (skb_network_header (skb) +sizeof (struct ipv6hdr ) <=skb_tail_pointer (skb)) -return IP6_ECN_set_ce (ipv6_hdr (skb)); +return IP6_ECN_set_ce (skb,ipv6_hdr (skb));break ; }
kernel/bpf/verifier.c +10 -0
@@ -1058,6 +1058,16 @@ static int check_alu_op(struct reg_state *regs, struct bpf_insn *insn)return -EINVAL ; } +if ((opcode ==BPF_LSH || opcode ==BPF_RSH || + opcode ==BPF_ARSH ) &&BPF_SRC (insn->code) ==BPF_K ) { +int size =BPF_CLASS (insn->code) ==BPF_ALU64 ?64 :32 ; + +if (insn->imm <0 || insn->imm >= size) { +verbose ("invalid shift %d\n" , insn->imm); +return -EINVAL ; + } + } +/* pattern match 'bpf_add Rx, imm' instruction */ if (opcode == BPF_ADD && BPF_CLASS(insn->code) == BPF_ALU64 && regs[insn->dst_reg].type == FRAME_PTR &&
kernel/time/timer.c +19 -3
@@ -970,13 +970,29 @@ EXPORT_SYMBOL(add_timer);*/ void add_timer_on (struct timer_list *timer,int cpu) { -struct tvec_base *base =per_cpu_ptr (&tvec_bases, cpu); +struct tvec_base *new_base =per_cpu_ptr (&tvec_bases, cpu); +struct tvec_base *base;unsigned long flags;timer_stats_timer_set_start_info (timer);BUG_ON (timer_pending (timer) || !timer->function); -spin_lock_irqsave (&base->lock, flags); - timer->flags = (timer->flags & ~TIMER_BASEMASK ) | cpu; + +/* +* If @timer was on a different CPU, it should be migrated with the +* old base locked to prevent other operations proceeding with the +* wrong base locked. See lock_timer_base(). +*/ + base =lock_timer_base (timer, &flags); +if (base != new_base) { + timer->flags |=TIMER_MIGRATING ; + +spin_unlock (&base->lock); + base = new_base; +spin_lock (&base->lock); +WRITE_ONCE (timer->flags, + (timer->flags & ~TIMER_BASEMASK ) | cpu); + } +debug_activate (timer, timer->expires);internal_add_timer (base, timer);spin_unlock_irqrestore (&base->lock, flags);
net/batman-adv/bridge_loop_avoidance.c +3 -7
@@ -127,21 +127,17 @@ batadv_backbone_gw_free_ref(struct batadv_bla_backbone_gw *backbone_gw) }/* finally deinitialize the claim */ -static void batadv_claim_free_rcu (struct rcu_head *rcu) +static void batadv_claim_release (struct batadv_bla_claim *claim) { -struct batadv_bla_claim *claim; - - claim = container_of(rcu, struct batadv_bla_claim, rcu); -batadv_backbone_gw_free_ref (claim->backbone_gw); -kfree (claim); +kfree_rcu (claim, rcu); }/* free a claim, call claim_free_rcu if its the last reference */ static void batadv_claim_free_ref (struct batadv_bla_claim *claim) {if (atomic_dec_and_test (&claim->refcount)) -call_rcu (&claim->rcu, batadv_claim_free_rcu); +batadv_claim_release (claim); }/**
net/batman-adv/hard-interface.h +0 -12
@@ -75,18 +75,6 @@ batadv_hardif_free_ref(struct batadv_hard_iface *hard_iface)call_rcu (&hard_iface->rcu, batadv_hardif_free_rcu); } -/** -* batadv_hardif_free_ref_now - decrement the hard interface refcounter and -* possibly free it (without rcu callback) -* @hard_iface: the hard interface to free -*/ -static inline void -batadv_hardif_free_ref_now (struct batadv_hard_iface *hard_iface) -{ -if (atomic_dec_and_test (&hard_iface->refcount)) -batadv_hardif_free_rcu (&hard_iface->rcu); -} -static inline struct batadv_hard_iface *batadv_primary_if_get_selected (struct batadv_priv *bat_priv) {
net/batman-adv/network-coding.c +8 -11
@@ -203,28 +203,25 @@ void batadv_nc_init_orig(struct batadv_orig_node *orig_node) }/** -* batadv_nc_node_free_rcu - rcu callback to free an nc node and remove -* its refcount on the orig_node -* @rcu: rcu pointer of the nc node +* batadv_nc_node_release - release nc_node from lists and queue for free after +* rcu grace period +* @nc_node: the nc node to free */ -static void batadv_nc_node_free_rcu (struct rcu_head *rcu) +static void batadv_nc_node_release (struct batadv_nc_node *nc_node) { -struct batadv_nc_node *nc_node; - - nc_node = container_of(rcu, struct batadv_nc_node, rcu);batadv_orig_node_free_ref (nc_node->orig_node); -kfree (nc_node); +kfree_rcu (nc_node, rcu); }/** -* batadv_nc_node_free_ref - decrements the nc node refcounter and possibly -* frees it +* batadv_nc_node_free_ref - decrement the nc node refcounter and possibly +* release it * @nc_node: the nc node to free */ static void batadv_nc_node_free_ref (struct batadv_nc_node *nc_node) {if (atomic_dec_and_test (&nc_node->refcount)) -call_rcu (&nc_node->rcu, batadv_nc_node_free_rcu); +batadv_nc_node_release (nc_node); }/**
net/batman-adv/originator.c +57 -92
257 lines not on this page · raw message
net/batman-adv/originator.h +0 -1
@@ -38,7 +38,6 @@ int batadv_originator_init(struct batadv_priv *bat_priv);void batadv_originator_free (struct batadv_priv *bat_priv);void batadv_purge_orig_ref (struct batadv_priv *bat_priv);void batadv_orig_node_free_ref (struct batadv_orig_node *orig_node); -void batadv_orig_node_free_ref_now (struct batadv_orig_node *orig_node);struct batadv_orig_node *batadv_orig_node_new (struct batadv_priv *bat_priv,const u8 *addr); struct batadv_neigh_node *
net/batman-adv/translation-table.c +13 -15
@@ -238,20 +238,6 @@ int batadv_tt_global_hash_count(struct batadv_priv *bat_priv,return count; } -static void batadv_tt_orig_list_entry_free_rcu (struct rcu_head *rcu) -{ -struct batadv_tt_orig_list_entry *orig_entry; - - orig_entry = container_of(rcu, struct batadv_tt_orig_list_entry, rcu); - -/* We are in an rcu callback here, therefore we cannot use -* batadv_orig_node_free_ref() and its call_rcu(): -* An rcu_barrier() wouldn't wait for that to finish -*/ -batadv_orig_node_free_ref_now (orig_entry->orig_node); -kfree (orig_entry); -} -/** * batadv_tt_local_size_mod - change the size by v of the local table identified * by vid
@@ -347,13 +333,25 @@ static void batadv_tt_global_size_dec(struct batadv_orig_node *orig_node,batadv_tt_global_size_mod (orig_node, vid,-1 ); } +/** +* batadv_tt_orig_list_entry_release - release tt orig entry from lists and +* queue for free after rcu grace period +* @orig_entry: tt orig entry to be free'd +*/ +static void +batadv_tt_orig_list_entry_release (struct batadv_tt_orig_list_entry *orig_entry) +{ +batadv_orig_node_free_ref (orig_entry->orig_node); +kfree_rcu (orig_entry, rcu); +} +static void batadv_tt_orig_list_entry_free_ref (struct batadv_tt_orig_list_entry *orig_entry) {if (!atomic_dec_and_test (&orig_entry->refcount))return ; -call_rcu (&orig_entry->rcu, batadv_tt_orig_list_entry_free_rcu); +batadv_tt_orig_list_entry_release (orig_entry); }/**
net/bridge/br_device.c +8 -0
@@ -28,6 +28,8 @@const struct nf_br_ops __rcu *nf_br_ops__read_mostly ;EXPORT_SYMBOL_GPL (nf_br_ops); +static struct lock_class_key bridge_netdev_addr_lock_key; +/* net device transmit always called with BH disabled */ netdev_tx_t br_dev_xmit (struct sk_buff *skb,struct net_device *dev) {
@@ -87,6 +89,11 @@ out:return NETDEV_TX_OK ; } +static void br_set_lockdep_class (struct net_device *dev) +{ +lockdep_set_class (&dev->addr_list_lock, &bridge_netdev_addr_lock_key); +} +static int br_dev_init (struct net_device *dev) {struct net_bridge *br =netdev_priv (dev);
@@ -99,6 +106,7 @@ static int br_dev_init(struct net_device *dev) err =br_vlan_init (br);if (err)free_percpu (br->stats); +br_set_lockdep_class (dev);return err; }
net/bridge/br_stp_if.c +4 -1
@@ -130,7 +130,10 @@ static void br_stp_start(struct net_bridge *br)char *envp[] = {NULL };struct net_bridge_port *p; - r =call_usermodehelper (BR_STP_PROG , argv, envp,UMH_WAIT_PROC ); +if (net_eq (dev_net (br->dev), &init_net)) + r =call_usermodehelper (BR_STP_PROG , argv, envp,UMH_WAIT_PROC ); +else + r = -ENOENT ;spin_lock_bh (&br->lock);
net/core/dev.c +5 -0
@@ -2539,6 +2539,8 @@ static inline bool skb_needs_check(struct sk_buff *skb, bool tx_path)* * It may return NULL if the skb requires no segmentation. This is * only possible when GSO is used for verifying header integrity. +* +* Segmentation preserves SKB_SGO_CB_OFFSET bytes of previous skb cb. */ struct sk_buff *__skb_gso_segment (struct sk_buff *skb,netdev_features_t features,bool tx_path)
@@ -2553,6 +2555,9 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,return ERR_PTR (err); } +BUILD_BUG_ON (SKB_SGO_CB_OFFSET + +sizeof (*SKB_GSO_CB (skb)) >sizeof (skb->cb)); +SKB_GSO_CB (skb)->mac_offset =skb_headroom (skb);SKB_GSO_CB (skb)->encap_level =0 ;
net/core/dst.c +2 -1
@@ -301,12 +301,13 @@ void dst_release(struct dst_entry *dst) {if (dst) {int newrefcnt; +unsigned short nocache = dst->flags &DST_NOCACHE ; newrefcnt =atomic_dec_return (&dst->__refcnt);if (unlikely (newrefcnt <0 ))net_warn_ratelimited ("%s: dst:%p refcnt:%d\n" , __func__, dst, newrefcnt); -if (!newrefcnt &&unlikely (dst->flags &DST_NOCACHE )) +if (!newrefcnt &&unlikely (nocache))call_rcu (&dst->rcu_head, dst_destroy_rcu); } }
net/core/filter.c +5 -0
@@ -781,6 +781,11 @@ static int bpf_check_classic(const struct sock_filter *filter,if (ftest->k ==0 )return -EINVAL ;break ; +case BPF_ALU |BPF_LSH |BPF_K : +case BPF_ALU |BPF_RSH |BPF_K : +if (ftest->k >=32 ) +return -EINVAL ; +break ;case BPF_LD |BPF_MEM :case BPF_LDX |BPF_MEM :case BPF_ST :
net/core/pktgen.c +3 -1
@@ -2787,7 +2787,9 @@ static struct sk_buff *pktgen_alloc_skb(struct net_device *dev, }else { skb =__netdev_alloc_skb (dev, size,GFP_NOWAIT ); } -skb_reserve (skb,LL_RESERVED_SPACE (dev)); + +if (likely (skb)) +skb_reserve (skb,LL_RESERVED_SPACE (dev));return skb; }
net/ipv4/ip_output.c +2 -1
@@ -240,6 +240,7 @@ static int ip_finish_output_gso(struct sock *sk, struct sk_buff *skb,* from host network stack. */ features =netif_skb_features (skb); +BUILD_BUG_ON (sizeof (*IPCB (skb)) >SKB_SGO_CB_OFFSET ); segs =skb_gso_segment (skb, features & ~NETIF_F_GSO_MASK );if (IS_ERR_OR_NULL (segs)) {kfree_skb (skb);
@@ -918,7 +919,7 @@ static int __ip_append_data(struct sock *sk,if (((length > mtu) || (skb &&skb_is_gso (skb))) && (sk->sk_protocol ==IPPROTO_UDP ) && (rt->dst.dev->features &NETIF_F_UFO ) && !rt->dst.header_len && - (sk->sk_type ==SOCK_DGRAM )) { + (sk->sk_type ==SOCK_DGRAM ) && !sk->sk_no_check_tx) { err =ip_ufo_append_data (sk, queue, getfrag, from, length, hh_len, fragheaderlen, transhdrlen, maxfraglen, flags);
net/ipv4/tcp_input.c +3 -0
@@ -2525,6 +2525,9 @@ static void tcp_cwnd_reduction(struct sock *sk, const int prior_unsacked,int newly_acked_sacked = prior_unsacked - (tp->packets_out - tp->sacked_out); +if (newly_acked_sacked <=0 ||WARN_ON_ONCE (!tp->prior_cwnd)) +return ; + tp->prr_delivered += newly_acked_sacked;if (delta <0 ) { u64 dividend = (u64)tp->snd_ssthresh * tp->prr_delivered +
net/ipv4/tcp_yeah.c +1 -1
@@ -219,7 +219,7 @@ static u32 tcp_yeah_ssthresh(struct sock *sk) yeah->fast_count =0 ; yeah->reno_count =max (yeah->reno_count>>1 ,2U ); -return tp->snd_cwnd - reduction; +return max_t (int, tp->snd_cwnd - reduction,2 ); }static struct tcp_congestion_ops tcp_yeah__read_mostly = {
net/ipv4/xfrm4_policy.c +37 -9
90 lines not on this page · raw message
net/ipv6/addrconf.c +4 -7
@@ -5349,13 +5349,10 @@ static int addrconf_sysctl_stable_secret(struct ctl_table *ctl, int write, goto out; } -if (!write) { - err =snprintf (str,sizeof (str),"%pI6" , - &secret->secret); -if (err >=sizeof (str)) { - err = -EIO ; - goto out; - } + err =snprintf (str,sizeof (str),"%pI6" , &secret->secret); +if (err >=sizeof (str)) { + err = -EIO ; + goto out; } err =proc_dostring (&lctl, write, buffer, lenp, ppos);
net/ipv6/addrlabel.c +1 -1
@@ -552,7 +552,7 @@ static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh)rcu_read_lock (); p =__ipv6_addr_label (net, addr,ipv6_addr_type (addr), ifal->ifal_index); -if (p &&ip6addrlbl_hold (p)) +if (p && !ip6addrlbl_hold (p)) p =NULL ; lseq = ip6addrlbl_table.seq;rcu_read_unlock ();
net/ipv6/ip6_output.c +1 -1
@@ -1345,7 +1345,7 @@ emsgsize: (skb && skb_is_gso(skb))) && (sk->sk_protocol == IPPROTO_UDP) && (rt->dst.dev->features & NETIF_F_UFO) && - (sk->sk_type == SOCK_DGRAM)) { + (sk->sk_type == SOCK_DGRAM) && !udp_get_no_check6_tx(sk)) { err =ip6_ufo_append_data (sk, queue, getfrag, from, length, hh_len, fragheaderlen, transhdrlen, mtu, flags, fl6);
net/ipv6/tcp_ipv6.c +2 -0
@@ -462,8 +462,10 @@ static int tcp_v6_send_synack(struct sock *sk, struct dst_entry *dst, fl6->flowlabel =ip6_flowlabel (ipv6_hdr (ireq->pktopts));skb_set_queue_mapping (skb, queue_mapping); +rcu_read_lock (); err =ip6_xmit (sk, skb, fl6,rcu_dereference (np->opt), np->tclass); +rcu_read_unlock (); err =net_xmit_eval (err);
Lines of this file are not shown. View the raw message.
net/ipv6/xfrm6_policy.c +38 -15
53 lines not on this page · raw message
net/unix/af_unix.c +60 -30
90 lines not on this page · raw message
sound/core/timer.c +82 -18
100 lines not on this page · raw message
sound/pci/hda/hda_intel.c +51 -1
52 lines not on this page · raw message
sound/pci/hda/patch_realtek.c +201 -24
225 lines not on this page · raw message
sound/pci/hda/patch_sigmatel.c +30 -16
46 lines not on this page · raw message
sound/pci/rme96.c +26 -15
41 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Quoted 3 lines · Greg KH
I'm announcing the release of the 4.3.5 kernel.
All users of the 4.3 kernel series must upgrade.
Hmm. I may be missing something, but this still doesn't seem to have commit 23688bf4f830 ("block: ensure to split after potentially bouncing a bio"). It causes problems on x86-32 with PAE.
See also
https://bugzilla.kernel.org/show_bug.cgi?id=109661
but maybe the fix is there and I just didn't notice.
Linus
Greg KH
maintainerQuoted 9 lines · Linus Torvalds
Quoted 3 lines · Greg KH
I'm announcing the release of the 4.3.5 kernel.
All users of the 4.3 kernel series must upgrade.
Hmm. I may be missing something, but this still doesn't seem to have commit
23688bf4f830("block: ensure to split after potentially bouncing a bio"). It causes problems on x86-32 with PAE.
Quoted 5 lines
See also
https://bugzilla.kernel.org/show_bug.cgi?id=109661but maybe the fix is there and I just didn't notice.
No, it's not there, it's buried in a ton of other patches I still have yet to apply to the stable releases. I'll get to them all over the next week or so. I'll go queue the block ones up later today.
thanks,
greg k-h