Re: [PATCH v7 4/4] mtd: spi-nor: add locking support for is25wp256 device

2019-08-09 Thread Sagar Kadam
Hello Vignesh, On Fri, Aug 9, 2019 at 4:57 PM Vignesh Raghavendra wrote: > > Hi Sagar, > > On 03/07/19 12:09 AM, Sagar Shrikant Kadam wrote: > [...]> +static int issi_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) > > +{ > > + int status_old, status_new, blk_prot; > > + u8 mask; > >

Re: [PATCH v3 04/21] ARM: dts: imx7-colibri: Add sleep mode to ethernet

2019-08-09 Thread Marcel Ziswiler
On Wed, 2019-08-07 at 08:26 +, Philippe Schenker wrote: > Add sleep pinmux to the fec so it can properly sleep. > > Signed-off-by: Philippe Schenker Acked-by: Marcel Ziswiler > --- > > Changes in v3: None > Changes in v2: None > > arch/arm/boot/dts/imx7-colibri.dtsi | 19

Re: [PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets

2019-08-09 Thread Arnd Bergmann
On Mon, Aug 5, 2019 at 10:28 AM Bartosz Golaszewski wrote: > > pt., 2 sie 2019 o 13:20 Arnd Bergmann napisał(a): > > > > On Fri, Aug 2, 2019 at 9:10 AM Bartosz Golaszewski > > wrote: > > > > -#include > > > > -#include > > > > +#define _GPREG(x) (x) > > > > > >

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-09 Thread Pintu Agarwal
[...] Hi, This is an interesting topic for me so I would like to join the conversation. I will be glad if I can be of any help here either in testing PSI, or verifying some scenarios and observation. I have some experience working with low memory embedded devices, like RAM as low as 128MB,

[PATCH] EDAC, pnd2: Fix ioremap() size in dnv_rd_reg()

2019-08-09 Thread Stephen Douthit
Depending on how BIOS has marked the reserved region containing the 32KB MCHBAR you can get warnings like: resource sanity check: requesting [mem 0xfed1-0xfed1], which spans more than reserved [mem 0xfed1-0xfed17fff] caller dnv_rd_reg+0xc8/0x240 [pnd2_edac] mapping multiple BARs Not

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-09 Thread Jens Axboe
On 8/9/19 7:13 AM, Stephen Douthit wrote: > On 8/8/19 11:46 PM, Jens Axboe wrote: >> On 8/8/19 1:24 PM, Stephen Douthit wrote: >>> Intel moved the PCS register from 0x92 to 0x94 on Denverton for some >>> reason, so now we get to check the device ID before poking it on reset. >>> >>> Signed-off-by:

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-09 Thread Stephen Douthit
On 8/8/19 11:46 PM, Jens Axboe wrote: > On 8/8/19 1:24 PM, Stephen Douthit wrote: >> Intel moved the PCS register from 0x92 to 0x94 on Denverton for some >> reason, so now we get to check the device ID before poking it on reset. >> >> Signed-off-by: Stephen Douthit >> --- >>drivers/ata/ahci.c

Re: [PATCH] EDAC, pnd2: Fix ioremap() size in dnv_rd_reg() from 64K -> 32K

2019-08-09 Thread Stephen Douthit
On 8/8/19 5:05 PM, Luck, Tony wrote: > - base = ioremap((resource_size_t)addr, 0x1); > + base = ioremap((resource_size_t)addr, 0x8000); > > Changing one magic value for another. :-( Ok, I'll give it a name. > Do different BIOS do different things? I don't recall

Re: [RFC PATCH v2] mm: slub: print kernel addresses in slub debug messages

2019-08-09 Thread Miles Chen
On Thu, 2019-08-08 at 19:46 -0700, Matthew Wilcox wrote: > On Fri, Aug 09, 2019 at 09:08:37AM +0800, miles.c...@mediatek.com wrote: > > Possible approaches are: > > 1. stop printing kernel addresses > > 2. print with %pK, > > 3. print with %px. > > No. The point of obscuring kernel addresses is

Re: [PATCH] udf: reduce leakage of blocks related to named streams

2019-08-09 Thread Steve Magnani
Jan - Thanks for the feedback. On 8/9/19 8:05 AM, Jan Kara wrote: On Wed 07-08-19 08:32:58, Steven J. Magnani wrote: From: Steve Magnani Windows is capable of creating UDF files having named streams. One example is the "Zone.Identifier" stream attached automatically to files downloaded

Re: [v4 2/6] media: platform: dwc: Add MIPI CSI-2 controller driver

2019-08-09 Thread Sakari Ailus
Hi Luis, On Tue, Jun 11, 2019 at 09:20:51PM +0200, Luis Oliveira wrote: > Add the Synopsys MIPI CSI-2 controller driver. This > controller driver is divided in platform functions and core functions. > This way it serves as platform for future DesignWare drivers. > > Signed-off-by: Luis Oliveira

Re: [PATCH v3 03/21] ARM: dts: imx7-colibri: prepare module device tree for FlexCAN

2019-08-09 Thread Marcel Ziswiler
On Wed, 2019-08-07 at 08:26 +, Philippe Schenker wrote: > Prepare FlexCAN use on SODIMM 55/63 178/188. Those SODIMM pins are > compatible for CAN bus use with several modules from the Colibri > family. > Add Better drivestrength and also add flexcan2. > > Signed-off-by: Philippe Schenker

Re: [PATCH v3 02/21] ARM: dts: imx7-colibri: disable HS400

2019-08-09 Thread Marcel Ziswiler
On Wed, 2019-08-07 at 08:26 +, Philippe Schenker wrote: > From: Stefan Agner > > Force HS200 by masking bit 63 of the SDHCI capability register. > The i.MX ESDHC driver uses SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400. With > that the stack checks bit 63 to descide whether HS400 is available. > Using

Re: [PATCH] x86/apic: Handle missing global clockevent gracefully

2019-08-09 Thread Lendacky, Thomas
On 8/9/19 7:54 AM, Thomas Gleixner wrote: > Some newer machines do not advertise legacy timers. The kernel can handle > that situation if the TSC and the CPU frequency are enumerated by CPUID or > MSRs and the CPU supports TSC deadline timer. If the CPU does not support > TSC deadline timer the

Re: [PATCH 1/3] mm/mlock.c: convert put_page() to put_user_page*()

2019-08-09 Thread Jan Kara
On Fri 09-08-19 10:23:07, Michal Hocko wrote: > On Fri 09-08-19 10:12:48, Vlastimil Babka wrote: > > On 8/9/19 12:59 AM, John Hubbard wrote: > > >>> That's true. However, I'm not sure munlocking is where the > > >>> put_user_page() machinery is intended to be used anyway? These are > > >>>

Re: [PATCH v8 14/21] clk: tegra210: Add suspend and resume support

2019-08-09 Thread Dmitry Osipenko
09.08.2019 2:46, Sowjanya Komatineni пишет: > This patch adds support for clk: tegra210: suspend-resume. > > All the CAR controller settings are lost on suspend when core > power goes off. > > This patch has implementation for saving and restoring all PLLs > and clocks context during system

Re: [PATCH] Add optional chip erase functionality to AT25 EEPROM driver.

2019-08-09 Thread Mark Rutland
On Fri, Aug 09, 2019 at 01:53:55PM +0100, Joe Burmeister wrote: > Many, though not all, AT25s have an instruction for chip erase. > If there is one in the datasheet, it can be added to device tree. > Erase can then be done in userspace via the sysfs API with a new > "erase" device attribute. This

Re: [RFC V2 0/1] mm/debug: Add tests for architecture exported page table helpers

2019-08-09 Thread Matthew Wilcox
On Fri, Aug 09, 2019 at 04:05:07PM +0530, Anshuman Khandual wrote: > On 08/09/2019 03:46 PM, Matthew Wilcox wrote: > > On Fri, Aug 09, 2019 at 01:03:17PM +0530, Anshuman Khandual wrote: > >> Should alloc_gigantic_page() be made available as an interface for general > >> use in the kernel. The test

Resend [PATCH] kernel/resource.c: invalidate parent when freed resource has childs

2019-08-09 Thread Schmid, Carsten
When a resource is freed and has children, the childrens are left without any hint that their parent is no more valid. This caused at least one use-after-free in the xhci-hcd using ext-caps driver when platform code released platform devices. Fix this by setting child's parent to zero and warn.

[PATCH 4.4 14/21] block: blk_init_allocated_queue() set q->fq as NULL in the fail case

2019-08-09 Thread Greg Kroah-Hartman
From: xiao jin commit 54648cf1ec2d7f4b6a71767799c45676a138ca24 upstream. We find the memory use-after-free issue in __blk_drain_queue() on the kernel 4.14. After read the latest kernel 4.18-rc6 we think it has the same problem. Memory is allocated for q->fq in the blk_init_allocated_queue().

[PATCH 4.4 00/21] 4.4.189-stable review

2019-08-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.189 release. There are 21 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 11 Aug 2019 01:42:28 PM UTC. Anything

[PATCH 4.4 07/21] net: bridge: delete local fdb on device init failure

2019-08-09 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit d7bae09fa008c6c9a489580db0a5a12063b97f97 ] On initialization failure we have to delete the local fdb which was inserted due to the default pvid creation. This problem has been present since the inception of default_pvid. Note that currently there are

[PATCH 4.9 00/32] 4.9.189-stable review

2019-08-09 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.189 release. There are 32 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 11 Aug 2019 01:38:45 PM UTC. Anything

[PATCH 4.9 27/32] spi: bcm2835: Fix 3-wire mode if DMA is enabled

2019-08-09 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 8d8bef50365847134b51c1ec46786bc2873e4e47 upstream. Commit 6935224da248 ("spi: bcm2835: enable support of 3-wire mode") added 3-wire support to the BCM2835 SPI driver by setting the REN bit (Read Enable) in the CS register when receiving data. The REN bit puts the

[PATCH 4.4 08/21] net: fix ifindex collision during namespace removal

2019-08-09 Thread Greg Kroah-Hartman
From: Jiri Pirko [ Upstream commit 55b40dbf0e76b4bfb9d8b3a16a0208640a9a45df ] Commit aca51397d014 ("netns: Fix arbitrary net_device-s corruptions on net_ns stop.") introduced a possibility to hit a BUG in case device is returning back to init_net and two following conditions are met: 1)

[PATCH 4.9 28/32] x86: cpufeatures: Sort feature word 7

2019-08-09 Thread Greg Kroah-Hartman
From: Ben Hutchings This will make it clearer which bits are allocated, in case we need to assign more feature bits for later backports. Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/cpufeatures.h |4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 4.9 19/32] net/mlx5: Use reversed order when unregister devices

2019-08-09 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 08aa5e7da6bce1a1963f63cf32c2e7ad434ad578 ] When lag is active, which is controlled by the bonded mlx5e netdev, mlx5 interface unregestering must happen in the reverse order where rdma is unregistered (unloaded) first, to guarantee all references to the lag

[PATCH 4.9 20/32] net: sched: Fix a possible null-pointer dereference in dequeue_func()

2019-08-09 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 051c7b39be4a91f6b7d8c4548444e4b850f1f56c ] In dequeue_func(), there is an if statement on line 74 to check whether skb is NULL: if (skb) When skb is NULL, it is used on line 77: prefetch(>end); Thus, a possible null-pointer dereference may occur. To

[PATCH 4.4 18/21] x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 18ec54fdd6d18d92025af097cd042a75cf0ea24c upstream. Spectre v1 isn't only about array bounds checks. It can affect any conditional checks. The kernel entry code interrupt, exception, and NMI handlers all have conditional swapgs checks. Those may be problematic in

[GIT PULL] pwm: Fixes for v5.3-rc4

2019-08-09 Thread Thierry Reding
Hi Linus, The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-5.3-rc4 for you to fetch

[PATCH 4.9 01/32] scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure

2019-08-09 Thread Greg Kroah-Hartman
From: Hannes Reinecke commit 023358b136d490ca91735ac6490db3741af5a8bd upstream. Gcc-9 complains for a memset across pointer boundaries, which happens as the code tries to allocate a flexible array on the stack. Turns out we cannot do this without relying on gcc-isms, so with this patch we'll

[PATCH 4.9 22/32] compat_ioctl: pppoe: fix PPPOEIOCSFWD handling

2019-08-09 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 055d88242a6046a1ceac3167290f054c72571cd9 ] Support for handling the PPPOEIOCSFWD ioctl in compat mode was added in linux-2.5.69 along with hundreds of other commands, but was always broken sincen only the structure is compatible, but the command number is

[PATCH 4.9 23/32] ip6_tunnel: fix possible use-after-free on xmit

2019-08-09 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 01f5bffad555f8e22a61f4b1261fe09cf1b96994 ] ip4ip6/ip6ip6 tunnels run iptunnel_handle_offloads on xmit which can cause a possible use-after-free accessing iph/ipv6h pointer since the packet will be 'uncloned' running pskb_expand_head if it is a cloned gso

[PATCH 4.9 24/32] ife: error out when nla attributes are empty

2019-08-09 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit c8ec4632c6ac9cda0e8c3d51aa41eeab66585bd5 ] act_ife at least requires TCA_IFE_PARMS, so we have to bail out when there is no attribute passed in. Reported-by: syzbot+fbb5b288c9cb6a2ee...@syzkaller.appspotmail.com Fixes: ef6980b6becb ("introduce IFE action") Cc:

Re: [PATCH] mm/sparse: use __nr_to_section(section_nr) to get mem_section

2019-08-09 Thread Wei Yang
On Fri, Aug 09, 2019 at 02:39:59PM +0530, Anshuman Khandual wrote: > > >On 08/09/2019 06:32 AM, Wei Yang wrote: >> __pfn_to_section is defined as __nr_to_section(pfn_to_section_nr(pfn)). > >Right. > >> >> Since we already get section_nr, it is not necessary to get mem_section >> from start_pfn.

[PATCH 4.9 25/32] bnx2x: Disable multi-cos feature.

2019-08-09 Thread Greg Kroah-Hartman
From: Sudarsana Reddy Kalluru [ Upstream commit d1f0b5dce8fda09a7f5f04c1878f181d548e42f5 ] Commit 3968d38917eb ("bnx2x: Fix Multi-Cos.") which enabled multi-cos feature after prolonged time in driver added some regression causing numerous issues (sudden reboots, tx timeout etc.) reported by

[PATCH 4.9 30/32] x86/speculation: Enable Spectre v1 swapgs mitigations

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit a2059825986a1c8143fd6698774fa9d83733bb11 upstream. The previous commit added macro calls in the entry code which mitigate the Spectre v1 swapgs issue if the X86_FEATURE_FENCE_SWAPGS_* features are enabled. Enable those features where applicable. The mitigations may

[PATCH 4.9 14/32] libceph: use kbasename() and kill ceph_file_part()

2019-08-09 Thread Greg Kroah-Hartman
From: Ilya Dryomov commit 6f4dbd149d2a151b89d1a5bbf7530ee5546c7908 upstream. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- include/linux/ceph/ceph_debug.h |6 +++--- net/ceph/ceph_common.c | 13 - 2 files changed, 3

[PATCH 4.9 15/32] atm: iphase: Fix Spectre v1 vulnerability

2019-08-09 Thread Greg Kroah-Hartman
From: "Gustavo A. R. Silva" [ Upstream commit ea443e5e98b5b74e317ef3d26bcaea54931ccdee ] board is controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: drivers/atm/iphase.c:2765 ia_ioctl()

[PATCH 4.9 09/32] HID: Add quirk for HP X1200 PIXART OEM mouse

2019-08-09 Thread Greg Kroah-Hartman
From: Sebastian Parschauer commit 49869d2ea9eecc105a10724c1abf035151a3c4e2 upstream. The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. So add quirk ALWAYS_POLL for this one as well. Jonathan Teh (@jonathan-teh) reported and tested

[PATCH 4.9 16/32] net: bridge: delete local fdb on device init failure

2019-08-09 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit d7bae09fa008c6c9a489580db0a5a12063b97f97 ] On initialization failure we have to delete the local fdb which was inserted due to the default pvid creation. This problem has been present since the inception of default_pvid. Note that currently there are

[PATCH 4.9 32/32] x86/speculation/swapgs: Exclude ATOMs from speculation through SWAPGS

2019-08-09 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit f36cf386e3fec258a341d446915862eded3e13d8 upstream. Intel provided the following information: On all current Atom processors, instructions that use a segment register value (e.g. a load or store) will not speculatively execute before the last writer of that

[PATCH 4.9 13/32] objtool: Add rewind_stack_do_exit() to the noreturn list

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 4fa5ecda2bf96be7464eb406df8aba9d89260227 upstream. This fixes the following warning seen on GCC 7.3: arch/x86/kernel/dumpstack.o: warning: objtool: oops_end() falls through to next function show_regs() Reported-by: kbuild test robot Signed-off-by: Josh

[PATCH 4.9 10/32] RDMA: Directly cast the sockaddr union to sockaddr

2019-08-09 Thread Greg Kroah-Hartman
From: Jason Gunthorpe commit 641114d2af312d39ca9bbc2369d18a5823da51c6 upstream. gcc 9 now does allocation size tracking and thinks that passing the member of a union and then accessing beyond that member's bounds is an overflow. Instead of using the union member, use the entire union with a

[PATCH 4.9 07/32] tcp: be more careful in tcp_fragment()

2019-08-09 Thread Greg Kroah-Hartman
[ Upstream commit b617158dc096709d8600c53b6052144d12b89fab ] Some applications set tiny SO_SNDBUF values and expect TCP to just work. Recent patches to address CVE-2019-11478 broke them in case of losses, since retransmits might be prevented. We should allow these flows to make progress. This

[PATCH 4.9 02/32] ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD SOM-LV

2019-08-09 Thread Greg Kroah-Hartman
[ Upstream commit 5fe3c0fa0d54877c65e7c9b4442aeeb25cdf469a ] Since I2C1 and I2C4 have explicit pinmuxing set, let's be on the safe side and set the pin muxing for I2C2 and I2C3. Signed-off-by: Adam Ford Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin ---

[PATCH 4.9 08/32] HID: wacom: fix bit shift for Cintiq Companion 2

2019-08-09 Thread Greg Kroah-Hartman
From: Aaron Armstrong Skomra commit 693c3dab4e50403f91bca4b52fc6d8562a3180f6 upstream. The bit indicating BTN_6 on this device is overshifted by 2 bits, resulting in the incorrect button being reported. Also fix copy-paste mistake in comments. Signed-off-by: Aaron Armstrong Skomra

[PATCH 4.9 03/32] ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD torpedo

2019-08-09 Thread Greg Kroah-Hartman
[ Upstream commit a135a392acbec7ecda782981788e8c03767a1571 ] Since I2C1 and I2C4 have explicit pinmuxing set, let's be on the safe side and set the pin muxing for I2C2 and I2C3. Signed-off-by: Adam Ford Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin ---

[PATCH 4.9 05/32] arm64: cpufeature: Fix CTR_EL0 field definitions

2019-08-09 Thread Greg Kroah-Hartman
commit be68a8aaf925aaf35574260bf820bb09d2f9e07f upstream. Our field definitions for CTR_EL0 suffer from a number of problems: - The IDC and DIC fields are missing, which causes us to enable CTR trapping on CPUs with either of these returning non-zero values. - The ERG is FTR_LOWER_SAFE,

[PATCH 4.9 17/32] net: bridge: mcast: dont delete permanent entries when fast leave is enabled

2019-08-09 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit 5c725b6b65067909548ac9ca9bc777098ec9883d ] When permanent entries were introduced by the commit below, they were exempt from timing out and thus igmp leave wouldn't affect them unless fast leave was enabled on the port which was added before permanent

[PATCH 4.9 18/32] net: fix ifindex collision during namespace removal

2019-08-09 Thread Greg Kroah-Hartman
From: Jiri Pirko [ Upstream commit 55b40dbf0e76b4bfb9d8b3a16a0208640a9a45df ] Commit aca51397d014 ("netns: Fix arbitrary net_device-s corruptions on net_ns stop.") introduced a possibility to hit a BUG in case device is returning back to init_net and two following conditions are met: 1)

[PATCH 4.9 11/32] [PATCH] IB: directly cast the sockaddr union to aockaddr

2019-08-09 Thread Greg Kroah-Hartman
Like commit 641114d2af31 ("RDMA: Directly cast the sockaddr union to sockaddr") we need to quiet gcc 9 from warning about this crazy union. That commit did not fix all of the warnings in 4.19 and older kernels because the logic in roce_resolve_route_from_path() was rewritten between 4.19 and 5.2

[PATCH 4.9 31/32] x86/entry/64: Use JMP instead of JMPQ

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 64dbc122b20f75183d8822618c24f85144a5a94d upstream. Somehow the swapgs mitigation entry code patch ended up with a JMPQ instruction instead of JMP, where only the short jump is needed. Some assembler versions apparently fail to optimize JMPQ into a two-byte JMP when

[PATCH 4.4 17/21] x86/entry/64: Fix context tracking state warning when load_gs_index fails

2019-08-09 Thread Greg Kroah-Hartman
From: Wanpeng Li commit 2fa5f04f85730d0c4f49f984b7efeb4f8d5bd1fc upstream. This warning: WARNING: CPU: 0 PID: 3331 at arch/x86/entry/common.c:45 enter_from_user_mode+0x32/0x50 CPU: 0 PID: 3331 Comm: ldt_gdt_64 Not tainted 4.8.0-rc7+ #13 Call Trace: dump_stack+0x99/0xd0 __warn+0xd1/0xf0

[PATCH 4.4 21/21] x86/speculation/swapgs: Exclude ATOMs from speculation through SWAPGS

2019-08-09 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit f36cf386e3fec258a341d446915862eded3e13d8 upstream. Intel provided the following information: On all current Atom processors, instructions that use a segment register value (e.g. a load or store) will not speculatively execute before the last writer of that

[PATCH 4.9 06/32] arm64: cpufeature: Fix feature comparison for CTR_EL0.{CWG,ERG}

2019-08-09 Thread Greg Kroah-Hartman
commit 147b9635e6347104b91f48ca9dca61eb0fbf2a54 upstream. If CTR_EL0.{CWG,ERG} are 0b then they must be interpreted to have their architecturally maximum values, which defeats the use of FTR_HIGHER_SAFE when sanitising CPU ID registers on heterogeneous machines. Introduce

[PATCH 4.9 04/32] ARM: dts: logicpd-som-lv: Fix Audio Mute

2019-08-09 Thread Greg Kroah-Hartman
[ Upstream commit 95e59fc3c3fa3187a07a75f40b21637deb4bd12d ] The Audio has worked, but the mute pin has a weak pulldown which alows some of the audio signal to pass very quietly. This patch fixes that so the mute pin is actively driven high for mute or low for normal operation. Fixes:

[PATCH 4.9 29/32] x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 18ec54fdd6d18d92025af097cd042a75cf0ea24c upstream. Spectre v1 isn't only about array bounds checks. It can affect any conditional checks. The kernel entry code interrupt, exception, and NMI handlers all have conditional swapgs checks. Those may be problematic in

[PATCH 4.9 12/32] objtool: Add machine_real_restart() to the noreturn list

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 684fb246578b9e81fc7b4ca5c71eae22edb650b2 upstream. machine_real_restart() is annotated as '__noreturn", so add it to the objtool noreturn list. This fixes the following warning with clang and CONFIG_CC_OPTIMIZE_FOR_SIZE=y: arch/x86/kernel/reboot.o: warning:

[PATCH 4.9 21/32] tipc: compat: allow tipc commands without arguments

2019-08-09 Thread Greg Kroah-Hartman
From: Taras Kondratiuk [ Upstream commit 4da5f0018eef4c0de31675b670c80e82e13e99d1 ] Commit 2753ca5d9009 ("tipc: fix uninit-value in tipc_nl_compat_doit") broke older tipc tools that use compat interface (e.g. tipc-config from tipcutils package): % tipc-config -p operation not supported The

[PATCH 4.9 26/32] block: blk_init_allocated_queue() set q->fq as NULL in the fail case

2019-08-09 Thread Greg Kroah-Hartman
From: xiao jin commit 54648cf1ec2d7f4b6a71767799c45676a138ca24 upstream. We find the memory use-after-free issue in __blk_drain_queue() on the kernel 4.14. After read the latest kernel 4.18-rc6 we think it has the same problem. Memory is allocated for q->fq in the blk_init_allocated_queue().

[PATCH 4.4 04/21] HID: Add quirk for HP X1200 PIXART OEM mouse

2019-08-09 Thread Greg Kroah-Hartman
From: Sebastian Parschauer commit 49869d2ea9eecc105a10724c1abf035151a3c4e2 upstream. The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. So add quirk ALWAYS_POLL for this one as well. Jonathan Teh (@jonathan-teh) reported and tested

[PATCH 4.4 05/21] tcp: be more careful in tcp_fragment()

2019-08-09 Thread Greg Kroah-Hartman
[ Upstream commit b617158dc096709d8600c53b6052144d12b89fab ] Some applications set tiny SO_SNDBUF values and expect TCP to just work. Recent patches to address CVE-2019-11478 broke them in case of losses, since retransmits might be prevented. We should allow these flows to make progress. This

[PATCH 4.4 03/21] netfilter: nfnetlink_acct: validate NFACCT_QUOTA parameter

2019-08-09 Thread Greg Kroah-Hartman
[ Upstream commit eda3fc50daa93b08774a18d51883c5a5d8d85e15 ] If a quota bit is set in NFACCT_FLAGS but the NFACCT_QUOTA parameter is missing then a NULL pointer dereference is triggered. CAP_NET_ADMIN is required to trigger the bug. Signed-off-by: Phil Turnbull Signed-off-by: Pablo Neira Ayuso

[PATCH 4.4 20/21] x86/entry/64: Use JMP instead of JMPQ

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 64dbc122b20f75183d8822618c24f85144a5a94d upstream. Somehow the swapgs mitigation entry code patch ended up with a JMPQ instruction instead of JMP, where only the short jump is needed. Some assembler versions apparently fail to optimize JMPQ into a two-byte JMP when

[PATCH 4.4 09/21] tipc: compat: allow tipc commands without arguments

2019-08-09 Thread Greg Kroah-Hartman
From: Taras Kondratiuk [ Upstream commit 4da5f0018eef4c0de31675b670c80e82e13e99d1 ] Commit 2753ca5d9009 ("tipc: fix uninit-value in tipc_nl_compat_doit") broke older tipc tools that use compat interface (e.g. tipc-config from tipcutils package): % tipc-config -p operation not supported The

[PATCH 4.4 19/21] x86/speculation: Enable Spectre v1 swapgs mitigations

2019-08-09 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit a2059825986a1c8143fd6698774fa9d83733bb11 upstream. The previous commit added macro calls in the entry code which mitigate the Spectre v1 swapgs issue if the X86_FEATURE_FENCE_SWAPGS_* features are enabled. Enable those features where applicable. The mitigations may

[PATCH 4.4 06/21] atm: iphase: Fix Spectre v1 vulnerability

2019-08-09 Thread Greg Kroah-Hartman
From: "Gustavo A. R. Silva" [ Upstream commit ea443e5e98b5b74e317ef3d26bcaea54931ccdee ] board is controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: drivers/atm/iphase.c:2765 ia_ioctl()

[PATCH 4.4 02/21] arm64: cpufeature: Fix feature comparison for CTR_EL0.{CWG,ERG}

2019-08-09 Thread Greg Kroah-Hartman
commit 147b9635e6347104b91f48ca9dca61eb0fbf2a54 upstream. If CTR_EL0.{CWG,ERG} are 0b then they must be interpreted to have their architecturally maximum values, which defeats the use of FTR_HIGHER_SAFE when sanitising CPU ID registers on heterogeneous machines. Introduce

[PATCH 4.4 01/21] arm64: cpufeature: Fix CTR_EL0 field definitions

2019-08-09 Thread Greg Kroah-Hartman
commit be68a8aaf925aaf35574260bf820bb09d2f9e07f upstream. Our field definitions for CTR_EL0 suffer from a number of problems: - The IDC and DIC fields are missing, which causes us to enable CTR trapping on CPUs with either of these returning non-zero values. - The ERG is FTR_LOWER_SAFE,

[PATCH 4.4 12/21] bnx2x: Disable multi-cos feature.

2019-08-09 Thread Greg Kroah-Hartman
From: Sudarsana Reddy Kalluru [ Upstream commit d1f0b5dce8fda09a7f5f04c1878f181d548e42f5 ] Commit 3968d38917eb ("bnx2x: Fix Multi-Cos.") which enabled multi-cos feature after prolonged time in driver added some regression causing numerous issues (sudden reboots, tx timeout etc.) reported by

[PATCH 4.4 16/21] x86: cpufeatures: Sort feature word 7

2019-08-09 Thread Greg Kroah-Hartman
From: Ben Hutchings This will make it clearer which bits are allocated, in case we need to assign more feature bits for later backports. Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/cpufeatures.h |6 ++ 1 file changed, 2 insertions(+), 4

[PATCH 4.4 15/21] spi: bcm2835: Fix 3-wire mode if DMA is enabled

2019-08-09 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 8d8bef50365847134b51c1ec46786bc2873e4e47 upstream. Commit 6935224da248 ("spi: bcm2835: enable support of 3-wire mode") added 3-wire support to the BCM2835 SPI driver by setting the REN bit (Read Enable) in the CS register when receiving data. The REN bit puts the

[PATCH 4.4 13/21] compat_ioctl: pppoe: fix PPPOEIOCSFWD handling

2019-08-09 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 055d88242a6046a1ceac3167290f054c72571cd9 ] Support for handling the PPPOEIOCSFWD ioctl in compat mode was added in linux-2.5.69 along with hundreds of other commands, but was always broken sincen only the structure is compatible, but the command number is

[PATCH 4.4 11/21] net/mlx5: Use reversed order when unregister devices

2019-08-09 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 08aa5e7da6bce1a1963f63cf32c2e7ad434ad578 ] When lag is active, which is controlled by the bonded mlx5e netdev, mlx5 interface unregestering must happen in the reverse order where rdma is unregistered (unloaded) first, to guarantee all references to the lag

[PATCH 4.4 10/21] net: sched: Fix a possible null-pointer dereference in dequeue_func()

2019-08-09 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 051c7b39be4a91f6b7d8c4548444e4b850f1f56c ] In dequeue_func(), there is an if statement on line 74 to check whether skb is NULL: if (skb) When skb is NULL, it is used on line 77: prefetch(>end); Thus, a possible null-pointer dereference may occur. To

Re: [PATCH] perf trace: Fix segmentation fault when access syscall info

2019-08-09 Thread Leo Yan
On Fri, Aug 09, 2019 at 10:25:22AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Aug 09, 2019 at 06:47:52PM +0800, Leo Yan escreveu: > > 'perf trace' reports the segmentation fault as below on Arm64: > > > > # perf trace -e string -e augmented_raw_syscalls.c > > LLVM: dumping

[PATCH v3 06/14] net: phy: adin: make RGMII internal delays configurable

2019-08-09 Thread Alexandru Ardelean
The internal delays for the RGMII are configurable for both RX & TX. This change adds support for configuring them via device-tree (or ACPI). Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 82 ++ 1 file changed,

[PATCH v3 02/14] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-09 Thread Alexandru Ardelean
The chip supports standard suspend/resume via BMCR reg. Hook these functions into the `adin` driver. Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c

[PATCH v3 07/14] net: phy: adin: make RMII fifo depth configurable

2019-08-09 Thread Alexandru Ardelean
The FIFO depth can be configured for the RMII mode. This change adds support for doing this via device-tree (or ACPI). Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH v3 09/14] net: phy: adin: add EEE translation layer from Clause 45 to Clause 22

2019-08-09 Thread Alexandru Ardelean
The ADIN1200 & ADIN1300 PHYs support EEE by using standard Clause 45 access to access MMD registers for EEE. The EEE register addresses (when using Clause 22) are available at different addresses (than Clause 45), and since accessing these regs (via Clause 22) needs a special mechanism, a

[PATCH v3 13/14] net: phy: adin: add ethtool get_stats support

2019-08-09 Thread Alexandru Ardelean
This change implements retrieving all the error counters from the PHY. The PHY supports several error counters/stats. The `Mean Square Errors` status values are only valie when a link is established, and shouldn't be accumulated. These values characterize the quality of a signal. The rest of the

[PATCH v3 10/14] net: phy: adin: implement PHY subsystem software reset

2019-08-09 Thread Alexandru Ardelean
The ADIN PHYs supports 4 types of reset: 1. The standard PHY reset via BMCR_RESET bit in MII_BMCR reg 2. Reset via GPIO 3. Reset via reg GeSftRst (0xff0c) & reload previous pin configs 4. Reset via reg GeSftRst (0xff0c) & request new pin configs Resets 2 & 4 are almost identical, with the

[PATCH v3 04/14] net: phy: adin: add {write,read}_mmd hooks

2019-08-09 Thread Alexandru Ardelean
Both ADIN1200 & ADIN1300 support Clause 45 access for some registers. The Extended Management Interface (EMI) registers are accessible via both Clause 45 (at register MDIO_MMD_VEND1) and using Clause 22. However, the Clause 22 access for MMD regs differs from the standard one defined by 802.3.

[PATCH v3 05/14] net: phy: adin: configure RGMII/RMII/MII modes on config

2019-08-09 Thread Alexandru Ardelean
The ADIN1300 chip supports RGMII, RMII & MII modes. Default (if unconfigured) is RGMII. This change adds support for configuring these modes via the device registers. For RGMII with internal delays (modes RGMII_ID,RGMII_TXID, RGMII_RXID), the default delay is 2 ns. This can be configurable and

[PATCH v3 08/14] net: phy: adin: add support MDI/MDIX/Auto-MDI selection

2019-08-09 Thread Alexandru Ardelean
The ADIN PHYs support automatic MDI/MDIX negotiation. By default this is disabled, so this is enabled at `config_init`. This is controlled via the PHY Control 1 register. The supported modes are: 1. Manual MDI 2. Manual MDIX 3. Auto MDIX - prefer MDIX 4. Auto MDIX - prefer MDI The phydev

[PATCH v3 12/14] net: phy: adin: implement downshift configuration via phy-tunable

2019-08-09 Thread Alexandru Ardelean
Down-speed auto-negotiation may not always be enabled, in which case the PHY won't down-shift to 100 or 10 during auto-negotiation. This change enables downshift and configures the number of retries to default 4 (which is also in the datasheet The downshift control mechanism can also be

[PATCH v3 14/14] dt-bindings: net: add bindings for ADIN PHY driver

2019-08-09 Thread Alexandru Ardelean
This change adds bindings for the Analog Devices ADIN PHY driver, detailing all the properties implemented by the driver. Signed-off-by: Alexandru Ardelean --- .../devicetree/bindings/net/adi,adin.yaml | 73 +++ MAINTAINERS | 1 + 2 files

[PATCH v3 00/14] net: phy: adin: add support for Analog Devices PHYs

2019-08-09 Thread Alexandru Ardelean
This changeset adds support for Analog Devices Industrial Ethernet PHYs. Particularly the PHYs this driver adds support for: * ADIN1200 - Robust, Industrial, Low Power 10/100 Ethernet PHY * ADIN1300 - Robust, Industrial, Low Latency 10/100/1000 Gigabit Ethernet PHY The 2 chips are pin &

[PATCH v3 11/14] net: phy: adin: implement Energy Detect Powerdown mode

2019-08-09 Thread Alexandru Ardelean
The ADIN PHYs support Energy Detect Powerdown mode, which puts the PHY into a low power mode when there is no signal on the wire (typically cable unplugged). This behavior is enabled by default, but can be disabled via device property. Signed-off-by: Alexandru Ardelean ---

[PATCH v3 03/14] net: phy: adin: add support for interrupts

2019-08-09 Thread Alexandru Ardelean
This change adds support for enabling PHY interrupts that can be used by the PHY framework to get signal for link/speed/auto-negotiation changes. Reviewed-by: Andrew Lunn Signed-off-by: Alexandru Ardelean --- drivers/net/phy/adin.c | 38 ++ 1 file changed,

[PATCH v3 01/14] net: phy: adin: add support for Analog Devices PHYs

2019-08-09 Thread Alexandru Ardelean
This change adds support for Analog Devices Industrial Ethernet PHYs. Particularly the PHYs this driver adds support for: * ADIN1200 - Robust, Industrial, Low Power 10/100 Ethernet PHY * ADIN1300 - Robust, Industrial, Low Latency 10/100/1000 Gigabit Ethernet PHY The 2 chips are pin &

[PATCH v3 0/4] ASoC: codecs: Add WSA881x Smart Speaker amplifier support

2019-08-09 Thread Srinivas Kandagatla
Thanks for reviewing v2 patchset, here is v3 with addressing the comments in v2. This patchset adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier which is SoundWire interfaced. This also adds support to some missing bits in SoundWire bus layer like Device Tree support. This patchset

[PATCH v3 4/4] ASoC: codecs: add wsa881x amplifier support

2019-08-09 Thread Srinivas Kandagatla
This patch adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier is primarily interfaced with SoundWire. One WSA is used for mono speaker configuration and second one would give stereo setup. This patch is tested on SDM845 based DragonBoard DB845c. Signed-off-by:

[PATCH v3 2/4] soundwire: core: add device tree support for slave devices

2019-08-09 Thread Srinivas Kandagatla
This patch adds support to parsing device tree based SoundWire slave devices. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.c | 2 ++ drivers/soundwire/bus.h | 1 + drivers/soundwire/slave.c | 44 +++ 3 files changed, 47 insertions(+)

[PATCH v3 3/4] dt-bindings: ASoC: Add WSA881x bindings

2019-08-09 Thread Srinivas Kandagatla
This patch adds bindings for WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier also has a simple thermal sensor for over temperature and speaker protection. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,wsa881x.txt | 24 +++ 1 file

[PATCH v3 1/4] dt-bindings: soundwire: add slave bindings

2019-08-09 Thread Srinivas Kandagatla
This patch adds bindings for Soundwire Slave devices that includes how SoundWire enumeration address and Link ID are used to represented in SoundWire slave device tree nodes. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/soundwire/slave.txt | 51 +++ 1 file

Re: [PATCH] sched: use rq_lock/unlock in online_fair_sched_group

2019-08-09 Thread Phil Auld
On Tue, Aug 06, 2019 at 03:03:34PM +0200 Peter Zijlstra wrote: > On Thu, Aug 01, 2019 at 09:37:49AM -0400, Phil Auld wrote: > > Enabling WARN_DOUBLE_CLOCK in /sys/kernel/debug/sched_features causes > > ISTR there were more issues; but it sure is good to start picking them > off. > Following up

Re: [PATCH v8 16/21] soc/tegra: pmc: Add pmc wake support for tegra210

2019-08-09 Thread Dmitry Osipenko
09.08.2019 2:46, Sowjanya Komatineni пишет: > This patch implements PMC wakeup sequence for Tegra210 and defines > common used RTC alarm wake event. > > Signed-off-by: Sowjanya Komatineni > --- > drivers/soc/tegra/pmc.c | 98 > + > 1 file

Re: [PATCH] Add optional chip erase functionality to AT25 EEPROM driver.

2019-08-09 Thread Greg Kroah-Hartman
On Fri, Aug 09, 2019 at 02:18:24PM +0100, Joe Burmeister wrote: > Hi Greg, > > On 09/08/2019 14:00, Greg Kroah-Hartman wrote: > > On Fri, Aug 09, 2019 at 01:53:55PM +0100, Joe Burmeister wrote: > > > +static void _eeprom_at25_store_erase_locked(struct at25_data *at25) > > > +{ > > > + unsigned

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