Linux 4.9.143
I'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 co
Linux 4.9.143
I'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 co
Re: Linux 4.9.143
diff --git a/Makefile b/Makefile index 72ed8ff90329..8ec52cd19526 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6be9ee148b78..e14ddca59d02 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -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 diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index d50430c40045..552c7d7f84ce 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -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. diff --git a/arch/arm/firmware/trusted_foundations.c b/arch/arm/firmware/trusted_foundations.c index 3fb1b5a1dce9..689e6565abfc 100644 ---
Re: Linux 4.9.143
diff --git a/Makefile b/Makefile index 72ed8ff90329..8ec52cd19526 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 6be9ee148b78..e14ddca59d02 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -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 diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index d50430c40045..552c7d7f84ce 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -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. diff --git a/arch/arm/firmware/trusted_foundations.c b/arch/arm/firmware/trusted_foundations.c index 3fb1b5a1dce9..689e6565abfc 100644 ---