[PATCH AUTOSEL 4.4 19/63] tools lib traceevent: Fix buffer overflow in arg_eval

2019-03-27 Thread Sasha Levin
From: Tony Jones [ Upstream commit 7c5b019e3a638a5a290b0ec020f6ca83d2ec2aaa ] Fix buffer overflow observed when running perf test. The overflow is when trying to evaluate "1ULL << (64 - 1)" which is resulting in -9223372036854775808 which overflows the 20 character buffer. If is possible this

[PATCH AUTOSEL 4.4 28/63] scsi: megaraid_sas: return error when create DMA pool failed

2019-03-27 Thread Sasha Levin
From: Jason Yan [ Upstream commit bcf3b67d16a4c8ffae0aa79de5853435e683945c ] when create DMA pool for cmd frames failed, we should return -ENOMEM, instead of 0. In some case in: megasas_init_adapter_fusion() -->megasas_alloc_cmds() -->megasas_create_frame_pool create D

[PATCH AUTOSEL 4.4 36/63] kprobes: Prohibit probing on bsearch()

2019-03-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit 02106f883cd745523f7766d90a739f983f19e650 ] Since kprobe breakpoing handler is using bsearch(), probing on this routine can cause recursive breakpoint problem. int3 ->do_int3() ->ftrace_int3_handler() ->ftrace_location() ->ftrace_location_rang

[PATCH AUTOSEL 4.4 55/63] hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable

2019-03-27 Thread Sasha Levin
From: Buland Singh [ Upstream commit 24d48a61f230da130cc2ec2e526eacf229e3 ] Commit '3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes")' introduced a new kernel command line parameter hpet_mmap, that is required to expose the memory map of the HPET registers t

[PATCH AUTOSEL 4.4 58/63] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2019-03-27 Thread Sasha Levin
From: Pawe? Chmiel [ Upstream commit 49710c32cd9d6626a77c9f5f978a5f58cb536b35 ] Previously when doing format enumeration, it was returning all formats supported by driver, even if they're not supported by hw. Add missing check for fmt_ver_flag, so it'll be fixed and only those supported by hw

[PATCH AUTOSEL 4.4 46/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-03-27 Thread Sasha Levin
From: Waiman Long [ Upstream commit 71492580571467fb7177aade19c18ce7486267f5 ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have inco

[PATCH AUTOSEL 4.4 62/63] dmaengine: tegra: avoid overflow of byte tracking

2019-03-27 Thread Sasha Levin
From: Ben Dooks [ Upstream commit e486df39305864604b7e25f2a95d51039517ac57 ] The dma_desc->bytes_transferred counter tracks the number of bytes moved by the DMA channel. This is then used to calculate the information passed back in the in the tegra_dma_tx_status callback, which is usually fine.

[PATCH AUTOSEL 3.18 02/41] tracing: kdb: Fix ftdump to not sleep

2019-03-27 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit 31b265b3baaf55f209229888b7ffea523ddab366 ] As reported back in 2016-11 [1], the "ftdump" kdb command triggers a BUG for "sleeping function called from invalid context". kdb's "ftdump" command wants to call ring_buffer_read_prepare() in atomic context. A

[PATCH AUTOSEL 3.18 03/41] sysctl: handle overflow for file-max

2019-03-27 Thread Sasha Levin
From: Christian Brauner [ Upstream commit 32a5ad9c22852e6bd9e74bdec5934ef9d1480bc5 ] Currently, when writing echo 18446744073709551616 > /proc/sys/fs/file-max /proc/sys/fs/file-max will overflow and be set to 0. That quickly crashes the system. This commit sets the max and min value for fi

[PATCH AUTOSEL 3.18 06/41] mm/slab.c: kmemleak no scan alien caches

2019-03-27 Thread Sasha Levin
From: Qian Cai [ Upstream commit 92d1d07daad65c300c7d0b68bbef8867e9895d54 ] Kmemleak throws endless warnings during boot due to in __alloc_alien_cache(), alc = kmalloc_node(memsize, gfp, node); init_arraycache(&alc->ac, entries, batch); kmemleak_no_scan(ac); Kmemleak does not track

[PATCH AUTOSEL 3.18 05/41] mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!

2019-03-27 Thread Sasha Levin
From: "Uladzislau Rezki (Sony)" [ Upstream commit afd07389d3f4933c7f7817a92fb5e053d59a3182 ] One of the vmalloc stress test case triggers the kernel BUG(): [60.562151] [ cut here ] [60.562154] kernel BUG at mm/vmalloc.c:512! [60.562206] invalid opcode: [#1]

[PATCH AUTOSEL 4.4 50/63] tty: increase the default flip buffer limit to 2*640K

2019-03-27 Thread Sasha Levin
From: Manfred Schlaegl [ Upstream commit 7ab57b76ebf632bf2231ccabe26bea33868118c6 ] We increase the default limit for buffer memory allocation by a factor of 10 to 640K to prevent data loss when using fast serial interfaces. For example when using RS485 without flow-control at speeds of 1Mbit/s

[PATCH AUTOSEL 3.18 21/41] kprobes: Prohibit probing on bsearch()

2019-03-27 Thread Sasha Levin
From: Andrea Righi [ Upstream commit 02106f883cd745523f7766d90a739f983f19e650 ] Since kprobe breakpoing handler is using bsearch(), probing on this routine can cause recursive breakpoint problem. int3 ->do_int3() ->ftrace_int3_handler() ->ftrace_location() ->ftrace_location_rang

[PATCH AUTOSEL 3.18 17/41] IB/mlx4: Increase the timeout for CM cache

2019-03-27 Thread Sasha Levin
From: Håkon Bugge [ Upstream commit 2612d723aadcf8281f9bf8305657129bd9f3cd57 ] Using CX-3 virtual functions, either from a bare-metal machine or pass-through from a VM, MAD packets are proxied through the PF driver. Since the VF drivers have separate name spaces for MAD Transaction Ids (TIDs),

[PATCH AUTOSEL 3.18 14/41] ARM: 8840/1: use a raw_spinlock_t in unwind

2019-03-27 Thread Sasha Levin
From: Sebastian Andrzej Siewior [ Upstream commit 74ffe79ae538283bbf7c155e62339f1e5c87b55a ] Mostly unwind is done with irqs enabled however SLUB may call it with irqs disabled while creating a new SLUB cache. I had system freeze while loading a module which called kmem_cache_create() on init.

Re: [PATCH v2] staging/android: use multiple futex wait queues

2019-03-27 Thread Greg Kroah-Hartman
On Fri, Feb 15, 2019 at 08:44:01AM +0100, Hugo Lefeuvre wrote: > Use multiple per-offset wait queues instead of one big wait queue per > region. > > Signed-off-by: Hugo Lefeuvre > --- > Changes in v2: > - dereference the it pointer instead of wait_queue (which is not set > yet) in handle_vs

[PATCH AUTOSEL 3.18 13/41] scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c

2019-03-27 Thread Sasha Levin
From: Benjamin Block [ Upstream commit 1749ef00f7312679f76d5e9104c5d1e22a829038 ] We had a test-report where, under memory pressure, adding LUNs to the systems would fail (the tests add LUNs strictly in sequence): [ 5525.853432] scsi 0:0:1:1088045124: Direct-Access IBM 2107900

Re: [PATCH v2] driver : staging : ion: optimization for decreasing memory fragmentaion

2019-03-27 Thread Greg KH
On Wed, Mar 20, 2019 at 02:38:23PM +0800, Zhaoyang Huang wrote: > From: Zhaoyang Huang > > Two action for this patch: > 1. set a batch size for system heap's shrinker, which can have it buffer > reasonable page blocks in pool for future allocation. > 2. reverse the order sequence when free page b

Re: Linux 5.0.5

2019-03-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 06fda21614bc..63152c5ca136 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 0 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = Shy Crocodile diff --git a/arch/mips/include/asm/jump_label.h

[PATCH AUTOSEL 3.18 11/41] fs: fix guard_bio_eod to check for real EOD errors

2019-03-27 Thread Sasha Levin
From: Carlos Maiolino [ Upstream commit dce30ca9e3b676fb288c33c1f4725a0621361185 ] guard_bio_eod() can truncate a segment in bio to allow it to do IO on odd last sectors of a device. It already checks if the IO starts past EOD, but it does not consider the possibility of an IO request starting

[PATCH AUTOSEL 3.18 39/41] x86/build: Mark per-CPU symbols as absolute explicitly for LLD

2019-03-27 Thread Sasha Levin
From: Rafael Ávila de Espíndola [ Upstream commit d071ae09a4a1414c1433d5ae9908959a7325b0ad ] Accessing per-CPU variables is done by finding the offset of the variable in the per-CPU block and adding it to the address of the respective CPU's block. Section 3.10.8 of ld.bfd's documentation states

Linux 4.14.109

2019-03-27 Thread Greg KH
I'm announcing the release of the 4.14.109 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser

[PATCH AUTOSEL 3.18 30/41] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-03-27 Thread Sasha Levin
From: Waiman Long [ Upstream commit 71492580571467fb7177aade19c18ce7486267f5 ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous lockdep warning. It is likely that the previous warning turned off lock debugging causing the lockdep to have inco

Re: [PATCH] Staging: emxx_udc: emxx_udc: Fixed a coding style error

2019-03-27 Thread Greg KH
On Tue, Mar 26, 2019 at 09:47:23AM -0400, Will Cunningham wrote: > Removed unnecessary parentheses. > > Signed-off-by: Will Cunningham > --- > drivers/staging/emxx_udc/emxx_udc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Someone else sent this patch right before you did, sorry. g

Re: [PATCH] tty: serial_core: Spelling correction

2019-03-27 Thread Greg KH
On Fri, Mar 22, 2019 at 08:31:59AM +0530, Hariprasad Kelam wrote: > fix spelling mistake "overriden" -> "overridden" > This fix resolves warning reported by checkpatch tool > > Signed-off-by: Hariprasad Kelam > --- > drivers/tty/serial/serial_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

[PATCH AUTOSEL 3.18 26/41] bcache: improve sysfs_strtoul_clamp()

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit 596b5a5dd1bc2fa019fdaaae522ef331deef927f ] Currently sysfs_strtoul_clamp() is defined as, 82 #define sysfs_strtoul_clamp(file, var, min, max) \ 83 do { \ 84 if (attr == &sys

Re: [PATCH] USB/xHCI: Remove returned value 'status' since never used

2019-03-27 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2019 at 09:15:57PM +0100, Mathieu Malaterre wrote: > The returned value in status has never been used since > commit 4296c70a5ec3 ("USB/xHCI: Enable USB 3.0 hub remote wakeup.") > So remove 'status' completely. > > Remove warning (W=1): > > drivers/usb/core/hub.c:3671:8: warning

[PATCH AUTOSEL 3.18 40/41] dmaengine: tegra: avoid overflow of byte tracking

2019-03-27 Thread Sasha Levin
From: Ben Dooks [ Upstream commit e486df39305864604b7e25f2a95d51039517ac57 ] The dma_desc->bytes_transferred counter tracks the number of bytes moved by the DMA channel. This is then used to calculate the information passed back in the in the tegra_dma_tx_status callback, which is usually fine.

[PATCH AUTOSEL 3.18 36/41] dmaengine: imx-dma: fix warning comparison of distinct pointer types

2019-03-27 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 9227ab5643cb8350449502dd9e3168a873ab0e3b ] The warning got introduced by commit 930507c18304 ("arm64: add basic Kconfig symbols for i.MX8"). Since it got enabled for arm64. The warning haven't been seen before since size_t was 'unsigned int' when built on ar

[PATCH AUTOSEL 3.18 35/41] hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable

2019-03-27 Thread Sasha Levin
From: Buland Singh [ Upstream commit 24d48a61f230da130cc2ec2e526eacf229e3 ] Commit '3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes")' introduced a new kernel command line parameter hpet_mmap, that is required to expose the memory map of the HPET registers t

Re: [PATCH v2] tty/serial: Add a serial port simulator

2019-03-27 Thread Greg Kroah-Hartman
On Tue, Mar 05, 2019 at 11:12:31AM -0600, miny...@acm.org wrote: > From: Corey Minyard > > This creates simulated serial ports, both as echo devices and pipe > devices. The driver reasonably approximates the serial port speed > and simulates some modem control lines. It allows error injection >

[PATCH AUTOSEL 3.18 34/41] Bluetooth: Verify that l2cap_get_conf_opt provides large enough buffer

2019-03-27 Thread Sasha Levin
From: Marcel Holtmann [ Upstream commit 7c9cbd0b5e38a1672fcd137894ace3b042dfbf69 ] The function l2cap_get_conf_opt will return L2CAP_CONF_OPT_SIZE + opt->len as length value. The opt->len however is in control over the remote user and can be used by an attacker to gain access beyond the bounds o

Re: [PATCH] parport_cs: Fix memory leak in parport_config

2019-03-27 Thread Greg KH
On Fri, Mar 22, 2019 at 05:39:17PM +0530, Mukesh Ojha wrote: > > On 3/21/2019 1:56 PM, Yue Haibing wrote: > > From: YueHaibing > > > > parport_probe() alloc parport device 'info', > > but while parport_config failed it does not free it. > > > > Signed-off-by: YueHaibing > > --- > > drivers/p

Re: [PATCH v7 2/2] drivers/misc: Add Aspeed P2A control driver

2019-03-27 Thread Greg KH
On Tue, Mar 12, 2019 at 09:31:01AM -0700, Patrick Venture wrote: > + phys_addr_t mem_base; Is this really a 32bit value? Your ioctl thinks it is: > +struct aspeed_p2a_ctrl_mapping { > + __u32 addr; Does this driver not work on a 64bit kernel? > + __u32 length; > + __u32 flags;

Re: [PATCH v9 0/6] Add Fieldbus subsystem + support HMS Profinet card

2019-03-27 Thread Greg KH
On Mon, Mar 18, 2019 at 02:03:32PM -0400, Sven Van Asbroeck wrote: > This patch: > 1. adds a Fieldbus subsystem > 2. adds support for the HMS Industrial Networks AB Profinet card. > Can I get a follow-on patch to add a TODO file to this directory in staging saying what needs to be done to t

Re: [PATCH v2] w1: ds2408: reset on output_write retry with readback

2019-03-27 Thread Greg Kroah-Hartman
On Thu, Mar 21, 2019 at 11:18:27AM -0400, Jean-Francois Dagenais wrote: > Originally > Reported-by: Mariusz Bialonczyk That needs to go down in the signed-off-by area. Also, please resend this series in a way that I can apply it. You didn't say what the order was for the v2 patches. thanks, g

Re: [PATCH] Respond:add support for SUNIX Multi-I/O board

2019-03-27 Thread Greg KH
On Fri, Mar 15, 2019 at 06:10:59PM +0800, Morris Ku wrote: > +driver support maximum 4 boards can be installed incombination > +(up to 32 serial port and 2 parallel port) > + > +And do we really need a global list of them ? (instead of just having > +all per-board / per-port data in a per-board / p

[PATCH AUTOSEL 3.18 32/41] media: mt9m111: set initial frame size other than 0x0

2019-03-27 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 29856308137de1c21eda89411695f4fc6e9780ff ] This driver sets initial frame width and height to 0x0, which is invalid. So set it to selection rectangle bounds instead. This is detected by v4l2-compliance detected. Cc: Enrico Scholz Cc: Michael Grzeschik Cc:

Re: [PATCH 1/4] Add support for SUNIX Multi-I/O card

2019-03-27 Thread Greg KH
On Fri, Mar 08, 2019 at 08:33:22PM +0800, Morris Ku wrote: > Add Kconfig and Makefile entry. > > Signed-off-by: Morris Ku > --- > Kconfig | 2 ++ > Makefile | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/Kconfig b/Kconfig > index 4f9f9905..645dcc85 100644 > --- a/Kconfig > +++ b/Kc

Re: [PATCH v9 0/6] Add Fieldbus subsystem + support HMS Profinet card

2019-03-27 Thread Greg KH
On Thu, Mar 28, 2019 at 01:49:22AM +0900, Greg KH wrote: > On Mon, Mar 18, 2019 at 02:03:32PM -0400, Sven Van Asbroeck wrote: > > This patch: > > 1. adds a Fieldbus subsystem > > 2. adds support for the HMS Industrial Networks AB Profinet card. > > > > > > Can I get a follow-on patch to add

Linux 4.9.166

2019-03-27 Thread Greg KH
I'm announcing the release of the 4.9.166 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Linux 5.0.5

2019-03-27 Thread Greg KH
I'm announcing the release of the 5.0.5 kernel. All users of the 5.0 kernel series must upgrade. The updated 5.0.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.0.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v1 1/2] net: phy: mscc: add support for VSC8514 PHY

2019-03-27 Thread David Miller
From: Date: Wed, 27 Mar 2019 09:56:13 + > +static u32 vsc85xx_csr_ctrl_phy_read(struct phy_device *phydev, > + u32 target, u32 reg) > +{ > + u32 val, val_l, val_h; > + unsigned long deadline; Please order local variable declarations from longest to sh

Re: [PATCH] misc/fastrpc: add checked value for dma_set_mask

2019-03-27 Thread Greg KH
On Mon, Mar 18, 2019 at 10:05:19PM -0400, Bo YU wrote: > There be should check return value from dma_set_mask to throw some infos > if fail to set dma mask. > > Detected by CoverityScan, CID# 1443983: Error handling issues > (CHECKED_RETURN) > > Fixes:f6f9279f2bf0 (misc: fastrpc: Add Qualcomm f

Re: Linux 4.19.32

2019-03-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 3b1c6cff6700..d66c433df5b1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 31 +SUBLEVEL = 32 EXTRAVERSION = NAME = "People's Front" diff --git a/arch/mips/include/asm/jump_l

[PATCH AUTOSEL 3.18 31/41] tty: increase the default flip buffer limit to 2*640K

2019-03-27 Thread Sasha Levin
From: Manfred Schlaegl [ Upstream commit 7ab57b76ebf632bf2231ccabe26bea33868118c6 ] We increase the default limit for buffer memory allocation by a factor of 10 to 640K to prevent data loss when using fast serial interfaces. For example when using RS485 without flow-control at speeds of 1Mbit/s

[PATCH AUTOSEL 3.18 28/41] cdrom: Fix race condition in cdrom_sysctl_register

2019-03-27 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit f25191bb322dec8fa2979ecb8235643aa42470e1 ] The following traceback is sometimes seen when booting an image in qemu: [ 54.608293] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 54.611085] Fusion MPT base driver 3.04.20 [ 54.611877] Copyright (c) 1999-20

[PATCH AUTOSEL 3.18 25/41] bcache: fix input overflow to sequential_cutoff

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit 8c27a3953e92eb0b22dbb03d599f543a05f9574e ] People may set sequential_cutoff of a cached device via sysfs file, but current code does not check input value overflow. E.g. if value 4294967295 (UINT_MAX) is written to file sequential_cutoff, its value is 4GB, but if

Linux 4.19.32

2019-03-27 Thread Greg KH
I'm announcing the release of the 4.19.32 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.14.109

2019-03-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 170411b62525..e02bced59a57 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 108 +SUBLEVEL = 109 EXTRAVERSION = NAME = Petit Gorille diff --git a/arch/mips/include/asm/jump_la

[PATCH AUTOSEL 3.18 23/41] ALSA: PCM: check if ops are defined before suspending PCM

2019-03-27 Thread Sasha Levin
From: Ranjani Sridharan [ Upstream commit d9c0b2afe820fa3b3f8258a659daee2cc71ca3ef ] BE dai links only have internal PCM's and their substream ops may not be set. Suspending these PCM's will result in their ops->trigger() being invoked and cause a kernel oops. So skip suspending PCM's if their

Re: Linux 4.9.166

2019-03-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 9b61da532c42..90478086eff5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 165 +SUBLEVEL = 166 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 5963b

[PATCH AUTOSEL 3.18 24/41] bcache: fix input overflow to cache set sysfs file io_error_halflife

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit a91fbda49f746119828f7e8ad0f0aa2ab0578f65 ] Cache set sysfs entry io_error_halflife is used to set c->error_decay. c->error_decay is in type unsigned int, and it is converted by strtoul_or_return(), therefore overflow to c->error_decay is possible for a large input

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread Greg KH
On Wed, Mar 27, 2019 at 10:42:18AM -0700, Matthew Garrett wrote: > On Wed, Mar 27, 2019 at 10:40 AM Andy Lutomirski wrote: > > As far as I'm concerned, preventing root from crashing the system > > should not be a design goal of lockdown at all. And I think that the > > "integrity" mode should be

[PATCH AUTOSEL 3.18 18/41] scsi: megaraid_sas: return error when create DMA pool failed

2019-03-27 Thread Sasha Levin
From: Jason Yan [ Upstream commit bcf3b67d16a4c8ffae0aa79de5853435e683945c ] when create DMA pool for cmd frames failed, we should return -ENOMEM, instead of 0. In some case in: megasas_init_adapter_fusion() -->megasas_alloc_cmds() -->megasas_create_frame_pool create D

[PATCH AUTOSEL 3.18 20/41] leds: lp55xx: fix null deref on firmware load failure

2019-03-27 Thread Sasha Levin
From: Michal Kazior [ Upstream commit 5ddb0869bfc1bca6cfc592c74c64a026f936638c ] I've stumbled upon a kernel crash and the logs pointed me towards the lp5562 driver: > <4>[306013.841294] lp5562 0-0030: Direct firmware load for lp5562 failed with > error -2 > <4>[306013.894990] lp5562 0-0030: F

[PATCH AUTOSEL 3.18 15/41] mmc: omap: fix the maximum timeout setting

2019-03-27 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit a6327b5e57fdc679c842588c3be046c0b39cc127 ] When running OMAP1 kernel on QEMU, MMC access is annoyingly noisy: MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be use

[PATCH AUTOSEL 3.18 12/41] tools lib traceevent: Fix buffer overflow in arg_eval

2019-03-27 Thread Sasha Levin
From: Tony Jones [ Upstream commit 7c5b019e3a638a5a290b0ec020f6ca83d2ec2aaa ] Fix buffer overflow observed when running perf test. The overflow is when trying to evaluate "1ULL << (64 - 1)" which is resulting in -9223372036854775808 which overflows the 20 character buffer. If is possible this

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread Greg KH
On Wed, Mar 27, 2019 at 10:39:53AM -0700, Andy Lutomirski wrote: > On Tue, Mar 26, 2019 at 10:33 PM Greg KH wrote: > > > > On Tue, Mar 26, 2019 at 10:29:41PM -0700, Andy Lutomirski wrote: > > > > > > > > > > On Mar 26, 2019, at 10:06 PM, Greg KH > > > > wrote: > > > > > > > >> On Tue, Mar 26, 20

[PATCH AUTOSEL 3.18 10/41] cifs: Fix NULL pointer dereference of devname

2019-03-27 Thread Sasha Levin
From: Yao Liu [ Upstream commit 68e2672f8fbd1e04982b8d2798dd318bf2515dd2 ] There is a NULL pointer dereference of devname in strspn() The oops looks something like: CIFS: Attempting to mount (null) BUG: unable to handle kernel NULL pointer dereference at ... RIP: 0010:

[PATCH AUTOSEL 3.18 08/41] cifs: use correct format characters

2019-03-27 Thread Sasha Levin
From: Louis Taylor [ Upstream commit 259594bea574e515a148171b5cd84ce5cbdc028a ] When compiling with -Wformat, clang emits the following warnings: fs/cifs/smb1ops.c:312:20: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]

[PATCH AUTOSEL 3.18 09/41] dm thin: add sanity checks to thin-pool and external snapshot creation

2019-03-27 Thread Sasha Levin
From: "Jason Cai (Xiang Feng)" [ Upstream commit 70de2cbda8a5d788284469e755f8b097d339c240 ] Invoking dm_get_device() twice on the same device path with different modes is dangerous. Because in that case, upgrade_mode() will alloc a new 'dm_dev' and free the old one, which may be referenced by a

[PATCH AUTOSEL 3.18 07/41] ocfs2: fix a panic problem caused by o2cb_ctl

2019-03-27 Thread Sasha Levin
From: Jia Guo [ Upstream commit cc725ef3cb202ef2019a3c67c8913efa05c3cce6 ] In the process of creating a node, it will cause NULL pointer dereference in kernel if o2cb_ctl failed in the interval (mkdir, o2cb_set_node_attribute(node_num)] in function o2cb_add_node. The node num is initialized to

[PATCH AUTOSEL 3.18 01/41] i2c: sis630: correct format strings

2019-03-27 Thread Sasha Levin
From: Louis Taylor [ Upstream commit 60f7691c624b41a05bfc3493d9b0519e7951b7ef ] When compiling with -Wformat, clang warns: drivers/i2c/busses/i2c-sis630.c:482:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] smbus_base +

[PATCH v4] tpm: fix an invalid condition in tpm_common_poll

2019-03-27 Thread Tadeusz Struk
The poll condition should only check response_length, because reads should only be issued if there is data to read. The response_read flag only prevents double writes. The problem was that the write set the response_read to false, enqued a tpm job, and returned. Then application called poll which c

[PATCH AUTOSEL 3.18 04/41] mm/cma.c: cma_declare_contiguous: correct err handling

2019-03-27 Thread Sasha Levin
From: Peng Fan [ Upstream commit 0d3bd18a5efd66097ef58622b898d3139790aa9d ] In case cma_init_reserved_mem failed, need to free the memblock allocated by memblock_reserve or memblock_alloc_range. Quote Catalin's comments: https://lkml.org/lkml/2019/2/26/482 Kmemleak is supposed to work with t

[PATCH 3/4] powerpc/pseries/iommu: Use a locallock instead local_irq_save()

2019-03-27 Thread Sebastian Andrzej Siewior
The locallock protects the per-CPU variable tce_page. The function attempts to allocate memory while tce_page is protected (by disabling interrupts). Use local_irq_save() instead of local_irq_disable(). Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/platforms/pseries/iommu.c | 16 +++

[PATCH AUTOSEL 4.4 59/63] regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting

2019-03-27 Thread Sasha Levin
From: Axel Lin [ Upstream commit f01a7beb6791f1c419424c1a6958b7d0a289c974 ] The act8600_sudcdc_voltage_ranges setting does not match the datasheet. The problems in below entry: REGULATOR_LINEAR_RANGE(1900, 191, 255, 40), 1. The off-by-one min_sel causes wrong volatage calculation.

[PATCH AUTOSEL 4.4 63/63] drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers

2019-03-27 Thread Sasha Levin
From: Ville Syrjälä [ Upstream commit c978ae9bde582e82a04c63a4071701691dd8b35c ] We aren't supposed to force a stop+start between every i2c msg when performing multi message transfers. This should eg. cause the DDC segment address to be reset back to 0 between writing the segment address and rea

[PATCH AUTOSEL 4.4 61/63] x86/build: Mark per-CPU symbols as absolute explicitly for LLD

2019-03-27 Thread Sasha Levin
From: Rafael Ávila de Espíndola [ Upstream commit d071ae09a4a1414c1433d5ae9908959a7325b0ad ] Accessing per-CPU variables is done by finding the offset of the variable in the per-CPU block and adding it to the address of the respective CPU's block. Section 3.10.8 of ld.bfd's documentation states

[PATCH 1/4] printk: An all-in-one commit to fix build failures

2019-03-27 Thread Sebastian Andrzej Siewior
From: John Ogness This commit contains addresses several build failures which were reported by the kbuild test robot. The fixes were folded into the original commits. Reported-by: kbuild test robot Signed-off-by: John Ogness Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/kernel/tr

[PATCH 2/4] powerpc/stackprotector: work around stack-guard init from atomic

2019-03-27 Thread Sebastian Andrzej Siewior
This is invoked from the secondary CPU in atomic context. On x86 we use tsc instead. On Power we XOR it against mftb() so lets use stack address as the initial value. Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/include/asm/stackprotector.h | 4 1 file changed, 4 insertions(+)

[PATCH 4/4] powerpc: reshuffle TIF bits

2019-03-27 Thread Sebastian Andrzej Siewior
Powerpc32/64 does not compile because TIF_SYSCALL_TRACE's bit is higher than 15 and the assembly instructions don't expect that. Move TIF_RESTOREALL, TIF_NOERROR to the higher bits and keep TIF_NEED_RESCHED_LAZY in the lower range. As a result one split load is needed and otherwise we can use imme

[PATCH AUTOSEL 4.4 56/63] dmaengine: imx-dma: fix warning comparison of distinct pointer types

2019-03-27 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 9227ab5643cb8350449502dd9e3168a873ab0e3b ] The warning got introduced by commit 930507c18304 ("arm64: add basic Kconfig symbols for i.MX8"). Since it got enabled for arm64. The warning haven't been seen before since size_t was 'unsigned int' when built on ar

[PATCH AUTOSEL 4.4 52/63] hwrng: virtio - Avoid repeated init of completion

2019-03-27 Thread Sasha Levin
From: David Tolnay [ Upstream commit aef027db48da56b6f25d0e54c07c8401ada6ce21 ] The virtio-rng driver uses a completion called have_data to wait for a virtio read to be fulfilled by the hypervisor. The completion is reset before placing a buffer on the virtio queue and completed by the virtio ca

[PATCH AUTOSEL 4.4 54/63] Bluetooth: Verify that l2cap_get_conf_opt provides large enough buffer

2019-03-27 Thread Sasha Levin
From: Marcel Holtmann [ Upstream commit 7c9cbd0b5e38a1672fcd137894ace3b042dfbf69 ] The function l2cap_get_conf_opt will return L2CAP_CONF_OPT_SIZE + opt->len as length value. The opt->len however is in control over the remote user and can be used by an attacker to gain access beyond the bounds o

[PATCH AUTOSEL 4.4 49/63] ARM: avoid Cortex-A9 livelock on tight dmb loops

2019-03-27 Thread Sasha Levin
From: Russell King [ Upstream commit 5388a5b82199facacd3d7ac0d05aca6e8f902fed ] machine_crash_nonpanic_core() does this: while (1) cpu_relax(); because the kernel has crashed, and we have no known safe way to deal with the CPU. So, we place the CPU into an infinite loo

[PATCH AUTOSEL 4.4 53/63] soc/tegra: fuse: Fix illegal free of IO base address

2019-03-27 Thread Sasha Levin
From: Timo Alho [ Upstream commit 51294bf6b9e897d595466dcda5a3f2751906a200 ] On cases where device tree entries for fuse and clock provider are in different order, fuse driver needs to defer probing. This leads to freeing incorrect IO base address as the fuse->base variable gets overwritten once

[PATCH AUTOSEL 4.4 45/63] ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe

2019-03-27 Thread Sasha Levin
From: wen yang [ Upstream commit 11907e9d3533648615db08140e3045b829d2c141 ] The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Wen Yang Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam G

[PATCH AUTOSEL 4.4 47/63] soc: qcom: gsbi: Fix error handling in gsbi_probe()

2019-03-27 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 8cd09a3dd3e176c62da67efcd477a44a8d87185e ] If of_platform_populate() fails in gsbi_probe(), gsbi->hclk is left undisabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Bjorn Andersson

[PATCH AUTOSEL 4.4 43/63] cdrom: Fix race condition in cdrom_sysctl_register

2019-03-27 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit f25191bb322dec8fa2979ecb8235643aa42470e1 ] The following traceback is sometimes seen when booting an image in qemu: [ 54.608293] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 54.611085] Fusion MPT base driver 3.04.20 [ 54.611877] Copyright (c) 1999-20

[PATCH AUTOSEL 4.4 38/63] ALSA: PCM: check if ops are defined before suspending PCM

2019-03-27 Thread Sasha Levin
From: Ranjani Sridharan [ Upstream commit d9c0b2afe820fa3b3f8258a659daee2cc71ca3ef ] BE dai links only have internal PCM's and their substream ops may not be set. Suspending these PCM's will result in their ops->trigger() being invoked and cause a kernel oops. So skip suspending PCM's if their

[PATCH AUTOSEL 4.4 41/63] bcache: improve sysfs_strtoul_clamp()

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit 596b5a5dd1bc2fa019fdaaae522ef331deef927f ] Currently sysfs_strtoul_clamp() is defined as, 82 #define sysfs_strtoul_clamp(file, var, min, max) \ 83 do { \ 84 if (attr == &sys

[PATCH AUTOSEL 4.4 39/63] bcache: fix input overflow to cache set sysfs file io_error_halflife

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit a91fbda49f746119828f7e8ad0f0aa2ab0578f65 ] Cache set sysfs entry io_error_halflife is used to set c->error_decay. c->error_decay is in type unsigned int, and it is converted by strtoul_or_return(), therefore overflow to c->error_decay is possible for a large input

[PATCH AUTOSEL 4.4 40/63] bcache: fix input overflow to sequential_cutoff

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit 8c27a3953e92eb0b22dbb03d599f543a05f9574e ] People may set sequential_cutoff of a cached device via sysfs file, but current code does not check input value overflow. E.g. if value 4294967295 (UINT_MAX) is written to file sequential_cutoff, its value is 4GB, but if

[PATCH AUTOSEL 4.4 35/63] leds: lp55xx: fix null deref on firmware load failure

2019-03-27 Thread Sasha Levin
From: Michal Kazior [ Upstream commit 5ddb0869bfc1bca6cfc592c74c64a026f936638c ] I've stumbled upon a kernel crash and the logs pointed me towards the lp5562 driver: > <4>[306013.841294] lp5562 0-0030: Direct firmware load for lp5562 failed with > error -2 > <4>[306013.894990] lp5562 0-0030: F

[PATCH AUTOSEL 4.4 27/63] ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()

2019-03-27 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 8d1667200850f8753c0265fa4bd25c9a6e5f94ce ] The apq8016 driver leaves the of-node refcount at aborting from the loop of for_each_child_of_node() in the error path. Not only the iterator node of for_each_child_of_node(), the children nodes referred from it for

[PATCH AUTOSEL 4.4 33/63] media: s5p-g2d: Correct return type for mem2mem buffer helpers

2019-03-27 Thread Sasha Levin
From: Ezequiel Garcia [ Upstream commit 30fa627b32230737bc3f678067e2adfecf956987 ] Fix the assigned type of mem2mem buffer handling API. Namely, these functions: v4l2_m2m_next_buf v4l2_m2m_last_buf v4l2_m2m_buf_remove v4l2_m2m_next_src_buf v4l2_m2m_next_dst_buf v4l2_m2m_last_src_buf v4l2

[PATCH AUTOSEL 4.4 29/63] perf test: Fix failure of 'evsel-tp-sched' test on s390

2019-03-27 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 03d309711d687460d1345de8a0363f45b1c8cd11 ] Commit 489338a717a0 ("perf tests evsel-tp-sched: Fix bitwise operator") causes test case 14 "Parse sched tracepoints fields" to fail on s390. This test succeeds on x86. In fact this test now fails on all architec

[PATCH AUTOSEL 4.4 26/63] IB/mlx4: Increase the timeout for CM cache

2019-03-27 Thread Sasha Levin
From: Håkon Bugge [ Upstream commit 2612d723aadcf8281f9bf8305657129bd9f3cd57 ] Using CX-3 virtual functions, either from a bare-metal machine or pass-through from a VM, MAD packets are proxied through the PF driver. Since the VF drivers have separate name spaces for MAD Transaction Ids (TIDs),

[PATCH AUTOSEL 4.4 24/63] mmc: omap: fix the maximum timeout setting

2019-03-27 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit a6327b5e57fdc679c842588c3be046c0b39cc127 ] When running OMAP1 kernel on QEMU, MMC access is annoyingly noisy: MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be use

[PATCH AUTOSEL 4.4 23/63] ARM: 8840/1: use a raw_spinlock_t in unwind

2019-03-27 Thread Sasha Levin
From: Sebastian Andrzej Siewior [ Upstream commit 74ffe79ae538283bbf7c155e62339f1e5c87b55a ] Mostly unwind is done with irqs enabled however SLUB may call it with irqs disabled while creating a new SLUB cache. I had system freeze while loading a module which called kmem_cache_create() on init.

[PATCH AUTOSEL 4.4 20/63] usb: chipidea: Grab the (legacy) USB PHY by phandle first

2019-03-27 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit 68ef236274793066b9ba3154b16c0acc1c891e5c ] According to the chipidea driver bindings, the USB PHY is specified via the "phys" phandle node. However, this only takes effect for USB PHYs that use the common PHY framework. For legacy USB PHYs, a simple look

[PATCH AUTOSEL 4.4 21/63] scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c

2019-03-27 Thread Sasha Levin
From: Benjamin Block [ Upstream commit 1749ef00f7312679f76d5e9104c5d1e22a829038 ] We had a test-report where, under memory pressure, adding LUNs to the systems would fail (the tests add LUNs strictly in sequence): [ 5525.853432] scsi 0:0:1:1088045124: Direct-Access IBM 2107900

[PATCH AUTOSEL 4.4 14/63] fs/file.c: initialize init_files.resize_wait

2019-03-27 Thread Sasha Levin
From: Shuriyc Chu [ Upstream commit 5704a06810682683355624923547b41540e2801a ] (Taken from https://bugzilla.kernel.org/show_bug.cgi?id=200647) 'get_unused_fd_flags' in kthread cause kernel crash. It works fine on 4.1, but causes crash after get 64 fds. It also cause crash on ubuntu1404/1604/1

[PATCH AUTOSEL 4.4 18/63] fs: fix guard_bio_eod to check for real EOD errors

2019-03-27 Thread Sasha Levin
From: Carlos Maiolino [ Upstream commit dce30ca9e3b676fb288c33c1f4725a0621361185 ] guard_bio_eod() can truncate a segment in bio to allow it to do IO on odd last sectors of a device. It already checks if the IO starts past EOD, but it does not consider the possibility of an IO request starting

[PATCH AUTOSEL 4.4 17/63] cifs: Fix NULL pointer dereference of devname

2019-03-27 Thread Sasha Levin
From: Yao Liu [ Upstream commit 68e2672f8fbd1e04982b8d2798dd318bf2515dd2 ] There is a NULL pointer dereference of devname in strspn() The oops looks something like: CIFS: Attempting to mount (null) BUG: unable to handle kernel NULL pointer dereference at ... RIP: 0010:

[PATCH AUTOSEL 4.4 15/63] cifs: use correct format characters

2019-03-27 Thread Sasha Levin
From: Louis Taylor [ Upstream commit 259594bea574e515a148171b5cd84ce5cbdc028a ] When compiling with -Wformat, clang emits the following warnings: fs/cifs/smb1ops.c:312:20: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]

[PATCH] cfg80211: remove redundant zero check on variable 'changed'

2019-03-27 Thread Colin King
From: Colin Ian King The zero check on variable changed is redundant as it must be between 1 and 3 at the end of the proceeding if statement block. Remove the redundant check. Signed-off-by: Colin Ian King --- net/wireless/wext-compat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net

[PATCH AUTOSEL 4.4 11/63] mm/slab.c: kmemleak no scan alien caches

2019-03-27 Thread Sasha Levin
From: Qian Cai [ Upstream commit 92d1d07daad65c300c7d0b68bbef8867e9895d54 ] Kmemleak throws endless warnings during boot due to in __alloc_alien_cache(), alc = kmalloc_node(memsize, gfp, node); init_arraycache(&alc->ac, entries, batch); kmemleak_no_scan(ac); Kmemleak does not track

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