Re: [PATCH v6 3/3] ASoC: sun4i-i2s: Adjust LRCLK width

2019-08-27 Thread Maxime Ripard
On Mon, Aug 26, 2019 at 08:07:34PM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper > > Some codecs such as i2s based HDMI audio and the Pine64 DAC require > a different amount of bit clocks per frame than what is calculated > by the sample width. Use the values obtained by the tdm slot bi

Re: [RESEND PATCH v3 08/20] mtd: spi-nor: Split spi_nor_init_params()

2019-08-27 Thread Tudor.Ambarus
On 08/27/2019 09:00 AM, Vignesh Raghavendra wrote: >> + *Please not that there is a ->post_bfpt() fixup hook that can >> overwrite the > s/not/note > >> + *flash parameters and settings imediately after parsing the Basic Flash > s/imediately/immediately > will update, thanks!

Re: [PATCH 1/2] mm: Don't manually decrement num_poisoned_pages

2019-08-27 Thread David Hildenbrand
On 27.08.19 07:36, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use the function written to do it instead. > > Signed-off-by: Alastair D'Silva > --- > mm/sparse.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/mm/sparse.c b/mm/sparse.c > index 72f010d9bff5

Re: [PATCH 2/2] mm: don't hide potentially null memmap pointer in sparse_remove_section

2019-08-27 Thread Alastair D'Silva
On Tue, 2019-08-27 at 08:24 +0200, Michal Hocko wrote: > On Tue 27-08-19 15:36:55, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > By adding offset to memmap before passing it in to > > clear_hwpoisoned_pages, > > we hide a theoretically null memmap from the null check inside > > clear

[PATCH -next] media: sun6i: Make sun4i_csi_formats static

2019-08-27 Thread YueHaibing
Fix sparse warning: drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c:21:31: warning: symbol 'sun4i_csi_formats' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c | 2 +- 1 file changed, 1 inserti

Re: [RESEND PATCH v3 11/20] mtd: spi-nor: Add post_sfdp() hook to tweak flash config

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:38 PM, tudor.amba...@microchip.com wrote: > From: Boris Brezillon > > SFDP tables are sometimes wrong and we need a way to override the > config chosen by the SFDP parsing logic without discarding all of it. > > Add a new hook called after the SFDP parsing has taken place to dea

Re: [PATCH 2/2] mm: don't hide potentially null memmap pointer in sparse_remove_section

2019-08-27 Thread David Hildenbrand
On 27.08.19 09:00, Alastair D'Silva wrote: > On Tue, 2019-08-27 at 08:24 +0200, Michal Hocko wrote: >> On Tue 27-08-19 15:36:55, Alastair D'Silva wrote: >>> From: Alastair D'Silva >>> >>> By adding offset to memmap before passing it in to >>> clear_hwpoisoned_pages, >>> we hide a theoretically nul

Re: [RESEND PATCH v3 12/20] mtd: spi-nor: Add spansion_post_sfdp_fixups()

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:38 PM, tudor.amba...@microchip.com wrote: > From: Boris Brezillon > > Add a spansion_post_sfdp_fixups() function to fix the erase opcode, > erase sector size and set the SNOR_F_4B_OPCODES flag. > This way, all spansion related quirks are placed in the > spansion_post_sfdp_fixups(

Re: [RESEND PATCH v3 13/20] mtd: spi-nor: Add a ->convert_addr() method

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:38 PM, tudor.amba...@microchip.com wrote: > From: Boris Brezillon > > In order to separate manufacturer quirks from the core we need to get > rid of all the manufacturer specific flags, like the > SNOR_F_S3AN_ADDR_DEFAULT one. > > This can easily be replaced by a ->convert_addr(

Re: [PATCH] tpm: tpm_crb: Fix an improper buffer size calculation bug

2019-08-27 Thread Seunghun Han
> > On Mon, Aug 26, 2019 at 04:44:00PM +0900, Seunghun Han wrote: > > I'm Seunghun Han and work at the Affiliated Institute of ETRI. I found > > You can drop the first sentence from the commit message. The SoB below > is sufficient. Thank you, and I will remove it from next version of the patch.

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-27 Thread David Hildenbrand
On 27.08.19 08:39, Alastair D'Silva wrote: > On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: >> On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: >>> From: Alastair D'Silva >>> >>> It is possible for firmware to allocate memory ranges outside >>> the range of physical memory that we support

[PATCH] x86/cpufeature: drop *_MASK_CEHCK

2019-08-27 Thread Cao jin
They are wrappers of BUILD_BUG_ON_ZERO(NCAPINTS != n), which is already present in corresponding *_MASK_BIT_SET. And fill the missing period in head comments by the way. Signed-off-by: Cao jin --- arch/x86/include/asm/cpufeature.h| 2 -- arch/x86/include/asm/disabled-features.h | 1 - ar

Re: [PATCH v2 01/15] kvm: x86: Modify kvm_x86_ops.get_enable_apicv() to use struct kvm parameter

2019-08-27 Thread Vitaly Kuznetsov
"Suthikulpanit, Suravee" writes: > Generally, APICv for all vcpus in the VM are enable/disable in the same > manner. So, get_enable_apicv() should represent APICv status of the VM > instead of each VCPU. > > Modify kvm_x86_ops.get_enable_apicv() to take struct kvm as parameter > instead of struct

Re: [PATCH 00/10] OOM Debug print selection and additional information

2019-08-27 Thread Michal Hocko
On Mon 26-08-19 12:36:28, Edward Chron wrote: [...] > Extensibility using OOM debug options > - > What is needed is an extensible system to optionally configure > debug options as needed and to then dynamically enable and disable > them. Also for options that pro

[PATCH] perf arch powerpc: Sync powerpc syscall.tbl

2019-08-27 Thread Naveen N. Rao
Copy over powerpc syscall.tbl to grab changes from the below commits: commit cee3536d24a1 ("powerpc: Wire up clone3 syscall") commit 1a271a68e030 ("arch: mark syscall number 435 reserved for clone3") commit 7615d9e1780e ("arch: wire-up pidfd_open()") commit d8076bdb56af ("uapi: Wire up the

[PATCH v1 1/1] ARM: dts: rockchip: set crypto default disabled on rk3288

2019-08-27 Thread Elon Zhang
Not every board needs to enable crypto node, so the node should be set default disabled in rk3288.dtsi and enabled in specific board dts file. Signed-off-by: Elon Zhang --- arch/arm/boot/dts/rk3288.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288.

Re: [RESEND PATCH v3 14/20] mtd: spi_nor: Add a ->setup() method

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:38 PM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > nor->params.setup() configures the SPI NOR memory. Useful for SPI NOR > flashes that have peculiarities to the SPI NOR standard, e.g. > different opcodes, specific address calculation, page size, etc. > Right now

[PATCH -next] NFS: remove set but not used variable 'mapping'

2019-08-27 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: fs/nfs/write.c: In function nfs_page_async_flush: fs/nfs/write.c:609:24: warning: variable mapping set but not used [-Wunused-but-set-variable] It is not use since commit aefb623c422e ("NFS: Fix writepage(s) error handling to not report errors twice

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-27 Thread Michal Hocko
On Tue 27-08-19 16:39:56, Alastair D'Silva wrote: > On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: > > On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > It is possible for firmware to allocate memory ranges outside > > > the range of physical memor

Re: [RESEND PATCH v3 15/20] mtd: spi-nor: Add s3an_post_sfdp_fixups()

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:39 PM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > s3an_nor_scan() was overriding the opcode selection done in > spi_nor_default_setup(). Set nor->setup() method in order to > avoid the unnecessary call to spi_nor_default_setup(). > > Signed-off-by: Tudor Ambaru

Re: [PATCH -next] media: sun6i: Make sun4i_csi_formats static

2019-08-27 Thread Sakari Ailus
Hi Yue, On Tue, Aug 27, 2019 at 03:06:23PM +0800, YueHaibing wrote: > Fix sparse warning: > > drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c:21:31: > warning: symbol 'sun4i_csi_formats' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Thanks

Re: [PATCH 2/2] mm: don't hide potentially null memmap pointer in sparse_remove_section

2019-08-27 Thread Michal Hocko
On Tue 27-08-19 17:00:16, Alastair D'Silva wrote: [...] > The NULL check was added in commit: > 95a4774d055c ("memory-hotplug: update mce_bad_pages when removing the > memory") > where memmap was originally inited to NULL, and only conditionally > given a value. > > With this in mind, since that s

Re: [PATCH v2 05/15] kvm: lapic: Introduce APICv update helper function

2019-08-27 Thread Vitaly Kuznetsov
"Suthikulpanit, Suravee" writes: > Re-factor code into a helper function for setting lapic parameters when > activate/deactivate APICv, and export the function for subsequent usage. > > Signed-off-by: Suravee Suthikulpanit > --- > arch/x86/kvm/lapic.c | 22 +- > arch/x86/kvm

Re: [PATCH -next] media: sun6i: Make sun4i_csi_formats static

2019-08-27 Thread Yuehaibing
On 2019/8/27 15:20, Sakari Ailus wrote: > Hi Yue, > > On Tue, Aug 27, 2019 at 03:06:23PM +0800, YueHaibing wrote: >> Fix sparse warning: >> >> drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c:21:31: >> warning: symbol 'sun4i_csi_formats' was not declared. Should it be static? >> >> Reported-by

Re: [PATCH -next] net: mlx5: Kconfig: Fix MLX5_CORE_EN dependencies

2019-08-27 Thread walter harms
Am 27.08.2019 05:12, schrieb Mao Wenan: > When MLX5_CORE_EN=y and PCI_HYPERV_INTERFACE is not set, below errors are > found: > drivers/net/ethernet/mellanox/mlx5/core/en_main.o: In function > `mlx5e_nic_enable': > en_main.c:(.text+0xb649): undefined reference to `mlx5e_hv_vhca_stats_create' >

Re: poisoned pages do not play well in the buddy allocator

2019-08-27 Thread Oscar Salvador
On Tue, Aug 27, 2019 at 01:34:29AM +, Naoya Horiguchi wrote: > > @Naoya: I could give it a try if you are busy. > > Thanks for raising hand. That's really wonderful. I think that the series [1] > is not > merge yet but not rejected yet, so feel free to reuse/update/revamp it. I will continue

Re: [PATCH v2 06/15] kvm: x86: Add support for activate/de-activate APICv at runtime

2019-08-27 Thread Vitaly Kuznetsov
"Suthikulpanit, Suravee" writes: > Certain runtime conditions require APICv to be temporary deactivated. > However, current implementation only support permanently deactivate > APICv at runtime (mainly used when running Hyper-V guest). > > In addtion, for AMD, when activate / deactivate APICv dur

Re: [PATCH 1/2] mm: Don't manually decrement num_poisoned_pages

2019-08-27 Thread Mike Rapoport
On Tue, Aug 27, 2019 at 03:36:54PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use the function written to do it instead. > > Signed-off-by: Alastair D'Silva Acked-by: Mike Rapoport > --- > mm/sparse.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --gi

Re: [RESEND PATCH v3 17/20] mtd: spi-nor: Bring flash params init together

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:39 PM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > Bring all flash parameters default initialization in > spi_nor_legacy_params_init(). > > Signed-off-by: Tudor Ambarus > Reviewed-by: Boris Brezillon > --- Reviewed-by: Vignesh Raghavendra Regards Vignesh

Re: [RESEND PATCH v3 19/20] mtd: spi-nor: Introduce spi_nor_get_flash_info()

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:39 PM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > Dedicate a function for getting the pointer to the flash_info > const struct. Trim a bit the spi_nor_scan() huge function. > > Signed-off-by: Tudor Ambarus > Reviewed-by: Boris Brezillon > --- Reviewed-by: Vi

Re: [RESEND PATCH v3 18/20] mtd: spi_nor: Introduce spi_nor_set_addr_width()

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:39 PM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > Parsing of flash parameters were interleaved with setting of the > nor addr width. Dedicate a function for setting nor addr width. > > Signed-off-by: Tudor Ambarus > Reviewed-by: Boris Brezillon > --- Reviewe

Re: [PATCH] tpm: tpm_crb: Add an AMD fTPM support feature

2019-08-27 Thread Seunghun Han
> > From: linux-integrity-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Jarkko Sakkinen > > Sent: Monday, August 26, 2019 1:59 AM > > To: Seunghun Han > > Cc: Peter Huewe ; Thomas Gleixner > > ; linux-kernel@vger.kernel.org; linux- > > integr...@vger.kernel.org > > Subject: EXT: Re:

Re: numlist_push() barriers Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation

2019-08-27 Thread Petr Mladek
On Tue 2019-08-27 00:36:18, John Ogness wrote: > Hi Petr, > > AndreaP responded with some explanation (and great links!) on the topic > of READ_ONCE. But I feel like your comments about the WRITE_ONCE were > not addressed. I address that (and your other comments) below... > > On 2019-08-23, Petr

Re: [PATCH 00/12] libperf: Add events to perf/event.h

2019-08-27 Thread Jiri Olsa
On Mon, Aug 26, 2019 at 07:41:36PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Aug 26, 2019 at 07:14:19PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Aug 26, 2019 at 06:58:52PM +0200, Jiri Olsa escreveu: > > > On Mon, Aug 26, 2019 at 01:18:49PM -0300, Arnaldo Carvalho de Melo wrote:

Re: [PATCH] x86/cpufeature: drop *_MASK_CEHCK

2019-08-27 Thread Borislav Petkov
On Tue, Aug 27, 2019 at 03:05:50PM +0800, Cao jin wrote: > They are wrappers of BUILD_BUG_ON_ZERO(NCAPINTS != n), which is already > present in corresponding *_MASK_BIT_SET. And fill the missing period in > head comments by the way. > > Signed-off-by: Cao jin > --- > arch/x86/include/asm/cpufeat

Re: [PATCH] ASoC: imx-audmix: register the card on a proper dev

2019-08-27 Thread Daniel Baluta
On Tue, 2019-08-27 at 11:55 -0400, Shengjiu Wang wrote: > This platform device is registered from "fsl_audmix", which is > its parent device. If use pdev->dev.parent for the priv->card.dev, > the value set by dev_set_drvdata in parent device will be covered > by the value in child device. > > Fixe

Re: [RESEND PATCH v3 16/20] mtd: spi-nor: Add the SPI_NOR_XSR_RDY flag

2019-08-27 Thread Vignesh Raghavendra
On 26/08/19 5:39 PM, tudor.amba...@microchip.com wrote: > From: Boris Brezillon > > S3AN flashes use a specific opcode to read the status register. > We currently use the SPI_S3AN flag to decide whether this specific > SR read opcode should be used, but SPI_S3AN is about to disappear, so > let

Re: BoF on LPC 2019 : Linux Perf advancements for compute intensive and server systems

2019-08-27 Thread Jiri Olsa
On Mon, Aug 26, 2019 at 07:10:21PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Aug 26, 2019 at 10:57:58AM -0700, Andi Kleen escreveu: > > > > > > > > > > > All those are already merged, after long reviewing phases and lots of > > > > testing, right? > > > > > > Right. These changes now cons

Re: [Patch v3] drivers: mtd: spi-nor: Add flash property for mt25qu512a and mt35xu02g

2019-08-27 Thread Vignesh Raghavendra
On 13/08/19 4:08 PM, Ashish Kumar wrote: > mt25qu512a is rebranded after its spinoff from STM, so it is > different only in term of operating frequency, initial JEDEC id > is same as that of n25q512a. In order to avoid any confussion > with respect to name new entry is added. > This flash is tes

[PATCH 4.14 01/62] HID: Add 044f:b320 ThrustMaster, Inc. 2 in 1 DT

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 65f11c72780fa9d598df88def045ccb6a885cf80 ] Enable force feedback for the Thrustmaster Dual Trigger 2 in 1 Rumble Force gamepad. Compared to other Thrustmaster devices, left and right rumble motors here are swapped. Signed-off-by: Ilya Trukhanov Signed-off-by: Jiri Kosina Signe

[PATCH 4.14 02/62] MIPS: kernel: only use i8253 clocksource with periodic clockevent

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit a07e3324538a989b7cdbf2c679be6a7f9df2544f ] i8253 clocksource needs a free running timer. This could only be used, if i8253 clockevent is set up as periodic. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-m...@vger.ker

[PATCH 4.14 03/62] mips: fix cacheinfo

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit b8bea8a5e5d942e62203416ab41edecaed4fda02 ] Because CONFIG_OF defined for MIPS, cacheinfo attempts to fill information from DT, ignoring data filled by architecture routine. This leads to error reported cacheinfo: Unable to detect cache hierarchy for CPU 0 Way to fix this provi

[PATCH 4.14 06/62] bonding: Force slave speed check after link state recovery for 802.3ad

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 12185dfe44360f814ac4ead9d22ad2af7511b2e9 ] The following scenario was encountered during testing of logical partition mobility on pseries partitions with bonded ibmvnic adapters in LACP mode. 1. Driver receives a signal that the device has been swapped, and it needs to reset

[PATCH 4.14 05/62] ASoC: dapm: Fix handling of custom_stop_condition on DAPM graph walks

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 8dd26dff00c0636b1d8621acaeef3f6f3a39dd77 ] DPCM uses snd_soc_dapm_dai_get_connected_widgets to build a list of the widgets connected to a specific front end DAI so it can search through this list for available back end DAIs. The custom_stop_condition was added to is_connected_ep

[PATCH 4.14 25/62] net: hisilicon: make hip04_tx_reclaim non-reentrant

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 1a2c070ae805910a853b4a14818481ed2e17c727 ] If hip04_tx_reclaim is interrupted while it is running and then __napi_schedule continues to execute hip04_rx_poll->hip04_tx_reclaim, reentrancy occurs and oops is generated. So you need to mask the interrupt during the hip04_tx_reclaim

[PATCH 4.14 00/62] 4.14.141-stable review

2019-08-27 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.141 release. There are 62 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 Thu 29 Aug 2019 07:25:02 AM UTC. Anything re

[PATCH 4.14 19/62] can: peak_usb: force the string buffer NULL-terminated

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit e787f19373b8a5fa24087800ed78314fd17b984a ] strncpy() does not ensure NULL-termination when the input string size equals to the destination buffer size IFNAMSIZ. The output string is passed to dev_info() which relies on the NULL-termination. Use strlcpy() instead. This issue is

[PATCH 4.14 08/62] ASoC: Fail card instantiation if DAI format setup fails

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 40aa5383e393d72f6aa3943a4e7b1aae25a1e43b ] If the DAI format setup fails, there is no valid communication format between CPU and CODEC, so fail card instantiation, rather than continue with a card that will most likely not function properly. Signed-off-by: Ricard Wanderlof Link

[PATCH 4.14 27/62] net: hisilicon: Fix dma_map_single failed on arm64

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 96a50c0d907ac8f5c3d6b051031a19eb8a2b53e3 ] On the arm64 platform, executing "ifconfig eth0 up" will fail, returning "ifconfig: SIOCSIFFLAGS: Input/output error." ndev->dev is not initialized, dma_map_single->get_dma_ops-> dummy_dma_ops->__dummy_map_page will return DMA_ERROR_COD

[PATCH 4.14 23/62] SMB3: Kernel oops mounting a encryptData share with CONFIG_DEBUG_VIRTUAL

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit ee9d66182392695535cc9fccfcb40c16f72de2a9 ] Fix kernel oops when mounting a encryptData CIFS share with CONFIG_DEBUG_VIRTUAL Signed-off-by: Sebastien Tisserant Reviewed-by: Pavel Shilovsky Signed-off-by: Steve French Signed-off-by: Sasha Levin --- fs/cifs/smb2ops.c | 10

[PATCH 4.14 17/62] perf bench numa: Fix cpu0 binding

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 6bbfe4e602691b90ac866712bd4c43c51e546a60 ] Michael reported an issue with perf bench numa failing with binding to cpu0 with '-0' option. # perf bench numa mem -p 3 -t 1 -P 512 -s 100 -zZcm0 --thp 1 -M 1 -ddd # Running 'numa/mem' benchmark: # Running main, "perf bench num

[PATCH 4.14 20/62] net/ethernet/qlogic/qed: force the string buffer NULL-terminated

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 3690c8c9a8edff0db077a38783112d8fe12a7dd2 ] strncpy() does not ensure NULL-termination when the input string size equals to the destination buffer size 30. The output string is passed to qed_int_deassertion_aeu_bit() which calls DP_INFO() and relies NULL-termination. Use strlcpy

[PATCH 4.14 04/62] netfilter: ebtables: fix a memory leak bug in compat

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 15a78ba1844a8e052c1226f930133de4cef4e7ad ] In compat_do_replace(), a temporary buffer is allocated through vmalloc() to hold entries copied from the user space. The buffer address is firstly saved to 'newinfo->entries', and later on assigned to 'entries_tmp'. Then the entries in

[PATCH 4.14 24/62] net: cxgb3_main: Fix a resource leak in a error path in init_one()

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit debea2cd3193ac868289e8893c3a719c265b0612 ] A call to 'kfree_skb()' is missing in the error handling path of 'init_one()'. This is already present in 'remove_one()' but is missing here. Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Sasha Levin

[PATCH 4.14 21/62] NFSv4: Fix a potential sleep while atomic in nfs4_do_reclaim()

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit c77e22834ae9a11891cb613bd9a551be1b94f2bc ] John Hubbard reports seeing the following stack trace: nfs4_do_reclaim rcu_read_lock /* we are now in_atomic() and must not sleep */ nfs4_purge_state_owners nfs4_free_state_owner nfs4_destroy_seqid_co

[PATCH 4.14 28/62] libata: have ata_scsi_rw_xlat() fail invalid passthrough requests

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 2d7271501720038381d45fb3dcbe4831228fc8cc ] For passthrough requests, libata-scsi takes what the user passes in as gospel. This can be problematic if the user fills in the CDB incorrectly. One example of that is in request sizes. For read/write commands, the CDB contains fields de

[PATCH 4.14 18/62] can: sja1000: force the string buffer NULL-terminated

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit cd28aa2e056cd1ea79fc5f24eed0ce868c6cab5c ] strncpy() does not ensure NULL-termination when the input string size equals to the destination buffer size IFNAMSIZ. The output string 'name' is passed to dev_info which relies on NULL-termination. Use strlcpy() instead. This issue is

[PATCH 4.14 43/62] userfaultfd_release: always remove uffd flags and clear vm_userfaultfd_ctx

2019-08-27 Thread Greg Kroah-Hartman
From: Oleg Nesterov commit 46d0b24c5ee10a15dfb25e20642f5a5ed59c5003 upstream. userfaultfd_release() should clear vm_flags/vm_userfaultfd_ctx even if mm->core_state != NULL. Otherwise a page fault can see userfaultfd_missing() == T and use an already freed userfaultfd_ctx. Link: http://lkml.ker

[PATCH 4.14 45/62] x86/apic: Handle missing global clockevent gracefully

2019-08-27 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit f897e60a12f0b9146357780d317879bce2a877dc upstream. 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 s

Re: [PATCH v5 2/2] EDAC: add EDAC driver for DMC520

2019-08-27 Thread Borislav Petkov
On Tue, Aug 27, 2019 at 01:49:29AM +, Lei Wang wrote: > Yes, this is to help open source developers who potentially might want > to expand this driver, most likely colleagues, and possibly other > developers. Then please put that info in the comment at the beginning of the driver - not some

[PATCH 4.14 44/62] x86/retpoline: Dont clobber RFLAGS during CALL_NOSPEC on i386

2019-08-27 Thread Greg Kroah-Hartman
From: Sean Christopherson commit b63f20a778c88b6a04458ed6ffc69da953d3a109 upstream. Use 'lea' instead of 'add' when adjusting %rsp in CALL_NOSPEC so as to avoid clobbering flags. KVM's emulator makes indirect calls into a jump table of sorts, where the destination of the CALL_NOSPEC is a small

[PATCH 4.14 41/62] drm/nouveau: Dont retry infinitely when receiving no data on i2c over AUX

2019-08-27 Thread Greg Kroah-Hartman
From: Lyude Paul commit c358ebf59634f06d8ed176da651ec150df3c8686 upstream. While I had thought I had fixed this issue in: commit 342406e4fbba ("drm/nouveau/i2c: Disable i2c bus access after ->fini()") It turns out that while I did fix the error messages I was seeing on my P50 when trying to ac

[PATCH 4.14 32/62] perf ftrace: Fix failure to set cpumask when only one cpu is present

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit cf30ae726c011e0372fd4c2d588466c8b50a8907 ] The buffer containing the string used to set cpumask is overwritten at the end of the string later in cpu_map__snprint_mask due to not enough memory space, when there is only one cpu. And thus causes the following failure: $ perf ftr

[PATCH 4.14 37/62] HID: wacom: Correct distance scale for 2nd-gen Intuos devices

2019-08-27 Thread Greg Kroah-Hartman
From: Jason Gerecke commit b72fb1dcd2ea9d29417711cb302cef3006fa8d5a upstream. Distance values reported by 2nd-gen Intuos tablets are on an inverted scale (0 == far, 63 == near). We need to change them over to a normal scale before reporting to userspace or else userspace drivers and applications

[PATCH 4.14 35/62] selftests: kvm: Adding config fragments

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit c096397c78f766db972f923433031f2dec01cae0 ] selftests kvm test cases need pre-required kernel configs for the test to get pass. Signed-off-by: Naresh Kamboju Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- tools/testing/selftests/kvm/config | 3 +++ 1 file changed

[PATCH 4.14 40/62] libceph: fix PG split vs OSD (re)connect race

2019-08-27 Thread Greg Kroah-Hartman
From: Ilya Dryomov commit a561372405cf6bc6f14239b3a9e57bb39f2788b0 upstream. We can't rely on ->peer_features in calc_target() because it may be called both when the OSD session is established and open and when it's not. ->peer_features is not valid unless the OSD session is open. If this happ

[PATCH 4.14 31/62] drm/vmwgfx: fix memory leak when too many retries have occurred

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 6b7c3b86f0b63134b2ab56508921a0853ffa687a ] Currently when too many retries have occurred there is a memory leak on the allocation for reply on the error return path. Fix this by kfree'ing reply before returning. Addresses-Coverity: ("Resource leak") Fixes: a9cd9c044aa9 ("drm/vmw

[PATCH 4.14 36/62] HID: wacom: correct misreported EKR ring values

2019-08-27 Thread Greg Kroah-Hartman
From: Aaron Armstrong Skomra commit fcf887e7caaa813eea821d11bf2b7619a37df37a upstream. The EKR ring claims a range of 0 to 71 but actually reports values 1 to 72. The ring is used in relative mode so this change should not affect users. Signed-off-by: Aaron Armstrong Skomra Fixes: 72b236d60218

[PATCH 4.14 33/62] perf cpumap: Fix writing to illegal memory in handling cpumap mask

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 5f5e25f1c7933a6e1673515c0b1d5acd82fea1ed ] cpu_map__snprint_mask() would write to illegal memory pointed by zalloc(0) when there is only one cpu. This patch fixes the calculation and adds sanity check against the input parameters. Signed-off-by: He Zhe Cc: Alexander Shishkin

[PATCH 4.14 30/62] x86/lib/cpu: Address missing prototypes warning

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 04f5bda84b0712d6f172556a7e8dca9ded5e73b9 ] When building with W=1, warnings about missing prototypes are emitted: CC arch/x86/lib/cpu.o arch/x86/lib/cpu.c:5:14: warning: no previous prototype for 'x86_family' [-Wmissing-prototypes] 5 | unsigned int x86_family(unsigne

[PATCH 4.14 11/62] ASoC: ti: davinci-mcasp: Correct slot_width posed constraint

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 1e112c35e3c96db7c8ca6ddaa96574f00c06e7db ] The slot_width is a property for the bus while the constraint for SNDRV_PCM_HW_PARAM_SAMPLE_BITS is for the in memory format. Applying slot_width constraint to sample_bits works most of the time, but it will blacklist valid formats in s

[PATCH 4.14 54/62] dm zoned: improve error handling in i/o map code

2019-08-27 Thread Greg Kroah-Hartman
From: Dmitry Fomichev commit d7428c50118e739e672656c28d2b26b09375d4e0 upstream. Some errors are ignored in the I/O path during queueing chunks for processing by chunk works. Since at least these errors are transient in nature, it should be possible to retry the failed incoming commands. The fix

[PATCH 4.14 48/62] x86/boot: Fix boot regression caused by bootparam sanitizing

2019-08-27 Thread Greg Kroah-Hartman
From: John Hubbard commit 7846f58fba964af7cb8cf77d4d13c33254725211 upstream. commit a90118c445cc ("x86/boot: Save fields explicitly, zero out everything else") had two errors: * It preserved boot_params.acpi_rsdp_addr, and * It failed to preserve boot_params.hdr Therefore, zero out acp

[PATCH 4.14 15/62] netfilter: ipset: Fix rename concurrency with listing

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 6c1f7e2c1b96ab9b09ac97c4df2bd9dc327206f6 ] Shijie Luo reported that when stress-testing ipset with multiple concurrent create, rename, flush, list, destroy commands, it can result ipset : Broken LIST kernel message: missing DATA part! error messages and broken list results. The

[PATCH 4.14 13/62] qed: RDMA - Fix the hw_ver returned in device attributes

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 81af04b432fdfabcdbd2c06be2ee647e3ca41a22 ] The hw_ver field was initialized to zero. Return the chip revision. This is relevant for rdma driver. Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_r

[PATCH 4.14 50/62] dm btree: fix order of block initialization in btree_split_beneath

2019-08-27 Thread Greg Kroah-Hartman
From: ZhangXiaoxu commit e4f9d6013820d1eba1432d51dd1c5795759aa77f upstream. When btree_split_beneath() splits a node to two new children, it will allocate two blocks: left and right. If right block's allocation failed, the left block will be unlocked and marked dirty. If this happened, the lef

[PATCH 4.14 12/62] net: usb: qmi_wwan: Add the BroadMobi BM818 card

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 9a07406b00cdc6ec689dc142540739575c717f3c ] The BroadMobi BM818 M.2 card uses the QMI protocol Signed-off-by: Bob Ham Signed-off-by: Angus Ainslie (Purism) Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 inser

[PATCH 4.14 14/62] isdn: mISDN: hfcsusb: Fix possible null-pointer dereferences in start_isoc_chain()

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit a0d57a552b836206ad7705a1060e6e1ce5a38203 ] In start_isoc_chain(), usb_alloc_urb() on line 1392 may fail and return NULL. At this time, fifo->iso[i].urb is assigned to NULL. Then, fifo->iso[i].urb is used at some places, such as: LINE 1405:fill_isoc_urb(fifo->iso[i].urb, ...)

[PATCH 4.14 59/62] mm/zsmalloc.c: fix race condition in zs_destroy_pool

2019-08-27 Thread Greg Kroah-Hartman
From: Henry Burns commit 701d678599d0c1623aaf4139c03eea260a75b027 upstream. In zs_destroy_pool() we call flush_work(&pool->free_work). However, we have no guarantee that migration isn't happening in the background at that time. Since migration can't directly free pages, it relies on free_work

[PATCH 4.14 56/62] genirq: Properly pair kobject_del() with kobject_add()

2019-08-27 Thread Greg Kroah-Hartman
From: Michael Kelley commit d0ff14fdc987303aeeb7de6f1bd72c3749ae2a9b upstream. If alloc_descs() fails before irq_sysfs_init() has run, free_desc() in the cleanup path will call kobject_del() even though the kobject has not been added with kobject_add(). Fix this by making the call to kobject_de

[PATCH 4.14 57/62] mm, page_owner: handle THP splits correctly

2019-08-27 Thread Greg Kroah-Hartman
From: Vlastimil Babka commit f7da677bc6e72033f0981b9d58b5c5d409fa641e upstream. THP splitting path is missing the split_page_owner() call that split_page() has. As a result, split THP pages are wrongly reported in the page_owner file as order-9 pages. Furthermore when the former head page is f

[PATCH 4.14 16/62] isdn: hfcsusb: Fix mISDN driver crash caused by transfer buffer on the stack

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit d8a1de3d5bb881507602bc02e004904828f88711 ] Since linux 4.9 it is not possible to use buffers on the stack for DMA transfers. During usb probe the driver crashes with "transfer buffer is on stack" message. This fix k-allocates a buffer to be used on "read_reg_atomic", which is

[PATCH 4.14 52/62] dm table: fix invalid memory accesses with too high sector number

2019-08-27 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 1cfd5d3399e87167b7f9157ef99daa0e959f395d upstream. If the sector number is too high, dm_table_find_target() should return a pointer to a zeroed dm_target structure (the caller should test it with dm_target_is_valid). However, for some table sizes, the code in dm_tab

[PATCH 4.14 58/62] mm/zsmalloc.c: migration can leave pages in ZS_EMPTY indefinitely

2019-08-27 Thread Greg Kroah-Hartman
From: Henry Burns commit 1a87aa03597efa9641e92875b883c94c7f872ccb upstream. In zs_page_migrate() we call putback_zspage() after we have finished migrating all pages in this zspage. However, the return value is ignored. If a zs_free() races in between zs_page_isolate() and zs_page_migrate(), fr

[PATCH 4.14 51/62] dm space map metadata: fix missing store of apply_bops() return value

2019-08-27 Thread Greg Kroah-Hartman
From: ZhangXiaoxu commit ae148243d3f0816b37477106c05a2ec7d5f32614 upstream. In commit 6096d91af0b6 ("dm space map metadata: fix occasional leak of a metadata block on resize"), we refactor the commit logic to a new function 'apply_bops'. But when that logic was replaced in out() the return valu

[PATCH 4.19 06/98] selftests/bpf: fix sendmsg6_prog on s390

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit c8eee4135a456bc031d67cadc454e76880d1afd8 ] "sendmsg6: rewrite IP & port (C)" fails on s390, because the code in sendmsg_v6_prog() assumes that (ctx->user_ip6[0] & 0x) refers to leading IPv6 address digits, which is not the case on big-endian machines. Since checking bitwise

[PATCH 4.19 02/98] MIPS: kernel: only use i8253 clocksource with periodic clockevent

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit a07e3324538a989b7cdbf2c679be6a7f9df2544f ] i8253 clocksource needs a free running timer. This could only be used, if i8253 clockevent is set up as periodic. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: linux-m...@vger.ker

[PATCH 4.19 01/98] HID: Add 044f:b320 ThrustMaster, Inc. 2 in 1 DT

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 65f11c72780fa9d598df88def045ccb6a885cf80 ] Enable force feedback for the Thrustmaster Dual Trigger 2 in 1 Rumble Force gamepad. Compared to other Thrustmaster devices, left and right rumble motors here are swapped. Signed-off-by: Ilya Trukhanov Signed-off-by: Jiri Kosina Signe

[PATCH 4.19 05/98] ASoC: dapm: Fix handling of custom_stop_condition on DAPM graph walks

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 8dd26dff00c0636b1d8621acaeef3f6f3a39dd77 ] DPCM uses snd_soc_dapm_dai_get_connected_widgets to build a list of the widgets connected to a specific front end DAI so it can search through this list for available back end DAIs. The custom_stop_condition was added to is_connected_ep

[PATCH 4.19 04/98] netfilter: ebtables: fix a memory leak bug in compat

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 15a78ba1844a8e052c1226f930133de4cef4e7ad ] In compat_do_replace(), a temporary buffer is allocated through vmalloc() to hold entries copied from the user space. The buffer address is firstly saved to 'newinfo->entries', and later on assigned to 'entries_tmp'. Then the entries in

[PATCH 4.19 19/98] net: usb: qmi_wwan: Add the BroadMobi BM818 card

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 9a07406b00cdc6ec689dc142540739575c717f3c ] The BroadMobi BM818 M.2 card uses the QMI protocol Signed-off-by: Bob Ham Signed-off-by: Angus Ainslie (Purism) Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 inser

Re: [PATCH] input: keyboard: snvs_pwrkey: Send press and release event for i.MX6 S,DL and Q

2019-08-27 Thread robin
On 2019-08-27 08:17, Robin Gong wrote: On Fri, Aug 23, 2019 at 02:30:02PM +0200, Robin van der Gracht wrote:> The older generation i.MX6 processors send a powerdown request interrupt if the powerkey is released before a hard shutdown (5 second press). This should allow software to bring down t

[PATCH 4.19 27/98] rxrpc: Fix the lack of notification when sendmsg() fails on a DATA packet

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit c69565ee6681e151e2bb80502930a16e04b553d1 ] Fix the fact that a notification isn't sent to the recvmsg side to indicate a call failed when sendmsg() fails to transmit a DATA packet with the error ENETUNREACH, EHOSTUNREACH or ECONNREFUSED. Without this notification, the afs client

[PATCH 4.19 26/98] rxrpc: Fix potential deadlock

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 60034d3d146b11922ab1db613bce062dddc0327a ] There is a potential deadlock in rxrpc_peer_keepalive_dispatch() whereby rxrpc_put_peer() is called with the peer_hash_lock held, but if it reduces the peer's refcount to 0, rxrpc_put_peer() calls __rxrpc_put_peer() - which the tries to

[PATCH 4.19 20/98] qed: RDMA - Fix the hw_ver returned in device attributes

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 81af04b432fdfabcdbd2c06be2ee647e3ca41a22 ] The hw_ver field was initialized to zero. Return the chip revision. This is relevant for rdma driver. Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_r

[PATCH 4.19 24/98] netfilter: ipset: Copy the right MAC address in bitmap:ip,mac and hash:ip,mac sets

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 1b4a75108d5bc153daf965d334e77e8e94534f96 ] In commit 8cc4ccf58379 ("ipset: Allow matching on destination MAC address for mac and ipmac sets"), ipset.git commit 1543514c46a7, I added to the KADT functions for sets matching on MAC addreses the copy of source or destination MAC addr

[PATCH 4.19 09/98] selftests: forwarding: gre_multipath: Enable IPv4 forwarding

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit efa7b79f675da0efafe3f32ba0d6efe916cf4867 ] The test did not enable IPv4 forwarding during its setup phase, which causes the test to fail on machines where IPv4 forwarding is disabled. Fixes: 54818c4c4b93 ("selftests: forwarding: Test multipath tunneling") Signed-off-by: Ido Schi

[PATCH 4.19 23/98] netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit b89d15480d0cacacae1a0fe0b3da01b529f2914f ] In commit 8cc4ccf58379 ("ipset: Allow matching on destination MAC address for mac and ipmac sets"), ipset.git commit 1543514c46a7, I removed the KADT check that prevents matching on destination MAC addresses for hash:mac sets, but forgot

[PATCH 4.19 08/98] net: mvpp2: Dont check for 3 consecutive Idle frames for 10G links

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit bba18318e7d1d5c8b0bbafd65010a0cee3c65608 ] PPv2's XLGMAC can wait for 3 idle frames before triggering a link up event. This can cause the link to be stuck low when there's traffic on the interface, so disable this feature. Fixes: 4bb043262878 ("net: mvpp2: phylink support") Sign

[PATCH 4.19 25/98] netfilter: ipset: Fix rename concurrency with listing

2019-08-27 Thread Greg Kroah-Hartman
[ Upstream commit 6c1f7e2c1b96ab9b09ac97c4df2bd9dc327206f6 ] Shijie Luo reported that when stress-testing ipset with multiple concurrent create, rename, flush, list, destroy commands, it can result ipset : Broken LIST kernel message: missing DATA part! error messages and broken list results. The

  1   2   3   4   5   6   7   8   9   10   >