Linux 4.9.143
Greg KH
maintainerI'm announcing the release of the 4.9.143 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 67 ++++++------ arch/arm/Makefile | 2 arch/arm/boot/compressed/Makefile | 2 arch/arm/firmware/trusted_foundations.c | 14 +- arch/x86/events/core.c | 20 --- arch/x86/events/intel/core.c | 52 +++++++--- arch/x86/events/perf_event.h | 13 +- arch/x86/kvm/mmu.c | 27 +---- arch/x86/kvm/svm.c | 20 ++- arch/x86/kvm/x86.c | 3 arch/xtensa/kernel/asm-offsets.c | 16 +-- arch/xtensa/kernel/process.c | 5 drivers/bus/arm-cci.c | 2 drivers/dma/at_hdmac.c | 10 + drivers/firmware/efi/libstub/Makefile | 3 drivers/firmware/efi/libstub/efi-stub-helper.c | 11 +- drivers/hv/channel.c | 8 + drivers/iio/magnetometer/st_magn_buffer.c | 12 -- drivers/media/usb/em28xx/em28xx-dvb.c | 3 drivers/misc/mic/scif/scif_rma.c | 2 drivers/net/rionet.c | 2 drivers/net/usb/ipheth.c | 10 - drivers/net/wireless/ti/wlcore/cmd.c | 6 - drivers/s390/net/qeth_core_main.c | 27 ++--- drivers/usb/core/quirks.c | 3 drivers/usb/dwc3/gadget.c | 5 drivers/usb/storage/unusual_realtek.h | 10 + fs/btrfs/super.c | 1 fs/btrfs/transaction.c | 6 - fs/direct-io.c | 4 fs/ext2/xattr.c | 2 include/linux/workqueue.h | 4 mm/huge_memory.c | 79 +++++++-------- mm/khugepaged.c | 129 ++++++++++++++----------- mm/shmem.c | 97 ++++++++++-------- net/core/skbuff.c | 4 sound/core/control.c | 80 ++++++++------- sound/isa/wss/wss_lib.c | 2 sound/pci/ac97/ac97_codec.c | 2 sound/sparc/cs4231.c | 8 - 40 files changed, 423 insertions(+), 350 deletions(-)
Alistair Strachan (1):
efi/libstub: arm: support building with clang
Ard Biesheuvel (1):
efi/libstub: Make file I/O chunking x86-specific
Arnd Bergmann (1):
workqueue: avoid clang warning
Bernd Eckstein (1):
usbnet: ipheth: fix potential recvmsg bug and recvmsg bug 2
Chris Fries (1):
kbuild: Set KBUILD_CFLAGS before incl. arch Makefile
Dexuan Cui (1):
Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl()
Felipe Balbi (1):
Revert "usb: dwc3: gadget: skip Set/Clear Halt when invalid"
Filipe Manana (1):
Btrfs: ensure path name is null terminated at btrfs_control_ioctl
Greg Kroah-Hartman (1):
Linux 4.9.143
Hugh Dickins (9):
mm/huge_memory: rename freeze_page() to unmap_page() mm/huge_memory: splitting set mapping+index before unfreeze mm/huge_memory: fix lockdep complaint on 32-bit i_size_read() mm/khugepaged: collapse_shmem() stop if punched or truncated mm/khugepaged: fix crashes due to misaccounted holes mm/khugepaged: collapse_shmem() remember to clear holes mm/khugepaged: minor reorderings in collapse_shmem() mm/khugepaged: collapse_shmem() without freezing new_page mm/khugepaged: collapse_shmem() do not crash on Compound
Jim Mattson (1):
kvm: svm: Ensure an IBPB on all affected CPUs when freeing a vmcb
Jiri Olsa (2):
perf/x86/intel: Move branch tracing setup to the Intel-specific source file perf/x86/intel: Add generic branch tracing check to intel_pmu_has_bts()
Josef Bacik (1):
btrfs: release metadata before running delayed refs
Julian Wiedmann (1):
s390/qeth: fix length check in SNMP processing
Junaid Shahid (1):
kvm: mmu: Fix race in emulated page table writes
Kai-Heng Feng (1):
USB: usb-storage: Add new IDs to ums-realtek
Konstantin Khlebnikov (1):
mm/huge_memory.c: reorder operations in __split_huge_page_tail()
Martin Kelly (1):
iio:st_magn: Fix enable device after trigger
Matthias Schwarzott (1):
media: em28xx: Fix use-after-free when disconnecting
Max Filippov (2):
xtensa: enable coprocessors that are being flushed
xtensa: fix coprocessor context offset definitions
Maximilian Heyne (1):
fs: fix lost error code in dio_complete
Michael Niewöhner (1):
usb: core: quirks: add RESET_RESUME quirk for Cherry G230 Stream series
Mike Rapoport (2):
shmem: shmem_charge: verify max_block is not exceeded before inode update
shmem: introduce shmem_inode_acct_block
Pan Bian (2):
rapidio/rionet: do not free skb before reading its length
ext2: fix potential use after free
Petr Machata (1):
net: skb_scrub_packet(): Scrub offload_fwd_mark
Richard Genoud (2):
dmaengine: at_hdmac: fix memory leak in at_dma_xlate()
dmaengine: at_hdmac: fix module unloading
Sasha Levin (1):
Revert "wlcore: Add missing PM call for wlcore_cmd_wait_for_event_or_timeout()"
Stefan Agner (4):
ARM: 8766/1: drop no-thumb-interwork in EABI mode
ARM: 8767/1: add support for building ARM kernel with clang
bus: arm-cci: remove unnecessary unreachable()
ARM: trusted_foundations: do not use naked function
Takashi Iwai (4):
ALSA: wss: Fix invalid snd_free_pages() at error path
ALSA: ac97: Fix incorrect bit shift at AC97-SPSA control write
ALSA: control: Fix race between adding and removing a user element
ALSA: sparc: Fix invalid snd_free_pages() at error path
Wanpeng Li (1):
KVM: X86: Fix scan ioapic use-before-initialization
Yu Zhao (1):
mm: use swp_offset as key in shmem_replace_page()
YueHaibing (1):
misc: mic/scif: fix copy-paste error in scif_create_remote_lookup
Greg KH
maintainerMakefile +34 -33
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 142 +SUBLEVEL = 143 EXTRAVERSION = NAME = Roaring Lionus
@@ -509,6 +509,39 @@ ifneq ($(filter install,$(MAKECMDGOALS)),) endif endif +ifeq ($(cc-name),clang) +ifneq ($(CROSS_COMPILE),) +CLANG_TARGET := -target $(notdir $(CROSS_COMPILE:%-=%)) +GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..) +endif +ifneq ($(GCC_TOOLCHAIN),) +CLANG_GCC_TC := -gcc-toolchain $(GCC_TOOLCHAIN) +endif +KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) +KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) +KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) +KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) +KBUILD_CFLAGS += $(call cc-disable-warning, gnu) +KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) +# Quiet clang warning: comparison of unsigned expression < 0 is always false +KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) +# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the +# source of a reference will be _MergedGlobals and not on of the whitelisted names. +# See modpost pattern 2 +KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) +KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) +KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) +KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) +else + +# These warnings generated too much noise in a regular build. +# Use make W=1 to enable them (see scripts/Makefile.build) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) +endif + + ifeq ($(mixed-targets),1) # =========================================================================== # We're called with mixed targets (*config and build targets).
@@ -704,38 +737,6 @@ ifdef CONFIG_CC_STACKPROTECTOR endif KBUILD_CFLAGS += $(stackp-flag) -ifeq ($(cc-name),clang) -ifneq ($(CROSS_COMPILE),) -CLANG_TARGET := -target $(notdir $(CROSS_COMPILE:%-=%)) -GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..) -endif -ifneq ($(GCC_TOOLCHAIN),) -CLANG_GCC_TC := -gcc-toolchain $(GCC_TOOLCHAIN) -endif -KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) -KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) -KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) -KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) -KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) -KBUILD_CFLAGS += $(call cc-disable-warning, gnu) -KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) -# Quiet clang warning: comparison of unsigned expression < 0 is always false -KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) -# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the -# source of a reference will be _MergedGlobals and not on of the whitelisted names. -# See modpost pattern 2 -KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) -KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) -KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) -KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) -else - -# These warnings generated too much noise in a regular build. -# Use make W=1 to enable them (see scripts/Makefile.build) -KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) -KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) -endif - ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls else
arch/arm/Makefile +1 -1
@@ -104,7 +104,7 @@ tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) tune-y := $(tune-y) ifeq ($(CONFIG_AEABI),y) -CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp +CFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp else CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) endif
arch/arm/boot/compressed/Makefile +1 -1
@@ -112,7 +112,7 @@ CFLAGS_fdt_ro.o := $(nossp_flags) CFLAGS_fdt_rw.o := $(nossp_flags) CFLAGS_fdt_wip.o := $(nossp_flags) -ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) +ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj) asflags-y := -DZIMAGE # Supply kernel BSS size to the decompressor via a linker symbol.
arch/arm/firmware/trusted_foundations.c +9 -5
@@ -31,21 +31,25 @@static unsigned long cpu_boot_addr; -static void __naked tf_generic_smc (u32 type,u32 arg1,u32 arg2) +static void tf_generic_smc (u32 type,u32 arg1,u32 arg2) { + register u32 r0 asm("r0") = type; + register u32 r1 asm("r1") = arg1; + register u32 r2 asm("r2") = arg2; + asmvolatile (".arch_extension sec\n\t" -"stmfd sp!, {r4 - r11, lr}\n\t" +"stmfd sp!, {r4 - r11}\n\t" __asmeq("%0", "r0") __asmeq("%1", "r1") __asmeq("%2", "r2") "mov r3, #0\n\t" "mov r4, #0\n\t" "smc #0\n\t" - "ldmfd sp!, {r4 - r11, pc}" + "ldmfd sp!, {r4 - r11}\n\t" : - : "r" (type), "r" (arg1), "r" (arg2) - : "memory"); + : "r" (r0), "r" (r1), "r" (r2) + : "memory", "r3", "r12", "lr"); }static int tf_set_cpu_boot_addr (int cpu,unsigned long boot_addr)
arch/x86/events/core.c +0 -20
@@ -437,26 +437,6 @@ int x86_setup_perfctr(struct perf_event *event)if (config ==-1LL )return -EINVAL ; -/* -* Branch tracing: -*/ -if (attr->config ==PERF_COUNT_HW_BRANCH_INSTRUCTIONS && - !attr->freq && hwc->sample_period ==1 ) { -/* BTS is not supported by this architecture. */ -if (!x86_pmu.bts_active) -return -EOPNOTSUPP ; - -/* BTS is currently only allowed for user-mode. */ -if (!attr->exclude_kernel) -return -EOPNOTSUPP ; - -/* disallow bts if conflicting events are present */ -if (x86_add_exclusive (x86_lbr_exclusive_lbr)) -return -EBUSY ; - - event->destroy = hw_perf_lbr_event_destroy; - } - hwc->config |= config;return 0 ;
arch/x86/events/intel/core.c +40 -12
80 lines not on this page · raw message
arch/x86/events/perf_event.h +9 -4
@@ -835,11 +835,16 @@ static inline int amd_pmu_init(void)static inline bool intel_pmu_has_bts (struct perf_event *event) { -if (event->attr.config ==PERF_COUNT_HW_BRANCH_INSTRUCTIONS && - !event->attr.freq && event->hw.sample_period ==1 ) -return true; +struct hw_perf_event *hwc = &event->hw; +unsigned int hw_event, bts_event; + +if (event->attr.freq) +return false; + + hw_event = hwc->config &INTEL_ARCH_EVENT_MASK ; + bts_event = x86_pmu.event_map (PERF_COUNT_HW_BRANCH_INSTRUCTIONS ); -return false; +return hw_event == bts_event && hwc->sample_period ==1 ; }int intel_pmu_save_and_restart (struct perf_event *event);
arch/x86/kvm/mmu.c +9 -18
@@ -4297,9 +4297,9 @@ static bool need_remote_flush(u64 old, u64 new) }static u64 mmu_pte_write_fetch_gpte (struct kvm_vcpu *vcpu,gpa_t *gpa, -const u8 *new,int *bytes) +int *bytes) { -u64 gentry; +u64 gentry =0 ;int r;/*
@@ -4311,22 +4311,12 @@ static u64 mmu_pte_write_fetch_gpte(struct kvm_vcpu *vcpu, gpa_t *gpa,/* Handle a 32-bit guest writing two halves of a 64-bit gpte */ *gpa &= ~(gpa_t )7 ; *bytes =8 ; - r =kvm_vcpu_read_guest (vcpu, *gpa, &gentry,8 ); -if (r) - gentry =0 ; - new = (const u8 *)&gentry; } -switch (*bytes) { -case 4 : - gentry = *(const u32 *)new; -break ; -case 8 : - gentry = *(const u64 *)new; -break ; -default : - gentry =0 ; -break ; +if (*bytes ==4 || *bytes ==8 ) { + r =kvm_vcpu_read_guest_atomic (vcpu, *gpa, &gentry, *bytes); +if (r) + gentry =0 ; }return gentry;
@@ -4437,8 +4427,6 @@ static void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,pgprintk ("%s: gpa %llx bytes %d\n" , __func__, gpa, bytes); - gentry =mmu_pte_write_fetch_gpte (vcpu, &gpa, new, &bytes); -/* * No need to care whether allocation memory is successful * or not since pte prefetch is skiped if it does not have
@@ -4447,6 +4435,9 @@ static void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,mmu_topup_memory_caches (vcpu);spin_lock (&vcpu->kvm->mmu_lock); + + gentry =mmu_pte_write_fetch_gpte (vcpu, &gpa, &bytes); + ++vcpu->kvm->stat.mmu_pte_write;kvm_mmu_audit (vcpu,AUDIT_PRE_PTE_WRITE );
arch/x86/kvm/svm.c +15 -5
@@ -1672,21 +1672,31 @@ static struct kvm_vcpu *svm_create_vcpu(struct kvm *kvm, unsigned int id)return ERR_PTR (err); } +static void svm_clear_current_vmcb (struct vmcb *vmcb) +{ +int i; + +for_each_online_cpu (i) +cmpxchg (&per_cpu (svm_data, i)->current_vmcb, vmcb,NULL ); +} +static void svm_free_vcpu (struct kvm_vcpu *vcpu) {struct vcpu_svm *svm =to_svm (vcpu); +/* +* The vmcb page can be recycled, causing a false negative in +* svm_vcpu_load(). So, ensure that no logical CPU has this +* vmcb page recorded as its current vmcb. +*/ +svm_clear_current_vmcb (svm->vmcb); +__free_page (pfn_to_page (svm->vmcb_pa >>PAGE_SHIFT ));__free_pages (virt_to_page (svm->msrpm),MSRPM_ALLOC_ORDER );__free_page (virt_to_page (svm->nested.hsave));__free_pages (virt_to_page (svm->nested.msrpm),MSRPM_ALLOC_ORDER );kvm_vcpu_uninit (vcpu);kmem_cache_free (kvm_vcpu_cache, svm); -/* -* The vmcb page can be recycled, causing a false negative in -* svm_vcpu_load(). So do a full IBPB now. -*/ -indirect_branch_prediction_barrier (); }static void svm_vcpu_load (struct kvm_vcpu *vcpu,int cpu)
arch/x86/kvm/x86.c +2 -1
@@ -6661,7 +6661,8 @@ static void vcpu_scan_ioapic(struct kvm_vcpu *vcpu)else {if (vcpu->arch.apicv_active) kvm_x86_ops->sync_pir_to_irr (vcpu); -kvm_ioapic_scan_entry (vcpu, vcpu->arch.ioapic_handled_vectors); +if (ioapic_in_kernel (vcpu->kvm)) +kvm_ioapic_scan_entry (vcpu, vcpu->arch.ioapic_handled_vectors); }bitmap_or ((ulong *)eoi_exit_bitmap, vcpu->arch.ioapic_handled_vectors,vcpu_to_synic (vcpu)->vec_bitmap,256 );
arch/xtensa/kernel/asm-offsets.c +8 -8
@@ -91,14 +91,14 @@ int main(void) DEFINE(THREAD_SP, offsetof (struct task_struct, thread.sp));DEFINE (THREAD_CPENABLE , offsetof (struct thread_info , cpenable));#if XTENSA_HAVE_COPROCESSORS -DEFINE (THREAD_XTREGS_CP0 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP1 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP2 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP3 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP4 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP5 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP6 , offsetof (struct thread_info , xtregs_cp)); -DEFINE (THREAD_XTREGS_CP7 , offsetof (struct thread_info , xtregs_cp)); + DEFINE(THREAD_XTREGS_CP0, offsetof(struct thread_info, xtregs_cp.cp0)); + DEFINE(THREAD_XTREGS_CP1, offsetof(struct thread_info, xtregs_cp.cp1)); + DEFINE(THREAD_XTREGS_CP2, offsetof(struct thread_info, xtregs_cp.cp2)); + DEFINE(THREAD_XTREGS_CP3, offsetof(struct thread_info, xtregs_cp.cp3)); + DEFINE(THREAD_XTREGS_CP4, offsetof(struct thread_info, xtregs_cp.cp4)); + DEFINE(THREAD_XTREGS_CP5, offsetof(struct thread_info, xtregs_cp.cp5)); + DEFINE(THREAD_XTREGS_CP6, offsetof(struct thread_info, xtregs_cp.cp6)); + DEFINE(THREAD_XTREGS_CP7, offsetof(struct thread_info, xtregs_cp.cp7));#endif DEFINE (THREAD_XTREGS_USER , offsetof (struct thread_info , xtregs_user));DEFINE (XTREGS_USER_SIZE ,sizeof (xtregs_user_t));
arch/xtensa/kernel/process.c +4 -1
@@ -85,18 +85,21 @@ void coprocessor_release_all(struct thread_info *ti)void coprocessor_flush_all (struct thread_info *ti) { -unsigned long cpenable; +unsigned long cpenable, old_cpenable;int i;preempt_disable (); +RSR_CPENABLE (old_cpenable); cpenable = ti->cpenable; +WSR_CPENABLE (cpenable);for (i =0 ; i <XCHAL_CP_MAX ; i++) {if ((cpenable &1 ) !=0 && coprocessor_owner[i] == ti)coprocessor_flush (ti, i); cpenable >>=1 ; } +WSR_CPENABLE (old_cpenable);preempt_enable (); }
drivers/bus/arm-cci.c +0 -2
@@ -2103,8 +2103,6 @@ asmlinkage void __naked cci_enable_port_for_self(void) [sizeof_struct_cpu_port] "i" (sizeof(struct cpu_port)), [sizeof_struct_ace_port] "i" (sizeof(struct cci_ace_port)), [offsetof_port_phys] "i" (offsetof(struct cci_ace_port, phys)) ); - -unreachable (); }/**
drivers/dma/at_hdmac.c +9 -1
@@ -1774,6 +1774,12 @@ static void atc_free_chan_resources(struct dma_chan *chan) atchan->descs_allocated =0 ; atchan->status =0 ; +/* +* Free atslave allocated in at_dma_xlate() +*/ +kfree (chan->private); + chan->private =NULL ; +dev_vdbg (chan2dev (chan),"free_chan_resources: done\n" ); }
@@ -1808,7 +1814,7 @@ static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - atslave =devm_kzalloc (&dmac_pdev->dev,sizeof (*atslave),GFP_KERNEL ); + atslave =kzalloc (sizeof (*atslave),GFP_KERNEL );if (!atslave)return NULL ;
@@ -2139,6 +2145,8 @@ static int at_dma_remove(struct platform_device *pdev)struct resource *io;at_dma_off (atdma); +if (pdev->dev.of_node) +of_dma_controller_free (pdev->dev.of_node);dma_async_device_unregister (&atdma->dma_common);dma_pool_destroy (atdma->memset_pool);
drivers/firmware/efi/libstub/Makefile +2 -1
@@ -12,7 +12,8 @@ cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 \ cflags-$(CONFIG_ARM64) := $(subst -pg,,$(KBUILD_CFLAGS)) -fpie cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) \ - -fno-builtin -fpic -mno-single-pic-base + -fno-builtin -fpic \ + $(call cc-option,-mno-single-pic-base) cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt
drivers/firmware/efi/libstub/efi-stub-helper.c +10 -1
@@ -355,6 +355,14 @@ efi_status_t efi_parse_options(char *cmdline) {char *str; +/* +* Currently, the only efi= option we look for is 'nochunk', which +* is intended to work around known issues on certain x86 UEFI +* versions. So ignore for now on other architectures. +*/ +if (!IS_ENABLED (CONFIG_X86 )) +return EFI_SUCCESS ; +/* * If no EFI parameters were specified on the cmdline we've got * nothing to do.
@@ -528,7 +536,8 @@ efi_status_t handle_cmdline_files(efi_system_table_t *sys_table_arg, size = files[j].size;while (size) {unsigned long chunksize; -if (size > __chunk_size) + +if (IS_ENABLED (CONFIG_X86 ) && size > __chunk_size) chunksize = __chunk_size;else chunksize = size;
drivers/hv/channel.c +8 -0
@@ -448,6 +448,14 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, }wait_for_completion (&msginfo->waitevent); +if (msginfo->response.gpadl_created.creation_status !=0 ) { +pr_err ("Failed to establish GPADL: err = 0x%x\n" , + msginfo->response.gpadl_created.creation_status); + + ret = -EDQUOT ; + goto cleanup; + } +if (channel->rescind) { ret = -ENODEV ; goto cleanup;
drivers/iio/magnetometer/st_magn_buffer.c +3 -9
@@ -30,11 +30,6 @@ int st_magn_trig_set_state(struct iio_trigger *trig, bool state)return st_sensors_set_dataready_irq (indio_dev, state); } -static int st_magn_buffer_preenable (struct iio_dev *indio_dev) -{ -return st_sensors_set_enable (indio_dev, true); -} -static int st_magn_buffer_postenable (struct iio_dev *indio_dev) {int err;
@@ -50,7 +45,7 @@ static int st_magn_buffer_postenable(struct iio_dev *indio_dev)if (err <0 ) goto st_magn_buffer_postenable_error; -return err; +return st_sensors_set_enable (indio_dev, true); st_magn_buffer_postenable_error:kfree (mdata->buffer_data);
@@ -63,11 +58,11 @@ static int st_magn_buffer_predisable(struct iio_dev *indio_dev)int err;struct st_sensor_data *mdata =iio_priv (indio_dev); - err =iio_triggered_buffer_predisable (indio_dev); + err =st_sensors_set_enable (indio_dev, false);if (err <0 ) goto st_magn_buffer_predisable_error; - err =st_sensors_set_enable (indio_dev, false); + err =iio_triggered_buffer_predisable (indio_dev); st_magn_buffer_predisable_error:kfree (mdata->buffer_data);
@@ -75,7 +70,6 @@ static int st_magn_buffer_predisable(struct iio_dev *indio_dev) }static const struct iio_buffer_setup_ops st_magn_buffer_setup_ops = { - .preenable = &st_magn_buffer_preenable, .postenable = &st_magn_buffer_postenable, .predisable = &st_magn_buffer_predisable, };
drivers/media/usb/em28xx/em28xx-dvb.c +2 -1
@@ -2016,6 +2016,8 @@ static int em28xx_dvb_fini(struct em28xx *dev) } } +em28xx_unregister_dvb (dvb); +/* remove I2C SEC */ client = dvb->i2c_client_sec;if (client) {
@@ -2037,7 +2039,6 @@ static int em28xx_dvb_fini(struct em28xx *dev)i2c_unregister_device (client); } -em28xx_unregister_dvb (dvb);kfree (dvb); dev->dvb =NULL ;kref_put (&dev->ref, em28xx_free_device);
drivers/misc/mic/scif/scif_rma.c +1 -1
@@ -414,7 +414,7 @@ static int scif_create_remote_lookup(struct scif_dev *remote_dev,if (err) goto error_window; err =scif_map_page (&window->num_pages_lookup.lookup[j], - vmalloc_dma_phys ? + vmalloc_num_pages ?vmalloc_to_page (&window->num_pages[i]) :virt_to_page (&window->num_pages[i]), remote_dev);
drivers/net/rionet.c +1 -1
@@ -216,9 +216,9 @@ static int rionet_start_xmit(struct sk_buff *skb, struct net_device *ndev)* it just report sending a packet to the target * (without actual packet transfer). */ -dev_kfree_skb_any (skb); ndev->stats.tx_packets++; ndev->stats.tx_bytes += skb->len; +dev_kfree_skb_any (skb); } }
drivers/net/usb/ipheth.c +4 -6
@@ -140,7 +140,6 @@ struct ipheth_device {struct usb_device *udev;struct usb_interface *intf;struct net_device *net; -struct sk_buff *tx_skb;struct urb *tx_urb;struct urb *rx_urb;unsigned char *tx_buf;
@@ -229,6 +228,7 @@ static void ipheth_rcvbulk_callback(struct urb *urb)case -ENOENT :case -ECONNRESET :case -ESHUTDOWN : +case -EPROTO :return ;case 0 :break ;
@@ -280,7 +280,6 @@ static void ipheth_sndbulk_callback(struct urb *urb)dev_err (&dev->intf->dev,"%s: urb status: %d\n" , __func__, status); -dev_kfree_skb_irq (dev->tx_skb);netif_wake_queue (dev->net); }
@@ -410,7 +409,7 @@ static int ipheth_tx(struct sk_buff *skb, struct net_device *net)if (skb->len >IPHETH_BUF_SIZE ) {WARN (1 ,"%s: skb too large: %d bytes\n" , __func__, skb->len); dev->net->stats.tx_dropped++; -dev_kfree_skb_irq (skb); +dev_kfree_skb_any (skb);return NETDEV_TX_OK ; }
@@ -430,12 +429,11 @@ static int ipheth_tx(struct sk_buff *skb, struct net_device *net)dev_err (&dev->intf->dev,"%s: usb_submit_urb: %d\n" , __func__, retval); dev->net->stats.tx_errors++; -dev_kfree_skb_irq (skb); +dev_kfree_skb_any (skb); }else { - dev->tx_skb = skb; - dev->net->stats.tx_packets++; dev->net->stats.tx_bytes += skb->len; +dev_consume_skb_any (skb);netif_stop_queue (net); }
drivers/net/wireless/ti/wlcore/cmd.c +0 -6
@@ -35,7 +35,6 @@#include "wl12xx_80211.h" #include "cmd.h" #include "event.h" -#include "ps.h" #include "tx.h" #include "hw_ops.h"
@@ -192,10 +191,6 @@ int wlcore_cmd_wait_for_event_or_timeout(struct wl1271 *wl, timeout_time = jiffies +msecs_to_jiffies (WL1271_EVENT_TIMEOUT ); - ret =wl1271_ps_elp_wakeup (wl); -if (ret <0 ) -return ret; - do { if (time_after(jiffies, timeout_time)) { wl1271_debug(DEBUG_CMD, "timeout waiting for event %d",
@@ -227,7 +222,6 @@ int wlcore_cmd_wait_for_event_or_timeout(struct wl1271 *wl, }while (!event); out: -wl1271_ps_elp_sleep (wl);kfree (events_vector);return ret; }
drivers/s390/net/qeth_core_main.c +12 -15
@@ -4540,8 +4540,8 @@ static int qeth_snmp_command_cb(struct qeth_card *card, {struct qeth_ipa_cmd *cmd;struct qeth_arp_query_info *qinfo; -struct qeth_snmp_cmd *snmp;unsigned char *data; +void *snmp_data;__u16 data_len;QETH_CARD_TEXT (card,3 ,"snpcmdcb" );
@@ -4549,7 +4549,6 @@ static int qeth_snmp_command_cb(struct qeth_card *card, cmd = (struct qeth_ipa_cmd *) sdata; data = (unsigned char *)((char *)cmd - reply->offset); qinfo = (struct qeth_arp_query_info *) reply->param; - snmp = &cmd->data.setadapterparms.data.snmp;if (cmd->hdr.return_code) {QETH_CARD_TEXT_ (card,4 ,"scer1%x" , cmd->hdr.return_code);
@@ -4562,10 +4561,15 @@ static int qeth_snmp_command_cb(struct qeth_card *card,return 0 ; } data_len = *((__u16 *)QETH_IPA_PDU_LEN_PDU1 (data)); -if (cmd->data.setadapterparms.hdr.seq_no ==1 ) - data_len -= (__u16)((char *)&snmp->data - (char *)cmd); -else - data_len -= (__u16)((char *)&snmp->request - (char *)cmd); +if (cmd->data.setadapterparms.hdr.seq_no ==1 ) { + snmp_data = &cmd->data.setadapterparms.data.snmp; + data_len -= offsetof(struct qeth_ipa_cmd , + data.setadapterparms.data.snmp); + }else { + snmp_data = &cmd->data.setadapterparms.data.snmp.request; + data_len -= offsetof(struct qeth_ipa_cmd , + data.setadapterparms.data.snmp.request); + }/* check if there is enough room in userspace */ if ((qinfo->udata_len - qinfo->udata_offset) < data_len) {
@@ -4578,16 +4582,9 @@ static int qeth_snmp_command_cb(struct qeth_card *card,QETH_CARD_TEXT_ (card,4 ,"sseqn%i" , cmd->data.setadapterparms.hdr.seq_no);/*copy entries to user buffer*/ -if (cmd->data.setadapterparms.hdr.seq_no ==1 ) { -memcpy (qinfo->udata + qinfo->udata_offset, - (char *)snmp, - data_len + offsetof(struct qeth_snmp_cmd , data)); - qinfo->udata_offset += offsetof(struct qeth_snmp_cmd , data); - }else { -memcpy (qinfo->udata + qinfo->udata_offset, - (char *)&snmp->request, data_len); - } +memcpy (qinfo->udata + qinfo->udata_offset, snmp_data, data_len); qinfo->udata_offset += data_len; +/* check if all replies received ... */ QETH_CARD_TEXT_ (card,4 ,"srtot%i" , cmd->data.setadapterparms.hdr.used_total);
drivers/usb/core/quirks.c +3 -0
@@ -64,6 +64,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Microsoft LifeCam-VX700 v2.0 */ { USB_DEVICE(0x045e, 0x0770), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Cherry Stream G230 2.0 (G85-231) and 3.0 (G85-232) */ + { USB_DEVICE(0x046a, 0x0023), .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/dwc3/gadget.c +0 -5
@@ -1280,9 +1280,6 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)unsigned transfer_in_flight;unsigned started; -if (dep->flags &DWC3_EP_STALL ) -return 0 ; -if (dep->number >1 ) trb =dwc3_ep_prev_trb (dep, dep->trb_enqueue);else
@@ -1307,8 +1304,6 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol)else dep->flags |=DWC3_EP_STALL ; }else { -if (!(dep->flags &DWC3_EP_STALL )) -return 0 ; ret =dwc3_send_clear_stall_ep_cmd (dep);if (ret)
drivers/usb/storage/unusual_realtek.h +10 -0
@@ -39,4 +39,14 @@ UNUSUAL_DEV(0x0bda, 0x0159, 0x0000, 0x9999, "USB Card Reader", USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0), +UNUSUAL_DEV(0x0bda, 0x0177, 0x0000, 0x9999, + "Realtek", + "USB Card Reader", + USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0), + +UNUSUAL_DEV(0x0bda, 0x0184, 0x0000, 0x9999, + "Realtek", + "USB Card Reader", + USB_SC_DEVICE, USB_PR_DEVICE, init_realtek_cr, 0), +#endif /* defined(CONFIG_USB_STORAGE_REALTEK) || ... */
fs/btrfs/super.c +1 -0
@@ -2226,6 +2226,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd, vol =memdup_user ((void __user *)arg,sizeof (*vol));if (IS_ERR (vol))return PTR_ERR (vol); + vol->name[BTRFS_PATH_NAME_MAX ] ='\0' ;switch (cmd) {case BTRFS_IOC_SCAN_DEV :
fs/btrfs/transaction.c +3 -3
@@ -1924,6 +1924,9 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,return ret; } +btrfs_trans_release_metadata (trans, root); + trans->block_rsv =NULL ; +/* make a pass through all the delayed refs we have so far * any runnings procs may add more while we are here */
@@ -1933,9 +1936,6 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,return ret; } -btrfs_trans_release_metadata (trans, root); - trans->block_rsv =NULL ; - cur_trans = trans->transaction;/*
fs/direct-io.c +2 -2
@@ -278,8 +278,8 @@ static ssize_t dio_complete(struct dio *dio, ssize_t ret, bool is_async)*/ dio->iocb->ki_pos += transferred; -if (dio->op ==REQ_OP_WRITE ) - ret =generic_write_sync (dio->iocb, transferred); +if (ret >0 && dio->op ==REQ_OP_WRITE ) + ret =generic_write_sync (dio->iocb, ret); dio->iocb->ki_complete (dio->iocb, ret,0 ); }
fs/ext2/xattr.c +1 -1
@@ -609,9 +609,9 @@ bad_block: ext2_error(sb, "ext2_xattr_set", } cleanup: -brelse (bh);if (!(bh && header ==HDR (bh)))kfree (header); +brelse (bh);up_write (&EXT2_I (inode)->xattr_sem);return error;
include/linux/workqueue.h +2 -2
@@ -106,9 +106,9 @@ struct work_struct {#endif }; -#define WORK_DATA_INIT () ATOMIC_LONG_INIT(WORK_STRUCT_NO_POOL) +#define WORK_DATA_INIT () ATOMIC_LONG_INIT((unsigned long)WORK_STRUCT_NO_POOL)#define WORK_DATA_STATIC_INIT () \ - ATOMIC_LONG_INIT(WORK_STRUCT_NO_POOL | WORK_STRUCT_STATIC) + ATOMIC_LONG_INIT((unsigned long)(WORK_STRUCT_NO_POOL | WORK_STRUCT_STATIC))struct delayed_work {struct work_struct work;
mm/huge_memory.c +40 -39
175 lines not on this page · raw message
mm/khugepaged.c +73 -56
272 lines not on this page · raw message
mm/shmem.c +52 -45
190 lines not on this page · raw message
net/core/skbuff.c +4 -0
@@ -4421,6 +4421,10 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet)nf_reset (skb);nf_reset_trace (skb); +#ifdef CONFIG_NET_SWITCHDEV + skb->offload_fwd_mark =0 ; +#endif +if (!xnet)return ;
sound/core/control.c +45 -35
115 lines not on this page · raw message
sound/isa/wss/wss_lib.c +0 -2
@@ -1531,7 +1531,6 @@ static int snd_wss_playback_open(struct snd_pcm_substream *substream)if (err <0 ) {if (chip->release_dma) chip->release_dma (chip, chip->dma_private_data, chip->dma1); -snd_free_pages (runtime->dma_area, runtime->dma_bytes);return err; } chip->playback_substream = substream;
@@ -1572,7 +1571,6 @@ static int snd_wss_capture_open(struct snd_pcm_substream *substream)if (err <0 ) {if (chip->release_dma) chip->release_dma (chip, chip->dma_private_data, chip->dma2); -snd_free_pages (runtime->dma_area, runtime->dma_bytes);return err; } chip->capture_substream = substream;
sound/pci/ac97/ac97_codec.c +1 -1
@@ -824,7 +824,7 @@ static int snd_ac97_put_spsa(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_ {struct snd_ac97 *ac97 =snd_kcontrol_chip (kcontrol);int reg = kcontrol->private_value &0xff ; -int shift = (kcontrol->private_value >>8 ) &0xff ; +int shift = (kcontrol->private_value >>8 ) &0x0f ;int mask = (kcontrol->private_value >>16 ) &0xff ;// int invert = (kcontrol->private_value >> 24) & 0xff; unsigned short value, old, new;
sound/sparc/cs4231.c +2 -6
@@ -1146,10 +1146,8 @@ static int snd_cs4231_playback_open(struct snd_pcm_substream *substream) runtime->hw = snd_cs4231_playback; err =snd_cs4231_open (chip,CS4231_MODE_PLAY ); -if (err <0 ) { -snd_free_pages (runtime->dma_area, runtime->dma_bytes); +if (err <0 )return err; - } chip->playback_substream = substream; chip->p_periods_sent =0 ;snd_pcm_set_sync (substream);
@@ -1167,10 +1165,8 @@ static int snd_cs4231_capture_open(struct snd_pcm_substream *substream) runtime->hw = snd_cs4231_capture; err =snd_cs4231_open (chip,CS4231_MODE_RECORD ); -if (err <0 ) { -snd_free_pages (runtime->dma_area, runtime->dma_bytes); +if (err <0 )return err; - } chip->capture_substream = substream; chip->c_periods_sent =0 ;snd_pcm_set_sync (substream);