Linux 5.1.12
Greg KH
maintainerI'm announcing the release of the 5.1.12 kernel.
All users of the 5.1 kernel series must upgrade.
The updated 5.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/kvm/hyp/Makefile | 1 arch/arm64/kvm/hyp/Makefile | 1 arch/arm64/mm/fault.c | 5 arch/arm64/mm/mmu.c | 11 arch/powerpc/include/asm/book3s/64/pgtable.h | 30 ++ arch/powerpc/include/asm/kexec.h | 3 arch/powerpc/kernel/machine_kexec_32.c | 4 arch/powerpc/mm/pgtable-book3s64.c | 3 arch/s390/kvm/kvm-s390.c | 35 +-- arch/x86/kernel/cpu/microcode/core.c | 2 arch/x86/kernel/cpu/resctrl/monitor.c | 3 arch/x86/kvm/pmu.c | 10 arch/x86/kvm/pmu.h | 3 arch/x86/kvm/pmu_amd.c | 2 arch/x86/kvm/svm.c | 9 arch/x86/kvm/vmx/nested.c | 2 arch/x86/kvm/vmx/pmu_intel.c | 26 +- arch/x86/kvm/vmx/vmx.c | 26 +- arch/x86/kvm/vmx/vmx.h | 1 arch/x86/kvm/x86.c | 2 arch/x86/mm/kasan_init_64.c | 2 arch/x86/mm/kaslr.c | 11 drivers/ata/libata-core.c | 9 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 4 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 5 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 5 drivers/gpu/drm/drm_edid.c | 55 ++++ drivers/gpu/drm/drm_probe_helper.c | 7 drivers/gpu/drm/i915/intel_csr.c | 18 + drivers/gpu/drm/i915/intel_display.c | 14 - drivers/gpu/drm/i915/intel_drv.h | 1 drivers/gpu/drm/i915/intel_dsi_vbt.c | 11 drivers/gpu/drm/i915/intel_sdvo.c | 58 ++++- drivers/gpu/drm/i915/intel_sdvo_regs.h | 3 drivers/gpu/drm/nouveau/Kconfig | 13 + drivers/gpu/drm/nouveau/nouveau_drm.c | 7 drivers/gpu/drm/nouveau/nouveau_ttm.c | 4 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 7 drivers/hid/hid-core.c | 13 - drivers/hid/hid-input.c | 81 ++++--- drivers/hid/hid-multitouch.c | 7 drivers/hid/wacom_wac.c | 71 ++++-- drivers/i2c/busses/i2c-acorn.c | 1 drivers/iommu/arm-smmu.c | 15 + drivers/md/bcache/bset.c | 16 + drivers/md/bcache/bset.h | 34 +-- drivers/md/bcache/sysfs.c | 7 drivers/media/dvb-core/dvb_frontend.c | 2 drivers/misc/kgdbts.c | 4 drivers/net/ethernet/cadence/macb_main.c | 16 - drivers/net/ethernet/freescale/enetc/enetc.c | 4 drivers/net/usb/ipheth.c | 3 drivers/nvdimm/bus.c | 4 drivers/nvdimm/label.c | 2 drivers/nvdimm/label.h | 2 drivers/nvme/host/core.c | 74 ++++-- drivers/nvme/host/pci.c | 14 - drivers/perf/arm_spe_pmu.c | 10 drivers/platform/x86/pmc_atom.c | 33 ++ drivers/ras/cec.c | 80 +++---- drivers/scsi/bnx2fc/bnx2fc_hwi.c | 2 drivers/scsi/lpfc/lpfc_attr.c | 37 +-- drivers/scsi/lpfc/lpfc_els.c | 5 drivers/scsi/lpfc/lpfc_sli.c | 84 ++++--- drivers/scsi/myrs.c | 2 drivers/scsi/qedi/qedi_dbg.c | 32 -- drivers/scsi/qedi/qedi_iscsi.c | 4 drivers/scsi/qla2xxx/qla_os.c | 221 +++++++------------- drivers/usb/core/quirks.c | 3 drivers/usb/dwc2/hcd.c | 39 ++- drivers/usb/dwc2/hcd.h | 20 - drivers/usb/dwc2/hcd_intr.c | 5 drivers/usb/dwc2/hcd_queue.c | 10 drivers/usb/serial/option.c | 6 drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 3 drivers/usb/storage/unusual_realtek.h | 5 fs/f2fs/xattr.c | 36 ++- fs/f2fs/xattr.h | 2 fs/io_uring.c | 4 fs/ocfs2/dcache.c | 12 + include/drm/drm_edid.h | 1 include/linux/cgroup.h | 10 include/linux/cpuhotplug.h | 1 include/linux/hid.h | 2 kernel/Makefile | 1 kernel/cred.c | 9 kernel/ptrace.c | 20 + kernel/time/timekeeping.c | 5 kernel/trace/trace_events_hist.c | 3 kernel/trace/trace_uprobe.c | 13 - mm/list_lru.c | 2 mm/vmscan.c | 2 net/core/skmsg.c | 7 net/ipv4/tcp_bpf.c | 7 security/selinux/avc.c | 10 security/selinux/hooks.c | 39 ++- security/smack/smack_lsm.c | 12 - sound/core/seq/seq_clientmgr.c | 10 sound/core/seq/seq_ports.c | 13 - sound/core/seq/seq_ports.h | 5 sound/firewire/motu/motu-stream.c | 2 sound/firewire/oxfw/oxfw.c | 3 sound/pci/hda/patch_realtek.c | 91 +++++--- sound/pci/ice1712/ews.c | 2 sound/soc/codecs/cs42xx8.c | 1 sound/soc/fsl/fsl_asrc.c | 4 sound/soc/soc-core.c | 7 sound/soc/soc-dapm.c | 3 tools/bpf/bpftool/prog.c | 4 tools/io_uring/Makefile | 2 tools/kvm/kvm_stat/kvm_stat | 16 + tools/kvm/kvm_stat/kvm_stat.txt | 2 tools/testing/selftests/bpf/bpf_helpers.h | 2 tools/testing/selftests/kvm/dirty_log_test.c | 2 tools/testing/selftests/kvm/lib/aarch64/processor.c | 2 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c | 5 tools/testing/selftests/net/fib_rule_tests.sh | 2 tools/testing/selftests/timers/adjtick.c | 1 tools/testing/selftests/timers/leapcrash.c | 1 tools/testing/selftests/timers/mqueue-lat.c | 1 tools/testing/selftests/timers/nanosleep.c | 1 tools/testing/selftests/timers/nsleep-lat.c | 1 tools/testing/selftests/timers/raw_skew.c | 1 tools/testing/selftests/timers/set-tai.c | 1 tools/testing/selftests/timers/set-tz.c | 2 tools/testing/selftests/timers/threadtest.c | 1 tools/testing/selftests/timers/valid-adjtimex.c | 2 virt/kvm/arm/aarch32.c | 121 ---------- virt/kvm/arm/hyp/aarch32.c | 136 ++++++++++++ 132 files changed, 1295 insertions(+), 738 deletions(-)
Alexei Starovoitov (1):
selftests/bpf: fix bpf_get_current_task
Andrew Jones (2):
kvm: selftests: aarch64: dirty_log_test: fix unaligned memslot size
kvm: selftests: aarch64: fix default vm mode
Andrey Ryabinin (1):
x86/kasan: Fix boot with 5-level paging and KASAN
Baoquan He (1):
x86/mm/KASLR: Compute the size of the vmemmap section properly
Benjamin Tissoires (4):
HID: input: make sure the wheel high resolution multiplier is set
HID: input: fix assignment of .value
Revert "HID: Increase maximum report size allowed by hid_field_extract()"
HID: multitouch: handle faulty Elo touch device
Bernd Eckstein (1):
usbnet: ipheth: fix racing condition
Borislav Petkov (2):
RAS/CEC: Fix binary search function
x86/microcode, cpuhotplug: Add a microcode loader CPU hotplug callback
Casey Schaufler (1):
Smack: Restore the smackfsdef mount option and add missing prefixes
Chris Packham (1):
USB: serial: pl2303: add Allied Telesis VT-Kit3
Christian Borntraeger (1):
KVM: s390: fix memory slot handling for KVM_SET_USER_MEMORY_REGION
Christoph Hellwig (4):
nvme: fix srcu locking on error return in nvme_get_ns_from_disk
nvme: remove the ifdef around nvme_nvm_ioctl
nvme: merge nvme_ns_ioctl into nvme_ioctl
nvme: release namespace SRCU protection before performing controller ioctls
Christophe Leroy (1):
powerpc: Fix kexec failure on book3s/32
Claudiu Manoil (1):
enetc: Fix NULL dma address unmap for Tx BD extensions
Colin Ian King (1):
scsi: bnx2fc: fix incorrect cast to u64 on shift operation
Coly Li (2):
bcache: fix stack corruption by PRECEDING_KEY()
bcache: only set BCACHE_DEV_WB_RUNNING when cached device attached
Cong Wang (1):
RAS/CEC: Convert the timer callback to a workqueue
Dan Carpenter (1):
KVM: selftests: Fix a condition in test_hv_cpuid()
Daniele Palmas (1):
USB: serial: option: add Telit 0x1260 and 0x1261 compositions
Dave Airlie (1):
drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)
Douglas Anderson (1):
usb: dwc2: host: Fix wMaxPacketSize handling (fix webcam regression)
Eiichi Tsukata (1):
tracing/uprobe: Fix NULL pointer dereference in trace_uprobe_create()
Eric Biggers (1):
io_uring: fix memory leak of UNIX domain socket inode
Eric W. Biederman (1):
signal/ptrace: Don't leak unitialized kernel memory with PTRACE_PEEK_SIGINFO
Flora Cui (1):
drm/amdgpu: keep stolen memory on picasso
Gen Zhang (2):
selinux: fix a missing-check bug in selinux_add_mnt_opt( )
selinux: fix a missing-check bug in selinux_sb_eat_lsm_opts()
Greg Kroah-Hartman (1):
Linux 5.1.12
Hangbin Liu (1):
selftests: fib_rule_tests: fix local IPv4 address typo
Hans de Goede (3):
libata: Extend quirks for the ST1000LM024 drives with NOLPM quirk drm/i915/dsi: Use a fuzzy check for burst mode clock check platform/x86: pmc_atom: Add Lex 3I380D industrial PC to critclk_systems DMI table
Hui Wang (1):
Revert "ALSA: hda/realtek - Improve the headset mic for Acer Aspire laptops"
James Morse (1):
KVM: arm/arm64: Move cc/it checks under hyp's Makefile to avoid instrumentation
James Smart (3):
scsi: lpfc: resolve lockdep warnings
scsi: lpfc: correct rcu unlock issue in lpfc_nvme_info_show
scsi: lpfc: add check for loss of ndlp when sending RRQ
Jani Nikula (2):
drm/edid: abstract override/firmware EDID retrieval
drm: add fallback override/firmware EDID modes workaround
Jann Horn (1):
ptrace: restore smp_rmb() in __ptrace_may_access()
Jason Gerecke (5):
HID: wacom: Don't set tool type until we're in range
HID: wacom: Don't report anything prior to the tool entering range
HID: wacom: Send BTN_TOUCH in response to INTUOSP2_BT eraser contact
HID: wacom: Correct button numbering 2nd-gen Intuos Pro over Bluetooth
HID: wacom: Sync INTUOSP2_BT touch state after each frame if necessary
Jens Axboe (1):
tools/io_uring: fix Makefile for pthread library link
John Fastabend (4):
bpf: sockmap, only stop/flush strp if it was enabled at some point
bpf: sockmap remove duplicate queue free
bpf: sockmap fix msg->sg.size account on ingress skb bpf, tcp: correctly handle DONT_WAIT flags and timeo == 0
Jörgen Storvist (1):
USB: serial: option: add support for Simcom SIM7500/SIM7600 RNDIS mode
Kai-Heng Feng (1):
USB: usb-storage: Add new ID to ums-realtek
Kailang Yang (1):
ALSA: hda/realtek - Update headset mode for ALC256
Kees Cook (1):
selftests/timers: Add missing fflush(stdout) calls
Keith Busch (2):
nvme-pci: Fix controller freeze wait disabling
nvme-pci: use blk-mq mapping for unmanaged irqs
Kuninori Morimoto (1):
ASoC: soc-core: fixup references at soc_cleanup_card_resources()
Luca Ceresoli (1):
net: macb: fix error format in dev_err()
Lucas De Marchi (1):
drm/i915/dmc: protect against reading random memory
Marco Zatta (1):
USB: Fix chipmunk-like voice when using Logitech C270 for recording audio.
Mark Rutland (1):
arm64/mm: Inhibit huge-vmap with ptdump
Martin Schiller (1):
usb: dwc2: Fix DMA cache alignment issues
Minchan Kim (1):
mm/vmscan.c: fix trying to reclaim unevictable LRU page
Murray McAllister (2):
drm/vmwgfx: integer underflow in vmw_cmd_dx_set_shader() leading to an invalid read drm/vmwgfx: NULL pointer dereference from vmw_cmd_dx_view_define()
Nicholas Piggin (1):
powerpc/64s: Fix THP PMD collapse serialisation
Ondrej Mosnacek (1):
selinux: log raw contexts as untrusted strings
Paolo Bonzini (4):
KVM: nVMX: really fix the size checks on KVM_SET_NESTED_STATE
KVM: x86: do not spam dmesg with VMCS/VMCB dumps
KVM: x86/pmu: mask the result of rdpmc according to the width of the counters
KVM: x86/pmu: do not mask the value that is written to fixed PMUs
Peter Zijlstra (1):
x86/uaccess, kcov: Disable stack protector
Prarit Bhargava (1):
x86/resctrl: Prevent NULL pointer dereference when local MBM is disabled
Qian Cai (1):
libnvdimm: Fix compilation warnings with W=1
Quinn Tran (1):
scsi: qla2xxx: Add cleanup for PCI EEH recovery
Randall Huang (1):
f2fs: fix to avoid accessing xattr across the boundary
Robin Murphy (1):
iommu/arm-smmu: Avoid constant zero in TLBI writes
Rui Nuno Capela (1):
ALSA: ice1712: Check correct return value to snd_i2c_sendbytes (EWS/DMX 6Fire)
Russell King (1):
i2c: acorn: fix i2c warning
S.j. Wang (2):
ASoC: cs42xx8: Add regcache mask dirty
ASoC: fsl_asrc: Fix the issue about unsupported rate
Sean Young (1):
media: dvb: warning about dvb frequency limits produces too much noise
Shakeel Butt (1):
mm/list_lru.c: fix memory leak in __memcg_init_list_lru_node
Shirish S (1):
drm/amdgpu/{uvd,vcn}: fetch ring's read_ptr after alloc
Stefan Raspl (1):
tools/kvm_stat: fix fields filter for child events
Steffen Dirkwinkel (1):
platform/x86: pmc_atom: Add several Beckhoff Automation boards to critclk_systems DMI table
Takashi Iwai (3):
ALSA: seq: Protect in-kernel ioctl calls with mutex
ALSA: seq: Fix race of get-subscription call vs port-delete ioctls Revert "ALSA: seq: Protect in-kernel ioctl calls with mutex"
Takashi Sakamoto (2):
ALSA: oxfw: allow PCM capture for Stanton SCS.1m
ALSA: firewire-motu: fix destruction of data for isochronous resources
Tejun Heo (1):
cgroup: Use css_tryget() instead of css_tryget_online() in task_get_css()
Thomas Backlund (1):
nouveau: Fix build with CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT disabled
Thomas Gleixner (1):
timekeeping: Repair ktime_get_coarse*() granularity
Tom Zanussi (1):
tracing: Prevent hist_field_var_ref() from accessing NULL tracing_map_elts
Ville Syrjälä (2):
drm/i915/sdvo: Implement proper HDMI audio support for SDVO drm/i915: Fix per-pixel alpha with CCS
Wanpeng Li (1):
KVM: LAPIC: Fix lapic_timer_advance_ns parameter overflow
Wengang Wang (1):
fs/ocfs2: fix race in ocfs2_dentry_attach_lock()
Will Deacon (2):
drivers/perf: arm_spe: Don't error on high-order pages for aux buf
arm64: Print physical address of page table base in show_pte()
Yi Wang (1):
kvm: vmx: Fix -Wmissing-prototypes warnings
Yonghong Song (1):
tools/bpftool: move set_max_rlimit() before __bpf_object__open_xattr()
Young Xiao (1):
Drivers: misc: fix out-of-bounds access in function param_set_kgdbts_var
YueHaibing (3):
scsi: qedi: remove memset/memcpy to nfunc and use func instead
scsi: qedi: remove set but not used variables 'cdev' and 'udev'
scsi: myrs: Fix uninitialized variable
Yufen Yu (1):
nvme: fix memory leak for power latency tolerance
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 1 -SUBLEVEL = 11 +SUBLEVEL = 12 EXTRAVERSION = NAME = Shy Crocodile
arch/arm/kvm/hyp/Makefile +1 -0
@@ -11,6 +11,7 @@ CFLAGS_ARMV7VE :=$(call cc-option, -march=armv7ve) obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o +obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/aarch32.o obj-$(CONFIG_KVM_ARM_HOST) += tlb.o obj-$(CONFIG_KVM_ARM_HOST) += cp15-sr.o
arch/arm64/kvm/hyp/Makefile +1 -0
@@ -10,6 +10,7 @@ KVM=../../../../virt/kvm obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o +obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/aarch32.o obj-$(CONFIG_KVM_ARM_HOST) += vgic-v2-cpuif-proxy.o obj-$(CONFIG_KVM_ARM_HOST) += sysreg-sr.o
arch/arm64/mm/fault.c +3 -2
@@ -171,9 +171,10 @@ void show_pte(unsigned long addr)return ; } -pr_alert ("%s pgtable: %luk pages, %u-bit VAs, pgdp = %p\n" , +pr_alert ("%s pgtable: %luk pages, %u-bit VAs, pgdp=%016lx\n" , mm == &init_mm ?"swapper" :"user" ,PAGE_SIZE /SZ_1K , - mm == &init_mm ?VA_BITS : (int ) vabits_user, mm->pgd); + mm == &init_mm ?VA_BITS : (int )vabits_user, + (unsigned long )virt_to_phys (mm->pgd)); pgdp =pgd_offset (mm, addr); pgd =READ_ONCE (*pgdp);pr_alert ("[%016lx] pgd=%016llx" , addr,pgd_val (pgd));
arch/arm64/mm/mmu.c +8 -3
@@ -936,13 +936,18 @@ void *__init fixmap_remap_fdt(phys_addr_t dt_phys)int __init arch_ioremap_pud_supported (void ) { -/* only 4k granule supports level 1 block mappings */ -return IS_ENABLED (CONFIG_ARM64_4K_PAGES ); +/* +* Only 4k granule supports level 1 block mappings. +* SW table walks can't handle removal of intermediate entries. +*/ +return IS_ENABLED (CONFIG_ARM64_4K_PAGES ) && + !IS_ENABLED (CONFIG_ARM64_PTDUMP_DEBUGFS ); }int __init arch_ioremap_pmd_supported (void ) { -return 1 ; +/* See arch_ioremap_pud_supported() */ +return !IS_ENABLED (CONFIG_ARM64_PTDUMP_DEBUGFS ); }int pud_set_huge (pud_t *pudp,phys_addr_t phys,pgprot_t prot)
arch/powerpc/include/asm/book3s/64/pgtable.h +30 -0
@@ -875,6 +875,23 @@ static inline int pmd_present(pmd_t pmd)return false; } +static inline int pmd_is_serializing (pmd_t pmd) +{ +/* +* If the pmd is undergoing a split, the _PAGE_PRESENT bit is clear +* and _PAGE_INVALID is set (see pmd_present, pmdp_invalidate). +* +* This condition may also occur when flushing a pmd while flushing +* it (see ptep_modify_prot_start), so callers must ensure this +* case is fine as well. +*/ +if ((pmd_raw (pmd) &cpu_to_be64 (_PAGE_PRESENT | _PAGE_INVALID)) == +cpu_to_be64 (_PAGE_INVALID)) +return true; + +return false; +} +static inline int pmd_bad (pmd_t pmd) {if (radix_enabled ())
@@ -1090,6 +1107,19 @@ static inline int pmd_protnone(pmd_t pmd)#define pmd_access_permitted pmd_access_permittedstatic inline bool pmd_access_permitted (pmd_t pmd,bool write) { +/* +* pmdp_invalidate sets this combination (which is not caught by +* !pte_present() check in pte_access_permitted), to prevent +* lock-free lookups, as part of the serialize_against_pte_lookup() +* synchronisation. +* +* This also catches the case where the PTE's hardware PRESENT bit is +* cleared while TLB is flushed, which is suboptimal but should not +* be frequent. +*/ +if (pmd_is_serializing (pmd)) +return false; +return pte_access_permitted (pmd_pte (pmd), write); }
arch/powerpc/include/asm/kexec.h +3 -0
@@ -94,6 +94,9 @@ static inline bool kdump_in_progress(void)return crashing_cpu >=0 ; } +void relocate_new_kernel (unsigned long indirection_page,unsigned long reboot_code_buffer, +unsigned long start_address)__noreturn ; +#ifdef CONFIG_KEXEC_FILE extern const struct kexec_file_ops kexec_elf64_ops;
arch/powerpc/kernel/machine_kexec_32.c +3 -1
@@ -30,7 +30,6 @@ typedef void (*relocate_new_kernel_t)(*/ void default_machine_kexec (struct kimage *image) { -extern const unsigned char relocate_new_kernel[];extern const unsigned int relocate_new_kernel_size;unsigned long page_list;unsigned long reboot_code_buffer, reboot_code_buffer_phys;
@@ -58,6 +57,9 @@ void default_machine_kexec(struct kimage *image) reboot_code_buffer + KEXEC_CONTROL_PAGE_SIZE);printk (KERN_INFO "Bye!\n" ); +if (!IS_ENABLED (CONFIG_FSL_BOOKE ) && !IS_ENABLED (CONFIG_44x)) +relocate_new_kernel (page_list, reboot_code_buffer_phys, image->start); +/* now call it */ rnk = (relocate_new_kernel_t ) reboot_code_buffer; (*rnk)(page_list, reboot_code_buffer_phys, image->start);
arch/powerpc/mm/pgtable-book3s64.c +3 -0
@@ -116,6 +116,9 @@ pmd_t pmdp_invalidate(struct vm_area_struct *vma, unsigned long address,/* * This ensures that generic code that rely on IRQ disabling * to prevent a parallel THP split work as expected. +* +* Marking the entry with _PAGE_INVALID && ~_PAGE_PRESENT requires +* a special case check in pmd_access_permitted. */ serialize_against_pte_lookup (vma->vm_mm);return __pmd (old_pmd);
arch/s390/kvm/kvm-s390.c +21 -14
@@ -4413,21 +4413,28 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,const struct kvm_memory_slot *new, enum kvm_mr_change change) { - int rc; - -/* If the basics of the memslot do not change, we do not want -* to update the gmap. Every update causes several unnecessary -* segment translation exceptions. This is usually handled just -* fine by the normal fault handler + gmap, but it will also -* cause faults on the prefix page of running guest CPUs. -*/ -if (old->userspace_addr == mem->userspace_addr && - old->base_gfn *PAGE_SIZE == mem->guest_phys_addr && - old->npages *PAGE_SIZE == mem->memory_size) -return ; + int rc = 0; - rc =gmap_map_segment (kvm->arch.gmap, mem->userspace_addr, - mem->guest_phys_addr, mem->memory_size); +switch (change) { +case KVM_MR_DELETE : + rc =gmap_unmap_segment (kvm->arch.gmap, old->base_gfn *PAGE_SIZE , + old->npages *PAGE_SIZE ); +break ; +case KVM_MR_MOVE : + rc =gmap_unmap_segment (kvm->arch.gmap, old->base_gfn *PAGE_SIZE , + old->npages *PAGE_SIZE ); +if (rc) +break ; +/* FALLTHROUGH */ +case KVM_MR_CREATE : + rc =gmap_map_segment (kvm->arch.gmap, mem->userspace_addr, + mem->guest_phys_addr, mem->memory_size); +break ; +case KVM_MR_FLAGS_ONLY : +break ; +default : +WARN (1 ,"Unknown KVM MR CHANGE: %d\n" , change); + }if (rc)pr_warn ("failed to commit memory region\n" );return ;
arch/x86/kernel/cpu/microcode/core.c +1 -1
@@ -876,7 +876,7 @@ int __init microcode_init(void) goto out_ucode_group;register_syscore_ops (&mc_syscore_ops); -cpuhp_setup_state_nocalls (CPUHP_AP_ONLINE_DYN ,"x86/microcode:online" , +cpuhp_setup_state_nocalls (CPUHP_AP_MICROCODE_LOADER ,"x86/microcode:online" , mc_cpu_online, mc_cpu_down_prep);pr_info ("Microcode Update Driver: v%s." ,DRIVER_VERSION );
arch/x86/kernel/cpu/resctrl/monitor.c +3 -0
@@ -368,6 +368,9 @@ static void update_mba_bw(struct rdtgroup *rgrp, struct rdt_domain *dom_mbm)struct list_head *head;struct rdtgroup *entry; +if (!is_mbm_local_enabled ()) +return ; + r_mba = &rdt_resources_all[RDT_RESOURCE_MBA ]; closid = rgrp->closid; rmid = rgrp->mon.rmid;
arch/x86/kvm/pmu.c +3 -7
@@ -283,7 +283,7 @@ int kvm_pmu_rdpmc(struct kvm_vcpu *vcpu, unsigned idx, u64 *data)bool fast_mode = idx & (1u <<31 );struct kvm_pmu *pmu =vcpu_to_pmu (vcpu);struct kvm_pmc *pmc; -u64 ctr_val; +u64 mask = fast_mode ? ~0u : ~0ull ;if (!pmu->version)return 1 ;
@@ -291,15 +291,11 @@ int kvm_pmu_rdpmc(struct kvm_vcpu *vcpu, unsigned idx, u64 *data)if (is_vmware_backdoor_pmc (idx))return kvm_pmu_rdpmc_vmware (vcpu, idx, data); - pmc = kvm_x86_ops->pmu_ops->msr_idx_to_pmc (vcpu, idx); + pmc = kvm_x86_ops->pmu_ops->msr_idx_to_pmc (vcpu, idx, &mask);if (!pmc)return 1 ; - ctr_val =pmc_read_counter (pmc); -if (fast_mode) - ctr_val = (u32 )ctr_val; - - *data = ctr_val; + *data =pmc_read_counter (pmc) & mask;return 0 ; }
arch/x86/kvm/pmu.h +2 -1
@@ -25,7 +25,8 @@ struct kvm_pmu_ops {unsigned (*find_fixed_event)(int idx);bool (*pmc_is_enabled)(struct kvm_pmc *pmc);struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu,int pmc_idx); -struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu,unsigned idx); +struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu,unsigned idx, +u64 *mask);int (*is_valid_msr_idx)(struct kvm_vcpu *vcpu,unsigned idx);bool (*is_valid_msr)(struct kvm_vcpu *vcpu,u32 msr);int (*get_msr)(struct kvm_vcpu *vcpu,u32 msr,u64 *data);
arch/x86/kvm/pmu_amd.c +1 -1
@@ -186,7 +186,7 @@ static int amd_is_valid_msr_idx(struct kvm_vcpu *vcpu, unsigned idx) }/* idx is the ECX register of RDPMC instruction */ -static struct kvm_pmc *amd_msr_idx_to_pmc (struct kvm_vcpu *vcpu,unsigned idx) +static struct kvm_pmc *amd_msr_idx_to_pmc (struct kvm_vcpu *vcpu,unsigned idx,u64 *mask) {struct kvm_pmu *pmu =vcpu_to_pmu (vcpu);struct kvm_pmc *counters;
arch/x86/kvm/svm.c +8 -1
@@ -379,6 +379,9 @@ module_param(vgif, int, 0444);static int sev =IS_ENABLED (CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT );module_param (sev, int,0444 ); +static bool __read_mostly dump_invalid_vmcb =0 ; +module_param (dump_invalid_vmcb, bool,0644 ); +static u8 rsm_ins_bytes[] ="\x0f\xaa" ;static void svm_set_cr0 (struct kvm_vcpu *vcpu,unsigned long cr0);
@@ -4834,6 +4837,11 @@ static void dump_vmcb(struct kvm_vcpu *vcpu)struct vmcb_control_area *control = &svm->vmcb->control;struct vmcb_save_area *save = &svm->vmcb->save; +if (!dump_invalid_vmcb) { +pr_warn_ratelimited ("set kvm_amd.dump_invalid_vmcb=1 to dump internal KVM state.\n" ); +return ; + } +pr_err ("VMCB Control Area:\n" );pr_err ("%-20s%04x\n" ,"cr_read:" , control->intercept_cr &0xffff );pr_err ("%-20s%04x\n" ,"cr_write:" , control->intercept_cr >>16 );
@@ -4992,7 +5000,6 @@ static int handle_exit(struct kvm_vcpu *vcpu) kvm_run->exit_reason =KVM_EXIT_FAIL_ENTRY ; kvm_run->fail_entry.hardware_entry_failure_reason = svm->vmcb->control.exit_code; -pr_err ("KVM: FAILED VMRUN WITH VMCB:\n" );dump_vmcb (vcpu);return 0 ; }
arch/x86/kvm/vmx/nested.c +1 -1
@@ -5467,7 +5467,7 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu, vmcs12->vmcs_link_pointer != -1ull) {struct vmcs12 *shadow_vmcs12 =get_shadow_vmcs12 (vcpu); -if (kvm_state->size <sizeof (*kvm_state) +2 *sizeof (*vmcs12)) +if (kvm_state->size <sizeof (*kvm_state) +VMCS12_SIZE +sizeof (*vmcs12))return -EINVAL ; if (copy_from_user(shadow_vmcs12,
arch/x86/kvm/vmx/pmu_intel.c +17 -9
@@ -126,7 +126,7 @@ static int intel_is_valid_msr_idx(struct kvm_vcpu *vcpu, unsigned idx) }static struct kvm_pmc *intel_msr_idx_to_pmc (struct kvm_vcpu *vcpu, -unsigned idx) +unsigned idx,u64 *mask) {struct kvm_pmu *pmu =vcpu_to_pmu (vcpu);bool fixed = idx & (1u <<30 );
@@ -138,6 +138,7 @@ static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu,if (fixed && idx >= pmu->nr_arch_fixed_counters)return NULL ; counters = fixed ? pmu->fixed_counters : pmu->gp_counters; + *mask &= pmu->counter_bitmask[fixed ?KVM_PMC_FIXED :KVM_PMC_GP ];return &counters[idx]; }
@@ -183,9 +184,13 @@ static int intel_pmu_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *data) *data = pmu->global_ovf_ctrl;return 0 ;default : -if ((pmc =get_gp_pmc (pmu, msr,MSR_IA32_PERFCTR0 )) || - (pmc =get_fixed_pmc (pmu, msr))) { - *data =pmc_read_counter (pmc); +if ((pmc =get_gp_pmc (pmu, msr,MSR_IA32_PERFCTR0 ))) { +u64 val =pmc_read_counter (pmc); + *data = val & pmu->counter_bitmask[KVM_PMC_GP ]; +return 0 ; + }else if ((pmc =get_fixed_pmc (pmu, msr))) { +u64 val =pmc_read_counter (pmc); + *data = val & pmu->counter_bitmask[KVM_PMC_FIXED ];return 0 ; }else if ((pmc =get_gp_pmc (pmu, msr,MSR_P6_EVNTSEL0 ))) { *data = pmc->eventsel;
@@ -235,11 +240,14 @@ static int intel_pmu_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) }break ;default : -if ((pmc =get_gp_pmc (pmu, msr,MSR_IA32_PERFCTR0 )) || - (pmc =get_fixed_pmc (pmu, msr))) { -if (!msr_info->host_initiated) - data = (s64 )(s32 )data; - pmc->counter += data -pmc_read_counter (pmc); +if ((pmc =get_gp_pmc (pmu, msr,MSR_IA32_PERFCTR0 ))) { +if (msr_info->host_initiated) + pmc->counter = data; +else + pmc->counter = (s32 )data; +return 0 ; + }else if ((pmc =get_fixed_pmc (pmu, msr))) { + pmc->counter = data;return 0 ; }else if ((pmc =get_gp_pmc (pmu, msr,MSR_P6_EVNTSEL0 ))) {if (data == pmc->eventsel)
arch/x86/kvm/vmx/vmx.c +19 -7
@@ -114,6 +114,9 @@ static u64 __read_mostly host_xss;bool __read_mostly enable_pml =1 ;module_param_named (pml, enable_pml, bool,S_IRUGO ); +static bool __read_mostly dump_invalid_vmcs =0 ; +module_param (dump_invalid_vmcs, bool,0644 ); +#define MSR_BITMAP_MODE_X2APIC 1#define MSR_BITMAP_MODE_X2APIC_APICV 2
@@ -5605,15 +5608,24 @@ static void vmx_dump_dtsel(char *name, uint32_t limit)void dump_vmcs (void ) { -u32 vmentry_ctl =vmcs_read32 (VM_ENTRY_CONTROLS ); -u32 vmexit_ctl =vmcs_read32 (VM_EXIT_CONTROLS ); -u32 cpu_based_exec_ctrl =vmcs_read32 (CPU_BASED_VM_EXEC_CONTROL ); -u32 pin_based_exec_ctrl =vmcs_read32 (PIN_BASED_VM_EXEC_CONTROL ); -u32 secondary_exec_control =0 ; -unsigned long cr4 =vmcs_readl (GUEST_CR4 ); -u64 efer =vmcs_read64 (GUEST_IA32_EFER ); +u32 vmentry_ctl, vmexit_ctl; +u32 cpu_based_exec_ctrl, pin_based_exec_ctrl, secondary_exec_control; +unsigned long cr4; +u64 efer;int i, n; +if (!dump_invalid_vmcs) { +pr_warn_ratelimited ("set kvm_intel.dump_invalid_vmcs=1 to dump internal KVM state.\n" ); +return ; + } + + vmentry_ctl =vmcs_read32 (VM_ENTRY_CONTROLS ); + vmexit_ctl =vmcs_read32 (VM_EXIT_CONTROLS ); + cpu_based_exec_ctrl =vmcs_read32 (CPU_BASED_VM_EXEC_CONTROL ); + pin_based_exec_ctrl =vmcs_read32 (PIN_BASED_VM_EXEC_CONTROL ); + cr4 =vmcs_readl (GUEST_CR4 ); + efer =vmcs_read64 (GUEST_IA32_EFER ); + secondary_exec_control =0 ;if (cpu_has_secondary_exec_ctrls ()) secondary_exec_control =vmcs_read32 (SECONDARY_VM_EXEC_CONTROL );
arch/x86/kvm/vmx/vmx.h +1 -0
@@ -314,6 +314,7 @@ void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked);void vmx_set_virtual_apic_mode (struct kvm_vcpu *vcpu);struct shared_msr_entry *find_msr_entry (struct vcpu_vmx *vmx,u32 msr);void pt_update_intercept_for_msr (struct vcpu_vmx *vmx); +void vmx_update_host_rsp (struct vcpu_vmx *vmx,unsigned long host_rsp);#define POSTED_INTR_ON 0#define POSTED_INTR_SN 1
arch/x86/kvm/x86.c +1 -1
@@ -143,7 +143,7 @@ module_param(tsc_tolerance_ppm, uint, S_IRUGO | S_IWUSR);* tuning, i.e. allows priveleged userspace to set an exact advancement time. */ static int __read_mostly lapic_timer_advance_ns =-1 ; -module_param (lapic_timer_advance_ns, uint,S_IRUGO |S_IWUSR ); +module_param (lapic_timer_advance_ns, int,S_IRUGO |S_IWUSR );static bool __read_mostly vector_hashing = true;module_param (vector_hashing, bool,S_IRUGO );
arch/x86/mm/kasan_init_64.c +1 -1
@@ -199,7 +199,7 @@ static inline p4d_t *early_p4d_offset(pgd_t *pgd, unsigned long addr)if (!pgtable_l5_enabled ())return (p4d_t *)pgd; - p4d =__pa_nodebug (pgd_val (*pgd)) &PTE_PFN_MASK ; + p4d =pgd_val (*pgd) &PTE_PFN_MASK ; p4d += __START_KERNEL_map - phys_base;return (p4d_t *)p4d +p4d_index (addr); }
arch/x86/mm/kaslr.c +10 -1
@@ -52,7 +52,7 @@ static __initdata struct kaslr_memory_region { } kaslr_regions[] = { { &page_offset_base, 0 }, { &vmalloc_base, 0 }, - { &vmemmap_base, 1 }, + { &vmemmap_base, 0 }, }; /* Get size in bytes used by the memory region */
@@ -78,6 +78,7 @@ void __init kernel_randomize_memory(void)unsigned long rand, memory_tb;struct rnd_state rand_state;unsigned long remain_entropy; +unsigned long vmemmap_size; vaddr_start =pgtable_l5_enabled () ? __PAGE_OFFSET_BASE_L5 : __PAGE_OFFSET_BASE_L4; vaddr = vaddr_start;
@@ -109,6 +110,14 @@ void __init kernel_randomize_memory(void)if (memory_tb < kaslr_regions[0 ].size_tb) kaslr_regions[0 ].size_tb = memory_tb; +/* +* Calculate the vmemmap region size in TBs, aligned to a TB +* boundary. +*/ + vmemmap_size = (kaslr_regions[0 ].size_tb << (TB_SHIFT -PAGE_SHIFT )) * +sizeof (struct page ); + kaslr_regions[2 ].size_tb =DIV_ROUND_UP (vmemmap_size,1UL <<TB_SHIFT ); +/* Calculate entropy available between regions */ remain_entropy = vaddr_end - vaddr_start;for (i =0 ; i <ARRAY_SIZE (kaslr_regions); i++)
drivers/ata/libata-core.c +6 -3
@@ -4476,9 +4476,12 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { {"ST3320[68]13AS" ,"SD1[5-9]" ,ATA_HORKAGE_NONCQ | ATA_HORKAGE_FIRMWARE_WARN }, -/* drives which fail FPDMA_AA activation (some may freeze afterwards) */ - { "ST1000LM024 HN-M101MBB", "2AR10001", ATA_HORKAGE_BROKEN_FPDMA_AA }, - { "ST1000LM024 HN-M101MBB", "2BA30001", ATA_HORKAGE_BROKEN_FPDMA_AA }, +/* drives which fail FPDMA_AA activation (some may freeze afterwards) +the ST disks also have LPM issues */ + { "ST1000LM024 HN-M101MBB", "2AR10001", ATA_HORKAGE_BROKEN_FPDMA_AA | + ATA_HORKAGE_NOLPM, }, + { "ST1000LM024 HN-M101MBB", "2BA30001", ATA_HORKAGE_BROKEN_FPDMA_AA | + ATA_HORKAGE_NOLPM, }, { "VB0250EAVER", "HPG7", ATA_HORKAGE_BROKEN_FPDMA_AA },/* Blacklist entries taken from Silicon Image 3124/3132
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +3 -1
@@ -594,7 +594,7 @@ int amdgpu_vcn_dec_ring_test_ib(struct amdgpu_ring *ring, long timeout)int amdgpu_vcn_enc_ring_test_ring (struct amdgpu_ring *ring) {struct amdgpu_device *adev = ring->adev; -uint32_t rptr =amdgpu_ring_get_rptr (ring); +uint32_t rptr;unsigned i;int r;
@@ -602,6 +602,8 @@ int amdgpu_vcn_enc_ring_test_ring(struct amdgpu_ring *ring)if (r)return r; + rptr =amdgpu_ring_get_rptr (ring); +amdgpu_ring_write (ring,VCN_ENC_CMD_END );amdgpu_ring_commit (ring);
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -0
@@ -715,6 +715,7 @@ static bool gmc_v9_0_keep_stolen_memory(struct amdgpu_device *adev)case CHIP_VEGA10 :return true;case CHIP_RAVEN : +return (adev->pdev->device ==0x15d8 );case CHIP_VEGA12 :case CHIP_VEGA20 :default :
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +4 -1
@@ -170,13 +170,16 @@ static void uvd_v6_0_enc_ring_set_wptr(struct amdgpu_ring *ring)static int uvd_v6_0_enc_ring_test_ring (struct amdgpu_ring *ring) {struct amdgpu_device *adev = ring->adev; -uint32_t rptr =amdgpu_ring_get_rptr (ring); +uint32_t rptr;unsigned i;int r; r =amdgpu_ring_alloc (ring,16 );if (r)return r; + + rptr =amdgpu_ring_get_rptr (ring); +amdgpu_ring_write (ring,HEVC_ENC_CMD_END );amdgpu_ring_commit (ring);
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c +4 -1
@@ -175,7 +175,7 @@ static void uvd_v7_0_enc_ring_set_wptr(struct amdgpu_ring *ring)static int uvd_v7_0_enc_ring_test_ring (struct amdgpu_ring *ring) {struct amdgpu_device *adev = ring->adev; -uint32_t rptr =amdgpu_ring_get_rptr (ring); +uint32_t rptr;unsigned i;int r;
@@ -185,6 +185,9 @@ static int uvd_v7_0_enc_ring_test_ring(struct amdgpu_ring *ring) r =amdgpu_ring_alloc (ring,16 );if (r)return r; + + rptr =amdgpu_ring_get_rptr (ring); +amdgpu_ring_write (ring,HEVC_ENC_CMD_END );amdgpu_ring_commit (ring);
drivers/gpu/drm/drm_edid.c +47 -8
68 lines not on this page · raw message
drivers/gpu/drm/drm_probe_helper.c +7 -0
@@ -479,6 +479,13 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector, count = (*connector_funcs->get_modes)(connector); +/* +* Fallback for when DDC probe failed in drm_get_edid() and thus skipped +* override/firmware EDID. +*/ +if (count ==0 && connector->status == connector_status_connected) + count =drm_add_override_edid_modes (connector); +if (count ==0 && connector->status == connector_status_connected) count =drm_add_modes_noedid (connector,1024 ,768 ); count +=drm_helper_probe_add_cmdline_mode (connector);
drivers/gpu/drm/i915/intel_csr.c +18 -0
@@ -300,10 +300,17 @@ static u32 *parse_csr_fw(struct drm_i915_private *dev_priv,u32 dmc_offset =CSR_DEFAULT_FW_OFFSET , readcount =0 , nbytes;u32 i;u32 *dmc_payload; +size_t fsize;if (!fw)return NULL ; + fsize =sizeof (struct intel_css_header ) + +sizeof (struct intel_package_header ) + +sizeof (struct intel_dmc_header ); +if (fsize > fw->size) + goto error_truncated; +/* Extract CSS Header information*/ css_header = (struct intel_css_header *)fw->data; if (sizeof(struct intel_css_header) !=
@@ -363,6 +370,9 @@ static u32 *parse_csr_fw(struct drm_i915_private *dev_priv,/* Convert dmc_offset into number of bytes. By default it is in dwords*/ dmc_offset *=4 ; readcount += dmc_offset; + fsize += dmc_offset; +if (fsize > fw->size) + goto error_truncated;/* Extract dmc_header information. */ dmc_header = (struct intel_dmc_header *)&fw->data[readcount];
@@ -394,6 +404,10 @@ static u32 *parse_csr_fw(struct drm_i915_private *dev_priv,/* fw_size is in dwords, so multiplied by 4 to convert into bytes. */ nbytes = dmc_header->fw_size *4 ; + fsize += nbytes; +if (fsize > fw->size) + goto error_truncated; +if (nbytes > csr->max_fw_size) {DRM_ERROR ("DMC FW too big (%u bytes)\n" , nbytes);return NULL ;
@@ -407,6 +421,10 @@ static u32 *parse_csr_fw(struct drm_i915_private *dev_priv, }return memcpy (dmc_payload, &fw->data[readcount], nbytes); + +error_truncated: +DRM_ERROR ("Truncated DMC firmware, rejecting.\n" ); +return NULL ; }static void intel_csr_runtime_pm_get (struct drm_i915_private *dev_priv)
drivers/gpu/drm/i915/intel_display.c +9 -5
@@ -2444,10 +2444,14 @@ static unsigned int intel_fb_modifier_to_tiling(u64 fb_modifier)* main surface. */ static const struct drm_format_info ccs_formats[] = { - { .format =DRM_FORMAT_XRGB8888 , .depth =24 , .num_planes =2 , .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , }, - { .format =DRM_FORMAT_XBGR8888 , .depth =24 , .num_planes =2 , .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , }, - { .format =DRM_FORMAT_ARGB8888 , .depth =32 , .num_planes =2 , .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , }, - { .format =DRM_FORMAT_ABGR8888 , .depth =32 , .num_planes =2 , .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , }, + { .format =DRM_FORMAT_XRGB8888 , .depth =24 , .num_planes =2 , + .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , }, + { .format =DRM_FORMAT_XBGR8888 , .depth =24 , .num_planes =2 , + .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , }, + { .format =DRM_FORMAT_ARGB8888 , .depth =32 , .num_planes =2 , + .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , .has_alpha = true, }, + { .format =DRM_FORMAT_ABGR8888 , .depth =32 , .num_planes =2 , + .cpp = {4 ,1 , }, .hsub =8 , .vsub =16 , .has_alpha = true, }, }; static const struct drm_format_info *
@@ -11757,7 +11761,7 @@ intel_modeset_pipe_config(struct drm_crtc *crtc,return 0 ; } -static bool intel_fuzzy_clock_check (int clock1,int clock2) +bool intel_fuzzy_clock_check (int clock1,int clock2) {int diff;
drivers/gpu/drm/i915/intel_drv.h +1 -0
@@ -1707,6 +1707,7 @@ int vlv_force_pll_on(struct drm_i915_private *dev_priv, enum pipe pipe, const struct dpll *dpll);void vlv_force_pll_off (struct drm_i915_private *dev_priv,enum pipe pipe);int lpt_get_iclkip (struct drm_i915_private *dev_priv); +bool intel_fuzzy_clock_check (int clock1,int clock2);/* modesetting asserts */ void assert_panel_unlocked(struct drm_i915_private *dev_priv,
drivers/gpu/drm/i915/intel_dsi_vbt.c +11 -0
@@ -871,6 +871,17 @@ bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id)if (mipi_config->target_burst_mode_freq) {u32 bitrate =intel_dsi_bitrate (intel_dsi); +/* +* Sometimes the VBT contains a slightly lower clock, +* then the bitrate we have calculated, in this case +* just replace it with the calculated bitrate. +*/ +if (mipi_config->target_burst_mode_freq < bitrate && +intel_fuzzy_clock_check ( + mipi_config->target_burst_mode_freq, + bitrate)) + mipi_config->target_burst_mode_freq = bitrate; +if (mipi_config->target_burst_mode_freq < bitrate) {DRM_ERROR ("Burst mode freq is less than computed\n" );return false;
drivers/gpu/drm/i915/intel_sdvo.c +47 -11
106 lines not on this page · raw message
drivers/gpu/drm/i915/intel_sdvo_regs.h +3 -0
@@ -707,6 +707,9 @@ struct intel_sdvo_enhancements_arg {#define SDVO_CMD_GET_AUDIO_ENCRYPT_PREFER 0x90#define SDVO_CMD_SET_AUDIO_STAT 0x91#define SDVO_CMD_GET_AUDIO_STAT 0x92 +#define SDVO_AUDIO_ELD_VALID (1 << 0) +#define SDVO_AUDIO_PRESENCE_DETECT (1 << 1) +#define SDVO_AUDIO_CP_READY (1 << 2)#define SDVO_CMD_SET_HBUF_INDEX 0x93#define SDVO_HBUF_INDEX_ELD 0#define SDVO_HBUF_INDEX_AVI_IF 1
drivers/gpu/drm/nouveau/Kconfig +12 -1
@@ -17,10 +17,21 @@ config DRM_NOUVEAU select INPUT if ACPI && X86 select THERMAL if ACPI && X86 select ACPI_VIDEO if ACPI && X86 - select DRM_VM help Choose this option for open-source NVIDIA support. +config NOUVEAU_LEGACY_CTX_SUPPORT + bool "Nouveau legacy context support" + depends on DRM_NOUVEAU + select DRM_VM + default y + help + There was a version of the nouveau DDX that relied on legacy + ctx ioctls not erroring out. But that was back in time a long + ways, so offer a way to disable it now. For uapi compat with + old nouveau ddx this should be on by default, but modern distros + should consider turning it off. + config NOUVEAU_PLATFORM_DRIVER bool "Nouveau (NVIDIA) SoC GPUs" depends on DRM_NOUVEAU && ARCH_TEGRA
drivers/gpu/drm/nouveau/nouveau_drm.c +5 -2
@@ -1094,8 +1094,11 @@ nouveau_driver_fops = {static struct drm_driver driver_stub = { .driver_features = -DRIVER_GEM |DRIVER_MODESET |DRIVER_PRIME |DRIVER_RENDER | -DRIVER_KMS_LEGACY_CONTEXT , +DRIVER_GEM |DRIVER_MODESET |DRIVER_PRIME |DRIVER_RENDER +#if defined(CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT) + |DRIVER_KMS_LEGACY_CONTEXT +#endif + , .open = nouveau_drm_open, .postclose = nouveau_drm_postclose,
drivers/gpu/drm/nouveau/nouveau_ttm.c +4 -0
@@ -169,7 +169,11 @@ nouveau_ttm_mmap(struct file *filp, struct vm_area_struct *vma)struct nouveau_drm *drm =nouveau_drm (file_priv->minor->dev); if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET)) +#if defined(CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT )return drm_legacy_mmap (filp, vma); +#else +return -EINVAL ; +#endif return ttm_bo_mmap (filp, vma, &drm->ttm.bdev); }
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +6 -1
@@ -2351,7 +2351,8 @@ static int vmw_cmd_dx_set_shader(struct vmw_private *dev_priv, cmd =container_of (header,typeof (*cmd), header); -if (cmd->body.type >=SVGA3D_SHADERTYPE_DX10_MAX ) { +if (cmd->body.type >=SVGA3D_SHADERTYPE_DX10_MAX || + cmd->body.type <SVGA3D_SHADERTYPE_MIN ) {DRM_ERROR ("Illegal shader type %u.\n" , (unsigned ) cmd->body.type);return -EINVAL ;
@@ -2587,6 +2588,10 @@ static int vmw_cmd_dx_view_define(struct vmw_private *dev_priv,if (view_type == vmw_view_max)return -EINVAL ; cmd =container_of (header,typeof (*cmd), header); +if (unlikely (cmd->sid ==SVGA3D_INVALID_ID )) { +DRM_ERROR ("Invalid surface id.\n" ); +return -EINVAL ; + } ret =vmw_cmd_res_check (dev_priv, sw_context, vmw_res_surface, user_surface_converter, &cmd->sid, &srf);
drivers/hid/hid-core.c +8 -5
@@ -1313,10 +1313,10 @@ static u32 __extract(u8 *report, unsigned offset, int n)u32 hid_field_extract (const struct hid_device *hid,u8 *report,unsigned offset,unsigned n) { -if (n >256 ) { -hid_warn (hid,"hid_field_extract() called with n (%d) > 256! (%s)\n" , +if (n >32 ) { +hid_warn (hid,"hid_field_extract() called with n (%d) > 32! (%s)\n" , n, current->comm); - n =256 ; + n =32 ; }return __extract (report, offset, n);
@@ -1636,7 +1636,7 @@ static struct hid_report *hid_get_report(struct hid_report_enum *report_enum,* Implement a generic .request() callback, using .raw_request() * DO NOT USE in hid drivers directly, but through hid_hw_request instead. */ -void __hid_request (struct hid_device *hid,struct hid_report *report, +int __hid_request (struct hid_device *hid,struct hid_report *report,int reqtype) {char *buf;
@@ -1645,7 +1645,7 @@ void __hid_request(struct hid_device *hid, struct hid_report *report, buf =hid_alloc_report_buf (report,GFP_KERNEL );if (!buf) -return ; +return -ENOMEM ; len =hid_report_len (report);
@@ -1662,8 +1662,11 @@ void __hid_request(struct hid_device *hid, struct hid_report *report,if (reqtype ==HID_REQ_GET_REPORT )hid_input_report (hid, report->type, buf, ret,0 ); + ret =0 ; + out:kfree (buf); +return ret; }EXPORT_SYMBOL_GPL (__hid_request);
drivers/hid/hid-input.c +50 -31
102 lines not on this page · raw message
drivers/hid/hid-multitouch.c +7 -0
@@ -641,6 +641,13 @@ static void mt_store_field(struct hid_device *hdev,if (*target !=DEFAULT_TRUE && *target !=DEFAULT_FALSE && *target !=DEFAULT_ZERO ) { +if (usage->contactid ==DEFAULT_ZERO || + usage->x ==DEFAULT_ZERO || + usage->y ==DEFAULT_ZERO ) { +hid_dbg (hdev, +"ignoring duplicate usage on incomplete" ); +return ; + } usage =mt_allocate_usage (hdev, application);if (!usage)return ;
drivers/hid/wacom_wac.c +49 -22
128 lines not on this page · raw message
drivers/i2c/busses/i2c-acorn.c +1 -0
@@ -81,6 +81,7 @@ static struct i2c_algo_bit_data ioc_data = {static struct i2c_adapter ioc_ops = { .nr =0 , + .name ="ioc" , .algo_data = &ioc_data, };
drivers/iommu/arm-smmu.c +12 -3
@@ -59,6 +59,15 @@#include "arm-smmu-regs.h" +/* +* Apparently, some Qualcomm arm64 platforms which appear to expose their SMMU +* global register space are still, in fact, using a hypervisor to mediate it +* by trapping and emulating register accesses. Sadly, some deployed versions +* of said trapping code have bugs wherein they go horribly wrong for stores +* using r31 (i.e. XZR/WZR) as the source register. +*/ +#define QCOM_DUMMY_VAL -1 +#define ARM_MMU500_ACTLR_CPRE (1 << 1)#define ARM_MMU500_ACR_CACHE_LOCK (1 << 26)
@@ -422,7 +431,7 @@ static void __arm_smmu_tlb_sync(struct arm_smmu_device *smmu, {unsigned int spin_cnt, delay; -writel_relaxed (0 , sync); +writel_relaxed (QCOM_DUMMY_VAL , sync);for (delay =1 ; delay <TLB_LOOP_TIMEOUT ; delay *=2 ) {for (spin_cnt =TLB_SPIN_COUNT ; spin_cnt >0 ; spin_cnt--) {if (!(readl_relaxed (status) & sTLBGSTATUS_GSACTIVE))
@@ -1760,8 +1769,8 @@ static void arm_smmu_device_reset(struct arm_smmu_device *smmu) }/* Invalidate the TLB, just in case */ -writel_relaxed (0 , gr0_base +ARM_SMMU_GR0_TLBIALLH ); -writel_relaxed (0 , gr0_base +ARM_SMMU_GR0_TLBIALLNSNH ); +writel_relaxed (QCOM_DUMMY_VAL , gr0_base +ARM_SMMU_GR0_TLBIALLH ); +writel_relaxed (QCOM_DUMMY_VAL , gr0_base +ARM_SMMU_GR0_TLBIALLNSNH ); reg =readl_relaxed (ARM_SMMU_GR0_NS (smmu) + ARM_SMMU_GR0_sCR0);
drivers/md/bcache/bset.c +13 -3
@@ -887,12 +887,22 @@ unsigned int bch_btree_insert_key(struct btree_keys *b, struct bkey *k,struct bset *i =bset_tree_last (b)->data;struct bkey *m, *prev =NULL ;struct btree_iter iter; +struct bkey preceding_key_on_stack =ZERO_KEY ; +struct bkey *preceding_key_p = &preceding_key_on_stack;BUG_ON (b->ops->is_extents && !KEY_SIZE (k)); - m =bch_btree_iter_init (b, &iter, b->ops->is_extents - ?PRECEDING_KEY (&START_KEY (k)) - :PRECEDING_KEY (k)); +/* +* If k has preceding key, preceding_key_p will be set to address +* of k's preceding key; otherwise preceding_key_p will be set +* to NULL inside preceding_key(). +*/ +if (b->ops->is_extents) +preceding_key (&START_KEY (k), &preceding_key_p); +else +preceding_key (k, &preceding_key_p); + + m =bch_btree_iter_init (b, &iter, preceding_key_p);if (b->ops->insert_fixup (b, k, &iter, replace_key))return status;
drivers/md/bcache/bset.h +20 -14
@@ -434,20 +434,26 @@ static inline bool bch_cut_back(const struct bkey *where, struct bkey *k)return __bch_cut_back (where, k); } -#define PRECEDING_KEY (_k) \ -({ \ - struct bkey *_ret = NULL; \ - \ - if (KEY_INODE(_k) || KEY_OFFSET(_k)) { \ - _ret = &KEY(KEY_INODE(_k), KEY_OFFSET(_k), 0); \ - \ - if (!_ret->low) \ - _ret->high--; \ - _ret->low--; \ - } \ - \ - _ret; \ -}) +/* +* Pointer '*preceding_key_p' points to a memory object to store preceding +* key of k. If the preceding key does not exist, set '*preceding_key_p' to +* NULL. So the caller of preceding_key() needs to take care of memory +* which '*preceding_key_p' pointed to before calling preceding_key(). +* Currently the only caller of preceding_key() is bch_btree_insert_key(), +* and it points to an on-stack variable, so the memory release is handled +* by stackframe itself. +*/ +static inline void preceding_key (struct bkey *k,struct bkey **preceding_key_p) +{ +if (KEY_INODE (k) ||KEY_OFFSET (k)) { + (**preceding_key_p) =KEY (KEY_INODE (k),KEY_OFFSET (k),0 ); +if (!(*preceding_key_p)->low) + (*preceding_key_p)->high--; + (*preceding_key_p)->low--; + }else { + (*preceding_key_p) =NULL ; + } +}static inline bool bch_ptr_invalid (struct btree_keys *b,const struct bkey *k) {
drivers/md/bcache/sysfs.c +6 -1
@@ -431,8 +431,13 @@ STORE(bch_cached_dev)bch_writeback_queue (dc); } +/* +* Only set BCACHE_DEV_WB_RUNNING when cached device attached to +* a cache set, otherwise it doesn't make sense. +*/ if (attr == &sysfs_writeback_percent) -if (!test_and_set_bit (BCACHE_DEV_WB_RUNNING , &dc->disk.flags)) +if ((dc->disk.c !=NULL ) && + (!test_and_set_bit (BCACHE_DEV_WB_RUNNING , &dc->disk.flags)))schedule_delayed_work (&dc->writeback_rate_update, dc->writeback_rate_update_seconds *HZ );
drivers/media/dvb-core/dvb_frontend.c +1 -1
@@ -917,7 +917,7 @@ static void dvb_frontend_get_frequency_limits(struct dvb_frontend *fe,"DVB: adapter %i frontend %u frequency limits undefined - fix the driver\n" , fe->dvb->num, fe->id); -dprintk ("frequency interval: tuner: %u...%u, frontend: %u...%u" , +dev_dbg (fe->dvb->device,"frequency interval: tuner: %u...%u, frontend: %u...%u" , tuner_min, tuner_max, frontend_min, frontend_max);/* If the standard is for satellite, convert frequencies to kHz */
drivers/misc/kgdbts.c +2 -2
@@ -1135,7 +1135,7 @@ static void kgdbts_put_char(u8 chr)static int param_set_kgdbts_var (const char *kmessage,const struct kernel_param *kp) { -int len =strlen (kmessage); +size_t len =strlen (kmessage);if (len >=MAX_CONFIG_LEN ) {printk (KERN_ERR "kgdbts: config string too long\n" );
@@ -1155,7 +1155,7 @@ static int param_set_kgdbts_var(const char *kmessage,strcpy (config, kmessage);/* Chop out \n char as a result of echo */ -if (config[len -1 ] =='\n' ) +if (len && config[len -1 ] =='\n' ) config[len -1 ] ='\0' ;/* Go and configure with the new params. */
drivers/net/ethernet/cadence/macb_main.c +8 -8
@@ -3377,7 +3377,7 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk,if (!err) err = -ENODEV ; -dev_err (&pdev->dev,"failed to get macb_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to get macb_clk (%d)\n" , err);return err; }
@@ -3386,7 +3386,7 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk,if (!err) err = -ENODEV ; -dev_err (&pdev->dev,"failed to get hclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to get hclk (%d)\n" , err);return err; }
@@ -3404,31 +3404,31 @@ static int macb_clk_init(struct platform_device *pdev, struct clk **pclk, err =clk_prepare_enable (*pclk);if (err) { -dev_err (&pdev->dev,"failed to enable pclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable pclk (%d)\n" , err);return err; } err =clk_prepare_enable (*hclk);if (err) { -dev_err (&pdev->dev,"failed to enable hclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable hclk (%d)\n" , err); goto err_disable_pclk; } err =clk_prepare_enable (*tx_clk);if (err) { -dev_err (&pdev->dev,"failed to enable tx_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable tx_clk (%d)\n" , err); goto err_disable_hclk; } err =clk_prepare_enable (*rx_clk);if (err) { -dev_err (&pdev->dev,"failed to enable rx_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable rx_clk (%d)\n" , err); goto err_disable_txclk; } err =clk_prepare_enable (*tsu_clk);if (err) { -dev_err (&pdev->dev,"failed to enable tsu_clk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable tsu_clk (%d)\n" , err); goto err_disable_rxclk; }
@@ -3902,7 +3902,7 @@ static int at91ether_clk_init(struct platform_device *pdev, struct clk **pclk, err =clk_prepare_enable (*pclk);if (err) { -dev_err (&pdev->dev,"failed to enable pclk (%u)\n" , err); +dev_err (&pdev->dev,"failed to enable pclk (%d)\n" , err);return err; }
drivers/net/ethernet/freescale/enetc/enetc.c +3 -1
@@ -313,7 +313,9 @@ static bool enetc_clean_tx_ring(struct enetc_bdr *tx_ring, int napi_budget)while (bds_to_clean && tx_frm_cnt <ENETC_DEFAULT_TX_WORK ) {bool is_eof = !!tx_swbd->skb; -enetc_unmap_tx_buff (tx_ring, tx_swbd); +if (likely (tx_swbd->dma)) +enetc_unmap_tx_buff (tx_ring, tx_swbd); +if (is_eof) {napi_consume_skb (tx_swbd->skb, napi_budget); tx_swbd->skb =NULL ;
drivers/net/usb/ipheth.c +2 -1
@@ -437,17 +437,18 @@ static int ipheth_tx(struct sk_buff *skb, struct net_device *net) dev); dev->tx_urb->transfer_flags |=URB_NO_TRANSFER_DMA_MAP ; +netif_stop_queue (net); retval =usb_submit_urb (dev->tx_urb,GFP_ATOMIC );if (retval) {dev_err (&dev->intf->dev,"%s: usb_submit_urb: %d\n" , __func__, retval); dev->net->stats.tx_errors++;dev_kfree_skb_any (skb); +netif_wake_queue (net); }else { dev->net->stats.tx_packets++; dev->net->stats.tx_bytes += skb->len;dev_consume_skb_any (skb); -netif_stop_queue (net); }return NETDEV_TX_OK ;
drivers/nvdimm/bus.c +2 -2
@@ -642,7 +642,7 @@ static struct attribute *nd_device_attributes[] = { NULL, }; -/** +/* * nd_device_attribute_group - generic attributes for all devices on an nd bus */ struct attribute_group nd_device_attribute_group = {
@@ -671,7 +671,7 @@ static umode_t nd_numa_attr_visible(struct kobject *kobj, struct attribute *a,return a->mode; } -/** +/* * nd_numa_attribute_group - NUMA attributes for all devices on an nd bus */ struct attribute_group nd_numa_attribute_group = {
drivers/nvdimm/label.c +2 -0
@@ -25,6 +25,8 @@ static guid_t nvdimm_btt2_guid;static guid_t nvdimm_pfn_guid;static guid_t nvdimm_dax_guid; +static const char NSINDEX_SIGNATURE [] ="NAMESPACE_INDEX\0" ; +static u32 best_seq (u32 a,u32 b) { a &=NSINDEX_SEQ_MASK ;
drivers/nvdimm/label.h +0 -2
@@ -38,8 +38,6 @@ enum { ND_NSINDEX_INIT = 0x1, }; -static const char NSINDEX_SIGNATURE [] ="NAMESPACE_INDEX\0" ; -/** * struct nd_namespace_index - label set superblock * @sig: NAMESPACE_INDEX\0
drivers/nvme/host/core.c +47 -27
104 lines not on this page · raw message
drivers/nvme/host/pci.c +7 -7
@@ -500,7 +500,7 @@ static int nvme_pci_map_queues(struct blk_mq_tag_set *set)* affinity), so use the regular blk-mq cpu mapping */ map->queue_offset = qoff; -if (i !=HCTX_TYPE_POLL ) +if (i !=HCTX_TYPE_POLL && offset)blk_mq_pci_map_queues (map,to_pci_dev (dev->dev), offset);else blk_mq_map_queues (map);
@@ -2400,7 +2400,7 @@ static void nvme_pci_disable(struct nvme_dev *dev)static void nvme_dev_disable (struct nvme_dev *dev,bool shutdown) { -bool dead = true; +bool dead = true, freeze = false;struct pci_dev *pdev =to_pci_dev (dev->dev);mutex_lock (&dev->shutdown_lock);
@@ -2408,8 +2408,10 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown)u32 csts =readl (dev->bar +NVME_REG_CSTS );if (dev->ctrl.state ==NVME_CTRL_LIVE || - dev->ctrl.state ==NVME_CTRL_RESETTING ) + dev->ctrl.state ==NVME_CTRL_RESETTING ) { + freeze = true;nvme_start_freeze (&dev->ctrl); + } dead = !!((csts &NVME_CSTS_CFS ) || !(csts &NVME_CSTS_RDY ) || pdev->error_state != pci_channel_io_normal); }
@@ -2418,10 +2420,8 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown)* Give the controller a chance to complete all entered requests if * doing a safe shutdown. */ -if (!dead) { -if (shutdown) -nvme_wait_freeze_timeout (&dev->ctrl,NVME_IO_TIMEOUT ); - } +if (!dead && shutdown && freeze) +nvme_wait_freeze_timeout (&dev->ctrl,NVME_IO_TIMEOUT );nvme_stop_queues (&dev->ctrl);
drivers/perf/arm_spe_pmu.c +1 -9
@@ -855,16 +855,8 @@ static void *arm_spe_pmu_setup_aux(struct perf_event *event, void **pages,if (!pglist) goto out_free_buf; -for (i =0 ; i < nr_pages; ++i) { -struct page *page =virt_to_page (pages[i]); - -if (PagePrivate (page)) { -pr_warn ("unexpected high-order page for auxbuf!" ); - goto out_free_pglist; - } - +for (i =0 ; i < nr_pages; ++i) pglist[i] =virt_to_page (pages[i]); - } buf->base =vmap (pglist, nr_pages,VM_MAP ,PAGE_KERNEL );if (!buf->base)
drivers/platform/x86/pmc_atom.c +33 -0
@@ -398,12 +398,45 @@ static int pmc_dbgfs_register(struct pmc_dev *pmc)*/ static const struct dmi_system_id critclk_systems[] = { { +/* pmc_plt_clk0 is used for an external HSIC USB HUB */ .ident ="MPL CEC1x" , .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"MPL AG" ),DMI_MATCH (DMI_PRODUCT_NAME ,"CEC10 Family" ), }, }, + { +/* pmc_plt_clk0 - 3 are used for the 4 ethernet controllers */ + .ident ="Lex 3I380D" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Lex BayTrail" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"3I380D" ), + }, + }, + { +/* pmc_plt_clk* - are used for ethernet controllers */ + .ident ="Beckhoff CB3163" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Beckhoff Automation" ), +DMI_MATCH (DMI_BOARD_NAME ,"CB3163" ), + }, + }, + { +/* pmc_plt_clk* - are used for ethernet controllers */ + .ident ="Beckhoff CB6263" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Beckhoff Automation" ), +DMI_MATCH (DMI_BOARD_NAME ,"CB6263" ), + }, + }, + { +/* pmc_plt_clk* - are used for ethernet controllers */ + .ident ="Beckhoff CB6363" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Beckhoff Automation" ), +DMI_MATCH (DMI_BOARD_NAME ,"CB6363" ), + }, + }, {/*sentinel*/ } };
drivers/ras/cec.c +42 -38
153 lines not on this page · raw message
drivers/scsi/bnx2fc/bnx2fc_hwi.c +1 -1
@@ -830,7 +830,7 @@ static void bnx2fc_process_unsol_compl(struct bnx2fc_rport *tgt, u16 wqe) ((u64 )err_entry->data.err_warn_bitmap_hi <<32 ) | (u64 )err_entry->data.err_warn_bitmap_lo;for (i =0 ; i <BNX2FC_NUM_ERR_BITS ; i++) { -if (err_warn_bit_map & (u64) (1 << i)) { +if (err_warn_bit_map & ((u64 )1 << i)) { err_warn = i;break ; }
drivers/scsi/lpfc/lpfc_attr.c +22 -15
@@ -159,6 +159,7 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr,int i;int len =0 ;char tmp[LPFC_MAX_NVME_INFO_TMP_LEN ] = {0 }; +unsigned long iflags =0 ;if (!(vport->cfg_enable_fc4_type &LPFC_ENABLE_NVME )) { len =scnprintf (buf,PAGE_SIZE ,"NVME Disabled\n" );
@@ -337,7 +338,7 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr, phba->sli4_hba.io_xri_max, lpfc_sli4_get_els_iocb_cnt(phba));if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done;/* Port state is only one of two values for now. */ if (localport->port_id)
@@ -353,15 +354,15 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr,wwn_to_u64 (vport->fc_nodename.u.wwn), localport->port_id, statep);if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done;list_for_each_entry (ndlp, &vport->fc_nodes, nlp_listp) { nrport =NULL ; -spin_lock (&vport->phba->hbalock); +spin_lock_irqsave (&vport->phba->hbalock, iflags); rport =lpfc_ndlp_get_nrport (ndlp);if (rport) nrport = rport->remoteport; -spin_unlock (&vport->phba->hbalock); +spin_unlock_irqrestore (&vport->phba->hbalock, iflags);if (!nrport)continue ;
@@ -380,39 +381,39 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr,/* Tab in to show lport ownership. */ if (strlcat (buf,"NVME RPORT " ,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done;if (phba->brd_no >=10 ) {if (strlcat (buf," " ,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done; }scnprintf (tmp,sizeof (tmp),"WWPN x%llx " , nrport->port_name);if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done;scnprintf (tmp,sizeof (tmp),"WWNN x%llx " , nrport->node_name);if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done;scnprintf (tmp,sizeof (tmp),"DID x%06x " , nrport->port_id);if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done;/* An NVME rport can have multiple roles. */ if (nrport->port_role &FC_PORT_ROLE_NVME_INITIATOR ) {if (strlcat (buf,"INITIATOR " ,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done; }if (nrport->port_role &FC_PORT_ROLE_NVME_TARGET ) {if (strlcat (buf,"TARGET " ,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done; }if (nrport->port_role &FC_PORT_ROLE_NVME_DISCOVERY ) {if (strlcat (buf,"DISCSRVC " ,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done; } if (nrport->port_role & ~(FC_PORT_ROLE_NVME_INITIATOR | FC_PORT_ROLE_NVME_TARGET |
@@ -420,12 +421,12 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr,scnprintf (tmp,sizeof (tmp),"UNKNOWN ROLE x%x" , nrport->port_role);if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done; }scnprintf (tmp,sizeof (tmp),"%s\n" , statep);if (strlcat (buf, tmp,PAGE_SIZE ) >=PAGE_SIZE ) - goto buffer_done; + goto rcu_unlock_buf_done; }rcu_read_unlock ();
@@ -487,7 +488,13 @@ lpfc_nvme_info_show(struct device *dev, struct device_attribute *attr, atomic_read(&lport->cmpl_fcp_err));strlcat (buf, tmp,PAGE_SIZE ); -buffer_done: +/* RCU is already unlocked. */ + goto buffer_done; + + rcu_unlock_buf_done: +rcu_read_unlock (); + + buffer_done: len =strnlen (buf,PAGE_SIZE );if (unlikely (len >= (PAGE_SIZE -1 ))) {
drivers/scsi/lpfc/lpfc_els.c +4 -1
@@ -7338,7 +7338,10 @@ int lpfc_send_rrq(struct lpfc_hba *phba, struct lpfc_node_rrq *rrq) { struct lpfc_nodelist *ndlp = lpfc_findnode_did(rrq->vport, - rrq->nlp_DID); + rrq->nlp_DID); +if (!ndlp) +return 1 ; +if (lpfc_test_rrq_active (phba, ndlp, rrq->xritag))return lpfc_issue_els_rrq (rrq->vport, ndlp, rrq->nlp_DID, rrq);
drivers/scsi/lpfc/lpfc_sli.c +53 -31
215 lines not on this page · raw message
drivers/scsi/myrs.c +1 -1
@@ -818,7 +818,7 @@ static void myrs_log_event(struct myrs_hba *cs, struct myrs_event *ev)unsigned char ev_type, *ev_msg;struct Scsi_Host *shost = cs->host;struct scsi_device *sdev; -struct scsi_sense_hdr sshdr; +struct scsi_sense_hdr sshdr = {0 };unsigned char sense_info[4 ];unsigned char cmd_specific[4 ];
drivers/scsi/qedi/qedi_dbg.c +8 -24
@@ -16,10 +16,6 @@ qedi_dbg_err(struct qedi_dbg_ctx *qedi, const char *func, u32 line, {va_list va;struct va_format vaf; -char nfunc[32 ]; - -memset (nfunc,0 ,sizeof (nfunc)); -memcpy (nfunc, func,sizeof (nfunc) -1 );va_start (va, fmt);
@@ -28,9 +24,9 @@ qedi_dbg_err(struct qedi_dbg_ctx *qedi, const char *func, u32 line,if (likely (qedi) &&likely (qedi->pdev))pr_err ("[%s]:[%s:%d]:%d: %pV" ,dev_name (&qedi->pdev->dev), - nfunc, line, qedi->host_no, &vaf); + func, line, qedi->host_no, &vaf);else -pr_err ("[0000:00:00.0]:[%s:%d]: %pV" , nfunc, line, &vaf); +pr_err ("[0000:00:00.0]:[%s:%d]: %pV" , func, line, &vaf);va_end (va); }
@@ -41,10 +37,6 @@ qedi_dbg_warn(struct qedi_dbg_ctx *qedi, const char *func, u32 line, {va_list va;struct va_format vaf; -char nfunc[32 ]; - -memset (nfunc,0 ,sizeof (nfunc)); -memcpy (nfunc, func,sizeof (nfunc) -1 );va_start (va, fmt);
@@ -56,9 +48,9 @@ qedi_dbg_warn(struct qedi_dbg_ctx *qedi, const char *func, u32 line,if (likely (qedi) &&likely (qedi->pdev))pr_warn ("[%s]:[%s:%d]:%d: %pV" ,dev_name (&qedi->pdev->dev), - nfunc, line, qedi->host_no, &vaf); + func, line, qedi->host_no, &vaf);else -pr_warn ("[0000:00:00.0]:[%s:%d]: %pV" , nfunc, line, &vaf); +pr_warn ("[0000:00:00.0]:[%s:%d]: %pV" , func, line, &vaf); ret:va_end (va);
@@ -70,10 +62,6 @@ qedi_dbg_notice(struct qedi_dbg_ctx *qedi, const char *func, u32 line, {va_list va;struct va_format vaf; -char nfunc[32 ]; - -memset (nfunc,0 ,sizeof (nfunc)); -memcpy (nfunc, func,sizeof (nfunc) -1 );va_start (va, fmt);
@@ -85,10 +73,10 @@ qedi_dbg_notice(struct qedi_dbg_ctx *qedi, const char *func, u32 line,if (likely (qedi) &&likely (qedi->pdev))pr_notice ("[%s]:[%s:%d]:%d: %pV" , -dev_name (&qedi->pdev->dev), nfunc, line, +dev_name (&qedi->pdev->dev), func, line, qedi->host_no, &vaf);else -pr_notice ("[0000:00:00.0]:[%s:%d]: %pV" , nfunc, line, &vaf); +pr_notice ("[0000:00:00.0]:[%s:%d]: %pV" , func, line, &vaf); ret:va_end (va);
@@ -100,10 +88,6 @@ qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line, {va_list va;struct va_format vaf; -char nfunc[32 ]; - -memset (nfunc,0 ,sizeof (nfunc)); -memcpy (nfunc, func,sizeof (nfunc) -1 );va_start (va, fmt);
@@ -115,9 +99,9 @@ qedi_dbg_info(struct qedi_dbg_ctx *qedi, const char *func, u32 line,if (likely (qedi) &&likely (qedi->pdev))pr_info ("[%s]:[%s:%d]:%d: %pV" ,dev_name (&qedi->pdev->dev), - nfunc, line, qedi->host_no, &vaf); + func, line, qedi->host_no, &vaf);else -pr_info ("[0000:00:00.0]:[%s:%d]: %pV" , nfunc, line, &vaf); +pr_info ("[0000:00:00.0]:[%s:%d]: %pV" , func, line, &vaf); ret:va_end (va);
drivers/scsi/qedi/qedi_iscsi.c +0 -4
@@ -809,8 +809,6 @@ qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,struct qedi_endpoint *qedi_ep;struct sockaddr_in *addr;struct sockaddr_in6 *addr6; -struct qed_dev *cdev =NULL ; -struct qedi_uio_dev *udev =NULL ;struct iscsi_path path_req;u32 msg_type =ISCSI_KEVENT_IF_DOWN ;u32 iscsi_cid =QEDI_CID_RESERVED ;
@@ -830,8 +828,6 @@ qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, } qedi =iscsi_host_priv (shost); - cdev = qedi->cdev; - udev = qedi->udev;if (test_bit (QEDI_IN_OFFLINE , &qedi->flags) ||test_bit (QEDI_IN_RECOVERY , &qedi->flags)) {
drivers/scsi/qla2xxx/qla_os.c +82 -139
267 lines not on this page · raw message
drivers/usb/core/quirks.c +3 -0
@@ -215,6 +215,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Cherry Stream G230 2.0 (G85-231) and 3.0 (G85-232) */ { USB_DEVICE(0x046a, 0x0023), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech HD Webcam C270 */ + { USB_DEVICE(0x046d, 0x0825), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Logitech HD Pro Webcams C920, C920-C, C925e and C930e */ { USB_DEVICE(0x046d, 0x082d), .driver_info = USB_QUIRK_DELAY_INIT }, { USB_DEVICE(0x046d, 0x0841), .driver_info = USB_QUIRK_DELAY_INIT },
drivers/usb/dwc2/hcd.c +24 -15
@@ -2664,8 +2664,10 @@ static void dwc2_free_dma_aligned_buffer(struct urb *urb)return ;/* Restore urb->transfer_buffer from the end of the allocated area */ -memcpy (&stored_xfer_buffer, urb->transfer_buffer + - urb->transfer_buffer_length,sizeof (urb->transfer_buffer)); +memcpy (&stored_xfer_buffer, +PTR_ALIGN (urb->transfer_buffer + urb->transfer_buffer_length, +dma_get_cache_alignment ()), +sizeof (urb->transfer_buffer));if (usb_urb_dir_in (urb)) {if (usb_pipeisoc (urb->pipe))
@@ -2697,6 +2699,7 @@ static int dwc2_alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags)* DMA */ kmalloc_size = urb->transfer_buffer_length + + (dma_get_cache_alignment () -1 ) +sizeof (urb->transfer_buffer); kmalloc_ptr =kmalloc (kmalloc_size, mem_flags);
@@ -2707,7 +2710,8 @@ static int dwc2_alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags)* Position value of original urb->transfer_buffer pointer to the end * of allocation for later referencing */ -memcpy (kmalloc_ptr + urb->transfer_buffer_length, +memcpy (PTR_ALIGN (kmalloc_ptr + urb->transfer_buffer_length, +dma_get_cache_alignment ()), &urb->transfer_buffer,sizeof (urb->transfer_buffer));if (usb_urb_dir_out (urb))
@@ -2792,7 +2796,7 @@ static int dwc2_assign_and_init_hc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) chan->dev_addr =dwc2_hcd_get_dev_addr (&urb->pipe_info); chan->ep_num =dwc2_hcd_get_ep_num (&urb->pipe_info); chan->speed = qh->dev_speed; - chan->max_packet =dwc2_max_packet (qh->maxp); + chan->max_packet = qh->maxp; chan->xfer_started =0 ; chan->halt_status =DWC2_HC_XFER_NO_HALT_STATUS ;
@@ -2870,7 +2874,7 @@ static int dwc2_assign_and_init_hc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh)* This value may be modified when the transfer is started * to reflect the actual transfer length */ - chan->multi_count =dwc2_hb_mult (qh->maxp); + chan->multi_count = qh->maxp_mult;if (hsotg->params.dma_desc_enable) { chan->desc_list_addr = qh->desc_list_dma;
@@ -3990,19 +3994,21 @@ static struct dwc2_hcd_urb *dwc2_hcd_urb_alloc(struct dwc2_hsotg *hsotg,static void dwc2_hcd_urb_set_pipeinfo (struct dwc2_hsotg *hsotg,struct dwc2_hcd_urb *urb,u8 dev_addr, -u8 ep_num,u8 ep_type,u8 ep_dir,u16 mps) +u8 ep_num,u8 ep_type,u8 ep_dir, +u16 maxp,u16 maxp_mult) {if (dbg_perio () || ep_type ==USB_ENDPOINT_XFER_BULK || ep_type ==USB_ENDPOINT_XFER_CONTROL )dev_vdbg (hsotg->dev, -"addr=%d, ep_num=%d, ep_dir=%1x, ep_type=%1x, mps=%d\n" , - dev_addr, ep_num, ep_dir, ep_type, mps); +"addr=%d, ep_num=%d, ep_dir=%1x, ep_type=%1x, maxp=%d (%d mult)\n" , + dev_addr, ep_num, ep_dir, ep_type, maxp, maxp_mult); urb->pipe_info.dev_addr = dev_addr; urb->pipe_info.ep_num = ep_num; urb->pipe_info.pipe_type = ep_type; urb->pipe_info.pipe_dir = ep_dir; - urb->pipe_info.mps = mps; + urb->pipe_info.maxp = maxp; + urb->pipe_info.maxp_mult = maxp_mult; }/*
@@ -4093,8 +4099,9 @@ void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg)dwc2_hcd_is_pipe_in (&urb->pipe_info) ? "IN" : "OUT");dev_dbg (hsotg->dev, -" Max packet size: %d\n" , -dwc2_hcd_get_mps (&urb->pipe_info)); +" Max packet size: %d (%d mult)\n" , +dwc2_hcd_get_maxp (&urb->pipe_info), +dwc2_hcd_get_maxp_mult (&urb->pipe_info));dev_dbg (hsotg->dev," transfer_buffer: %p\n" , urb->buf);
@@ -4661,8 +4668,10 @@ static void dwc2_dump_urb_info(struct usb_hcd *hcd, struct urb *urb, }dev_vdbg (hsotg->dev," Speed: %s\n" , speed); -dev_vdbg (hsotg->dev," Max packet size: %d\n" , -usb_maxpacket (urb->dev, urb->pipe,usb_pipeout (urb->pipe))); +dev_vdbg (hsotg->dev," Max packet size: %d (%d mult)\n" , +usb_endpoint_maxp (&urb->ep->desc), +usb_endpoint_maxp_mult (&urb->ep->desc)); +dev_vdbg (hsotg->dev," Data buffer length: %d\n" , urb->transfer_buffer_length); dev_vdbg(hsotg->dev, " Transfer buffer: %p, Transfer DMA: %08lx\n",
@@ -4745,8 +4754,8 @@ static int _dwc2_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,dwc2_hcd_urb_set_pipeinfo (hsotg, dwc2_urb,usb_pipedevice (urb->pipe),usb_pipeendpoint (urb->pipe), ep_type,usb_pipein (urb->pipe), -usb_maxpacket (urb->dev, urb->pipe, - !(usb_pipein (urb->pipe)))); +usb_endpoint_maxp (&ep->desc), +usb_endpoint_maxp_mult (&ep->desc)); buf = urb->transfer_buffer;
drivers/usb/dwc2/hcd.h +11 -9
@@ -171,7 +171,8 @@ struct dwc2_hcd_pipe_info {u8 ep_num;u8 pipe_type;u8 pipe_dir; -u16 mps; +u16 maxp; +u16 maxp_mult; };struct dwc2_hcd_iso_packet_desc {
@@ -264,6 +265,7 @@ struct dwc2_hs_transfer_time {* - USB_ENDPOINT_XFER_ISOC * @ep_is_in: Endpoint direction * @maxp: Value from wMaxPacketSize field of Endpoint Descriptor +* @maxp_mult: Multiplier for maxp * @dev_speed: Device speed. One of the following values: * - USB_SPEED_LOW * - USB_SPEED_FULL
@@ -340,6 +342,7 @@ struct dwc2_qh {u8 ep_type;u8 ep_is_in;u16 maxp; +u16 maxp_mult;u8 dev_speed;u8 data_toggle;u8 ping_state;
@@ -503,9 +506,14 @@ static inline u8 dwc2_hcd_get_pipe_type(struct dwc2_hcd_pipe_info *pipe)return pipe->pipe_type; } -static inline u16 dwc2_hcd_get_mps (struct dwc2_hcd_pipe_info *pipe) +static inline u16 dwc2_hcd_get_maxp (struct dwc2_hcd_pipe_info *pipe) +{ +return pipe->maxp; +} + +static inline u16 dwc2_hcd_get_maxp_mult (struct dwc2_hcd_pipe_info *pipe) { -return pipe->mps; +return pipe->maxp_mult; }static inline u8 dwc2_hcd_get_dev_addr (struct dwc2_hcd_pipe_info *pipe)
@@ -620,12 +628,6 @@ static inline bool dbg_urb(struct urb *urb)static inline bool dbg_perio (void ) {return false; }#endif -/* High bandwidth multiplier as encoded in highspeed endpoint descriptors */ -#define dwc2_hb_mult (wmaxpacketsize) (1 + (((wmaxpacketsize) >> 11) & 0x03)) - -/* Packet size for any kind of endpoint descriptor */ -#define dwc2_max_packet (wmaxpacketsize) ((wmaxpacketsize) & 0x07ff) -/* * Returns true if frame1 index is greater than frame2 index. The comparison * is done modulo FRLISTEN_64_SIZE. This accounts for the rollover of the
drivers/usb/dwc2/hcd_intr.c +3 -2
@@ -1617,8 +1617,9 @@ static void dwc2_hc_ahberr_intr(struct dwc2_hsotg *hsotg,dev_err (hsotg->dev," Speed: %s\n" , speed); -dev_err (hsotg->dev," Max packet size: %d\n" , -dwc2_hcd_get_mps (&urb->pipe_info)); +dev_err (hsotg->dev," Max packet size: %d (mult %d)\n" , +dwc2_hcd_get_maxp (&urb->pipe_info), +dwc2_hcd_get_maxp_mult (&urb->pipe_info));dev_err (hsotg->dev," Data buffer length: %d\n" , urb->length);dev_err (hsotg->dev," Transfer buffer: %p, Transfer DMA: %08lx\n" , urb->buf, (unsigned long )urb->dma);
drivers/usb/dwc2/hcd_queue.c +6 -4
@@ -708,7 +708,7 @@ static void dwc2_hs_pmap_unschedule(struct dwc2_hsotg *hsotg,static int dwc2_uframe_schedule_split (struct dwc2_hsotg *hsotg,struct dwc2_qh *qh) { -int bytecount =dwc2_hb_mult (qh->maxp) *dwc2_max_packet (qh->maxp); +int bytecount = qh->maxp_mult * qh->maxp;int ls_search_slice;int err =0 ;int host_interval_in_sched;
@@ -1332,7 +1332,7 @@ static int dwc2_check_max_xfer_size(struct dwc2_hsotg *hsotg,u32 max_channel_xfer_size;int status =0 ; - max_xfer_size =dwc2_max_packet (qh->maxp) *dwc2_hb_mult (qh->maxp); + max_xfer_size = qh->maxp * qh->maxp_mult; max_channel_xfer_size = hsotg->params.max_transfer_size;if (max_xfer_size > max_channel_xfer_size) {
@@ -1517,8 +1517,9 @@ static void dwc2_qh_init(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,u32 prtspd = (hprt &HPRT0_SPD_MASK ) >>HPRT0_SPD_SHIFT ;bool do_split = (prtspd ==HPRT0_SPD_HIGH_SPEED && dev_speed !=USB_SPEED_HIGH ); -int maxp =dwc2_hcd_get_mps (&urb->pipe_info); -int bytecount =dwc2_hb_mult (maxp) *dwc2_max_packet (maxp); +int maxp =dwc2_hcd_get_maxp (&urb->pipe_info); +int maxp_mult =dwc2_hcd_get_maxp_mult (&urb->pipe_info); +int bytecount = maxp_mult * maxp;char *speed, *type;/* Initialize QH */
@@ -1531,6 +1532,7 @@ static void dwc2_qh_init(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, qh->data_toggle =DWC2_HC_PID_DATA0 ; qh->maxp = maxp; + qh->maxp_mult = maxp_mult;INIT_LIST_HEAD (&qh->qtd_list);INIT_LIST_HEAD (&qh->qh_list_entry);
drivers/usb/serial/option.c +6 -0
@@ -1171,6 +1171,10 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920A4_1213, 0xff) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE920A4_1214), .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) | RSVD(3) }, + { USB_DEVICE(TELIT_VENDOR_ID, 0x1260), + .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, + { USB_DEVICE(TELIT_VENDOR_ID, 0x1261), + .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, { USB_DEVICE(TELIT_VENDOR_ID, 0x1900), /* Telit LN940 (QMI) */ .driver_info = NCTRL(0) | RSVD(1) }, { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1901, 0xff), /* Telit LN940 (MBIM) */
@@ -1772,6 +1776,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(ALINK_VENDOR_ID, SIMCOM_PRODUCT_SIM7100E), .driver_info = RSVD(5) | RSVD(6) }, { USB_DEVICE_INTERFACE_CLASS(0x1e0e, 0x9003, 0xff) }, /* Simcom SIM7500/SIM7600 MBIM mode */ + { USB_DEVICE_INTERFACE_CLASS(0x1e0e, 0x9011, 0xff), /* Simcom SIM7500/SIM7600 RNDIS mode */ + .driver_info = RSVD(7) }, { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X060S_X200), .driver_info = NCTRL(0) | NCTRL(1) | RSVD(4) }, { USB_DEVICE(ALCATEL_VENDOR_ID, ALCATEL_PRODUCT_X220_X500D),
drivers/usb/serial/pl2303.c +1 -0
@@ -106,6 +106,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(SANWA_VENDOR_ID, SANWA_PRODUCT_ID) }, { USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530_PRODUCT_ID) }, { USB_DEVICE(SMART_VENDOR_ID, SMART_PRODUCT_ID) }, + { USB_DEVICE(AT_VENDOR_ID, AT_VTKIT3_PRODUCT_ID) }, { } /* Terminating entry */ };
drivers/usb/serial/pl2303.h +3 -0
@@ -155,3 +155,6 @@#define SMART_VENDOR_ID 0x0b8c#define SMART_PRODUCT_ID 0x2303 +/* Allied Telesis VT-Kit3 */ +#define AT_VENDOR_ID 0x0caa +#define AT_VTKIT3_PRODUCT_ID 0x3001
drivers/usb/storage/unusual_realtek.h +5 -0
@@ -17,6 +17,11 @@ UNUSUAL_DEV(0x0bda, 0x0138, 0x0000, 0x9999, "USB Card Reader", USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0), +UNUSUAL_DEV (0x0bda ,0x0153 ,0x0000 ,0x9999 , +"Realtek" , +"USB Card Reader" , +USB_SC_DEVICE ,USB_PR_DEVICE , init_realtek_cr,0 ), + UNUSUAL_DEV(0x0bda, 0x0158, 0x0000, 0x9999, "Realtek", "USB Card Reader",
fs/f2fs/xattr.c +27 -9
@@ -202,12 +202,17 @@ static inline const struct xattr_handler *f2fs_xattr_handler(int index)return handler; } -static struct f2fs_xattr_entry *__find_xattr (void *base_addr,int index, -size_t len,const char *name) +static struct f2fs_xattr_entry *__find_xattr (void *base_addr, +void *last_base_addr,int index, +size_t len,const char *name) {struct f2fs_xattr_entry *entry;list_for_each_xattr (entry, base_addr) { +if ((void *)(entry) +sizeof (__u32) > last_base_addr || + (void *)XATTR_NEXT_ENTRY (entry) > last_base_addr) +return NULL ; +if (entry->e_name_index != index)continue ;if (entry->e_name_len != len)
@@ -297,20 +302,22 @@ static int lookup_all_xattrs(struct inode *inode, struct page *ipage, const char *name, struct f2fs_xattr_entry **xe, void **base_addr, int *base_size) { - void *cur_addr, *txattr_addr, *last_addr = NULL; + void *cur_addr, *txattr_addr, *last_txattr_addr; +void *last_addr =NULL ;nid_t xnid =F2FS_I (inode)->i_xattr_nid; -unsigned int size = xnid ?VALID_XATTR_BLOCK_SIZE :0 ;unsigned int inline_size =inline_xattr_size (inode);int err =0 ; -if (!size && !inline_size) +if (!xnid && !inline_size)return -ENODATA ; - *base_size = inline_size + size +XATTR_PADDING_SIZE ; + *base_size =XATTR_SIZE (xnid, inode) +XATTR_PADDING_SIZE ; txattr_addr =f2fs_kzalloc (F2FS_I_SB (inode), *base_size,GFP_NOFS );if (!txattr_addr)return -ENOMEM ; + last_txattr_addr = (void *)txattr_addr +XATTR_SIZE (xnid, inode); +/* read from inline xattr */ if (inline_size) { err =read_inline_xattr (inode, ipage, txattr_addr);
@@ -337,7 +344,11 @@ static int lookup_all_xattrs(struct inode *inode, struct page *ipage,else cur_addr = txattr_addr; - *xe =__find_xattr (cur_addr, index, len, name); + *xe =__find_xattr (cur_addr, last_txattr_addr, index, len, name); +if (!*xe) { + err = -EFAULT ; + goto out; + } check:if (IS_XATTR_LAST_ENTRY (*xe)) { err = -ENODATA ;
@@ -581,7 +592,8 @@ static int __f2fs_setxattr(struct inode *inode, int index, struct page *ipage, int flags) {struct f2fs_xattr_entry *here, *last; -void *base_addr; +void *base_addr, *last_base_addr; +nid_t xnid =F2FS_I (inode)->i_xattr_nid;int found, newsize;size_t len;__u32 new_hsize;
@@ -605,8 +617,14 @@ static int __f2fs_setxattr(struct inode *inode, int index,if (error)return error; + last_base_addr = (void *)base_addr +XATTR_SIZE (xnid, inode); +/* find entry with wanted name. */ - here =__find_xattr (base_addr, index, len, name); + here =__find_xattr (base_addr, last_base_addr, index, len, name); +if (!here) { + error = -EFAULT ; + goto exit; + } found =IS_XATTR_LAST_ENTRY (here) ?0 :1 ;
fs/f2fs/xattr.h +2 -0
@@ -71,6 +71,8 @@ struct f2fs_xattr_entry { entry = XATTR_NEXT_ENTRY(entry))#define VALID_XATTR_BLOCK_SIZE (PAGE_SIZE - sizeof(struct node_footer))#define XATTR_PADDING_SIZE (sizeof(__u32)) +#define XATTR_SIZE (x,i) (((x) ? VALID_XATTR_BLOCK_SIZE : 0) + \ + (inline_xattr_size(i)))#define MIN_OFFSET (i) XATTR_ALIGN(inline_xattr_size(i) + \ VALID_XATTR_BLOCK_SIZE)
fs/io_uring.c +3 -1
@@ -2633,8 +2633,10 @@ static void io_ring_ctx_free(struct io_ring_ctx *ctx)io_sqe_files_unregister (ctx);#if defined(CONFIG_UNIX ) -if (ctx->ring_sock) +if (ctx->ring_sock) { + ctx->ring_sock->file =NULL ;/* so that iput() is called */ sock_release (ctx->ring_sock); + }#endif io_mem_free (ctx->sq_ring);
fs/ocfs2/dcache.c +12 -0
@@ -310,6 +310,18 @@ int ocfs2_dentry_attach_lock(struct dentry *dentry, out_attach:spin_lock (&dentry_attach_lock); +if (unlikely (dentry->d_fsdata && !alias)) { +/* d_fsdata is set by a racing thread which is doing +* the same thing as this thread is doing. Leave the racing +* thread going ahead and we return here. +*/ +spin_unlock (&dentry_attach_lock); +iput (dl->dl_inode); +ocfs2_lock_res_free (&dl->dl_lockres); +kfree (dl); +return 0 ; + } + dentry->d_fsdata = dl; dl->dl_count++;spin_unlock (&dentry_attach_lock);
include/drm/drm_edid.h +1 -0
@@ -465,6 +465,7 @@ struct edid *drm_get_edid_switcheroo(struct drm_connector *connector, struct i2c_adapter *adapter);struct edid *drm_edid_duplicate (const struct edid *edid);int drm_add_edid_modes (struct drm_connector *connector,struct edid *edid); +int drm_add_override_edid_modes (struct drm_connector *connector);u8 drm_match_cea_mode (const struct drm_display_mode *to_match);enum hdmi_picture_aspect drm_get_cea_aspect_ratio (const u8 video_code);
include/linux/cgroup.h +8 -2
@@ -487,7 +487,7 @@ static inline struct cgroup_subsys_state *task_css(struct task_struct *task,* * Find the css for the (@task, @subsys_id) combination, increment a * reference on and return it. This function is guaranteed to return a -* valid css. +* valid css. The returned css may already have been offlined. */ static inline struct cgroup_subsys_state *task_get_css (struct task_struct *task,int subsys_id)
@@ -497,7 +497,13 @@ task_get_css(struct task_struct *task, int subsys_id)rcu_read_lock ();while (true) { css =task_css (task, subsys_id); -if (likely (css_tryget_online (css))) +/* +* Can't use css_tryget_online() here. A task which has +* PF_EXITING set may stay associated with an offline css. +* If such task calls this function, css_tryget_online() +* will keep failing. +*/ +if (likely (css_tryget (css)))break ;cpu_relax (); }
include/linux/cpuhotplug.h +1 -0
@@ -101,6 +101,7 @@ enum cpuhp_state {CPUHP_AP_IRQ_BCM2836_STARTING ,CPUHP_AP_IRQ_MIPS_GIC_STARTING ,CPUHP_AP_ARM_MVEBU_COHERENCY , +CPUHP_AP_MICROCODE_LOADER ,CPUHP_AP_PERF_X86_AMD_UNCORE_STARTING ,CPUHP_AP_PERF_X86_STARTING , CPUHP_AP_PERF_X86_AMD_IBS_STARTING,
include/linux/hid.h +1 -1
@@ -894,7 +894,7 @@ struct hid_field *hidinput_get_led_field(struct hid_device *hid);unsigned int hidinput_count_leds (struct hid_device *hid);__s32 hidinput_calc_abs_res (const struct hid_field *field,__u16 code);void hid_output_report (struct hid_report *report,__u8 *data); -void __hid_request (struct hid_device *hid,struct hid_report *rep,int reqtype); +int __hid_request (struct hid_device *hid,struct hid_report *rep,int reqtype);u8 *hid_alloc_report_buf (struct hid_report *report,gfp_t flags);struct hid_device *hid_allocate_device (void ); struct hid_report *hid_register_report(struct hid_device *device,
kernel/Makefile +1 -0
@@ -30,6 +30,7 @@ KCOV_INSTRUMENT_extable.o := n # Don't self-instrument. KCOV_INSTRUMENT_kcov.o := n KASAN_SANITIZE_kcov.o := n +CFLAGS_kcov.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) # cond_syscall is currently not LTO compatible CFLAGS_sys_ni.o = $(DISABLE_LTO)
kernel/cred.c +9 -0
@@ -450,6 +450,15 @@ int commit_creds(struct cred *new)if (task->mm)set_dumpable (task->mm, suid_dumpable); task->pdeath_signal =0 ; +/* +* If a task drops privileges and becomes nondumpable, +* the dumpability change must become visible before +* the credential change; otherwise, a __ptrace_may_access() +* racing with this change may be able to attach to a task it +* shouldn't be able to attach to (as if the task had dropped +* privileges without becoming nondumpable). +* Pairs with a read barrier in __ptrace_may_access(). +*/ smp_wmb (); }
kernel/ptrace.c +18 -2
@@ -323,6 +323,16 @@ static int __ptrace_may_access(struct task_struct *task, unsigned int mode)return -EPERM ; ok:rcu_read_unlock (); +/* +* If a task drops privileges and becomes nondumpable (through a syscall +* like setresuid()) while we are trying to access it, we must ensure +* that the dumpability is read after the credentials; otherwise, +* we may be able to attach to a task that we shouldn't be able to +* attach to (as if the task had dropped privileges without becoming +* nondumpable). +* Pairs with a write barrier in commit_creds(). +*/ +smp_rmb (); mm = task->mm; if (mm && ((get_dumpable(mm) != SUID_DUMP_USER) &&
@@ -704,6 +714,10 @@ static int ptrace_peek_siginfo(struct task_struct *child,if (arg.nr <0 )return -EINVAL ; +/* Ensure arg.off fits in an unsigned long */ +if (arg.off >ULONG_MAX ) +return 0 ; +if (arg.flags &PTRACE_PEEKSIGINFO_SHARED ) pending = &child->signal->shared_pending;else
@@ -711,18 +725,20 @@ static int ptrace_peek_siginfo(struct task_struct *child,for (i =0 ; i < arg.nr; ) {kernel_siginfo_t info; -s32 off = arg.off + i; +unsigned long off = arg.off + i; +bool found = false;spin_lock_irq (&child->sighand->siglock);list_for_each_entry (q, &pending->list, list) {if (!off--) { + found = true;copy_siginfo (&info, &q->info);break ; } }spin_unlock_irq (&child->sighand->siglock); -if (off >=0 )/* beyond the end of the list */ +if (!found)/* beyond the end of the list */ break ;#ifdef CONFIG_COMPAT
kernel/time/timekeeping.c +3 -2
@@ -807,17 +807,18 @@ ktime_t ktime_get_coarse_with_offset(enum tk_offsets offs)struct timekeeper *tk = &tk_core.timekeeper;unsigned int seq;ktime_t base, *offset = offsets[offs]; +u64 nsecs;WARN_ON (timekeeping_suspended);do { seq =read_seqcount_begin (&tk_core.seq); base =ktime_add (tk->tkr_mono.base, *offset); + nsecs = tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift; }while (read_seqcount_retry (&tk_core.seq, seq)); -return base; - +return base + nsecs; }EXPORT_SYMBOL_GPL (ktime_get_coarse_with_offset);
kernel/trace/trace_events_hist.c +3 -0
@@ -1815,6 +1815,9 @@ static u64 hist_field_var_ref(struct hist_field *hist_field,struct hist_elt_data *elt_data;u64 var_val =0 ; +if (WARN_ON_ONCE (!elt)) +return var_val; + elt_data = elt->private_data; var_val = elt_data->var_ref_vals[hist_field->var_ref_idx];
kernel/trace/trace_uprobe.c +10 -3
@@ -434,10 +434,17 @@ static int trace_uprobe_create(int argc, const char **argv) ret =0 ; ref_ctr_offset =0 ; -/* argc must be >= 1 */ -if (argv[0 ][0 ] =='r' ) +switch (argv[0 ][0 ]) { +case 'r' : is_return = true; -else if (argv[0 ][0 ] !='p' || argc <2 ) +break ; +case 'p' : +break ; +default : +return -ECANCELED ; + } + +if (argc <2 )return -ECANCELED ;if (argv[0 ][1 ] ==':' )
mm/list_lru.c +1 -1
@@ -353,7 +353,7 @@ static int __memcg_init_list_lru_node(struct list_lru_memcg *memcg_lrus, }return 0 ; fail: -__memcg_destroy_list_lru_node (memcg_lrus, begin, i -1 ); +__memcg_destroy_list_lru_node (memcg_lrus, begin, i);return -ENOMEM ; }
mm/vmscan.c +1 -1
@@ -1502,7 +1502,7 @@ unsigned long reclaim_clean_pages_from_list(struct zone *zone,
Lines of this file are not shown. View the raw message.
sound/pci/hda/patch_realtek.c +65 -26
91 lines not on this page · raw message
tools/testing/selftests/bpf/bpf_helpers.h +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/kvm/dirty_log_test.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/kvm/lib/aarch64/processor.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c +2 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/fib_rule_tests.sh +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/adjtick.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/leapcrash.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/mqueue-lat.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/nanosleep.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/nsleep-lat.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/raw_skew.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/set-tai.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/set-tz.c +2 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/threadtest.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/valid-adjtimex.c +2 -0
Lines of this file are not shown. View the raw message.
virt/kvm/arm/aarch32.c +0 -121
121 lines not on this page · raw message
virt/kvm/arm/hyp/aarch32.c new file +136 -0
136 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.
Whoops! we are moving real fast man! thanks a bunch Greg.
Quoted 427 lines · Greg KH
I'm announcing the release of the 5.1.12 kernel.
All users of the 5.1 kernel series must upgrade.
The updated 5.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-5.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/arm/kvm/hyp/Makefile | 1 arch/arm64/kvm/hyp/Makefile | 1 arch/arm64/mm/fault.c | 5 arch/arm64/mm/mmu.c | 11 arch/powerpc/include/asm/book3s/64/pgtable.h | 30 ++ arch/powerpc/include/asm/kexec.h | 3 arch/powerpc/kernel/machine_kexec_32.c | 4 arch/powerpc/mm/pgtable-book3s64.c | 3 arch/s390/kvm/kvm-s390.c | 35 +-- arch/x86/kernel/cpu/microcode/core.c | 2 arch/x86/kernel/cpu/resctrl/monitor.c | 3 arch/x86/kvm/pmu.c | 10 arch/x86/kvm/pmu.h | 3 arch/x86/kvm/pmu_amd.c | 2 arch/x86/kvm/svm.c | 9 arch/x86/kvm/vmx/nested.c | 2 arch/x86/kvm/vmx/pmu_intel.c | 26 +- arch/x86/kvm/vmx/vmx.c | 26 +- arch/x86/kvm/vmx/vmx.h | 1 arch/x86/kvm/x86.c | 2 arch/x86/mm/kasan_init_64.c | 2 arch/x86/mm/kaslr.c | 11 drivers/ata/libata-core.c | 9 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 4 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 5 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 5 drivers/gpu/drm/drm_edid.c | 55 ++++ drivers/gpu/drm/drm_probe_helper.c | 7 drivers/gpu/drm/i915/intel_csr.c | 18 + drivers/gpu/drm/i915/intel_display.c | 14 - drivers/gpu/drm/i915/intel_drv.h | 1 drivers/gpu/drm/i915/intel_dsi_vbt.c | 11 drivers/gpu/drm/i915/intel_sdvo.c | 58 ++++- drivers/gpu/drm/i915/intel_sdvo_regs.h | 3 drivers/gpu/drm/nouveau/Kconfig | 13 + drivers/gpu/drm/nouveau/nouveau_drm.c | 7 drivers/gpu/drm/nouveau/nouveau_ttm.c | 4 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 7 drivers/hid/hid-core.c | 13 - drivers/hid/hid-input.c | 81 ++++--- drivers/hid/hid-multitouch.c | 7 drivers/hid/wacom_wac.c | 71 ++++-- drivers/i2c/busses/i2c-acorn.c | 1 drivers/iommu/arm-smmu.c | 15 + drivers/md/bcache/bset.c | 16 + drivers/md/bcache/bset.h | 34 +-- drivers/md/bcache/sysfs.c | 7 drivers/media/dvb-core/dvb_frontend.c | 2 drivers/misc/kgdbts.c | 4 drivers/net/ethernet/cadence/macb_main.c | 16 - drivers/net/ethernet/freescale/enetc/enetc.c | 4 drivers/net/usb/ipheth.c | 3 drivers/nvdimm/bus.c | 4 drivers/nvdimm/label.c | 2 drivers/nvdimm/label.h | 2 drivers/nvme/host/core.c | 74 ++++-- drivers/nvme/host/pci.c | 14 - drivers/perf/arm_spe_pmu.c | 10 drivers/platform/x86/pmc_atom.c | 33 ++ drivers/ras/cec.c | 80 +++---- drivers/scsi/bnx2fc/bnx2fc_hwi.c | 2 drivers/scsi/lpfc/lpfc_attr.c | 37 +-- drivers/scsi/lpfc/lpfc_els.c | 5 drivers/scsi/lpfc/lpfc_sli.c | 84 ++++--- drivers/scsi/myrs.c | 2 drivers/scsi/qedi/qedi_dbg.c | 32 -- drivers/scsi/qedi/qedi_iscsi.c | 4 drivers/scsi/qla2xxx/qla_os.c | 221 +++++++------------- drivers/usb/core/quirks.c | 3 drivers/usb/dwc2/hcd.c | 39 ++- drivers/usb/dwc2/hcd.h | 20 - drivers/usb/dwc2/hcd_intr.c | 5 drivers/usb/dwc2/hcd_queue.c | 10 drivers/usb/serial/option.c | 6 drivers/usb/serial/pl2303.c | 1 drivers/usb/serial/pl2303.h | 3 drivers/usb/storage/unusual_realtek.h | 5 fs/f2fs/xattr.c | 36 ++- fs/f2fs/xattr.h | 2 fs/io_uring.c | 4 fs/ocfs2/dcache.c | 12 + include/drm/drm_edid.h | 1 include/linux/cgroup.h | 10 include/linux/cpuhotplug.h | 1 include/linux/hid.h | 2 kernel/Makefile | 1 kernel/cred.c | 9 kernel/ptrace.c | 20 + kernel/time/timekeeping.c | 5 kernel/trace/trace_events_hist.c | 3 kernel/trace/trace_uprobe.c | 13 - mm/list_lru.c | 2 mm/vmscan.c | 2 net/core/skmsg.c | 7 net/ipv4/tcp_bpf.c | 7 security/selinux/avc.c | 10 security/selinux/hooks.c | 39 ++- security/smack/smack_lsm.c | 12 - sound/core/seq/seq_clientmgr.c | 10 sound/core/seq/seq_ports.c | 13 - sound/core/seq/seq_ports.h | 5 sound/firewire/motu/motu-stream.c | 2 sound/firewire/oxfw/oxfw.c | 3 sound/pci/hda/patch_realtek.c | 91 +++++--- sound/pci/ice1712/ews.c | 2 sound/soc/codecs/cs42xx8.c | 1 sound/soc/fsl/fsl_asrc.c | 4 sound/soc/soc-core.c | 7 sound/soc/soc-dapm.c | 3 tools/bpf/bpftool/prog.c | 4 tools/io_uring/Makefile | 2 tools/kvm/kvm_stat/kvm_stat | 16 + tools/kvm/kvm_stat/kvm_stat.txt | 2 tools/testing/selftests/bpf/bpf_helpers.h | 2 tools/testing/selftests/kvm/dirty_log_test.c | 2 tools/testing/selftests/kvm/lib/aarch64/processor.c | 2 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c | 5 tools/testing/selftests/net/fib_rule_tests.sh | 2 tools/testing/selftests/timers/adjtick.c | 1 tools/testing/selftests/timers/leapcrash.c | 1 tools/testing/selftests/timers/mqueue-lat.c | 1 tools/testing/selftests/timers/nanosleep.c | 1 tools/testing/selftests/timers/nsleep-lat.c | 1 tools/testing/selftests/timers/raw_skew.c | 1 tools/testing/selftests/timers/set-tai.c | 1 tools/testing/selftests/timers/set-tz.c | 2 tools/testing/selftests/timers/threadtest.c | 1 tools/testing/selftests/timers/valid-adjtimex.c | 2 virt/kvm/arm/aarch32.c | 121 ---------- virt/kvm/arm/hyp/aarch32.c | 136 ++++++++++++ 132 files changed, 1295 insertions(+), 738 deletions(-)Alexei Starovoitov (1):
selftests/bpf: fixbpf_get_current_taskAndrew Jones (2):
kvm: selftests: aarch64:dirty_log_test: fix unaligned memslot size
kvm: selftests: aarch64: fix default vm modeAndrey Ryabinin (1):
x86/kasan: Fix boot with 5-level paging and KASANBaoquan He (1):
x86/mm/KASLR: Compute the size of the vmemmap section properlyBenjamin Tissoires (4):
HID: input: make sure the wheel high resolution multiplier is set
HID: input: fix assignment of .value
Revert "HID: Increase maximum report size allowed byhid_field_extract()"
HID: multitouch: handle faulty Elo touch deviceBernd Eckstein (1):
usbnet: ipheth: fix racing conditionBorislav Petkov (2):
RAS/CEC: Fix binary search function
x86/microcode, cpuhotplug: Add a microcode loader CPU hotplug callbackCasey Schaufler (1):
Smack: Restore the smackfsdef mount option and add missing prefixesChris Packham (1):
USB: serial: pl2303: add Allied Telesis VT-Kit3Christian Borntraeger (1):
KVM: s390: fix memory slot handling forKVM_SET_USER_MEMORY_REGIONChristoph Hellwig (4):
nvme: fix srcu locking on error return innvme_get_ns_from_disk
nvme: remove the ifdef aroundnvme_nvm_ioctl
nvme: mergenvme_ns_ioctlintonvme_ioctl
nvme: release namespace SRCU protection before performing controller ioctlsChristophe Leroy (1):
powerpc: Fix kexec failure on book3s/32Claudiu Manoil (1):
enetc: Fix NULL dma address unmap for Tx BD extensionsColin Ian King (1):
scsi: bnx2fc: fix incorrect cast to u64 on shift operationColy Li (2):
bcache: fix stack corruption byPRECEDING_KEY()
bcache: only setBCACHE_DEV_WB_RUNNINGwhen cached device attachedCong Wang (1):
RAS/CEC: Convert the timer callback to a workqueueDan Carpenter (1):
KVM: selftests: Fix a condition intest_hv_cpuid()Daniele Palmas (1):
USB: serial: option: add Telit 0x1260 and 0x1261 compositionsDave Airlie (1):
drm/nouveau: add kconfig option to turn off nouveau legacy contexts. (v3)Douglas Anderson (1):
usb: dwc2: host: Fix wMaxPacketSize handling (fix webcam regression)Eiichi Tsukata (1):
tracing/uprobe: Fix NULL pointer dereference intrace_uprobe_create()Eric Biggers (1):
io_uring: fix memory leak of UNIX domain socket inodeEric W. Biederman (1):
signal/ptrace: Don't leak unitialized kernel memory withPTRACE_PEEK_SIGINFOFlora Cui (1):
drm/amdgpu: keep stolen memory on picassoGen Zhang (2):
selinux: fix a missing-check bug inselinux_add_mnt_opt( )
selinux: fix a missing-check bug inselinux_sb_eat_lsm_opts()Greg Kroah-Hartman (1):
Linux 5.1.12Hangbin Liu (1):
selftests:fib_rule_tests: fix local IPv4 address typoHans de Goede (3):
libata: Extend quirks for the ST1000LM024 drives with NOLPM quirk drm/i915/dsi: Use a fuzzy check for burst mode clock check platform/x86:pmc_atom: Add Lex 3I380D industrial PC tocritclk_systemsDMI tableHui Wang (1):
Revert "ALSA: hda/realtek - Improve the headset mic for Acer Aspire laptops"James Morse (1):
KVM: arm/arm64: Move cc/it checks under hyp'sMakefileto avoid instrumentationJames Smart (3):
scsi: lpfc: resolve lockdep warnings
scsi: lpfc: correct rcu unlock issue inlpfc_nvme_info_show
scsi: lpfc: add check for loss of ndlp when sending RRQJani Nikula (2):
drm/edid: abstract override/firmware EDID retrieval
drm: add fallback override/firmware EDID modes workaroundJann Horn (1):
ptrace: restoresmp_rmb()in__ptrace_may_access()Jason Gerecke (5):
HID: wacom: Don't set tool type until we're in range
HID: wacom: Don't report anything prior to the tool entering range
HID: wacom: SendBTN_TOUCHin response toINTUOSP2_BTeraser contact
HID: wacom: Correct button numbering 2nd-gen Intuos Pro over Bluetooth
HID: wacom: SyncINTUOSP2_BTtouch state after each frame if necessaryJens Axboe (1):
tools/io_uring: fixMakefilefor pthread library linkJohn Fastabend (4):
bpf: sockmap, only stop/flush strp if it was enabled at some point
bpf: sockmap remove duplicate queue free
bpf: sockmap fixmsg->sg.sizeaccount on ingress skb bpf, tcp: correctly handleDONT_WAITflags and timeo == 0Jörgen Storvist (1):
USB: serial: option: add support for Simcom SIM7500/SIM7600 RNDIS modeKai-Heng Feng (1):
USB: usb-storage: Add new ID to ums-realtekKailang Yang (1):
ALSA: hda/realtek - Update headset mode for ALC256Kees Cook (1):
selftests/timers: Add missing fflush(stdout) callsKeith Busch (2):
nvme-pci: Fix controller freeze wait disabling
nvme-pci: use blk-mq mapping for unmanaged irqsKuninori Morimoto (1):
ASoC: soc-core: fixup references atsoc_cleanup_card_resources()Luca Ceresoli (1):
net: macb: fix error format indev_err()Lucas De Marchi (1):
drm/i915/dmc: protect against reading random memoryMarco Zatta (1):
USB: Fix chipmunk-like voice when using Logitech C270 for recording audio.Mark Rutland (1):
arm64/mm: Inhibit huge-vmap with ptdumpMartin Schiller (1):
usb: dwc2: Fix DMA cache alignment issuesMinchan Kim (1):
mm/vmscan.c: fix trying to reclaim unevictable LRU pageMurray McAllister (2):
drm/vmwgfx: integer underflow invmw_cmd_dx_set_shader()leading to an invalid read drm/vmwgfx: NULL pointer dereference fromvmw_cmd_dx_view_define()Nicholas Piggin (1):
powerpc/64s: Fix THP PMD collapse serialisationOndrej Mosnacek (1):
selinux: log raw contexts as untrusted stringsPaolo Bonzini (4):
KVM: nVMX: really fix the size checks onKVM_SET_NESTED_STATE
KVM: x86: do not spam dmesg with VMCS/VMCB dumps
KVM: x86/pmu: mask the result of rdpmc according to the width of the counters
KVM: x86/pmu: do not mask the value that is written to fixed PMUsPeter Zijlstra (1):
x86/uaccess, kcov: Disable stack protectorPrarit Bhargava (1):
x86/resctrl: Prevent NULL pointer dereference when local MBM is disabledQian Cai (1):
libnvdimm: Fix compilation warnings with W=1Quinn Tran (1):
scsi: qla2xxx: Add cleanup for PCI EEH recoveryRandall Huang (1):
f2fs: fix to avoid accessing xattr across the boundaryRobin Murphy (1):
iommu/arm-smmu: Avoid constant zero in TLBI writesRui Nuno Capela (1):
ALSA: ice1712: Check correct return value tosnd_i2c_sendbytes(EWS/DMX 6Fire)Russell King (1):
i2c: acorn: fix i2c warningS.j. Wang (2):
ASoC: cs42xx8: Add regcache mask dirty
ASoC:fsl_asrc: Fix the issue about unsupported rateSean Young (1):
media: dvb: warning about dvb frequency limits produces too much noiseShakeel Butt (1):
mm/list_lru.c: fix memory leak in__memcg_init_list_lru_nodeShirish S (1):
drm/amdgpu/{uvd,vcn}: fetch ring'sread_ptrafter allocStefan Raspl (1):
tools/kvm_stat: fix fields filter for child eventsSteffen Dirkwinkel (1):
platform/x86:pmc_atom: Add several Beckhoff Automation boards tocritclk_systemsDMI tableTakashi Iwai (3):
ALSA: seq: Protect in-kernel ioctl calls with mutex
ALSA: seq: Fix race of get-subscription call vs port-delete ioctls Revert "ALSA: seq: Protect in-kernel ioctl calls with mutex"Takashi Sakamoto (2):
ALSA: oxfw: allow PCM capture for Stanton SCS.1m
ALSA: firewire-motu: fix destruction of data for isochronous resourcesTejun Heo (1):
cgroup: Usecss_tryget()instead ofcss_tryget_online()intask_get_css()Thomas Backlund (1):
nouveau: Fix build withCONFIG_NOUVEAU_LEGACY_CTX_SUPPORTdisabledThomas Gleixner (1):
timekeeping: Repair ktime_get_coarse*() granularityTom Zanussi (1):
tracing: Preventhist_field_var_ref()from accessing NULLtracing_map_eltsVille Syrjälä (2):
drm/i915/sdvo: Implement proper HDMI audio support for SDVO drm/i915: Fix per-pixel alpha with CCSWanpeng Li (1):
KVM: LAPIC: Fixlapic_timer_advance_nsparameter overflowWengang Wang (1):
fs/ocfs2: fix race inocfs2_dentry_attach_lock()Will Deacon (2):
drivers/perf:arm_spe: Don't error on high-order pages for aux buf
arm64: Print physical address of page table base inshow_pte()Yi Wang (1):
kvm: vmx: Fix -Wmissing-prototypes warningsYonghong Song (1):
tools/bpftool: moveset_max_rlimit()before__bpf_object__open_xattr()Young Xiao (1):
Drivers: misc: fix out-of-bounds access in functionparam_set_kgdbts_varYueHaibing (3):
scsi: qedi: remove memset/memcpy to nfunc and use func instead
scsi: qedi: remove set but not used variables 'cdev' and 'udev'
scsi: myrs: Fix uninitialized variableYufen Yu (1):
nvme: fix memory leak for power latency tolerance