[PATCH v3 0/2] Reduce mmap_sem usage for args manipulation

2019-05-02 Thread Michal Koutný
Hello. Just merged the two dicussed patches and fixed an overlooked warning. v2 - insert a patch refactoring validate_prctl_map - move find_vma out of the arg_lock critical section v3 - squash get_cmdline and prctl_set_mm patches (to keep locking consistency) - validate_prctl_map_addr: remove

[PATCH] habanalabs: Update CPU DMA pool label name

2019-05-02 Thread Oded Gabbay
From: Tomer Tayar The CPU accessible DMA pool is general and not used only for PQ. Accordingly, this patch rename the "free_cpu_pq_pool" label with "free_cpu_accessible_dma_pool". Signed-off-by: Tomer Tayar Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/goya/goya.c | 4 ++-- 1 file ch

[PATCH 1/6] dmaengine: tegra210-adma: prepare for supporting newer Tegra chips

2019-05-02 Thread Sameer Pujar
This is a preparatory patch to add support for Tegra186 and Tegra194 chips. Following changes are necessary to make driver code generic. * chip_data structure is enhanced to have chip specific details and following are the additions to the structure * Offset addresses for ADMA global and cha

[PATCH 0/6] Add support for Tegra186/Tegra194 and generic fixes

2019-05-02 Thread Sameer Pujar
Audio DMA(ADMA) interface is a gateway in the AHUB for facilitating DMA transfers between memory and all of its clients. Currently the driver supports Tegra210 based platforms. This series adds support for Tegra186 and Tegra194 based platforms and fixes few functional issues. Patches in the series

[PATCH 2/6] Documentation: DT: Add compatibility binding for Tegra186

2019-05-02 Thread Sameer Pujar
Tegra186 Audio DMA controller has new updates from Tegra210 version. Thus add new compatibility binding string and the same can be used by Tegra194 as well. Signed-off-by: Sameer Pujar --- Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.txt | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] ARM: VDSO: Don't leak kernel addresses

2019-05-02 Thread Geert Uytterhoeven
Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), an obfuscated kernel pointer is printed at every boot if debugging is enabled: vdso: 1 text pages at base (ptrval) Remove the print completely, as it's useless without the address. Based on commit 0f1bf7e398224

[PATCH 3/6] dmaengine: tegra210-adma: add support for Tegra186/Tegra194

2019-05-02 Thread Sameer Pujar
Add Tegra186 specific macro defines and chip_data structure for chip specific information. New compatibility is added to select relevant chip details. There is no major change for Tegra194 and hence it can use the same chip data. The bits in the BURST_SIZE field of the ADMA CH_CONFIG register are

[PATCH 6/6] dmaengine: tegra210-adma: restore channel status

2019-05-02 Thread Sameer Pujar
Status of ADMA channel registers is not saved and restored during system suspend. During active playback if system enters suspend, this results in wrong state of channel registers during system resume and playback fails to resume properly. Fix this by saving following channel registers in runtime s

Re: [PATCH v2] media/doc: Allow sizeimage to be set by v4l clients

2019-05-02 Thread Mauro Carvalho Chehab
Em Fri, 12 Apr 2019 18:59:15 +0300 Stanimir Varbanov escreveu: > This changes v4l2_pix_format and v4l2_plane_pix_format sizeimage > field description to allow v4l clients to set bigger image size > in case of variable length compressed data. > > Signed-off-by: Stanimir Varbanov > --- > Documen

[PATCH 5/6] dmaengine: tegra210-dma: free dma controller in remove()

2019-05-02 Thread Sameer Pujar
Following kernel panic is seen during DMA driver unload->load sequence == Unable to handle kernel paging request at virtual address ff8001198880 Internal error: Oops: 8607 [#1] PREEMPT SMP CPU: 0 PID: 5907 Comm: HwBinde

[PATCH 4/6] dmaengine: tegra210-adma: add pause/resume support

2019-05-02 Thread Sameer Pujar
During an audio playback session it is observed that, audio goes off after few seconds of continuous pause and play. No audio is heard even when the playback is resumed. The reason for above is, currently ADMA driver does not handle DMA_PAUSE/ DMA_RESUME and relevant callbacks for dma_device are n

Re: [PATCH AUTOSEL 5.0 70/98] tty: fix NULL pointer issue when tty_port ops is not set

2019-05-02 Thread Sasha Levin
On Mon, Apr 22, 2019 at 10:40:02PM +0200, Greg Kroah-Hartman wrote: On Mon, Apr 22, 2019 at 03:41:37PM -0400, Sasha Levin wrote: From: Fabien Dessenne [ Upstream commit f4e68d58cf2b20a581759bbc7228052534652673 ] Unlike 'client_ops' which is initialized to 'default_client_ops', the port operat

Re: [PATCH 0/4] nvme-pci: support device coredump

2019-05-02 Thread Keith Busch
On Thu, May 02, 2019 at 05:59:17PM +0900, Akinobu Mita wrote: > This enables to capture snapshot of controller information via device > coredump machanism, and it helps diagnose and debug issues. > > The nvme device coredump is triggered before resetting the controller > caused by I/O timeout, and

Re: [PATCH 5/4] 9p: pass the correct prototype to read_cache_page

2019-05-02 Thread Christoph Hellwig
On Thu, May 02, 2019 at 12:08:29AM -0600, William Kucharski wrote: > 1) You need to pass "filp" rather than "filp->private_data" to > read_cache_pages() > in v9fs_fid_readpage(). With this patch v9fs_fid_readpage takes a void pointer that must be a FID, and we pass the FID everywhere: - v9fs_vf

Re: [PATCH] mod_devicetable.h: reduce sizeof(struct of_device_id) by 80 bytes

2019-05-02 Thread Rasmus Villemoes
On 02/05/2019 14.29, Jeff Mahoney wrote: > On 5/2/19 5:41 AM, Rasmus Villemoes wrote: >> But we cannot really know whether there is some userspace tool that >> parses the .ko ELF objects the same way that file2alias does, doing >> pattern matching on the symbol names etc. I cannot see why anybody

[PATCH v2] clk: imx8mq: Add dsi_ipg_div

2019-05-02 Thread Guido Günther
It's defined in imx8mq-clock.h but wasn't assigned yet. It's used as clk_tx_esc in the nwl dsi host controller (i.MX8MQ RM, Rev. 0, 01/2018 Sect. 13.5.3.7.4). Signed-off-by: Guido Günther --- This is basically a resend January with a slightly more exhaustive commit message. drivers/clk/imx/clk-

[PATCH 0/1] Add several Beckhoff Automation boards to critclk_systems DMI table

2019-05-02 Thread linux-kernel-dev
From: Steffen Dirkwinkel There are several Beckhoff Automation industrial PC boards which use pmc_plt_clk* clocks for ethernet controllers. The patch adds affected boards to critclk_systems DMI table so the clocks are marked as CLK_CRITICAL and not turned off. This should be applied on top of ano

[PATCH 1/1] platform/x86: pmc_atom: Add several Beckhoff Automation boards to critclk_systems DMI table

2019-05-02 Thread linux-kernel-dev
From: Steffen Dirkwinkel There are several Beckhoff Automation industrial PC boards which use pmc_plt_clk* clocks for ethernet controllers. This adds affected boards to critclk_systems DMI table so the clocks are marked as CLK_CRITICAL and not turned off. Fixes: 648e921888ad ("clk: x86: Stop mar

[PATCH v2] ASoC: mediatek: mt8516: register ADDA DAI

2019-05-02 Thread Fabien Parent
Register the ADDA DAI driver into the MT8516 PCM driver. Signed-off-by: Fabien Parent --- This patch depends on patch serie: [PATCH 0/5] ASoC: mediatek: Add basic PCM driver for MT8516 v2: * Register ADDA before memif to fix ordering issue. --- sound/soc/mediatek/mt8516/mt8516

Re: [PATCH] perf tools: Speed up report for perf compiled with linwunwind

2019-05-02 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 26, 2019 at 09:38:04AM +0200, Jiri Olsa escreveu: > When compiled with libunwind, perf does some preparatory work > when processing side-band events. This is not needed when report > actually don't unwind dwarf callchains, so it's disabled with > dwarf_callchain_users bool. > > However

Re: [PATCH net-next 1/3] genetlink: do not validate dump requests if there is no policy

2019-05-02 Thread Johannes Berg
On Thu, 2019-05-02 at 15:10 +0200, Michal Kubecek wrote: > On Thu, May 02, 2019 at 02:51:33PM +0200, Johannes Berg wrote: > > On Thu, 2019-05-02 at 12:48 +, Michal Kubecek wrote: > > > Unlike do requests, dump genetlink requests now perform strict validation > > > by default even if the genetli

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-05-02 Thread Sameer Pujar
On 5/2/2019 5:55 PM, Vinod Koul wrote: On 02-05-19, 16:23, Sameer Pujar wrote: On 5/2/2019 11:34 AM, Vinod Koul wrote: On 30-04-19, 17:00, Sameer Pujar wrote: During the DMA transfers from memory to I/O, it was observed that transfers were inconsistent and resulted in glitches for audio play

Re: [PATCH v2 2/2] RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs

2019-05-02 Thread Andrew F. Davis
On 5/2/19 6:34 AM, Yash Shah wrote: > The driver currently supports only SiFive FU540-C000 platform. > > The initial version of L2 cache controller driver includes: > - Initial configuration reporting at boot up. > - Support for ECC related functionality. > > Signed-off-by: Yash Shah > --- > ar

Re: [PATCH 0/6] Add support for Tegra186/Tegra194 and generic fixes

2019-05-02 Thread Jon Hunter
On 02/05/2019 13:55, Sameer Pujar wrote: > Audio DMA(ADMA) interface is a gateway in the AHUB for facilitating DMA > transfers between memory and all of its clients. Currently the driver > supports Tegra210 based platforms. This series adds support for Tegra186 > and Tegra194 based platforms and

[PATCH v6 3/5] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable HDMI output

2019-05-02 Thread Pablo Greco
This patch adds the hdmi nodes to the Bananapi M2 Berry, the same way it was done to the Bananapi M2 Ultra Signed-off-by: Pablo Greco --- arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 29 +++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v40-ban

[PATCH v6 5/5] ARM: dts: sun8i: v40: bananapi-m2-berry: Add Bluetooth device node

2019-05-02 Thread Pablo Greco
The AP6212 is based on the Broadcom BCM43430 or BCM43438. The WiFi side identifies as BCM43430, while the Bluetooth side identifies as BCM43438. The Bluetooth side is connected to UART3 in a 4 wire configuration. Same as the WiFi side, due to being the same chip and package, DLDO1 and DLDO2 regula

[PATCH v6 4/5] ARM: dts: sun8i: v40: bananapi-m2-berry: Enable AHCI

2019-05-02 Thread Pablo Greco
Just like the Bananapi M2 Ultra, enable the ahci controller and the two regulators needed to activate it. Reviewed-by: Jagan Teki Signed-off-by: Pablo Greco --- arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boo

Re: [PATCH 1/2] pinctrl: mediatek: Add mtk_eint_pm_ops to common-v2

2019-05-02 Thread Yingjoe Chen
On Mon, 2019-04-29 at 11:25 +0800, Nicolas Boichat wrote: > pinctrl variants that include pinctrl-mtk-common-v2.h (and not > pinctrl-mtk-common.h) also need to use mtk_eint_pm_ops to setup > wake mask properly, so copy over the pm_ops to v2. > > It is not easy to merge the 2 copies (or move > mtk_

Re: [PATCH v2] clk: imx8mq: Add dsi_ipg_div

2019-05-02 Thread Fabio Estevam
On Thu, May 2, 2019 at 10:07 AM Guido Günther wrote: > > It's defined in imx8mq-clock.h but wasn't assigned yet. It's used as > clk_tx_esc in the nwl dsi host controller (i.MX8MQ RM, Rev. 0, 01/2018 > Sect. 13.5.3.7.4). > > Signed-off-by: Guido Günther Reviewed-by: Fabio Estevam

[GIT PULL] PCI fixes for v5.1

2019-05-02 Thread Bjorn Helgaas
Hi Linus, I apologize for sending these so late in the cycle. We went back and forth about how to deal with the unexpected logging of intentional link state changes and finally decided to just config them off by default. PCI fixes: - Stop ignoring "pci=disable_acs_redir" parameter (Logan Gunt

Re: [PATCH] OVL: add honoracl=off mount option.

2019-05-02 Thread J. R. Okajima
NeilBrown: > If the upper and lower layers use incompatible ACL formats, it is not > possible to copy the ACL xttr from one to the other, so overlayfs > cannot work with them. > This happens particularly with NFSv4 which uses system.nfs4_acl, and > ext4 which uses system.posix_acl_access. FYI, Auf

Re: [PATCH] i2c: at91: handle TXRDY interrupt spam

2019-05-02 Thread Ludovic Desroches
On Tue, Apr 30, 2019 at 04:03:32AM +0530, Raag Jadav wrote: > External E-Mail > > > On Mon, Apr 29, 2019 at 11:00:05AM +0200, Ludovic Desroches wrote: > > Hello Raag, > > > > On Tue, Apr 23, 2019 at 01:06:48PM +0530, Raag Jadav wrote: > > > External E-Mail > > > > > > > > > Performing i2c writ

Re: [PATCH 5/4] 9p: pass the correct prototype to read_cache_page

2019-05-02 Thread William Kucharski
> On May 2, 2019, at 7:04 AM, Christoph Hellwig wrote: > > Except that we don't pass v9fs_vfs_readpage as the filler any more, > we now pass v9fs_fid_readpage. True, so never mind. :-)

Re: [PATCH] overlayfs: ignore empty NFSv4 ACLs in ext4 upperdir

2019-05-02 Thread Andreas Gruenbacher
On Thu, 2 May 2019 at 05:57, NeilBrown wrote: > On Wed, May 01 2019, Amir Goldstein wrote: > > On Wed, May 1, 2019 at 10:03 PM NeilBrown wrote: > >> On Tue, Dec 06 2016, J. Bruce Fields wrote: > >> > On Tue, Dec 06, 2016 at 02:18:31PM +0100, Andreas Gruenbacher wrote: > >> >> On Tue, Dec 6, 2016

[PATCH V2 3/3] watchdog: stm32: add dynamic prescaler support

2019-05-02 Thread Ludovic Barre
From: Ludovic Barre This patch allows to define the max prescaler by compatible. To set a large range of timeout, the prescaler should be set dynamically (from the timeout request) to improve the resolution in order to have a timeout close to the expected value. Signed-off-by: Ludovic Barre ---

[PATCH V2 1/3] watchdog: stm32: update to devm_watchdog_register_device

2019-05-02 Thread Ludovic Barre
From: Ludovic Barre This patch updates to devm_watchdog_register_device interface Signed-off-by: Ludovic Barre --- drivers/watchdog/stm32_iwdg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c index e00e3b3..e1

[PATCH V2 0/3] watchdog: stm32: add dynamic prescaler support

2019-05-02 Thread Ludovic Barre
From: Ludovic Barre This patch series updates stm32 watchdog driver on: -use devm_watchdog_register_device -Guenter's recommendation about return value: set_timeout return 0 on succes, -EINVAL for "parameter out of range" and -EIO for "could not write value to the watchdog". Set of reload and pre

Re: [PATCH] mtd: nand: raw: brcmnand: When oops in progress use pio and interrupt polling

2019-05-02 Thread Kamal Dasu
On Thu, May 2, 2019 at 4:25 AM Miquel Raynal wrote: > > Hi Kamal, > > Kamal Dasu wrote on Wed, 1 May 2019 13:46:15 > -0400: > > > If mtd_oops is in progress switch to polling for nand command completion > > s/nand/NAND/ Will change this. > > > interrupts and use PIO mode wihtout DMA so that th

[PATCH V2 2/3] watchdog: stm32: update return values recommended by watchdog kernel api

2019-05-02 Thread Ludovic Barre
From: Ludovic Barre This patch updates return values on watchdog-kernel-api.txt: return 0 on succes, -EINVAL for "parameter out of range" and -EIO for "could not write value to the watchdog". Signed-off-by: Ludovic Barre --- drivers/watchdog/stm32_iwdg.c | 21 + 1 file chan

[PATCH] EDAC, mpc85xx: Prevent building as a module

2019-05-02 Thread Michael Ellerman
The mpc85xx EDAC code can be configured as a module but then fails to build because it uses two unexported symbols: ERROR: ".pci_find_hose_for_OF_device" [drivers/edac/mpc85xx_edac_mod.ko] undefined! ERROR: ".early_find_capability" [drivers/edac/mpc85xx_edac_mod.ko] undefined! We don't want

Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card

2019-05-02 Thread Tony Lindgren
* Faiz Abbas [190502 01:48]: > If UHS speed modes are enabled, a compatible SD card switches down to > 1.8V during enumeration. If after this a software reboot/crash takes > place and on-chip ROM tries to enumerate the SD card, the difference in > IO voltages (host @ 3.3V and card @ 1.8V) may end

Re: [PATCH v2 08/10] nvme/pci: implement the mdev external queue allocation interface

2019-05-02 Thread Maxim Levitsky
On Thu, 2019-05-02 at 14:47 +0300, Maxim Levitsky wrote: > Note that currently the number of hw queues reserved for mdev, > has to be pre determined on module load. > > (I used to allocate the queues dynamicaly on demand, but > recent changes to allocate polled/read queues made > this somewhat dif

[PATCH 2/2] regulator: ab3100: Set fixed_uV instead of min_uV for fixed regulators

2019-05-02 Thread Axel Lin
Slightly better readability by setting fixed_uV instead of min_uV. Signed-off-by: Axel Lin --- drivers/regulator/ab3100.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/ab3100.c b/drivers/regulator/ab3100.c index edde907a7062..438509f55f05 100644 ---

[PATCH 1/2] regulator: ab3100: Constify regulator_ops and ab3100_regulator_desc

2019-05-02 Thread Axel Lin
These regulator_ops variables and ab3100_regulator_desc array never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/ab3100.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/regulato

Re: [PATCH v6 03/10] clk: samsung: add BPLL rate table for Exynos 5422 SoC

2019-05-02 Thread Lukasz Luba
Hi Chanwoo, On 5/2/19 7:15 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 19. 4. 19. 오후 11:19, Lukasz Luba wrote: >> Add new table rate for BPLL for Exynos5422 SoC supporting Dynamic Memory >> Controller frequencies for driver's DRAM timings. >> >> Signed-off-by: Lukasz Luba >> --- >> drivers/clk

Re: [PATCH 04/12] mips: Reserve memory for the kernel image resources

2019-05-02 Thread Serge Semin
On Tue, Apr 30, 2019 at 10:58:33PM +, Paul Burton wrote: Hello Paul > Hi Serge, > > On Fri, Apr 26, 2019 at 03:00:36AM +0300, Serge Semin wrote: > > > 1) Older systems generally had something like an ISA bus which used > > > addresses below the kernel, and bootloaders like YAMON left be

Re: [PATCH] overlayfs: ignore empty NFSv4 ACLs in ext4 upperdir

2019-05-02 Thread Miklos Szeredi
On Thu, May 2, 2019 at 10:05 AM Andreas Gruenbacher wrote: > > On Thu, 2 May 2019 at 05:57, NeilBrown wrote: > > On Wed, May 01 2019, Amir Goldstein wrote: > > > On Wed, May 1, 2019 at 10:03 PM NeilBrown wrote: > > >> On Tue, Dec 06 2016, J. Bruce Fields wrote: > > >> > On Tue, Dec 06, 2016 at 0

Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card

2019-05-02 Thread Faiz Abbas
Hi Tony, On 02/05/19 7:50 PM, Tony Lindgren wrote: > * Faiz Abbas [190502 01:48]: >> If UHS speed modes are enabled, a compatible SD card switches down to >> 1.8V during enumeration. If after this a software reboot/crash takes >> place and on-chip ROM tries to enumerate the SD card, the differenc

Re: [PATCH] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card

2019-05-02 Thread Tony Lindgren
* Faiz Abbas [190502 14:30]: > Hi Tony, > > On 02/05/19 7:50 PM, Tony Lindgren wrote: > > * Faiz Abbas [190502 01:48]: > >> If UHS speed modes are enabled, a compatible SD card switches down to > >> 1.8V during enumeration. If after this a software reboot/crash takes > >> place and on-chip ROM t

[PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export

2019-05-02 Thread Andy Lutomirski
The FPU is not a super-Linuxy internal detail, so remove the _GPL from its export. Without something like this patch, it's impossible for even highly license-respecting non-GPL modules to use the FPU, which seems silly to me. After all, the FPU is a CPU feature, not really a kernel feature at all

Re: Patch "x86/fpu: Don't export __kernel_fpu_{begin,end}()" has been added to the 4.19-stable tree

2019-05-02 Thread Andy Lutomirski
On Thu, May 2, 2019 at 1:02 AM Greg KH wrote: > > On Wed, May 01, 2019 at 10:47:07AM -0700, Andy Lutomirski wrote: > > On Mon, Apr 29, 2019 at 6:36 AM wrote: > > > > > > > > > This is a note to let you know that I've just added the patch titled > > > > > > x86/fpu: Don't export __kernel_fpu_{

Re: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-05-02 Thread Andy Lutomirski
On Thu, May 2, 2019 at 2:23 AM David Laight wrote: > > From: Reshetova, Elena > > Sent: 02 May 2019 09:16 > ... > > > I'm also guessing that get_cpu_var() disables pre-emption? > > > > Yes, in my understanding: > > > > #define get_cpu_var(var) \ > > (*(

Re: [PATCH] ARM: dts: dra76x: Update MMC2_HS200_MANUAL1 iodelay values

2019-05-02 Thread Tony Lindgren
* Faiz Abbas [190502 06:28]: > Hi Tony, > > On 30/04/19 9:24 PM, Tony Lindgren wrote: > > Hi, > > > > * Faiz Abbas [190429 23:09]: > >> Update the MMC2_HS200_MANUAL1 iodelay values to match with the latest > >> dra76x data manual[1]. > >> > >> Also this particular pinctrl-array is using spaces

Re: [PATCH V2 2/2] PCI: dwc: Export APIs to support .remove() implementation

2019-05-02 Thread Lorenzo Pieralisi
On Tue, Apr 16, 2019 at 07:45:16PM +0530, Vidya Sagar wrote: > Export all configuration space access APIs and also other APIs to > support host controller drivers of DesignWare core based > implementations while adding support for .remove() hook to build their > respective drivers as modules > > S

Re: Patch "x86/fpu: Don't export __kernel_fpu_{begin,end}()" has been added to the 4.19-stable tree

2019-05-02 Thread Greg KH
On Thu, May 02, 2019 at 07:42:21AM -0700, Andy Lutomirski wrote: > On Thu, May 2, 2019 at 1:02 AM Greg KH wrote: > > > > On Wed, May 01, 2019 at 10:47:07AM -0700, Andy Lutomirski wrote: > > > On Mon, Apr 29, 2019 at 6:36 AM wrote: > > > > > > > > > > > > This is a note to let you know that I've j

Re: [alsa-devel] [PATCH v4 22/22] soundwire: add missing newlines in dynamic debug logs

2019-05-02 Thread Pierre-Louis Bossart
On 5/2/19 1:32 AM, Greg KH wrote: On Thu, May 02, 2019 at 11:07:46AM +0530, Vinod Koul wrote: On 01-05-19, 10:57, Pierre-Louis Bossart wrote: For some reason the newlines are not used everywhere. Fix as needed. Reported-by: Joe Perches Reviewed-by: Takashi Iwai Signed-off-by: Pierre-Louis

Re: [PATCH V2 1/2] PCI: dwc: Add API support to de-initialize host

2019-05-02 Thread Lorenzo Pieralisi
On Tue, Apr 16, 2019 at 07:45:15PM +0530, Vidya Sagar wrote: > Add an API to group all the tasks to be done to de-initialize host which > can then be called by any DesignWare core based driver implementations > while adding .remove() support in their respective drivers. > > Signed-off-by: Vidya Sa

Re: [PATCH][next] rtw88: fix shift of more than 32 bits of a integer

2019-05-02 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > Currently the shift of an integer value more than 32 bits can > occur when nss is more than 32. Fix this by making the integer > constants unsigned long longs before shifting and bit-wise or'ing > with the u64 ra_mask to avoid the undefined shift be

Re: [PATCH v3 1/3] PCI: qcom: Use clk_bulk API for 2.4.0 controllers

2019-05-02 Thread Bjorn Andersson
On Thu 02 May 04:53 PDT 2019, Vinod Koul wrote: > On 01-05-19, 17:19, Bjorn Andersson wrote: [..] > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c > > b/drivers/pci/controller/dwc/pcie-qcom.c > > index 0ed235d560e3..d740cbe0e56d 100644 > > --- a/drivers/pci/controller/dwc/pcie-qcom.c > > ++

[PATCH v2] mtd: nand: raw: brcmnand: When oops in progress use pio and interrupt polling

2019-05-02 Thread Kamal Dasu
If mtd_oops is in progress, switch to polling during NAND command completion instead of relying on DMA/interrupts so that the mtd_oops buffer can be completely written in the assigned NAND partition. This is needed in cases where and there is only one online CPU and the panic is not on cpu0 as all

Re: [PATCH] overlayfs: ignore empty NFSv4 ACLs in ext4 upperdir

2019-05-02 Thread Andreas Grünbacher
Am Do., 2. Mai 2019 um 16:28 Uhr schrieb Miklos Szeredi : > On Thu, May 2, 2019 at 10:05 AM Andreas Gruenbacher > wrote: > > On Thu, 2 May 2019 at 05:57, NeilBrown wrote: > > > On Wed, May 01 2019, Amir Goldstein wrote: > > > > On Wed, May 1, 2019 at 10:03 PM NeilBrown wrote: > > > >> On Tue, D

Re: [PATCH] x86/entry/64: randomize kernel stack offset upon syscall

2019-05-02 Thread Ingo Molnar
* Andy Lutomirski wrote: > Or we decide that calling get_random_bytes() is okay with IRQs off and > this all gets a bit simpler. BTW., before we go down this path any further, is the plan to bind this feature to a real CPU-RNG capability, i.e. to the RDRAND instruction, which excludes a sig

Re: [PATCH] sched: Provide a pointer to the valid CPU mask

2019-05-02 Thread Ingo Molnar
* Sebastian Andrzej Siewior wrote: > In commit 4b53a3412d66 ("sched/core: Remove the tsk_nr_cpus_allowed() > wrapper") the tsk_nr_cpus_allowed() wrapper was removed. There was not > much difference in !RT but in RT we used this to implement > migrate_disable(). Within a migrate_disable() sectio

Re: Linux 5.1-rc5

2019-05-02 Thread Martin Schwidefsky
On Thu, 2 May 2019 16:31:10 +0200 Greg KH wrote: > On Thu, May 02, 2019 at 04:17:58PM +0200, Martin Schwidefsky wrote: > > On Thu, 2 May 2019 14:21:28 +0200 > > Greg KH wrote: > > > > > On Mon, Apr 15, 2019 at 09:17:10AM -0700, Linus Torvalds wrote: > > > > On Sun, Apr 14, 2019 at 10:19 PM

Re: [PATCH v2 1/2] Add polling support to pidfd

2019-05-02 Thread Christian Brauner
On Wed, May 01, 2019 at 05:13:12PM +0200, Oleg Nesterov wrote: > On 04/30, Joel Fernandes (Google) wrote: > > > > +static unsigned int pidfd_poll(struct file *file, struct poll_table_struct > > *pts) > > +{ > > + struct task_struct *task; > > + struct pid *pid = file->private_data; > > + int

[PATCH 4.9 06/32] qlcnic: Avoid potential NULL pointer dereference

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 5bf7295fe34a5251b1d241b9736af4697b590670 ] netdev_alloc_skb can fail and return a NULL pointer which is dereferenced without a check. The patch avoids such a scenario. Signed-off-by: Aditya Pakki Signed-off-by: David S. Miller Signed-off-by: Sasha Levin (Microsoft) --- drive

[PATCH 4.9 07/32] netfilter: nft_set_rbtree: check for inactive element after flag mismatch

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 05b7639da55fb9866a1f4b7e8995232a6323 ] Otherwise, we hit bogus ENOENT when removing elements. Fixes: e701001e7cbe ("netfilter: nft_rbtree: allow adjacent intervals with dynamic updates") Reported-by: Václav Zindulka Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Le

[PATCH 4.9 24/32] scsi: qla4xxx: fix a potential NULL pointer dereference

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit fba1bdd2a9a93f3e2181ec1936a3c2f6b37e7ed6 ] In case iscsi_lookup_endpoint fails, the fix returns -EINVAL to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Acked-by: Manish Rangankar Reviewed-by: Mukesh Ojha Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Lev

[PATCH 4.9 28/32] libata: fix using DMA buffers on stack

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit dd08a8d9a66de4b54575c294a92630299f7e0fe7 ] When CONFIG_VMAP_STACK=y, __pa() returns incorrect physical address for a stack virtual address. Stack DMA buffers must be avoided. Signed-off-by: raymond pang Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin (Microsoft) --- dri

[PATCH 4.9 31/32] leds: pca9532: fix a potential NULL pointer dereference

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 0aab8e4df4702b31314a27ec4b0631dfad0fae0a ] In case of_match_device cannot find a match, return -EINVAL to avoid NULL pointer dereference. Fixes: fa4191a609f2 ("leds: pca9532: Add device tree support") Signed-off-by: Kangjie Lu Signed-off-by: Jacek Anaszewski Signed-off-by: Sas

[PATCH 4.9 30/32] kconfig/[mn]conf: handle backspace (^H) key

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 9c38f1f044080392603c497ecca4d7d09876ff99 ] Backspace is not working on some terminal emulators which do not send the key code defined by terminfo. Terminals either send '^H' (8) or '^?' (127). But currently only '^?' is handled. Let's also handle '^H' for those terminals. Signed

[PATCH 4.9 15/32] net: ks8851: Dequeue RX packets explicitly

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 536d3680fd2dab5c39857d62a3e084198fc74ff9 ] The ks8851 driver lets the chip auto-dequeue received packets once they have been read in full. It achieves that by setting the ADRFE flag in the RXQCR register ("Auto-Dequeue RXQ Frame Enable"). However if allocation of a packet's sock

[PATCH 4.9 16/32] net: ks8851: Reassert reset pin if chip ID check fails

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 761cfa979a0c177d6c2d93ef5585cd79ae49a7d5 ] Commit 73fdeb82e963 ("net: ks8851: Add optional vdd_io regulator and reset gpio") amended the ks8851 driver to briefly assert the chip's reset pin on probe. It also amended the probe routine's error path to reassert the reset pin if a su

[PATCH 4.14 15/49] serial: ar933x_uart: Fix build failure with disabled console

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 72ff51d8dd262d1fef25baedc2ac35116435be47 ] Andrey has reported on OpenWrt's bug tracking system[1], that he currently can't use ar93xx_uart as pure serial UART without console (CONFIG_SERIAL_8250_CONSOLE and CONFIG_SERIAL_AR933X_CONSOLE undefined), because compilation ends with f

[PATCH 4.14 20/49] ARM: dts: pfla02: increase phy reset duration

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 032f85c9360fb1a08385c584c2c4ed114b33c260 ] Increase the reset duration to ensure correct phy functionality. The reset duration is taken from barebox commit 52fdd510de ("ARM: dts: pfla02: use long enough reset for ethernet phy"): Use a longer reset time for ethernet phy Micrel

[PATCH 4.14 16/49] KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 7494cec6cb3ba7385a6a223b81906384f15aae34 ] Calling kvm_is_visible_gfn() implies that we're parsing the memslots, and doing this without the srcu lock is frown upon: [12704.164532] = [12704.164544] WARNING: suspicious RCU usage [12704.164560] 5.1.0-rc1

[PATCH 4.14 18/49] usb: gadget: net2280: Fix net2280_dequeue()

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit f1d3fba17cd4eeea20397f1324b7b9c69a6a935c ] When a request must be dequeued with net2280_dequeue() e.g. due to a device clear action and the same request is finished by the function scan_dma_completions() then the function net2280_dequeue() does not find the request in the followi

[PATCH 4.14 19/49] usb: gadget: net2272: Fix net2272_dequeue()

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 091dacc3cc10979ab0422f0a9f7fcc27eee97e69 ] Restore the status of ep->stopped in function net2272_dequeue(). When the given request is not found in the endpoint queue the function returns -EINVAL without restoring the state of ep->stopped. Thus the endpoint keeps blocked and does

[PATCH 4.14 02/49] usbnet: ipheth: prevent TX queue timeouts when device not ready

2019-05-02 Thread Greg Kroah-Hartman
From: Alexander Kappner commit bb1b40c7cb863f0800a6410c7dcb86cf3f28d3b1 upstream. iOS devices require the host to be "trusted" before servicing network packets. Establishing trust requires the user to confirm a dialog on the iOS device.Until trust is established, the iOS device will silently dis

[PATCH 4.14 23/49] net: ks8851: Delay requesting IRQ until opened

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit d268f31552794abf5b6aa5af31021643411f25f5 ] The ks8851 driver currently requests the IRQ before registering the net_device. Because the net_device name is used as IRQ name and is still "eth%d" when the IRQ is requested, it's impossibe to tell IRQs apart if multiple ks8851 chips a

[PATCH 4.14 22/49] net: ks8851: Reassert reset pin if chip ID check fails

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 761cfa979a0c177d6c2d93ef5585cd79ae49a7d5 ] Commit 73fdeb82e963 ("net: ks8851: Add optional vdd_io regulator and reset gpio") amended the ks8851 driver to briefly assert the chip's reset pin on probe. It also amended the probe routine's error path to reassert the reset pin if a su

[PATCH 4.14 25/49] staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 7671ce0d92933762f469266daf43bd34d422d58c ] hwxmits is allocated via kcalloc and not checked for failure before its dereference. The patch fixes this problem by returning error upstream in rtl8723bs, rtl8188eu. Signed-off-by: Aditya Pakki Acked-by: Mukesh Ojha Reviewed-by: Hans

[PATCH 4.14 24/49] net: ks8851: Set initial carrier state to down

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 9624bafa5f6418b9ca5b3f66d1f6a6a2e8bf6d4c ] The ks8851 chip's initial carrier state is down. A Link Change Interrupt is signaled once interrupts are enabled if the carrier is up. The ks8851 driver has it backwards by assuming that the initial carrier state is up. The state is the

[PATCH 4.14 03/49] usbnet: ipheth: fix potential null pointer dereference in ipheth_carrier_set

2019-05-02 Thread Greg Kroah-Hartman
From: Gustavo A. R. Silva commit 61c59355e0154a938b28710dfa6c1d8be2ddcefa upstream. _dev_ is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after _dev_ has been null checked. Addresses-Coverity-ID: 1

[PATCH 4.14 27/49] staging: rtl8712: uninitialized memory in read_bbreg_hdl()

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 22c971db7dd4b0ad8dd88e99c407f7a1f4231a2e ] Colin King reported a bug in read_bbreg_hdl(): memcpy(pcmd->rsp, (u8 *)&val, pcmd->rspsz); The problem is that "val" is uninitialized. This code is obviously not useful, but so far as I can tell "pcmd->cmdcode" is never GEN_CM

[PATCH 4.14 08/49] ARM: dts: bcm283x: Fix hdmi hpd gpio pull

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 544e784188f1dd7c797c70b213385e67d92005b6 ] Raspberry pi board model B revison 2 have the hot plug detector gpio active high (and not low as it was in the dts). Signed-off-by: Helen Koike Fixes: 49ac67e0c39c ("ARM: bcm2835: Add VC4 to the device tree.") Reviewed-by: Eric Anholt

[PATCH 4.14 05/49] mm: add try_get_page() helper function

2019-05-02 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 88b1a17dfc3ed7728316478fae0f5ad508f50397 upstream. This is the same as the traditional 'get_page()' function, but instead of unconditionally incrementing the reference count of the page, it only does so if the count was "safe". It returns whether the reference count

[PATCH 4.14 04/49] mm: make page ref count overflow check tighter and more explicit

2019-05-02 Thread Greg Kroah-Hartman
From: Linus Torvalds commit f958d7b528b1b40c44cfda5eabe2d82760d868c3 upstream. We have a VM_BUG_ON() to check that the page reference count doesn't underflow (or get close to overflow) by checking the sign of the count. That's all fine, but we actually want to allow people to use a "get page re

[PATCH 4.14 39/49] scsi: qla4xxx: fix a potential NULL pointer dereference

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit fba1bdd2a9a93f3e2181ec1936a3c2f6b37e7ed6 ] In case iscsi_lookup_endpoint fails, the fix returns -EINVAL to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Acked-by: Manish Rangankar Reviewed-by: Mukesh Ojha Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Lev

[PATCH 4.14 40/49] usb: usb251xb: fix to avoid potential NULL pointer dereference

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 41f00e6e9e55546390031996b773e7f3c1d95928 ] of_match_device in usb251xb_probe can fail and returns a NULL pointer. The patch avoids a potential NULL pointer dereference in this scenario. Signed-off-by: Aditya Pakki Reviewed-by: Richard Leitner Signed-off-by: Greg Kroah-Hartman

[PATCH 4.14 41/49] usb: u132-hcd: fix resource leak

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit f276e002793cdb820862e8ea8f76769d56bba575 ] if platform_driver_register fails, cleanup the allocated resource gracefully. Signed-off-by: Mukesh Ojha Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin (Microsoft) --- drivers/usb/host/u132-hcd.c | 3 +++ 1 file change

[PATCH 4.14 31/49] ARM: dts: imx6qdl: Fix typo in imx6qdl-icore-rqs.dtsi

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 41b37f4c0fa67185691bcbd30201cad566f2f0d1 ] This patch fixes a spelling typo. Signed-off-by: Masanari Iida Fixes: cc42603de320 ("ARM: dts: imx6q-icore-rqs: Add Engicam IMX6 Q7 initial support") Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin (Microsoft) --- arch/arm/boot

[PATCH 4.14 45/49] gpio: of: Fix of_gpiochip_add() error path

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit f7299d441a4da8a5088e651ea55023525a793a13 ] If the call to of_gpiochip_scan_gpios() in of_gpiochip_add() fails, no error handling is performed. This lead to the need of callers to call of_gpiochip_remove() on failure, which causes "BAD of_node_put() on ..." if the failure happene

[PATCH 4.14 46/49] kconfig/[mn]conf: handle backspace (^H) key

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 9c38f1f044080392603c497ecca4d7d09876ff99 ] Backspace is not working on some terminal emulators which do not send the key code defined by terminfo. Terminals either send '^H' (8) or '^?' (127). But currently only '^?' is handled. Let's also handle '^H' for those terminals. Signed

[PATCH 4.14 30/49] net/sched: dont dereference a->goto_chain to read the chain index

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit fe384e2fa36ca084a456fd3055875b4b3fbd ] callers of tcf_gact_goto_chain_index() can potentially read an old value of the chain index, or even dereference a NULL 'goto_chain' pointer, because 'goto_chain' and 'tcfa_action' are read in the traffic path without caring of concurren

[PATCH 4.19 06/72] fs: prevent page refcount overflow in pipe_buf_get

2019-05-02 Thread Greg Kroah-Hartman
From: Matthew Wilcox commit 15fab63e1e57be9fdb5eec1bbc5916e9825e9acb upstream. Change pipe_buf_get() to return a bool indicating whether it succeeded in raising the refcount of the page (if the thing in the pipe is a page). This removes another mechanism for overflowing the page refcount. All c

[PATCH 4.19 05/72] mm: prevent get_user_pages() from overflowing page refcount

2019-05-02 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 8fde12ca79aff9b5ba951fce1a2641901b8d8e64 upstream. If the page refcount wraps around past zero, it will be freed while there are still four billion references to it. One of the possible avenues for an attacker to try to make this happen is by doing direct IO on a pag

[PATCH 4.19 11/72] net: stmmac: dont set own bit too early for jumbo frames

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 80acbed9f8fca1db3fbe915540b756f048aa0fd7 ] Commit 0e80bdc9a72d ("stmmac: first frame prep at the end of xmit routine") overlooked jumbo frames when re-ordering the code, and as a result the own bit was not getting set anymore for the first jumbo frame descriptor. Commit 487e2e22a

[PATCH 4.19 30/72] usb: gadget: net2272: Fix net2272_dequeue()

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 091dacc3cc10979ab0422f0a9f7fcc27eee97e69 ] Restore the status of ep->stopped in function net2272_dequeue(). When the given request is not found in the endpoint queue the function returns -EINVAL without restoring the state of ep->stopped. Thus the endpoint keeps blocked and does

[PATCH 4.19 44/72] drm/tegra: hub: Fix dereference before check

2019-05-02 Thread Greg Kroah-Hartman
[ Upstream commit 7cf77b273a8fc51e7de622fa6691abd4436a9a6b ] Reported-by: Dan Carpenter Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin (Microsoft) --- drivers/gpu/drm/tegra/hub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/hub.c b/driv

<    1   2   3   4   5   6   7   8   9   >