[PATCH] ARC: [plat-hsdk]: enable DW SPI controller

2019-06-07 Thread Eugeniy Paltsev
HSDK SoC has DW SPI controller. Enable it in preparation of enabling on-board SPI peripherals. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/hsdk.dts | 14 ++ arch/arc/configs/hsdk_defconfig | 3 +++ 2 files changed, 17 insertions(+) diff --git a/arch/arc/boot/dts/hsdk.

[PATCH V9 08/15] dt-bindings: Add PCIe supports-clkreq property

2019-06-07 Thread Vidya Sagar
Some host controllers need to know the existence of clkreq signal routing to downstream devices to be able to advertise low power features like ASPM L1 substates. Without clkreq signal routing being present, enabling ASPM L1 sub states might lead to downstream devices falling off the bus. Hence a n

[PATCH V9 10/15] dt-bindings: PHY: P2U: Add Tegra194 P2U block

2019-06-07 Thread Vidya Sagar
Add support for Tegra194 P2U (PIPE to UPHY) module block which is a glue module instantiated one for each PCIe lane between Synopsys DesignWare core based PCIe IP and Universal PHY block. Signed-off-by: Vidya Sagar Reviewed-by: Rob Herring Acked-by: Thierry Reding --- Changes since [v8]: * None

[PATCH V9 09/15] dt-bindings: PCI: tegra: Add device tree support for Tegra194

2019-06-07 Thread Vidya Sagar
Add support for Tegra194 PCIe controllers. These controllers are based on Synopsys DesignWare core IP. Signed-off-by: Vidya Sagar Reviewed-by: Rob Herring Acked-by: Thierry Reding --- Changes since [v8]: * Added Acked-by from Thierry Changes since [v7]: * Addressed review comments from Thierry

[PATCH V9 11/15] arm64: tegra: Add P2U and PCIe controller nodes to Tegra194 DT

2019-06-07 Thread Vidya Sagar
Add P2U (PIPE to UPHY) and PCIe controller nodes to device tree. The Tegra194 SoC contains six PCIe controllers and twenty P2U instances grouped into two different PHY bricks namely High-Speed IO (HSIO-12 P2Us) and NVIDIA High Speed (NVHS-8 P2Us) respectively. DKIM-Signature: v=1; a=rsa-sha256; c=r

[PATCH V9 12/15] arm64: tegra: Enable PCIe slots in P2972-0000 board

2019-06-07 Thread Vidya Sagar
Enable PCIe controller nodes to enable respective PCIe slots on P2972- board. Following is the ownership of slots by different PCIe controllers. Controller-0 : M.2 Key-M slot Controller-1 : On-board Marvell eSATA controller Controller-3 : M.2 Key-E slot Signed-off-by: Vidya Sagar --- Changes

[PATCH V9 13/15] phy: tegra: Add PCIe PIPE2UPHY support

2019-06-07 Thread Vidya Sagar
Synopsys DesignWare core based PCIe controllers in Tegra 194 SoC interface with Universal PHY (UPHY) module through a PIPE2UPHY (P2U) module. For each PCIe lane of a controller, there is a P2U unit instantiated at hardware level. This driver provides support for the programming required for each P2

[PATCH V9 14/15] PCI: tegra: Add Tegra194 PCIe support

2019-06-07 Thread Vidya Sagar
Add support for Synopsys DesignWare core IP based PCIe host controller present in Tegra194 SoC. Signed-off-by: Vidya Sagar Acked-by: Thierry Reding --- Changes since [v8]: * Made it dependent on ARCH_TEGRA_194_SOC directly Changes since [v7]: * Addressed review comments from Thierry Changes si

[PATCH V9 15/15] arm64: Add Tegra194 PCIe driver to defconfig

2019-06-07 Thread Vidya Sagar
Add PCIe host controller driver for DesignWare core based PCIe controller IP present in Tegra194. Signed-off-by: Vidya Sagar --- Changes since [v8]: * None Changes since [v7]: * None Changes since [v6]: * None Changes since [v5]: * None Changes since [v4]: * None Changes since [v3]: * None

RE: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in hardware

2019-06-07 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov > Sent: Monday, May 27, 2019 6:29 PM > To: Ghannam, Yazen > Cc: Luck, Tony ; linux-e...@vger.kernel.org; > linux-kernel@vger.kernel.org; x...@kernel.org > Subject: Re: [PATCH v3 5/6] x86/MCE: Save MCA control bits that get set in > hardware >

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-07 Thread Ira Weiny
On Fri, Jun 07, 2019 at 09:17:29AM -0300, Jason Gunthorpe wrote: > On Fri, Jun 07, 2019 at 12:36:36PM +0200, Jan Kara wrote: > > > Because the pins would be invisible to sysadmin from that point on. > > It is not invisible, it just shows up in a rdma specific kernel > interface. You have to use

Re: [RFC PATCH 00/16] xenhost support

2019-06-07 Thread Juergen Gross
On 09.05.19 19:25, Ankur Arora wrote: Hi all, This is an RFC for xenhost support, outlined here by Juergen here: https://lkml.org/lkml/2019/4/8/67. First: thanks for all the effort you've put into this series! The high level idea is to provide an abstraction of the Xen communication interfac

[PATCH net-next 0/7] bonding: clean up and standarize logging printks

2019-06-07 Thread Jarod Wilson
This set improves a few somewhat terse bonding debug messages, fixes some errors in others, and then standarizes the majority of them, using new slave_* printk macros that wrap around netdev_* to ensure both master and slave information is provided consistently, where relevant. This set proves very

[PATCH net-next 3/7] bonding: add slave_foo printk macros

2019-06-07 Thread Jarod Wilson
Where possible, we generally want both the bond master and the relevant slave information in message output. Standardize the format using new slave_* printk macros. Suggested-by: Joe Perches CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: net...@vger.kernel.org Signed-off-by: Jar

[PATCH net-next 6/7] bonding/alb: convert to using slave printk macros

2019-06-07 Thread Jarod Wilson
All of these printk instances benefit from having both master and slave device information included, so convert to using a standardized macro format and remove redundant information. Suggested-by: Joe Perches CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: net...@vger.kernel.org

[PATCH net-next 4/7] bonding/main: convert to using slave printk macros

2019-06-07 Thread Jarod Wilson
All of these printk instances benefit from having both master and slave device information included, so convert to using a standardized macro format and remove redundant information. Suggested-by: Joe Perches CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: net...@vger.kernel.org

[PATCH net-next 7/7] bonding/options: convert to using slave printk macros

2019-06-07 Thread Jarod Wilson
All of these printk instances benefit from having both master and slave device information included, so convert to using a standardized macro format and remove redundant information. Suggested-by: Joe Perches CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: net...@vger.kernel.org

[PATCH net] bonding: make debugging output more succinct

2019-06-07 Thread Jarod Wilson
Seeing bonding debug log data along the lines of "event: 5" is a bit spartan, and often requires a lookup table if you don't remember what every event is. Make use of netdev_cmd_to_name for an improved debugging experience, so for the prior example, you'll see: "bond_netdev_event received NETDEV_RE

[PATCH net-next 2/7] bonding: fix error messages in bond_do_fail_over_mac

2019-06-07 Thread Jarod Wilson
Passing the bond name again to debug output when referencing slave is wrong. We're trying to set the bond's MAC to that of the new_active slave, so adjust the error message slightly and pass in the slave's name, not the bond's. Then we're trying to set the MAC on the old active slave, but putting t

[PATCH net-next 5/7] bonding/802.3ad: convert to using slave printk macros

2019-06-07 Thread Jarod Wilson
All of these printk instances benefit from having both master and slave device information included, so convert to using a standardized macro format and remove redundant information. Suggested-by: Joe Perches CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: net...@vger.kernel.org

[PATCH net-next 1/7] bonding: improve event debug usability

2019-06-07 Thread Jarod Wilson
Seeing bonding debug log data along the lines of "event: 5" is a bit spartan, and often requires a lookup table if you don't remember what every event is. Make use of netdev_cmd_to_name for an improved debugging experience, so for the prior example, you'll see: "bond_netdev_event received NETDEV_RE

Re: [PATCH 04/18] ARM/ARM64: cpuidle: Let back-end init ops take the driver as input

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:46PM +0200, Ulf Hansson wrote: > To allow arch back-end init ops to operate on the cpuidle driver for the > corresponding CPU, let's pass along a pointer to the struct cpuidle_driver* > and forward it the relevant layers of callbacks for ARM/ARM64. > I may be wrong, b

Re: [PATCH 05/18] drivers: firmware: psci: Simplify state node parsing

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:47PM +0200, Ulf Hansson wrote: > Instead of iterating through all the state nodes in DT, to find out how > many states that needs to be allocated, let's use the number already known > by the cpuidle driver. In this way we can drop the iteration altogether. > > Signed-

Re: [PATCH net] bonding: make debugging output more succinct

2019-06-07 Thread Jarod Wilson
On 6/7/19 10:59 AM, Jarod Wilson wrote: Seeing bonding debug log data along the lines of "event: 5" is a bit spartan, and often requires a lookup table if you don't remember what every event is. Make use of netdev_cmd_to_name for an improved debugging experience, so for the prior example, you'll

Re: [PATCH 06/18] drivers: firmware: psci: Support hierarchical CPU idle states

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:48PM +0200, Ulf Hansson wrote: > From: Lina Iyer > > Currently CPU's idle states are represented in a flattened model, via the > "cpu-idle-states" binding from within the CPU's device nodes. > > Support the hierarchical layout, simply by converting to calling the ne

Re: [RFC PATCH 01/16] x86/xen: add xenhost_t interface

2019-06-07 Thread Juergen Gross
On 09.05.19 19:25, Ankur Arora wrote: Add xenhost_t which will serve as an abstraction over Xen interfaces. It co-exists with the PV/HVM/PVH abstractions (x86_init, hypervisor_x86, pv_ops etc) and is meant to capture mechanisms for communication with Xen so we could have different types of underl

Re: [RFC V3] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-07 Thread Dave Hansen
On 6/7/19 3:34 AM, Anshuman Khandual wrote: > +static nokprobe_inline bool kprobe_page_fault(struct pt_regs *regs, > + unsigned int trap) > +{ > + int ret = 0; > + > + /* > + * To be potentially processing a kprobe fault and to be allowed > +

Re: [RFC PATCH 06/16] x86/xen: add shared_info support to xenhost_t

2019-06-07 Thread Juergen Gross
On 09.05.19 19:25, Ankur Arora wrote: HYPERVISOR_shared_info is used for irq/evtchn communication between the guest and the host. Abstract out the setup/reset in xenhost_t such that nested configurations can use both xenhosts simultaneously. I have mixed feelings about this patch. Most of the s

Re: [PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-07 Thread Jason Gunthorpe
On Fri, Jun 07, 2019 at 07:52:13AM -0700, Ira Weiny wrote: > On Fri, Jun 07, 2019 at 09:17:29AM -0300, Jason Gunthorpe wrote: > > On Fri, Jun 07, 2019 at 12:36:36PM +0200, Jan Kara wrote: > > > > > Because the pins would be invisible to sysadmin from that point on. > > > > It is not invisible, i

Re: [PATCH 3.16 025/305] media: uvcvideo: Fix uvc_alloc_entity() allocation alignment

2019-06-07 Thread Doug Anderson
Hi, On Sun, Feb 3, 2019 at 5:50 AM Ben Hutchings wrote: > > 3.16.63-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Nadav Amit > > commit 89dd34caf73e28018c58cd193751e41b1f8bdc56 upstream. > > The use of ALIGN() in uvc_alloc_entity() is incor

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-07 Thread James Morse
Hi guys, On 06/06/2019 12:37, Shenhar, Talel wrote: >>> Disagree. The various drivers don't depend on each other. >>> I think we should keep the drivers separated as they are distinct and >>> independent IP >>> blocks. >> But they don't exist in isolation, they both depend on the >> integration-

Re: [PATCH v3 1/3] arm64, vmcoreinfo : Append 'PTRS_PER_PGD' to vmcoreinfo

2019-06-07 Thread James Morse
Hi Bhupesh, (sorry for the delay on this) On 04/05/2019 13:53, Bhupesh Sharma wrote: > On 04/03/2019 11:24 PM, Bhupesh Sharma wrote: >> On 04/02/2019 10:56 PM, James Morse wrote: >>> Yes the kernel code is going to move around, this is why the information we >>> expose via >>> vmcoreinfo needs t

[GIT PULL] arm64: fixes for -rc4

2019-06-07 Thread Will Deacon
Hi Linus, Another round of mostly-benign fixes, the exception being a boot crash on SVE2-capable CPUs (although I don't know where you'd find such a thing, so maybe it's benign too). We're in the process of resolving some big-endian ptrace breakage, so I'll probably have some more for you next wee

Re: [PATCH] KVM: nVMX: Rename prepare_vmcs02_*_full to prepare_vmcs02_*_extra

2019-06-07 Thread Paolo Bonzini
On 07/06/19 16:18, Sean Christopherson wrote: > On Fri, Jun 07, 2019 at 02:19:20PM +0200, Paolo Bonzini wrote: >> On 06/06/19 20:41, Sean Christopherson wrote: +static void prepare_vmcs02_early_extra(struct vcpu_vmx *vmx, >>> Or maybe 'uncommon', 'rare' or 'ext'? I don't I particularly love a

Re: [PATCH 07/18] drivers: firmware: psci: Prepare to use OS initiated suspend mode

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:49PM +0200, Ulf Hansson wrote: > The per CPU variable psci_power_state, contains an array of fixed values, > which reflects the corresponding arm,psci-suspend-param parsed from DT, for > each of the available CPU idle states. > > This isn't sufficient when using the hi

Re: [PATCH 03/15] x86/kprobes: Fix frame pointer annotations

2019-06-07 Thread Masami Hiramatsu
On Fri, 7 Jun 2019 09:36:02 -0400 Josh Poimboeuf wrote: > On Fri, Jun 07, 2019 at 10:02:10PM +0900, Masami Hiramatsu wrote: > > On Wed, 05 Jun 2019 15:07:56 +0200 > > Peter Zijlstra wrote: > > > > > The kprobe trampolines have a FRAME_POINTER annotation that makes no > > > sense. It marks the f

Re: [PATCH 08/18] drivers: firmware: psci: Prepare to support PM domains

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:50PM +0200, Ulf Hansson wrote: > Subsequent changes implements support for PM domains to PSCI. Those changes > are mainly implemented in a new separate c-file, hence a couple of the > internal PSCI functions needs to be shared to be accessible. Let's do that > via addi

Re: [RFC PATCH 00/16] xenhost support

2019-06-07 Thread Joao Martins
On 6/7/19 3:51 PM, Juergen Gross wrote: > On 09.05.19 19:25, Ankur Arora wrote: >> Hi all, >> >> This is an RFC for xenhost support, outlined here by Juergen here: >> https://lkml.org/lkml/2019/4/8/67. > > First: thanks for all the effort you've put into this series! > >> The high level idea is t

Re: inet: frags: Turn fqdir->dead into an int for old Alphas

2019-06-07 Thread Eric Dumazet
On 6/7/19 7:09 AM, Herbert Xu wrote: > On Tue, Jun 04, 2019 at 09:04:55AM -0700, Linus Torvalds wrote: >> >> In fact, the alpha port was always subtly buggy exactly because of the >> "byte write turns into a read-and-masked-write", even if I don't think >> anybody ever noticed (we did fix cases

Re: [PATCH 09/18] drivers: firmware: psci: Add support for PM domains using genpd

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:51PM +0200, Ulf Hansson wrote: > When the hierarchical CPU topology layout is used in DT, we need to setup > the corresponding PM domain data structures, as to allow a CPU and a group > of CPUs to be power managed accordingly. Let's enable this by deploying > support t

RE: [PATCH] ARC: [plat-hsdk]: enable DW SPI controller

2019-06-07 Thread Alexey Brodkin
Hi Eugeniy, > -Original Message- > From: Eugeniy Paltsev > Sent: Friday, June 7, 2019 5:48 PM > To: linux-snps-...@lists.infradead.org; Vineet Gupta > Cc: linux-kernel@vger.kernel.org; Alexey Brodkin ; > Eugeniy Paltsev > > Subject: [PATCH] ARC: [plat-hsdk]: enable DW SPI controller >

Re: [RFC V3] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()

2019-06-07 Thread Christophe Leroy
Le 07/06/2019 à 12:34, Anshuman Khandual a écrit : Very similar definitions for notify_page_fault() are being used by multiple architectures duplicating much of the same code. This attempts to unify all of them into a generic implementation, rename it as kprobe_page_fault() and then move it to

Re: [PATCH 15/18] drivers: firmware: psci: Support CPU hotplug for the hierarchical model

2019-06-07 Thread Sudeep Holla
On Mon, May 13, 2019 at 09:22:57PM +0200, Ulf Hansson wrote: > When the hierarchical CPU topology is used and when a CPU has been put > offline (hotplug), that same CPU prevents its PM domain and thus also > potential master PM domains, from being powered off. This is because genpd > observes the C

Re: inet: frags: Turn fqdir->dead into an int for old Alphas

2019-06-07 Thread Herbert Xu
On Fri, Jun 07, 2019 at 08:26:12AM -0700, Eric Dumazet wrote: > > There is common knowledge among us programmers that bit fields > (or bool) sharing a common 'word' need to be protected > with a common lock. > > Converting all bit fields to plain int/long would be quite a waste of memory. > > In

Re: [RFC PATCH] kbuild: Add option to generate a Compilation Database

2019-06-07 Thread Tom Roeder
On Thu, Jun 06, 2019 at 04:40:00PM -0700, Nick Desaulniers wrote: > On Thu, Jun 6, 2019 at 1:54 PM Tom Roeder wrote: > > > > On Thu, Jun 06, 2019 at 02:30:03PM -0600, Raul E Rangel wrote: > > > Clang tooling requires a compilation database to figure out the build > > > options for each file. This

Re: [PATCH] ubifs: Add support for zstd compression.

2019-06-07 Thread Emil Lenngren
Hello, Den ons 15 maj 2019 kl 23:03 skrev Richard Weinberger : > > From: Michele Dionisio > > zstd shows a good compression rate and is faster than lzo, > also on slow ARM cores. > > Cc: Sebastian Andrzej Siewior > Signed-off-by: Michele Dionisio > [rw: rewrote commit message] > Signed-off-by:

Re: [PATCH 3.16 025/305] media: uvcvideo: Fix uvc_alloc_entity() allocation alignment

2019-06-07 Thread Greg KH
On Fri, Jun 07, 2019 at 08:09:27AM -0700, Doug Anderson wrote: > Hi, > > On Sun, Feb 3, 2019 at 5:50 AM Ben Hutchings wrote: > > > > 3.16.63-rc1 review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Nadav Amit > > > > commit 89dd34caf73e28018c5

Re: [PATCH v9 08/12] mm/sparsemem: Support sub-section hotplug

2019-06-07 Thread Dan Williams
On Fri, Jun 7, 2019 at 1:34 AM Oscar Salvador wrote: > > On Wed, Jun 05, 2019 at 02:58:42PM -0700, Dan Williams wrote: > > The libnvdimm sub-system has suffered a series of hacks and broken > > workarounds for the memory-hotplug implementation's awkward > > section-aligned (128MB) granularity. For

[PATCH 4.14 01/69] inet: switch IP ID generator to siphash

2019-06-07 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit df453700e8d81b1bdafdf684365ee2b9431fb702 ] According to Amit Klein and Benny Pinkas, IP ID generation is too weak and might be used by attackers. Even with recent net_hash_mix() fix (netns: provide pure entropy for net_hash_mix()) having 64bit key and Jenki

[PATCH 4.14 02/69] ipv6: Consider sk_bound_dev_if when binding a raw socket to an address

2019-06-07 Thread Greg Kroah-Hartman
From: Mike Manning [ Upstream commit 72f7cfab6f93a8ea825fab8ccfb016d064269f7f ] IPv6 does not consider if the socket is bound to a device when binding to an address. The result is that a socket can be bound to eth0 and then bound to the address of eth1. If the device is a VRF, the result is that

[PATCH 4.14 04/69] net: fec: fix the clk mismatch in failed_reset path

2019-06-07 Thread Greg Kroah-Hartman
From: Andy Duan [ Upstream commit ce8d24f9a5965a58c588f9342689702a1024433c ] Fix the clk mismatch in the error path "failed_reset" because below error path will disable clk_ahb and clk_ipg directly, it should use pm_runtime_put_noidle() instead of pm_runtime_put() to avoid to call runtime resume

[PATCH 4.14 00/69] 4.14.124-stable review

2019-06-07 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.124 release. There are 69 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun 09 Jun 2019 03:37:08 PM UTC. Anything re

[PATCH 4.14 13/69] net: dsa: mv88e6xxx: fix handling of upper half of STATS_TYPE_PORT

2019-06-07 Thread Greg Kroah-Hartman
From: Rasmus Villemoes [ Upstream commit 84b3fd1fc9592d431e23b077e692fa4e3fd0f086 ] Currently, the upper half of a 4-byte STATS_TYPE_PORT statistic ends up in bits 47:32 of the return value, instead of bits 31:16 as they should. Fixes: 6e46e2d821bb ("net: dsa: mv88e6xxx: Fix u64 statistics") Si

[PATCH 4.14 14/69] net: mvneta: Fix err code path of probe

2019-06-07 Thread Greg Kroah-Hartman
From: Jisheng Zhang [ Upstream commit d484e06e25ebb937d841dac02ac1fe76ec7d4ddd ] Fix below issues in err code path of probe: 1. we don't need to unregister_netdev() because the netdev isn't registered. 2. when register_netdev() fails, we also need to destroy bm pool for HWBM case. Fixes: dc35a1

[PATCH 4.14 15/69] net: mvpp2: fix bad MVPP2_TXQ_SCHED_TOKEN_CNTR_REG queue value

2019-06-07 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit 21808437214637952b61beaba6034d97880fbeb3 ] MVPP2_TXQ_SCHED_TOKEN_CNTR_REG() expects the logical queue id but the current code is passing the global tx queue offset, so it ends up writing to unknown registers (between 0x8280 and 0x82fc, which seemed to be un

[PATCH 4.14 17/69] crypto: vmx - ghash: do nosimd fallback manually

2019-06-07 Thread Greg Kroah-Hartman
From: Daniel Axtens commit 357d065a44cdd77ed5ff35155a989f2a763e96ef upstream. VMX ghash was using a fallback that did not support interleaving simd and nosimd operations, leading to failures in the extended test suite. If I understood correctly, Eric's suggestion was to use the same data format

[PATCH 4.14 18/69] xen/pciback: Dont disable PCI_COMMAND on PCI device reset.

2019-06-07 Thread Greg Kroah-Hartman
From: Konrad Rzeszutek Wilk commit 7681f31ec9cdacab4fd10570be924f2cef6669ba upstream. There is no need for this at all. Worst it means that if the guest tries to write to BARs it could lead (on certain platforms) to PCI SERR errors. Please note that with af6fc858a35b90e89ea7a7ee58e66628c55c776b

[PATCH 4.14 20/69] tipc: fix modprobe tipc failed after switch order of device registration

2019-06-07 Thread Greg Kroah-Hartman
From: Junwei Hu commit 526f5b851a96566803ee4bee60d0a34df56c77f8 upstream. Error message printed: modprobe: ERROR: could not insert 'tipc': Address family not supported by protocol. when modprobe tipc after the following patch: switch order of device registration, commit 7e27e8d6130c ("tipc: swit

[PATCH 4.14 22/69] include/linux/bitops.h: sanitize rotate primitives

2019-06-07 Thread Greg Kroah-Hartman
From: Rasmus Villemoes commit ef4d6f6b275c498f8e5626c99dbeefdc5027f843 upstream. The ror32 implementation (word >> shift) | (word << (32 - shift) has undefined behaviour if shift is outside the [1, 31] range. Similarly for the 64 bit variants. Most callers pass a compile-time constant (natural

[PATCH 4.14 21/69] sparc64: Fix regression in non-hypervisor TLB flush xcall

2019-06-07 Thread Greg Kroah-Hartman
From: James Clarke commit d3c976c14ad8af421134c428b0a89ff8dd3bd8f8 upstream. Previously, %g2 would end up with the value PAGE_SIZE, but after the commit mentioned below it ends up with the value 1 due to being reused for a different purpose. We need it to be PAGE_SIZE as we use it to step throug

[PATCH 4.14 23/69] xhci: update bounce buffer with correct sg num

2019-06-07 Thread Greg Kroah-Hartman
From: Henry Lin commit 597c56e372dab2c7f79b8d700aad3a5deebf9d1b upstream. This change fixes a data corruption issue occurred on USB hard disk for the case that bounce buffer is used during transferring data. While updating data between sg list and bounce buffer, current implementation passes ma

[PATCH 4.14 26/69] usb: xhci: avoid null pointer deref when bos field is NULL

2019-06-07 Thread Greg Kroah-Hartman
From: Carsten Schmid commit 7aa1bb2ffd84d6b9b5f546b079bb15cd0ab6e76e upstream. With defective USB sticks we see the following error happen: usb 1-3: new high-speed USB device number 6 using xhci_hcd usb 1-3: device descriptor read/64, error -71 usb 1-3: device descriptor read/64, error -71 usb 1

[PATCH 4.14 25/69] xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()

2019-06-07 Thread Greg Kroah-Hartman
From: Andrey Smirnov commit f7fac17ca925faa03fc5eb854c081a24075f8bad upstream. Xhci_handshake() implements the algorithm already captured by readl_poll_timeout_atomic(). Convert the former to use the latter to avoid repetition. Turned out this patch also fixes a bug on the AMD Stoneyridge platf

[PATCH 4.14 24/69] xhci: Use %zu for printing size_t type

2019-06-07 Thread Greg Kroah-Hartman
From: Fabio Estevam commit c1a145a3ed9a40f3b6145feb97789e8eb49c5566 upstream. Commit 597c56e372da ("xhci: update bounce buffer with correct sg num") caused the following build warnings: drivers/usb/host/xhci-ring.c:676:19: warning: format '%ld' expects argument of type 'long int', but argument

[PATCH 4.14 28/69] usbip: usbip_host: fix stub_dev lock context imbalance regression

2019-06-07 Thread Greg Kroah-Hartman
From: Shuah Khan commit 3ea3091f1bd8586125848c62be295910e9802af0 upstream. Fix the following sparse context imbalance regression introduced in a patch that fixed sleeping function called from invalid context bug. kbuild test robot reported on: tree/branch: https://git.kernel.org/pub/scm/linux/

[PATCH 4.14 30/69] USB: sisusbvga: fix oops in error path of sisusb_probe

2019-06-07 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 9a5729f68d3a82786aea110b1bfe610be318f80a upstream. The pointer used to log a failure of usb_register_dev() must be set before the error is logged. v2: fix that minor is not available before registration Signed-off-by: oliver Neukum Reported-by: syzbot+a0cbdbd6d16902

[PATCH 4.14 27/69] usbip: usbip_host: fix BUG: sleeping function called from invalid context

2019-06-07 Thread Greg Kroah-Hartman
From: Shuah Khan commit 0c9e8b3cad654bfc499c10b652fbf8f0b890af8f upstream. stub_probe() and stub_disconnect() call functions which could call sleeping function in invalid context whil holding busid_lock. Fix the problem by refining the lock holds to short critical sections to change the busid_p

[PATCH 4.14 29/69] USB: Fix slab-out-of-bounds write in usb_get_bos_descriptor

2019-06-07 Thread Greg Kroah-Hartman
From: Alan Stern commit a03ff54460817c76105f81f3aa8ef655759ccc9a upstream. The syzkaller USB fuzzer found a slab-out-of-bounds write bug in the USB core, caused by a failure to check the actual size of a BOS descriptor. This patch adds a check to make sure the descriptor is at least as large as

[PATCH 4.14 32/69] USB: rio500: refuse more than one device at a time

2019-06-07 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 3864d33943b4a76c6e64616280e98d2410b1190f upstream. This driver is using a global variable. It cannot handle more than one device at a time. The issue has been existing since the dawn of the driver. Signed-off-by: Oliver Neukum Reported-by: syzbot+35f04d136fc975a70...

[PATCH 4.14 31/69] USB: Add LPM quirk for Surface Dock GigE adapter

2019-06-07 Thread Greg Kroah-Hartman
From: Maximilian Luz commit ea261113385ac0a71c2838185f39e8452d54b152 upstream. Without USB_QUIRK_NO_LPM ethernet will not work and rtl8152 will complain with r8152 : Stop submitting intr, status -71 Adding the quirk resolves this. As the dock is externally powered, this should not have any

[PATCH 4.14 36/69] media: smsusb: better handle optional alignment

2019-06-07 Thread Greg Kroah-Hartman
From: Mauro Carvalho Chehab commit a47686636d84eaec5c9c6e84bd5f96bed34d526d upstream. Most Siano devices require an alignment for the response. Changeset f3be52b0056a ("media: usb: siano: Fix general protection fault in smsusb") changed the logic with gets such aligment, but it now produces a

[PATCH 4.14 37/69] scsi: zfcp: fix missing zfcp_port reference put on -EBUSY from port_remove

2019-06-07 Thread Greg Kroah-Hartman
From: Steffen Maier commit d27e5e07f9c49bf2a6a4ef254ce531c1b4fb5a38 upstream. With this early return due to zfcp_unit child(ren), we don't use the zfcp_port reference from the earlier zfcp_get_port_by_wwpn() anymore and need to put it. Signed-off-by: Steffen Maier Fixes: d99b601b6338 ("[SCSI]

[PATCH 4.14 38/69] scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs)

2019-06-07 Thread Greg Kroah-Hartman
From: Steffen Maier commit ef4021fe5fd77ced0323cede27979d80a56211ca upstream. When the user tries to remove a zfcp port via sysfs, we only rejected it if there are zfcp unit children under the port. With purely automatically scanned LUNs there are no zfcp units but only SCSI devices. In such cas

[PATCH 4.14 35/69] media: usb: siano: Fix false-positive "uninitialized variable" warning

2019-06-07 Thread Greg Kroah-Hartman
From: Alan Stern commit 45457c01171fd1488a7000d1751c06ed8560ee38 upstream. GCC complains about an apparently uninitialized variable recently added to smsusb_init_device(). It's a false positive, but to silence the warning this patch adds a trivial initialization. Signed-off-by: Alan Stern Rep

[PATCH 4.14 34/69] media: usb: siano: Fix general protection fault in smsusb

2019-06-07 Thread Greg Kroah-Hartman
From: Alan Stern commit 31e0456de5be379b10fea0fa94a681057114a96e upstream. The syzkaller USB fuzzer found a general-protection-fault bug in the smsusb part of the Siano DVB driver. The fault occurs during probe because the driver assumes without checking that the device has both IN and OUT endp

[PATCH 4.14 40/69] Btrfs: fix race updating log root item during fsync

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 06989c799f04810f6876900d4760c0edda369cf7 upstream. When syncing the log, the final phase of a fsync operation, we need to either create a log root's item or update the existing item in the log tree of log roots, and that depends on the current value of the log root's l

[PATCH 4.14 10/69] bnxt_en: Fix aggregation buffer leak under OOM condition.

2019-06-07 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 296d5b54163964b7ae536b8b57dfbd21d4e868e1 ] For every RX packet, the driver replenishes all buffers used for that packet and puts them back into the RX ring and RX aggregation ring. In one code path where the RX packet has one RX buffer and one or more aggrega

[PATCH 4.14 08/69] tipc: Avoid copying bytes beyond the supplied data

2019-06-07 Thread Greg Kroah-Hartman
From: Chris Packham TLV_SET is called with a data pointer and a len parameter that tells us how many bytes are pointed to by data. When invoking memcpy() we need to careful to only copy len bytes. Previously we would copy TLV_LENGTH(len) bytes which would copy an extra 4 bytes past the end of th

[PATCH 4.14 52/69] docs: Fix conf.py for Sphinx 2.0

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 3bc8088464712fdcb078eefb68837ccfcc413c88 upstream. Our version check in Documentation/conf.py never envisioned a world where Sphinx moved beyond 1.x. Now that the unthinkable has happened, fix our version check to handle higher version numbers correctly. Cc: sta...

[PATCH 4.14 43/69] KVM: PPC: Book3S HV: XIVE: Do not clear IRQ data of passthrough interrupts

2019-06-07 Thread Greg Kroah-Hartman
From: Cédric Le Goater commit ef9740204051d0e00f5402fe96cf3a43ddd2bbbf upstream. The passthrough interrupts are defined at the host level and their IRQ data should not be cleared unless specifically deconfigured (shutdown) by the host. They differ from the IPI interrupts which are allocated by t

[PATCH 4.14 42/69] Btrfs: incremental send, fix file corruption when no-holes feature is enabled

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 6b1f72e5b82a5c2a4da4d1ebb8cc01913ddbea21 upstream. When using the no-holes feature, if we have a file with prealloc extents with a start offset beyond the file's eof, doing an incremental send can cause corruption of the file due to incorrect hole detection. Such case

[PATCH 4.14 54/69] doc: Cope with Sphinx logging deprecations

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 096ea522e84ea68f8e6c41e5e7294731a81e29bc upstream. Recent versions of sphinx will emit messages like: Documentation/sphinx/kerneldoc.py:103: RemovedInSphinx20Warning: app.warning() is now deprecated. Use sphinx.util.logging instead. Switch to sphinx.uti

[PATCH 4.14 53/69] doc: Cope with the deprecation of AutoReporter

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 2404dad1f67f8917e30fc22a85e0dbcc85b99955 upstream. AutoReporter is going away; recent versions of sphinx emit a warning like: Documentation/sphinx/kerneldoc.py:125: RemovedInSphinx20Warning: AutodocReporter is now deprecated. Use sphinx.util.docutils.s

[PATCH 4.14 03/69] llc: fix skb leak in llc_build_and_send_ui_pkt()

2019-06-07 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 8fb44d60d4142cd2a440620cd291d346e23c131e ] If llc_mac_hdr_init() returns an error, we must drop the skb since no llc_build_and_send_ui_pkt() caller will take care of this. BUG: memory leak unreferenced object 0x8881202b6800 (size 2048): comm "syz-execu

[PATCH 4.14 60/69] Revert "lockd: Show pid of lockd for remote locks"

2019-06-07 Thread Greg Kroah-Hartman
From: Benjamin Coddington commit 141731d15d6eb2fd9aaefbf9b935ce86ae243074 upstream. This reverts most of commit b8eee0e90f97 ("lockd: Show pid of lockd for remote locks"), which caused remote locks to not be differentiated between remote processes for NLM. We retain the fixup for setting the cl

[PATCH 4.14 59/69] CIFS: cifs_read_allocate_pages: dont iterate through whole page array on ENOMEM

2019-06-07 Thread Greg Kroah-Hartman
From: Roberto Bergantinos Corpas commit 31fad7d41e73731f05b8053d17078638cf850fa6 upstream. In cifs_read_allocate_pages, in case of ENOMEM, we go through whole rdata->pages array but we have failed the allocation before nr_pages, therefore we may end up calling put_page with NULL pointer, causin

[PATCH 4.14 57/69] staging: vc04_services: prevent integer overflow in create_pagelist()

2019-06-07 Thread Greg Kroah-Hartman
From: Dan Carpenter commit ca641bae6da977d638458e78cd1487b6160a2718 upstream. The create_pagelist() "count" parameter comes from the user in vchiq_ioctl() and it could overflow. If you look at how create_page() is called in vchiq_prepare_bulk_data(), then the "size" variable is an int so it doe

Re: [PATCH v3 4/8] arm64: Fix interrupt tracing in the presence of NMIs

2019-06-07 Thread Marc Zyngier
On 06/06/2019 10:31, Julien Thierry wrote: > In the presence of any form of instrumentation, nmi_enter() should be > done before calling any traceable code and any instrumentation code. > > Currently, nmi_enter() is done in handle_domain_nmi(), which is much > too late as instrumentation code migh

[PATCH 4.19 10/73] USB: sisusbvga: fix oops in error path of sisusb_probe

2019-06-07 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 9a5729f68d3a82786aea110b1bfe610be318f80a upstream. The pointer used to log a failure of usb_register_dev() must be set before the error is logged. v2: fix that minor is not available before registration Signed-off-by: oliver Neukum Reported-by: syzbot+a0cbdbd6d16902

[PATCH 4.14 66/69] Revert "x86/build: Move _etext to actual end of .text"

2019-06-07 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 392bef709659abea614abfe53cf228e7a59876a4. It seems to cause lots of problems when using the gold linker, and no one really needs this at the moment, so just revert it from the stable trees. Cc: Sami Tolvanen Reported-by: Kees Cook Cc: Borislav Petk

[PATCH 4.14 50/69] memcg: make it work on sparse non-0-node systems

2019-06-07 Thread Greg Kroah-Hartman
From: Jiri Slaby commit 3e8589963773a5c23e2f1fe4bcad0e9a90b7f471 upstream. We have a single node system with node 0 disabled: Scanning NUMA topology in Northbridge 24 Number of physical nodes 2 Skipping disabled node 0 Node 1 MemBase Limit fbff NODE_DATA(1)

[PATCH 4.14 41/69] Btrfs: fix fsync not persisting changed attributes of a directory

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 60d9f50308e5df19bc18c2fefab0eba4a843900a upstream. While logging an inode we follow its ancestors and for each one we mark it as logged in the current transaction, even if we have not logged it. As a consequence if we change an attribute of an ancestor, such as the UID

[PATCH 4.14 44/69] powerpc/perf: Fix MMCRA corruption by bhrb_filter

2019-06-07 Thread Greg Kroah-Hartman
From: Ravi Bangoria commit 3202e35ec1c8fc19cea24253ff83edf702a60a02 upstream. Consider a scenario where user creates two events: 1st event: attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; fd = perf_event_open(attr, 0, 1, -1, 0); T

[PATCH 4.14 69/69] media: uvcvideo: Fix uvc_alloc_entity() allocation alignment

2019-06-07 Thread Greg Kroah-Hartman
From: Nadav Amit commit 89dd34caf73e28018c58cd193751e41b1f8bdc56 upstream. The use of ALIGN() in uvc_alloc_entity() is incorrect, since the size of (entity->pads) is not a power of two. As a stop-gap, until a better solution is adapted, use roundup() instead. Found by a static assertion. Compil

[PATCH 4.14 47/69] drm/nouveau/i2c: Disable i2c bus access after ->fini()

2019-06-07 Thread Greg Kroah-Hartman
From: Lyude Paul commit 342406e4fbba9a174125fbfe6aeac3d64ef90f76 upstream. For a while, we've had the problem of i2c bus access not grabbing a runtime PM ref when it's being used in userspace by i2c-dev, resulting in nouveau spamming the kernel log with errors if anything attempts to access the

Re: "arm64: Silence gcc warnings about arch ABI drift" breaks clang

2019-06-07 Thread Dave Martin
On Fri, Jun 07, 2019 at 08:40:10AM -0700, Nathan Chancellor wrote: > On Fri, Jun 07, 2019 at 11:26:11AM -0400, Qian Cai wrote: > > On Fri, 2019-06-07 at 16:25 +0100, Will Deacon wrote: > > > On Fri, Jun 07, 2019 at 11:22:45AM -0400, Qian Cai wrote: > > > > The linux-next commit "arm64: Silence gcc

[PATCH 4.14 46/69] KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID

2019-06-07 Thread Greg Kroah-Hartman
From: Thomas Huth commit a86cb413f4bf273a9d341a3ab2c2ca44e12eb317 upstream. KVM_CAP_MAX_VCPU_ID is currently always reporting KVM_MAX_VCPU_ID on all architectures. However, on s390x, the amount of usable CPUs is determined during runtime - it is depending on the features of the machine the code

[PATCH 4.14 67/69] Revert "binder: fix handling of misaligned binder object"

2019-06-07 Thread Greg Kroah-Hartman
From: Todd Kjos This reverts commit 33c6b9ca70a8b066a613e2a3d0331ae8f82aa31a. The commit message is for a different patch. Reverting and then adding the same patch back with the correct commit message. Reported-by: Ben Hutchings Cc: stable # 4.14 Signed-off-by: Todd Kjos Signed-off-by: Greg

[PATCH 4.14 49/69] tty: max310x: Fix external crystal register setup

2019-06-07 Thread Greg Kroah-Hartman
From: Joe Burmeister commit 5d24f455c182d5116dd5db8e1dc501115ecc9c2c upstream. The datasheet states: Bit 4: ClockEnSet the ClockEn bit high to enable an external clocking (crystal or clock generator at XIN). Set the ClockEn bit to 0 to disable clocking Bit 1: CrystalEnSet the CrystalEn bit

[PATCH 4.19 13/73] USB: rio500: fix memory leak in close after disconnect

2019-06-07 Thread Greg Kroah-Hartman
From: Oliver Neukum commit e0feb73428b69322dd5caae90b0207de369b5575 upstream. If a disconnected device is closed, rio_close() must free the buffers. Signed-off-by: Oliver Neukum Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/rio500.c | 17 +++-- 1 file chan

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