Linux 4.9.170
Greg KH
maintainerI'm announcing the release of the 4.9.170 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 | 2 arch/arc/kernel/head.S | 1 arch/arc/kernel/setup.c | 8 arch/arm/crypto/sha256-armv4.pl | 3 arch/arm/crypto/sha256-core.S_shipped | 3 arch/arm/crypto/sha512-armv4.pl | 3 arch/arm/crypto/sha512-core.S_shipped | 3 arch/arm/kernel/patch.c | 6 arch/arm/plat-samsung/Kconfig | 2 arch/x86/kernel/cpu/cyrix.c | 14 arch/x86/kernel/hpet.c | 2 arch/x86/kernel/hw_breakpoint.c | 1 drivers/acpi/sbs.c | 8 drivers/char/tpm/tpm_crb.c | 22 drivers/gpio/gpio-pxa.c | 6 drivers/hid/i2c-hid/Makefile | 3 drivers/hid/i2c-hid/i2c-hid-core.c | 1359 ++++++++++++++++++++++ drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c | 376 ++++++ drivers/hid/i2c-hid/i2c-hid.c | 1339 --------------------- drivers/hid/i2c-hid/i2c-hid.h | 20 drivers/infiniband/hw/mlx4/alias_GUID.c | 2 drivers/iommu/dmar.c | 2 drivers/iommu/intel-iommu.c | 3 drivers/irqchip/irq-mbigen.c | 3 drivers/misc/lkdtm.h | 2 drivers/misc/lkdtm_core.c | 2 drivers/misc/lkdtm_perms.c | 18 drivers/mmc/host/davinci_mmc.c | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 10 drivers/net/wireless/rsi/rsi_common.h | 1 drivers/soc/tegra/pmc.c | 8 drivers/thermal/int340x_thermal/int3400_thermal.c | 21 drivers/tty/serial/xilinx_uartps.c | 2 fs/9p/v9fs.c | 21 fs/9p/v9fs.h | 1 fs/9p/vfs_dir.c | 8 fs/9p/vfs_file.c | 6 fs/cifs/inode.c | 67 - fs/cifs/smb2maperror.c | 3 fs/ext4/ioctl.c | 7 fs/ext4/resize.c | 17 fs/f2fs/super.c | 34 include/linux/atalk.h | 20 include/linux/swap.h | 4 kernel/events/core.c | 2 kernel/hung_task.c | 30 lib/div64.c | 4 net/9p/protocol.c | 3 net/appletalk/atalk_proc.c | 2 net/appletalk/ddp.c | 37 net/appletalk/sysctl_net_atalk.c | 5 sound/drivers/opl3/opl3_voice.h | 2 sound/isa/sb/sb8.c | 4 sound/pci/echoaudio/echoaudio.c | 5 tools/perf/Documentation/perf-config.txt | 2 tools/perf/builtin-top.c | 5 tools/perf/tests/evsel-tp-sched.c | 1 tools/perf/tests/openat-syscall-all-cpus.c | 4 tools/perf/util/build-id.c | 1 tools/perf/util/config.c | 3 tools/perf/util/evsel.c | 1 tools/perf/util/hist.c | 4 tools/perf/util/parse-events.c | 1 tools/power/x86/turbostat/turbostat.c | 3 64 files changed, 2112 insertions(+), 1452 deletions(-)
Aditya Pakki (1):
x86/hpet: Prevent potential NULL pointer dereference
Ard Biesheuvel (2):
crypto: sha256/arm - fix crash bug in Thumb2 build
crypto: sha512/arm - fix crash bug in Thumb2 build
Arnaldo Carvalho de Melo (1):
perf evsel: Free evsel->counts in perf_evsel__exit()
Arnd Bergmann (2):
mmc: davinci: remove extraneous __init annotation
appletalk: Fix compile regression
Bartlomiej Zolnierkiewicz (1):
ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms
Changbin Du (7):
perf config: Fix an error in the config template documentation
perf config: Fix a memory leak in collect_config()
perf build-id: Fix memory leak in print_sdt_events()
perf top: Fix error handling in cmd_top()
perf hist: Add missing map__put() in error case
perf tests: Fix a memory leak of cpu_map object in the openat_syscall_event_on_all_cpus test perf tests: Fix a memory leak in test__perf_evsel__tp_sched_test()
Chao Yu (1):
f2fs: fix to do sanity check with current segment number
Christophe Leroy (1):
lkdtm: Add tests for NULL pointer dereference
Colin Ian King (1):
ALSA: opl3: fix mismatch between snd_opl3_drum_switch definition and declaration
Darrick J. Wong (1):
ext4: prohibit fstrim in norecovery mode
David Arcari (1):
tools/power turbostat: return the exit status of a command
Dinu-Razvan Chis-Serban (1):
9p locks: add mount option for lock retry interval
Dmitry Osipenko (1):
soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()
Eugeniy Paltsev (1):
ARC: u-boot args: check that magic number is correct
Gertjan Halkes (1):
9p: do not trust pdu content for stat item size
Greg Kroah-Hartman (1):
Linux 4.9.170
Jack Morgenstein (1):
IB/mlx4: Fix race condition between catas error reset and aliasguid flows
Jarkko Sakkinen (1):
tpm/tpm_crb: Avoid unaligned reads in crb_recv()
Jianguo Chen (1):
irqchip/mbigen: Don't clear eventid when freeing an MSI
Julia Cartwright (1):
iommu/dmar: Fix buffer overflow during PCI bus notification
Julian Sax (1):
HID: i2c-hid: override HID descriptors for certain devices
Kangjie Lu (2):
ALSA: echoaudio: add a check for ioremap_nocache
ALSA: sb8: add a check for request_region
Lars Persson (1):
net: stmmac: Set dma ring length before enabling the DMA
Lu Baolu (1):
iommu/vt-d: Check capability before disabling protected memory
Lukas Czerner (2):
ext4: add missing brelse() in add_new_gdb_meta_bg()
ext4: report real fs size after failed resize
Matthew Garrett (2):
thermal/int340x_thermal: Add additional UUIDs
thermal/int340x_thermal: fix mode settingMatthew Whitehead (1):
x86/cpu/cyrix: Use correct macros for Cyrix calls on Geode processors
Michal Simek (1):
serial: uartps: console_setup() can't be placed to init section
Nathan Chancellor (1):
x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
Pi-Hsun Shih (1):
include/linux/swap.h: use offsetof() instead of custom __swapoffset macro
Robert Jarzmik (1):
gpio: pxa: handle corner case of unprobed device
Ronald Tschalär (1):
ACPI / SBS: Fix GPE storm on recent MacBookPro's
Siva Rebbagondla (1):
rsi: improve kernel thread handling to fix kernel panic
Stanislaw Gruszka (1):
lib/div64.c: off by one in shift
Stephane Eranian (1):
perf/core: Restore mmap record type correctly
Steve French (2):
fix incorrect error code mapping for OBJECTID_NOT_FOUND
cifs: fallback to older infolevels on findfirst queryinfo retry
Vitaly Kuznetsov (1):
kernel: hung_task.c: disable on suspend
Yang Shi (1):
ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
YueHaibing (1):
appletalk: Fix use-after-free in atalk_proc_exit
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 169 +SUBLEVEL = 170 EXTRAVERSION = NAME = Roaring Lionus
arch/arc/kernel/head.S +1 -0
@@ -107,6 +107,7 @@ ENTRY(stext) ; r2 = pointer to uboot provided cmdline or external DTB in mem ; These are handled later in handle_uboot_args() st r0, [@uboot_tag] + st r1, [@uboot_magic] st r2, [@uboot_arg] #endif
arch/arc/kernel/setup.c +8 -0
@@ -32,6 +32,7 @@ unsigned int intr_to_DE_cnt;/* Part of U-boot ABI: see head.S */ int __initdata uboot_tag; +int __initdata uboot_magic;char __initdata *uboot_arg;const struct machine_desc *machine_desc;
@@ -400,6 +401,8 @@ static inline bool uboot_arg_invalid(unsigned long addr)#define UBOOT_TAG_NONE 0#define UBOOT_TAG_CMDLINE 1#define UBOOT_TAG_DTB 2 +/* We always pass 0 as magic from U-boot */ +#define UBOOT_MAGIC_VALUE 0void __init handle_uboot_args (void ) {
@@ -415,6 +418,11 @@ void __init handle_uboot_args(void) goto ignore_uboot_args; } +if (uboot_magic !=UBOOT_MAGIC_VALUE ) { +pr_warn (IGNORE_ARGS "non zero uboot magic\n" ); + goto ignore_uboot_args; + } +if (uboot_tag !=UBOOT_TAG_NONE &&uboot_arg_invalid ((unsigned long )uboot_arg)) {pr_warn (IGNORE_ARGS "invalid uboot arg: '%px'\n" , uboot_arg);
arch/arm/crypto/sha256-armv4.pl +2 -1
@@ -205,10 +205,11 @@ K256: .global sha256_block_data_order .type sha256_block_data_order,%function sha256_block_data_order: +.Lsha256_block_data_order: #if __ARM_ARCH__<7 sub r3,pc,#8 @ sha256_block_data_order #else - adr r3,sha256_block_data_order + adr r3,.Lsha256_block_data_order #endif #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__) ldr r12,.LOPENSSL_armcap
arch/arm/crypto/sha256-core.S_shipped +2 -1
@@ -86,10 +86,11 @@ K256: .global sha256_block_data_order .type sha256_block_data_order,%function sha256_block_data_order: +.Lsha256_block_data_order: #if __ARM_ARCH__<7 sub r3,pc,#8 @ sha256_block_data_order #else - adr r3,sha256_block_data_order + adr r3,.Lsha256_block_data_order #endif #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__) ldr r12,.LOPENSSL_armcap
arch/arm/crypto/sha512-armv4.pl +2 -1
@@ -267,10 +267,11 @@ WORD64(0x5fcb6fab,0x3ad6faec, 0x6c44198c,0x4a475817) .global sha512_block_data_order .type sha512_block_data_order,%function sha512_block_data_order: +.Lsha512_block_data_order: #if __ARM_ARCH__<7 sub r3,pc,#8 @ sha512_block_data_order #else - adr r3,sha512_block_data_order + adr r3,.Lsha512_block_data_order #endif #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__) ldr r12,.LOPENSSL_armcap
arch/arm/crypto/sha512-core.S_shipped +2 -1
@@ -134,10 +134,11 @@ WORD64(0x5fcb6fab,0x3ad6faec, 0x6c44198c,0x4a475817) .global sha512_block_data_order .type sha512_block_data_order,%function sha512_block_data_order: +.Lsha512_block_data_order: #if __ARM_ARCH__<7 sub r3,pc,#8 @ sha512_block_data_order #else - adr r3,sha512_block_data_order + adr r3,.Lsha512_block_data_order #endif #if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__) ldr r12,.LOPENSSL_armcap
arch/arm/kernel/patch.c +3 -3
@@ -15,7 +15,7 @@ struct patch {unsigned int insn; }; -static DEFINE_SPINLOCK (patch_lock); +static DEFINE_RAW_SPINLOCK (patch_lock);static void __kprobes *patch_map (void *addr,int fixmap,unsigned long *flags) __acquires(&patch_lock)
@@ -32,7 +32,7 @@ static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)return addr;if (flags) -spin_lock_irqsave (&patch_lock, *flags); +raw_spin_lock_irqsave (&patch_lock, *flags);else __acquire (&patch_lock);
@@ -47,7 +47,7 @@ static void __kprobes patch_unmap(int fixmap, unsigned long *flags)clear_fixmap (fixmap);if (flags) -spin_unlock_irqrestore (&patch_lock, *flags); +raw_spin_unlock_irqrestore (&patch_lock, *flags);else __release (&patch_lock); }
arch/arm/plat-samsung/Kconfig +1 -1
@@ -258,7 +258,7 @@ config S3C_PM_DEBUG_LED_SMDK config SAMSUNG_PM_CHECK bool "S3C2410 PM Suspend Memory CRC" - depends on PM + depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210) select CRC32 help Enable the PM code's memory area checksum over sleep. This option
arch/x86/kernel/cpu/cyrix.c +7 -7
@@ -121,7 +121,7 @@ static void set_cx86_reorder(void)setCx86 (CX86_CCR3 , (ccr3 &0x0f ) |0x10 );/* enable MAPEN */ /* Load/Store Serialize to mem access disable (=reorder it) */ -setCx86_old (CX86_PCR0 ,getCx86_old (CX86_PCR0 ) & ~0x80 ); +setCx86 (CX86_PCR0 ,getCx86 (CX86_PCR0 ) & ~0x80 );/* set load/store serialize from 1GB to 4GB */ ccr3 |=0xe0 ;setCx86 (CX86_CCR3 , ccr3);
@@ -132,11 +132,11 @@ static void set_cx86_memwb(void)pr_info ("Enable Memory-Write-back mode on Cyrix/NSC processor.\n" );/* CCR2 bit 2: unlock NW bit */ -setCx86_old (CX86_CCR2 ,getCx86_old (CX86_CCR2 ) & ~0x04 ); +setCx86 (CX86_CCR2 ,getCx86 (CX86_CCR2 ) & ~0x04 );/* set 'Not Write-through' */ write_cr0 (read_cr0 () |X86_CR0_NW );/* CCR2 bit 2: lock NW bit and set WT1 */ -setCx86_old (CX86_CCR2 ,getCx86_old (CX86_CCR2 ) |0x14 ); +setCx86 (CX86_CCR2 ,getCx86 (CX86_CCR2 ) |0x14 ); }/*
@@ -150,14 +150,14 @@ static void geode_configure(void)local_irq_save (flags);/* Suspend on halt power saving and enable #SUSP pin */ -setCx86_old (CX86_CCR2 ,getCx86_old (CX86_CCR2 ) |0x88 ); +setCx86 (CX86_CCR2 ,getCx86 (CX86_CCR2 ) |0x88 ); ccr3 =getCx86 (CX86_CCR3 );setCx86 (CX86_CCR3 , (ccr3 &0x0f ) |0x10 );/* enable MAPEN */ /* FPU fast, DTE cache, Mem bypass */ -setCx86_old (CX86_CCR4 ,getCx86_old (CX86_CCR4 ) |0x38 ); +setCx86 (CX86_CCR4 ,getCx86 (CX86_CCR4 ) |0x38 );setCx86 (CX86_CCR3 , ccr3);/* disable MAPEN */ set_cx86_memwb ();
@@ -293,7 +293,7 @@ static void init_cyrix(struct cpuinfo_x86 *c)/* GXm supports extended cpuid levels 'ala' AMD */ if (c->cpuid_level ==2 ) {/* Enable cxMMX extensions (GX1 Datasheet 54) */ -setCx86_old (CX86_CCR7 ,getCx86_old (CX86_CCR7 ) |1 ); +setCx86 (CX86_CCR7 ,getCx86 (CX86_CCR7 ) |1 );/* * GXm : 0x30 ... 0x5f GXm datasheet 51
@@ -316,7 +316,7 @@ static void init_cyrix(struct cpuinfo_x86 *c)if (dir1 >7 ) { dir0_msn++;/* M II */ /* Enable MMX extensions (App note 108) */ -setCx86_old (CX86_CCR7 ,getCx86_old (CX86_CCR7 )|1 ); +setCx86 (CX86_CCR7 ,getCx86 (CX86_CCR7 )|1 ); }else {/* A 6x86MX - it has the bug. */ set_cpu_bug (c,X86_BUG_COMA );
arch/x86/kernel/hpet.c +2 -0
@@ -914,6 +914,8 @@ int __init hpet_enable(void)return 0 ;hpet_set_mapping (); +if (!hpet_virt_address) +return 0 ;/* * Read the period and check for a sane value:
arch/x86/kernel/hw_breakpoint.c +1 -0
@@ -352,6 +352,7 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)#endif default :WARN_ON_ONCE (1 ); +return -EINVAL ; }/*
drivers/acpi/sbs.c +6 -2
@@ -443,9 +443,13 @@ static int acpi_ac_get_present(struct acpi_sbs *sbs)/* * The spec requires that bit 4 always be 1. If it's not set, assume -* that the implementation doesn't support an SBS charger +* that the implementation doesn't support an SBS charger. +* +* And on some MacBooks a status of 0xffff is always returned, no +* matter whether the charger is plugged in or not, which is also +* wrong, so ignore the SBS charger for those too. */ -if (!((status >>4 ) &0x1 )) +if (!((status >>4 ) &0x1 ) || status ==0xffff )return -ENODEV ; sbs->charger_present = (status >>15 ) &0x1 ;
drivers/char/tpm/tpm_crb.c +16 -6
@@ -102,19 +102,29 @@ static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count)struct crb_priv *priv =dev_get_drvdata (&chip->dev);unsigned int expected; -/* sanity check */ -if (count <6 ) +/* A sanity check that the upper layer wants to get at least the header +* as that is the minimum size for any TPM response. +*/ +if (count <TPM_HEADER_SIZE )return -EIO ; +/* If this bit is set, according to the spec, the TPM is in +* unrecoverable condition. +*/ if (ioread32 (&priv->cca->sts) &CRB_CTRL_STS_ERROR )return -EIO ; -memcpy_fromio (buf, priv->rsp,6 ); - expected =be32_to_cpup ((__be32 *) &buf[2 ]); -if (expected > count || expected <6 ) +/* Read the first 8 bytes in order to get the length of the response. +* We read exactly a quad word in order to make sure that the remaining +* reads will be aligned. +*/ +memcpy_fromio (buf, priv->rsp,8 ); + + expected =be32_to_cpup ((__be32 *)&buf[2 ]); +if (expected > count || expected <TPM_HEADER_SIZE )return -EIO ; -memcpy_fromio (&buf[6 ], &priv->rsp[6 ], expected -6 ); +memcpy_fromio (&buf[8 ], &priv->rsp[8 ], expected -8 );return expected; }
drivers/gpio/gpio-pxa.c +6 -0
@@ -774,6 +774,9 @@ static int pxa_gpio_suspend(void)struct pxa_gpio_bank *c;int gpio; +if (!pchip) +return 0 ; +for_each_gpio_bank (gpio, c, pchip) { c->saved_gplr =readl_relaxed (c->regbase +GPLR_OFFSET ); c->saved_gpdr =readl_relaxed (c->regbase +GPDR_OFFSET );
@@ -792,6 +795,9 @@ static void pxa_gpio_resume(void)struct pxa_gpio_bank *c;int gpio; +if (!pchip) +return ; +for_each_gpio_bank (gpio, c, pchip) {/* restore level with set/clear */ writel_relaxed (c->saved_gplr, c->regbase +GPSR_OFFSET );
drivers/hid/i2c-hid/Makefile +3 -0
@@ -3,3 +3,6 @@ # obj-$(CONFIG_I2C_HID) += i2c-hid.o + +i2c-hid-objs = i2c-hid-core.o +i2c-hid-$(CONFIG_DMI) += i2c-hid-dmi-quirks.o
drivers/hid/i2c-hid/i2c-hid-core.c new file +1359 -0
1,359 lines not on this page · raw message
drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c new file +376 -0
376 lines not on this page · raw message
drivers/hid/i2c-hid/i2c-hid.c deleted +0 -1339
1,003 lines not on this page · raw message
drivers/hid/i2c-hid/i2c-hid.h new file +20 -0
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/mlx4/alias_GUID.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/thermal/int340x_thermal/int3400_thermal.c +17 -4
Lines of this file are not shown. View the raw message.
fs/cifs/inode.c +37 -30
67 lines not on this page · raw message
tools/perf/Documentation/perf-config.txt +1 -1
Lines of this file are not shown. View the raw message.
tools/perf/tests/openat-syscall-all-cpus.c +3 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.