Re: [PATCH v3 2/3] staging: mt7621-mmc: Initialize completions a single time during probe

2019-03-22 Thread Greg Kroah-Hartman
On Wed, Mar 20, 2019 at 04:42:04PM -0600, George Hilliard wrote: > The module was initializing completions whenever it was going to wait on > them, and not when the completion was allocated. This is incorrect > according to the completion docs: > > Calling init_completion() on the same comple

Re: [PATCH -next] mmc: sdhci-omap: Make sdhci_omap_reset static

2019-03-22 Thread Faiz Abbas
Hi, On 22/03/19 7:41 PM, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/mmc/host/sdhci-omap.c:788:6: warning: > symbol 'sdhci_omap_reset' was not declared. Should it be static? > > Signed-off-by: YueHaibing Reviewed-by: Faiz Abbas Thanks, Faiz

[PATCH] rxrpc: avoid clang -Wuninitialized warning

2019-03-22 Thread Arnd Bergmann
clang produces a false-positive warning as it fails to notice that "lost = true" implies that "ret" is initialized: net/rxrpc/output.c:402:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] if (lost) ^~~~ net/rxrp

[PATCH] jfs: fix bogus variable self-initialization

2019-03-22 Thread Arnd Bergmann
A statement was originally added in 2006 to shut up a gcc warning, now but now clang warns about it: fs/jfs/jfs_txnmgr.c:1932:15: error: variable 'pxd' is uninitialized when used within its own initialization [-Werror,-Wuninitialized] pxd_t pxd = pxd;/* truncated ext

Re: [PATCH v2] staging: ralink-gdma: Change uint32_t to u32

2019-03-22 Thread Greg KH
On Fri, Mar 22, 2019 at 06:35:07PM +0530, Bharath Vedartham wrote: > Change occurences of uint32_t to u32 to fix checkpatch.pl warnings. > > Signed-off-by: Bharath Vedartham > --- > Changes since v1: > - Improved changelog. I have 3 "v2" patches from you :( I have no idea which one is the

Re: [PATCH] staging: olpc_dcon: Add Tabs to define-Macros

2019-03-22 Thread Greg Kroah-Hartman
On Fri, Mar 22, 2019 at 10:52:43AM +0100, Emanuel Bennici wrote: > Improve Code Readability by adding Tabs after #define-Macro > definition. > > Signed-off-by: Emanuel Bennici > --- > drivers/staging/olpc_dcon/olpc_dcon.h| 24 ++-- > drivers/staging/olpc_dcon/olpc_dcon_xo

[PATCH -next] mmc: sdhci-omap: Make sdhci_omap_reset static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/mmc/host/sdhci-omap.c:788:6: warning: symbol 'sdhci_omap_reset' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/mmc/host/sdhci-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host

[PATCH] selinux: avoid uninitialized variable warning

2019-03-22 Thread Arnd Bergmann
clang correctly points out a code path that would lead to an uninitialized variable use: security/selinux/netlabel.c:310:6: error: variable 'addr' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (ip_hdr(skb)->version == 4) {

[PATCH -next] mfd: stpmic1: Make stpmic1_regmap_config static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/mfd/stpmic1.c:62:28: warning: symbol 'stpmic1_regmap_config' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/mfd/stpmic1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stpmic1.c b/dri

[PATCH] iio: ssp_sensors: avoid uninitialized variable usage

2019-03-22 Thread Arnd Bergmann
clang points out that 'calculated_time' is only sometimes initialized here, which leads to incorrect data being passed into another function: drivers/iio/common/ssp_sensors/ssp_iio.c:95:6: error: variable 'calculated_time' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometim

[PATCH] iio: stmpe-adc: avoid harmless clang warning

2019-03-22 Thread Arnd Bergmann
Clang points out a control flow bug, which happens to be harmless: drivers/iio/adc/stmpe-adc.c:204:13: error: variable 'data' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] The warning is sensible here, so let's just avoid the case by adding appropria

Re: [PATCH] tools/perf,tools/lib/traceevent: Make traceevent APIs more consistent

2019-03-22 Thread Steven Rostedt
On Fri, 22 Mar 2019 15:08:16 +0200 Tzvetomir Stoyanov wrote: > Rename few traceevent APIs, in order to make it more consistent: > tep_pid_is_registered(), tep_file_bigendian(), > tep_is_latency_format(), tep_get_header_page_ts_size(), > tep_set_host_bigendian(), tep_is_host_bigendian() and > tep_

[PATCH] ceph: fix clang warning for CEPH_DEFINE_OID_ONSTACK

2019-03-22 Thread Arnd Bergmann
clang complains about assigning a variable to itself during the declaration: fs/ceph/ioctl.c:187:26: error: variable 'oid' is uninitialized when used within its own initialization [-Werror,-Wuninitialized] CEPH_DEFINE_OID_ONSTACK(oid); ^~~ include/linux/cep

[PATCH] ALSA: hda/ca0132: work around clang -Wuninitialized warning

2019-03-22 Thread Arnd Bergmann
When CONFIG_PCI is disabled, clang gets confused about the control flow of the switch() statement always ending up in the default case, and warns: sound/pci/hda/patch_ca0132.c:7558:6: error: variable 'fw_entry' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-unin

[PATCH] nfsd: avoid uninitialized variable warning

2019-03-22 Thread Arnd Bergmann
clang warns that 'contextlen' may be accessed without an initialization: fs/nfsd/nfs4xdr.c:2911:9: error: variable 'contextlen' is uninitialized when used here [-Werror,-Wuninitialized] contextlen);

[PATCH] bitrev: fix constant bitrev

2019-03-22 Thread Arnd Bergmann
clang points out with hundreds of warnings that the bitrev macros have a problem with constant input: drivers/hwmon/sht15.c:187:11: error: variable '__x' is uninitialized when used within its own initialization [-Werror,-Wuninitialized] u8 crc = bitrev8(data->val_status & 0x0F);

[PATCH -next] selinux: Make selinux_kernfs_init_security static

2019-03-22 Thread Yue Haibing
From: YueHaibing Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing --- security/selinux/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/

[PATCH] EDAC, {skx|i10nm}_edac: Fix randconfig build error

2019-03-22 Thread Arnd Bergmann
Configurations with CONFIG_EDAC_SKX and CONFIG_EDAC_I10NM both enabled, but only one of them built-in and the other being a loadable module fail to link because the common file is built the wrong way: skx_common.c:672: undefined reference to `__this_module' This overrides the way the modules are

Re: [PATCH] EDAC, {skx|i10nm}_edac: Fix randconfig build error

2019-03-22 Thread Arnd Bergmann
On Fri, Mar 15, 2019 at 10:28 PM Luck, Tony wrote: > > > Basically I cheat Kconfig, so if one driver is built-in and > > the other is a loadable module, we compile both as built-in. > > My mail client may have munged that path. Both "git am" and "patch -p1" > barf when I try to apply it. Since it

Re: [PATCH 01/17] kbuild: Disable -Waddress-of-packed-member for gcc 9

2019-03-22 Thread Arnd Bergmann
On Thu, Mar 21, 2019 at 11:00 PM Andi Kleen wrote: > > From: Andi Kleen > > This warning is very noisy in a default build with gcc 9. > Move it into W=2 only. > > Cc: a...@arndb.de > Cc: Masahiro Yamada > Signed-off-by: Andi Kleen I think W=2 is too aggressive. On many architectures, this find

[PATCH] ARM: remove unused

2019-03-22 Thread Masahiro Yamada
No one includes this. Signed-off-by: Masahiro Yamada --- arch/arm/include/asm/limits.h | 12 1 file changed, 12 deletions(-) delete mode 100644 arch/arm/include/asm/limits.h diff --git a/arch/arm/include/asm/limits.h b/arch/arm/include/asm/limits.h deleted file mode 100644 index

Re: [PATCH] csky: remove redundant generic-y

2019-03-22 Thread Masahiro Yamada
On Fri, Mar 22, 2019 at 8:51 PM Guo Ren wrote: > > Thx Masahiro, > > Approved and I'll add it into my tree. Thanks. BTW, I sent another patch some time ago, which has not been picked up. https://lore.kernel.org/patchwork/patch/1038349/ -- Best Regards Masahiro Yamada

[RFC PATCH] iio: core: fix a possible circular locking dependency

2019-03-22 Thread Fabrice Gasnier
This fixes a possible circular locking dependency detected warning seen with: - CONFIG_PROVE_LOCKING=y - consumer/provider IIO devices (ex: "voltage-divider" consumer of "adc") When using the IIO consumer interface, e.g. iio_channel_get(), the consumer device will likely call iio_read_channel_raw(

[PATCH] Documentation: acpi: Add an example for PRP0001

2019-03-22 Thread Thomas Preston
Add an example for the magic PRP0001 device ID which allows matching ACPI devices against drivers using OF Device Tree compatible property. It wasn't clear to me that PRP0001 could be used in _CID. Signed-off-by: Thomas Preston --- Documentation/acpi/enumeration.txt | 27

Re: [PATCH 3.16 00/16] 3.16.64-rc1 review

2019-03-22 Thread Guenter Roeck
On 3/21/19 10:20 PM, Ben Hutchings wrote: This is the start of the stable review cycle for the 3.16.64 release. There are 16 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by

Re: [PATCH] phy: qcom: qmp: Add SDM845 PCIe QMP PHY support

2019-03-22 Thread Marc Gonzalez
On 26/02/2019 07:59, Bjorn Andersson wrote: > @@ -1384,6 +1536,11 @@ static int qcom_qmp_phy_init(struct phy *phy) > > qcom_qmp_phy_configure(pcs, cfg->regs, cfg->pcs_tbl, cfg->pcs_tbl_num); > > + if (cfg->pcs_misc_tbl) { > + qcom_qmp_phy_configure(pcs_misc, cfg->regs, cf

Re: [PATCH v3] rcu: Allow to eliminate softirq processing from rcutree

2019-03-22 Thread Joel Fernandes
On Thu, Mar 21, 2019 at 04:32:44PM -0700, Paul E. McKenney wrote: > On Wed, Mar 20, 2019 at 04:46:01PM -0700, Paul E. McKenney wrote: > > On Wed, Mar 20, 2019 at 10:13:33PM +0100, Sebastian Andrzej Siewior wrote: > > > Running RCU out of softirq is a problem for some workloads that would > > > like

[tip:timers/core] softirq: Remove tasklet_hrtimer

2019-03-22 Thread tip-bot for Thomas Gleixner
Commit-ID: d7dcf26ff0ffd7b56fe2b09ed7f1867589f3cdf1 Gitweb: https://git.kernel.org/tip/d7dcf26ff0ffd7b56fe2b09ed7f1867589f3cdf1 Author: Thomas Gleixner AuthorDate: Fri, 1 Mar 2019 23:48:21 +0100 Committer: Thomas Gleixner CommitDate: Fri, 22 Mar 2019 14:36:02 +0100 softirq: Remove task

[tip:timers/core] xfrm: Replace hrtimer tasklet with softirq hrtimer

2019-03-22 Thread tip-bot for Thomas Gleixner
Commit-ID: 671422b2205b5f2c49948b686306b207a5975dd9 Gitweb: https://git.kernel.org/tip/671422b2205b5f2c49948b686306b207a5975dd9 Author: Thomas Gleixner AuthorDate: Fri, 1 Mar 2019 23:48:20 +0100 Committer: Thomas Gleixner CommitDate: Fri, 22 Mar 2019 14:35:31 +0100 xfrm: Replace hrtime

[tip:timers/core] mac80211_hwsim: Replace hrtimer tasklet with softirq hrtimer

2019-03-22 Thread tip-bot for Thomas Gleixner
Commit-ID: 77dcc6233e0def71e104d728ab5a39c2fca51127 Gitweb: https://git.kernel.org/tip/77dcc6233e0def71e104d728ab5a39c2fca51127 Author: Thomas Gleixner AuthorDate: Fri, 1 Mar 2019 23:48:19 +0100 Committer: Thomas Gleixner CommitDate: Fri, 22 Mar 2019 14:35:30 +0100 mac80211_hwsim: Repl

Re: [PATCH] RISC-V: Fix FIXMAP_TOP to avoid overlap with VMALLOC area

2019-03-22 Thread Anup Patel
On Fri, Mar 22, 2019 at 6:55 PM Christoph Hellwig wrote: > > Looks good, > > Reviewed-by: Christoph Hellwig > > Btw, what is the 32-bit test vehicle of choice? qemu with the > virt machine? Yes, for now QEMU seems to be only the option. I am not aware of any board we can purchase for RV32. Re

Re: [RFC][PATCH 03/16] sched: Wrap rq::lock access

2019-03-22 Thread Peter Zijlstra
On Thu, Mar 21, 2019 at 05:20:17PM -0400, Julien Desfossez wrote: > On further investigation, we could see that the contention is mostly in the > way rq locks are taken. With this patchset, we lock the whole core if > cpu.tag is set for at least one cgroup. Due to this, __schedule() is more or > le

Re: [PATCH] riscv: fix accessing 8-byte variable from RV32

2019-03-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v2 4/5] RISC-V: Remove redundant trampoline page table

2019-03-22 Thread Christoph Hellwig
> > - /* Compute satp for kernel page tables, but don't load it yet */ > + /* Compute satp for kernel page directory, but don't load it yet */ > /* > - * Load trampoline page directory, which will cause us to trap to > + * Load kernel page directory, which will cause us

Re: [PATCH v2 5/5] RISC-V: Fix memory reservation in setup_bootmem()

2019-03-22 Thread Christoph Hellwig
Looks good. Please move it to the front of the series. Reviewed-by: Christoph Hellwig

[PATCH v2 0/4] ARM: da850: enable cpufreq in DT mode

2019-03-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This series adds cpufreq-dt operating points for da850 boards supported with device tree (da850-lcdk, da850-lego-ev3, da850-evm) and also includes a fix for the da850-evm boardfile which checks an unset variable to determine the highest available frequency for cpufreq.

[PATCH v2 3/4] ARM: dts: da850-evm: enable cpufreq

2019-03-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Enable cpufreq-dt support for da850-evm. The cvdd is supplied by the tps6507 pmic with configurable output voltage, so all operating points can be enabled. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-evm.dts | 12 1 file changed, 12 ins

[PATCH v2 2/4] ARM: dts: da850: add cpu node and operating points to DT

2019-03-22 Thread Bartosz Golaszewski
From: David Lechner This adds a cpu node and operating points to the common da850.dtsi file. Additionally, a regulator is added to the LEGO EV3 board along with some board-specific CPU configuration. Regulators need to be hooked up on other boards to get them working. Signed-off-by: David Lech

[PATCH v2 4/4] ARM: davinci_all_defconfig: Enable CPUFREQ_DT

2019-03-22 Thread Bartosz Golaszewski
From: David Lechner This sets CONFIG_CPUFREQ_DT=m in davinci_all_defconfig. This is used for frequency scaling on device tree boards. Signed-off-by: David Lechner Signed-off-by: Bartosz Golaszewski --- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH v2 1/4] ARM: davinci: fix cpufreq registration on da850-evm

2019-03-22 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The system_rev variable is never set on davinci and is always 0, so we're using the default max operating point of 300MHz. The cvdd supply comes from the tps6507 pmic and the voltage can go all the way to 1.3V so the maximum supported rate should be 456MHz. Signed-off-b

Re: [PATCH] irqchip: plic: Fix priority base offset

2019-03-22 Thread Christoph Hellwig
On Wed, Mar 20, 2019 at 05:04:58PM -0700, Alistair Francis wrote: > > Well, it starts at 0x00, but the first one is reserved. If you think > > that is too confusing I'd rather throw in a comment explaining this > > fact rather than making the calculating more complicated. > > It doesn't mention t

Re: [PATCH] RISC-V: Fix FIXMAP_TOP to avoid overlap with VMALLOC area

2019-03-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig Btw, what is the 32-bit test vehicle of choice? qemu with the virt machine?

Re: [PATCH 4/4] riscv: Make mmap allocation top-down by default

2019-03-22 Thread Christoph Hellwig
> +config HAVE_ARCH_MMAP_RND_BITS > + def_bool y This already is defined in arch/Kconfig, no need to duplicate it here, just add a select statement.

[tip:x86/urgent] x86/mm/pti: Make local symbols static

2019-03-22 Thread tip-bot for Valdis Kletnieks
Commit-ID: 4fe64a62e04cfb2dc1daab0d8f05d212aa014161 Gitweb: https://git.kernel.org/tip/4fe64a62e04cfb2dc1daab0d8f05d212aa014161 Author: Valdis Kletnieks AuthorDate: Tue, 12 Mar 2019 03:47:53 -0400 Committer: Thomas Gleixner CommitDate: Fri, 22 Mar 2019 13:31:28 +0100 x86/mm/pti: Make l

Re: [PATCH 1/4] arm64, mm: Move generic mmap layout functions to mm

2019-03-22 Thread Christoph Hellwig
> It then introduces a new define ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT > that can be defined by other architectures to benefit from those functions. Can you make this a Kconfig option defined in arch/Kconfig or mm/Kconfig and selected by the architectures? > -#ifndef STACK_RND_MASK > -#define ST

[PATCH 3.18 007/134] mfd: ab8500-core: Return zero in get_register_interruptible()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 10628e3ecf544fa2e4e24f8e112d95c37884dc98 ] This function is supposed to return zero on success or negative error codes on error. Unfortunately, there is a bug so it sometimes return

[PATCH 3.18 029/134] ALSA: compress: prevent potential divide by zero bugs

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 678e2b44c8e3fec3afc7202f1996a4500a50be93 ] The problem is seen in the q6asm_dai_compr_set_params() function: ret = q6asm_map_memory_regions(dir, prtd->audio_client, prtd->ph

Re: [PATCH net-next v9 01/19] asm: simd context helper API

2019-03-22 Thread Thomas Gleixner
Jason, On Fri, 22 Mar 2019, Jason A. Donenfeld wrote: > index ..264ed84b41d8 > --- /dev/null > +++ b/arch/arm/include/asm/simd.h > @@ -0,0 +1,63 @@ > +/* SPDX-License-Identifier: GPL-2.0 The SPDX identifier has to be in a separate comment line. /* SPDX-License-Identifier: GPL-2.0 */

[PATCH 3.18 050/134] net: phy: Micrel KSZ8061: link failure after cable connect

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Rajasingh Thavamani [ Upstream commit 232ba3a51cc224b339c7114888ed7f0d4d95695e ] With Micrel KSZ8061 PHY, the link may occasionally not come up after Ethernet cable connect. The vendor's (Micr

[PATCH 3.18 025/134] libceph: handle an empty authorize reply

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 0fd3fd0a9bb0b02b6435bb7070e9f7b82a23f068 upstream. The authorize reply can be empty, for example when the ticket used to build the authorizer is too old and TAG_BADAUTHORIZ

[PATCH 3.18 023/134] sit: check if IPv6 enabled before calling ip6_err_gen_icmpv6_unreach()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 173656accaf583698bac3f9e269884ba60d51ef4 ] If we disabled IPv6 from the kernel command line (ipv6.disable=1), we should not call ip6_err_gen_icmpv6_unreach(). Thi

[PATCH 3.18 043/134] USB: serial: cp210x: add ID for Ingenico 3070

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ivan Mironov commit dd9d3d86b08d6a106830364879c42c78db85389c upstream. Here is how this device appears in kernel log: usb 3-1: new full-speed USB device number 18 using xhci_hcd

[PATCH 3.18 041/134] mmc: spi: Fix card detection during probe

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jonathan Neuschäfer commit c9bd505dbd9d3dc80c496f88eafe70affdcf1ba6 upstream. When using the mmc_spi driver with a card-detect pin, I noticed that the card was not detected immediately after p

[PATCH 3.18 045/134] sky2: Disable MSI on Dell Inspiron 1545 and Gateway P-79

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng [ Upstream commit b33b7cd6fd86478dd2890a9abeb6f036aa01fdf7 ] Some sky2 chips fire IRQ after S3, before the driver is fully resumed: [ 686.804877] do_IRQ: 1.37 No irq handler for

[PATCH 3.18 040/134] KVM: nSVM: clear events pending from svm_complete_interrupts() when exiting to L1

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 619ad846fc3452adaf71ca246c5aa711e2055398 ] kvm-unit-tests' eventinj "NMI failing on IDT" test results in NMI being delivered to the host (L1) when it's running nested. The problem se

[PATCH 3.18 056/134] perf tools: Handle TOPOLOGY headers with no CPU

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 1497e804d1a6e2bd9107ddf64b0310449f4673eb ] This patch fixes an issue in cpumap.c when used with the TOPOLOGY header. In some configurations, some NUMA nodes may have no CPU (empty cp

[tip:x86/timers] x86/tsc: Add option to disable tsc clocksource watchdog

2019-03-22 Thread tip-bot for Juri Lelli
Commit-ID: 0f0b7e1cc7abf8e1a8b301f2868379d611d05ae2 Gitweb: https://git.kernel.org/tip/0f0b7e1cc7abf8e1a8b301f2868379d611d05ae2 Author: Juri Lelli AuthorDate: Thu, 7 Mar 2019 13:09:13 +0100 Committer: Thomas Gleixner CommitDate: Fri, 22 Mar 2019 14:14:58 +0100 x86/tsc: Add option to di

[PATCH 3.18 060/134] xtensa: smp_lx200_defconfig: fix vectors clash

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 306b38305c0f86de7f17c5b091a95451dcc93d7d ] Secondary CPU reset vector overlaps part of the double exception handler code, resulting in weird crashes and hangups when running user cod

[PATCH 3.18 075/134] s390/qeth: fix use-after-free in error path

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit afa0c5904ba16d59b0454f7ee4c807dae350f432 ] The error path in qeth_alloc_qdio_buffers() that takes care of cleaning up the Output Queues is buggy. It first frees the queue, but then c

[PATCH 3.18 070/134] autofs: drop dentry reference only when it is never used

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 63ce5f552beb9bdb41546b3a26c4374758b21815 ] autofs_expire_run() calls dput(dentry) to drop the reference count of dentry. However, dentry is read via autofs_dentry_ino(dentry) after

[PATCH 3.18 038/134] mac80211: dont initiate TDLS connection if station is not associated to AP

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7ed5285396c257fd4070b1e29e7b2341aae2a1ce ] Following call trace is observed while adding TDLS peer entry in driver during TDLS setup. Call Trace: [] dump_stack+0x47/0x61 [] __warn+0

[PATCH 3.18 057/134] ipvs: Fix signed integer overflow when setsockopt timeout

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 53ab60baa1ac4f20b080a22c13b77b6373922fd7 ] There is a UBSAN bug report as below: UBSAN: Undefined behaviour in net/netfilter/ipvs/ip_vs_ctl.c:2227:21 signed integer overflow: -214748

[PATCH 3.18 061/134] xtensa: SMP: mark each possible CPU as present

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25 ] Otherwise it is impossible to enable CPUs after booting with 'maxcpus' parameter. Signed-off-by: Max Filippov Signed-off-by: Sasha Levin

[PATCH 3.18 097/134] crypto: ahash - fix another early termination in hash walk

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 77568e535af7c4f97eaef1e555bf0af83772456c upstream. Hash algorithms with an alignmask set, e.g. "xcbc(aes-aesni)" and "michael_mic", fail the improved hash tests because the

[PATCH 3.18 104/134] net: systemport: Fix reception of BPDUs

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a40061ea2e39494104602b3048751341bda374a1 ] SYSTEMPORT has its RXCHK parser block that attempts to validate the packet structures, unfortunately setting the L2 header check bit will c

[PATCH 3.18 083/134] net/x25: reset state in x25_connect()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit ee74d0bd4325efb41e38affe5955f920ed973f23 ] In case x25_connect() fails and frees the socket neighbour, we also need to undo the change done to x25->state. Befor

[PATCH 3.18 088/134] net: Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kalash Nainwal [ Upstream commit 97f0082a0592212fc15d4680f5a4d80f79a1687c ] Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 to keep legacy software happy. This is similar to what wa

[PATCH 3.18 113/134] scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 32e36bfbcf31452a854263e7c7f32fbefc4b44d8 upstream. When using SCSI passthrough in combination with the iSCSI target driver then cmd->t_state_lock may be obtained from in

[PATCH 3.18 091/134] net/hsr: fix possible crash in add_timer()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 1e027960edfaa6a43f9ca31081729b716598112b ] syzbot found another add_timer() issue, this time in net/hsr [1] Let's use mod_timer() which is safe. [1] kernel BUG

[PATCH] staging: rtl8188eu: remove unnecessary parentheses

2019-03-22 Thread Michael Straube
Remove unnecessary parentheses in rtl8188eu_xmit.c. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c b/drivers/s

[PATCH 3.18 114/134] m68k: Add -ffreestanding to CFLAGS

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Finn Thain commit 28713169d879b67be2ef2f84dcf54905de238294 upstream. This patch fixes a build failure when using GCC 8.1: /usr/bin/ld: block/partitions/ldm.o: in function `ldm_parse_tocblock'

[PATCH 3.18 115/134] Btrfs: fix corruption reading shared and compressed extents after hole punching

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit 8e928218780e2f1cf2f5891c7575e8f0b284fcce upstream. In the past we had data corruption when reading compressed extents that are shared within the same file and they are con

[PATCH 3.18 112/134] scsi: virtio_scsi: dont send sc payload with tmfs

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Felipe Franciosi commit 3722e6a52174d7c3a00e6f5efd006ca093f346c1 upstream. The virtio scsi spec defines struct virtio_scsi_ctrl_tmf as a set of device-readable records and a single device-writ

[PATCH 3.18 120/134] mm/vmalloc: fix size check for remap_vmalloc_range_partial()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Roman Penyaev commit 401592d2e095947344e10ec0623adbcd58934dd4 upstream. When VM_NO_GUARD is not set area->size includes adjacent guard page, thus for correct size checking get_vm_area_size() s

[PATCH 4.4 002/230] numa: change get_mempolicy() to use nr_node_ids instead of MAX_NUMNODES

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ralph Campbell commit 050c17f239fd53adb55aa768d4f41bc76c0fe045 upstream. The system call, get_mempolicy() [1], passes an unsigned long *nodemask pointer and an unsigned long maxnode argument wh

[PATCH 4.4 015/230] MIPS: jazz: fix 64bit build

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 41af167fbc0032f9d7562854f58114eaa9270336 ] 64bit JAZZ builds failed with linux-next/arch/mips/jazz/jazzdma.c: In function `vdma_init`: /linux-next/arch/mips/jazz/jazzdma.c:77:30:

[PATCH 4.4 017/230] atm: he: fix sign-extension overflow on large shift

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit cb12d72b27a6f41325ae23a11033cf5fedfa1b97 ] Shifting the 1 by exp by an int can lead to sign-extension overlow when exp is 31 since 1 is an signed int and sign-extending this result to

[PATCH 4.4 014/230] scsi: isci: initialize shost fully before calling scsi_add_host()

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit cc29a1b0a3f2597ce887d339222fa85b9307706d ] scsi_mq_setup_tags(), which is called by scsi_add_host(), calculates the command size to allocate based on the prot_capabilities. In the isc

[PATCH 4.4 004/230] mfd: ti_am335x_tscadc: Use PLATFORM_DEVID_AUTO while registering mfd cells

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit b40ee006fe6a8a25093434e5d394128c356a48f3 ] Use PLATFORM_DEVID_AUTO to number mfd cells while registering, so that different instances are uniquely identified. This is required in orde

[PATCH 4.4 008/230] mfd: qcom_rpm: write fw_version to CTRL_REG

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 504e4175829c44328773b96ad9c538e4783a8d22 ] This is required as part of the initialization sequence on certain SoCs. If these registers are not initialized, the hardware can be unresp

[PATCH 4.4 011/230] net: hns: Fix use after free identified by SLUB debug

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit bb989501abcafa0de5f18b0ec0ec459b5b817908 ] When enable SLUB debug, than remove hns_enet_drv module, SLUB debug will identify a use after free bug: [134.189505] Unable to handle kerne

Re: [PATCH v2 08/15] drm/bridge: tc358767: Increase AUX transfer length limit

2019-03-22 Thread Tomi Valkeinen
On 22/03/2019 05:28, Andrey Smirnov wrote: > According to the datasheet tc358767 can transfer up to 16 bytes via > its AUX channel, so the artificial limit of 8 apperas to be too > low. However only up to 15-bytes seem to be actually supported and > trying to use 16-byte transfers results in transf

[PATCH 4.4 037/230] usb: gadget: Potential NULL dereference on allocation error

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit df28169e1538e4a8bcd8b779b043e5aa6524545c ] The source_sink_alloc_func() function is supposed to return error pointers on error. The function is called from usb_get_function() which d

[PATCH 4.4 019/230] isdn: avm: Fix string plus integer warning from Clang

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7afa81c55fca0cad589722cb4bce698b4803b0e1 ] A recent commit in Clang expanded the -Wstring-plus-int warning, showing some odd behavior in this file. drivers/isdn/hardware/avm/b1.c:426

[PATCH 4.4 006/230] mfd: db8500-prcmu: Fix some section annotations

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a3888f62fe66429fad3be7f2ba962e1e08c26fd6 ] When building the kernel with Clang, the following section mismatch warnings appear: WARNING: vmlinux.o(.text+0x7239cc): Section mismatch i

[PATCH 4.4 029/230] Revert "bridge: do not add port to router list when receives query with source 0.0.0.0"

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu commit 278e2148c07559dd4ad8602f22366d61eb2ee7b7 upstream. This reverts commit 5a2de63fd1a5 ("bridge: do not add port to router list when receives query with source 0.0.0.0") and com

[PATCH 4.4 025/230] team: avoid complex list operations in team_nl_cmd_options_set()

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 2fdeee2549231b1f989f011bb18191f5660d3745 ] The current opt_inst_list operations inside team_nl_cmd_options_set() is too complex to track: LIST_HEAD(opt_inst_lis

[PATCH 4.4 041/230] mac80211: fix miscounting of ttl-dropped frames

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a0dc02039a2ee54fb4ae400e0b755ed30e73e58c ] In ieee80211_rx_h_mesh_fwding, we increment the 'dropped_frames_ttl' counter when we decrement the ttl to zero. For unicast frames destined

[PATCH 4.4 055/230] USB: serial: option: add Telit ME910 ECM composition

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Daniele Palmas commit 6431866b6707d27151be381252d6eef13025cfce upstream. This patch adds Telit ME910 family ECM composition 0x1102. Signed-off-by: Daniele Palmas Cc: stable Signed-off-by: Jo

[PATCH 4.4 054/230] x86/uaccess: Dont leak the AC flag into __put_user() value evaluation

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 2a418cf3f5f1caf911af288e978d61c9844b0695 upstream. When calling __put_user(foo(), ptr), the __put_user() macro would call foo() in between __uaccess_begin() and __uaccess

[PATCH 4.4 071/230] net: phy: Micrel KSZ8061: link failure after cable connect

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Rajasingh Thavamani [ Upstream commit 232ba3a51cc224b339c7114888ed7f0d4d95695e ] With Micrel KSZ8061 PHY, the link may occasionally not come up after Ethernet cable connect. The vendor's (Micro

Re: [PATCH] pci/quirks: Add quirk to reset nvgpu at boot for the Lenovo ThinkPad P50

2019-03-22 Thread Bjorn Helgaas
On Thu, Mar 21, 2019 at 05:48:19PM -0500, Bjorn Helgaas wrote: > On Wed, Mar 13, 2019 at 06:25:02PM -0400, Lyude Paul wrote: > > On Fri, 2019-02-15 at 16:17 -0500, Lyude Paul wrote: > > > On Thu, 2019-02-14 at 18:43 -0600, Bjorn Helgaas wrote: > > > > On Tue, Feb 12, 2019 at 05:02:30PM -0500, Lyude

[PATCH 4.4 074/230] MIPS: irq: Allocate accurate order pages for irq stack

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Liu Xiang commit 72faa7a773ca59336f3c889e878de81445c5a85c upstream. The irq_pages is the number of pages for irq stack, but not the order which is needed by __get_free_pages(). We can use get_o

[PATCH 4.4 066/230] bnxt_en: Drop oversize TX packets to prevent errors.

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Michael Chan [ Upstream commit 2b3c6885386020b1b9d92d45e8349637e27d1f66 ] There have been reports of oversize UDP packets being sent to the driver to be transmitted, causing error conditions.

[PATCH 4.4 075/230] hugetlbfs: fix races and page leaks during migration

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Mike Kravetz commit cb6acd01e2e43fd8bad11155752b7699c3d0fb76 upstream. hugetlb pages should only be migrated if they are 'active'. The routines set/clear_page_huge_active() modify the active s

[PATCH 4.4 088/230] xtensa: SMP: mark each possible CPU as present

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25 ] Otherwise it is impossible to enable CPUs after booting with 'maxcpus' parameter. Signed-off-by: Max Filippov Signed-off-by: Sasha Levin

[PATCH 4.4 060/230] ncpfs: fix build warning of strncpy

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman Not upstream as ncpfs is long deleted. Fix up two strncpy build warnings in ncp_get_charsets() by using strscpy and the max size of the array. It's not like anyone uses this

[PATCH 4.4 063/230] net-sysfs: Fix mem leak in netdev_register_kobject

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 895a5e96dbd6386c8e78e5b78e067dcc67b7f0ab ] syzkaller report this: BUG: memory leak unreferenced object 0x88837a71a500 (size 256): comm "syz-executor.2", pid 9

[PATCH 4.4 092/230] net: stmmac: dwmac-rk: fix error handling in rk_gmac_powerup()

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c69c29a1a0a8f68cd87e98ba4a5a79fb8ef2a58c ] If phy_power_on() fails in rk_gmac_powerup(), clocks are left enabled. Found by Linux Driver Verification project (linuxtesting.org). Sign

[PATCH 4.4 093/230] gpio: vf610: Mask all GPIO interrupts

2019-03-22 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7ae710f9f8b2cf95297e7bbfe1c09789a7dc43d4 ] On SoC reset all GPIO interrupts are disable. However, if kexec is used to boot into a new kernel, the SoC does not experience a reset. Henc

<    1   2   3   4   5   6   7   8   9   10   >