[PATCH 4.12 037/106] gpiolib: skip unwanted events, dont convert them to opposite edge

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Bartosz Golaszewski commit df1e76f28ffe87d1b065eecab2d0fbb89e6bdee5 upstream. The previous fix for filtering out of unwatched events was not entirely correct. Instead of skipping the events we

[PATCH 4.12 032/106] timers: Fix overflow in get_next_timer_interrupt

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Matija Glavinic Pecotic commit 34f41c0316ed52b0b44542491d89278efdaa70e4 upstream. For e.g. HZ=100, timer being 430 jiffies in the future, and 32 bit unsigned int, there is an overflow on unsig

[PATCH 4.12 033/106] powerpc/tm: Fix saving of TM SPRs in core dump

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Gustavo Romero commit cd63f3cf1d59b7ad8419eba1cac8f9126e79cc43 upstream. Currently flush_tmregs_to_thread() does not save the TM SPRs (TFHAR, TFIAR, TEXASR) to the thread struct, unless the pr

[PATCH 4.12 041/106] clk: sunxi-ng: sun5i: Add clk_set_rate_parent to the CPU clock

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maxime Ripard commit 9735ee9e3cc3ba113ac96b0368ef3f1a73092a23 upstream. The current CPU clock is missing the option to change the rate of its parents, leading to improper rates calculated by c

[PATCH 4.12 018/106] mm/hugetlb.c: __get_user_pages ignores certain follow_hugetlb_page errors

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Jordan commit 2be7cfed995e25de1ffaffe14cc065b7ffb528e0 upstream. Commit 9a291a7c9428 ("mm/hugetlb: report -EHWPOISON not -EFAULT when FOLL_HWPOISON is specified") causes __get_user_page

[PATCH 4.12 011/106] iwlwifi: dvm: prevent an out of bounds access

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Emmanuel Grumbach commit 0b0f934e92a8eaed2e6c48a50eae6f84661f74f3 upstream. iwlagn_check_ratid_empty takes the tid as a parameter, but it doesn't check that it is not IWL_TID_NON_QOS. Since IW

[PATCH 4.12 024/106] ALSA: hda - Fix speaker output from VAIO VPCL14M1R

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Sergei A. Trusov commit 3f3c371421e601fa93b6cb7fb52da9ad59ec90b4 upstream. Sony VAIO VPCL14M1R needs the quirk to make the speaker working properly. Tested-by: Dmitriy Signed-off-by: Sergei

[PATCH 4.12 022/106] cpuset: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Dima Zavin commit 89affbf5d9ebb15c6460596822e8857ea2f9e735 upstream. In codepaths that use the begin/retry interface for reading mems_allowed_seq with irqs disabled, there exists a race condit

[PATCH 4.12 023/106] ocfs2: dont clear SGID when inheriting ACLs

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 19ec8e48582670c021e998b9deb88e39a842ff45 upstream. When new directory 'DIR1' is created in a directory 'DIR0' with SGID bit set, DIR1 is expected to have SGID bit set (and owni

[PATCH 4.12 021/106] userfaultfd: non-cooperative: flush event_wqh at release time

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mike Rapoport commit 5a18b64e3f02125be1c0ef777501ae38aafe2a24 upstream. There may still be threads waiting on event_wqh at the time the userfault file descriptor is closed. Flush the events w

Re: new ELF marking

2017-08-09 Thread H.J. Lu
On Wed, Aug 9, 2017 at 10:07 AM, Kees Cook via binutils wrote: > Hi, > > I'd like to be able to mark an ELF binary in such a way that Linux's > binfmt_elf.c will collapse a PIE text area into the mmap region > (currently they are separately randomized in memory). This is desired > by AddressSaniti

[PATCH 4.12 017/106] mm, mprotect: flush TLB if potentially racing with a parallel reclaim leaving stale TLB entries

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mel Gorman commit 3ea277194daaeaa84ce75180ec7c7a2075027a68 upstream. Nadav Amit identified a theoritical race between page reclaim and mprotect due to TLB flushes being batched outside of the

[PATCH 4.12 020/106] userfaultfd_zeropage: return -ENOSPC in case mm has gone

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mike Rapoport commit 9d95aa4bada24be35bb94827a55e1d6e243d866e upstream. In the non-cooperative userfaultfd case, the process exit may race with outstanding mcopy_atomic called by the uffd moni

[PATCH 4.12 029/106] ASoC: do not close shared backend dailink

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Banajit Goswami commit b1cd2e34c69a2f3988786af451b6e17967c293a0 upstream. Multiple frontend dailinks may be connected to a backend dailink at the same time. When one of frontend dailinks is cl

[PATCH 4.12 013/106] NFSv4: Fix EXCHANGE_ID corrupt verifier issue

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit fd40559c8657418385e42f797e0b04bfc0add748 upstream. The verifier is allocated on the stack, but the EXCHANGE_ID RPC call was changed to be asynchronous by commit 8d89bd70

[PATCH 4.12 019/106] userfaultfd: non-cooperative: notify about unmap of destination during mremap

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mike Rapoport commit b22823719302e88d0e2a6bb06433bd97b175a8d8 upstream. When mremap is called with MREMAP_FIXED it unmaps memory at the destination address without notifying userfaultfd monito

[PATCH 4.12 028/106] ASoC: ux500: Restore platform DAI assignments

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 651e9268fb9b9944e063d731b09c0d2ad339bedb upstream. This reverts commit f1013cdeeeb9 ("ASoC: ux500: drop platform DAI assignments"), which seems to have been based on a misu

[PATCH 4.12 012/106] brcmfmac: fix memleak due to calling brcmf_sdiod_sgtable_alloc() twice

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Arend Van Spriel commit 5f5d03143de5e0c593da4ab18fc6393c2815e108 upstream. Due to a bugfix in wireless tree and the commit mentioned below a merge was needed which went haywire. So the submitt

[PATCH 4.12 004/106] scsi: sg: fix SG_DXFER_FROM_DEV transfers

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Thumshirn commit 68c59fcea1f2c6a54c62aa896cc623c1b5bc9b47 upstream. SG_DXFER_FROM_DEV transfers do not necessarily have a dxferp as we set it to NULL for the old sg_io read/write inte

Re: [Linux-ima-devel] [PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-09 Thread Roberto Sassu
On 8/9/2017 4:30 PM, Mimi Zohar wrote: On Wed, 2017-08-09 at 11:15 +0200, Roberto Sassu wrote: On 8/2/2017 9:22 AM, James Morris wrote: On Tue, 1 Aug 2017, Roberto Sassu wrote: On 8/1/2017 12:27 PM, Christoph Hellwig wrote: On Tue, Aug 01, 2017 at 12:20:36PM +0200, Roberto Sassu wrote: This

[PATCH 4.12 015/106] mmc: core: Use device_property_read instead of of_property_read

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: David Woods commit 73a47a9bb3e2c4a9c553c72456e63ab991b1a4d9 upstream. Using the device_property interfaces allows mmc drivers to work on platforms which run on either device tree or ACPI. Sig

[PATCH 4.12 014/106] mmc: sdhci-of-at91: force card detect value for non removable devices

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Ludovic Desroches commit 7a1e3f143176e8ebdb2f5a9b3b47abc18b879d90 upstream. When the device is non removable, the card detect signal is often used for another purpose i.e. muxed to another SoC

[PATCH 4.12 001/106] parisc: Increase thread and stack size to 32kb

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 8f8201dfed91a43ac38c899c82f81eef3d36afd9 upstream. Since kernel 4.11 the thread and irq stacks on parisc randomly overflow the default size of 16k. The reason why stack usa

[PATCH 4.12 008/106] cgroup: fix error return value from cgroup_subtree_control()

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 3c74541777302eec43a0d1327c4d58b8659a776b upstream. While refactoring, f7b2814bb9b6 ("cgroup: factor out cgroup_{apply|finalize}_control() from cgroup_subtree_control_write()")

[PATCH 4.12 009/106] libata: array underflow in ata_find_dev()

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 59a5e266c3f5c156750dd61a45b86daed0fa upstream. My static checker complains that "devno" can be negative, meaning that we read before the start of the loop. I've looke

[PATCH] mtd: nand: mtk: fix error return code in mtk_ecc_probe()

2017-08-09 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the mtk_ecc driver ignores it and always returns -EINVAL. This is not correct and, prevents -EPROBE_DEFER from being propagated properly. Print and propagate the return value of platform_get_irq on failure. This issue was detected with the help of Coc

[PATCH 4.12 010/106] workqueue: restore WQ_UNBOUND/max_active==1 to be ordered

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 5c0338c68706be53b3dc472e4308961c36e4ece1 upstream. The combination of WQ_UNBOUND and max_active == 1 used to imply ordered execution. After NUMA affinity 4c16bd327c74 ("workq

[PATCH 4.12 006/106] cgroup: dont call migration methods if there are no tasks to migrate

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 610467270fb368584b74567edd21c8cc5104490f upstream. Subsystem migration methods shouldn't be called for empty migrations. cgroup_migrate_execute() implements this guarantee by

[PATCH 4.12 002/106] parisc: Handle vmas whose context is not current in flush_cache_range

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 13d57093c141db2036364d6be35e394fc5b64728 upstream. In testing James' patch to drivers/parisc/pdc_stable.c, I hit the BUG statement in flush_cache_range() during a syst

[PATCH 4.12 003/106] scsi: lpfc: fix linking against modular NVMe support

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit cd069bb9f9ff13b23492fda6ccdb458ac4f641ca upstream. When LPFC is built-in but NVMe is a loadable module, we fail to link the kernel: drivers/scsi/built-in.o: In function `

Re: [PATCH] ARC: clk: introduce HSDKv1 pll driver

2017-08-09 Thread sb...@codeaurora.org
On 08/09, Eugeniy Paltsev wrote: > On Thu, 2017-08-03 at 18:53 -0700, Stephen Boyd wrote: > > On 07/14, Eugeniy Paltsev wrote: > > > + /* input divider = reg.idiv + 1 */ > > > + idiv = 1 + ((val & CGU_PLL_CTRL_IDIV_MASK) >> > > > CGU_PLL_CTRL_IDIV_SHIFT); > > > + /* fb divider = 2*(reg.fbdiv + 1) *

[PATCH 4.12 005/106] ACPI / LPSS: Only call pwm_add_table() for the first PWM controller

2017-08-09 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit dd242a080d178c36442a0bb28b6acf6f126d0569 upstream. At least on the UP board SBC both PWMs are enabled leading to us trying to add the same pwm_lookup twice, which leads to

Re: RCU stall when using function_graph

2017-08-09 Thread Paul E. McKenney
On Wed, Aug 09, 2017 at 05:51:33PM +0200, Daniel Lezcano wrote: > On 09/08/2017 16:40, Paul E. McKenney wrote: > > On Wed, Aug 09, 2017 at 03:28:05PM +0200, Daniel Lezcano wrote: > >> On 09/08/2017 14:58, Paul E. McKenney wrote: > >>> On Wed, Aug 09, 2017 at 02:43:49PM +0530, Pratyush Anand wrote:

Re: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-09 Thread Tony Lindgren
* Reizer, Eyal [170809 00:55]: > --- a/drivers/net/wireless/ti/wlcore/main.c > +++ b/drivers/net/wireless/ti/wlcore/main.c > @@ -6040,6 +6040,21 @@ static int wl1271_register_hw(struct wl1271 *wl) > nic_addr = wl->fuse_nic_addr + 1; > } > > + if (oui_addr == 0xdeadbe && n

Re: [PATCH v4] printk: Add monotonic, boottime, and realtime timestamps

2017-08-09 Thread Paul E. McKenney
On Tue, Aug 08, 2017 at 07:08:00PM -0400, Prarit Bhargava wrote: > > > On 08/08/2017 04:28 AM, Peter Zijlstra wrote: > > On Mon, Aug 07, 2017 at 01:36:39PM -0700, Paul E. McKenney wrote: > >> On Mon, Aug 07, 2017 at 04:06:09PM -0400, Prarit Bhargava wrote: > > > >>> peterz? Want to offer a sugg

Re: [v6] wlcore: add missing nvs file name info for wilink8

2017-08-09 Thread Tony Lindgren
* Tony Lindgren [170809 10:26]: > * Reizer, Eyal [170809 00:55]: > > --- a/drivers/net/wireless/ti/wlcore/main.c > > +++ b/drivers/net/wireless/ti/wlcore/main.c > > @@ -6040,6 +6040,21 @@ static int wl1271_register_hw(struct wl1271 *wl) > > nic_addr = wl->fuse_nic_addr + 1; > > }

AMD Polaris 12 / RX 5xx support for Linux 4.9.x

2017-08-09 Thread Axel Rohde
Hi Kernel Maintainers,   I'm using Debian 9 ("Stretch", has just become stable) with Kernel 4.9.30.   Recently I added a AMD Radeon RX 550 (Polaris 12) graphics board to my system to connect an Ultra HD Monitor using Display Port 1.2, which the Intel Ivy Bridge core i5 lacks.   Unfortunately 4.9

Re: [PATCH] drm/vc4: Fix leak of HDMI EDID

2017-08-09 Thread Daniel Vetter
On Tue, Aug 08, 2017 at 01:56:05PM -0700, Eric Anholt wrote: > We don't keep a pointer to it around anywhere, so it's our job to free > it. > > Cc: Stefan Wahren > Link: https://github.com/anholt/linux/issues/101 > Fixes: c8b75bca92cb ("drm/vc4: Add KMS support for Raspberry Pi.") > Signed-off-by

Re: [PATCH 2/2] drm/vc4: Add exec flags to allow forcing a specific X/Y tile walk order.

2017-08-09 Thread Eric Anholt
Boris Brezillon writes: > On Tue, 25 Jul 2017 09:27:33 -0700 > Eric Anholt wrote: > >> This is useful to allow GL to provide defined results for overlapping >> glBlitFramebuffer, which X11 in turn uses to accelerate uncomposited >> window movement without first blitting to a temporary. x11perf

Re: [PATCH v7] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Guenter Roeck
On Wed, Aug 09, 2017 at 05:15:46PM +0200, Maciej S. Szmigiero wrote: > After a suspend / resume cycle we possibly need to reapply chip registers > settings that we had set or fixed in a probe path, since they might have > been reset to default values or set incorrectly by a BIOS again. > > Tested

Re: [PATCH] mtd: spi-nor: cqspi: fix error return code in cqspi_probe()

2017-08-09 Thread Marek Vasut
On 08/09/2017 06:22 PM, Gustavo A. R. Silva wrote: > platform_get_irq() returns an error code, but the cadence-quadspi > driver ignores it and always returns -ENXIO. This is not correct > and, prevents -EPROBE_DEFER from being propagated properly. > > Print and propagate the return value of platfo

[PATCH 1/3] usb: speedtch: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/atm/speedtch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 0/3] constify usb usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] usb: speedtch: constify usb_device_id [PATCH 2/3] usb: hwa-hc: constify usb_device_id

[PATCH 2/3] usb: hwa-hc: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/usb/host/hwa-hc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] Introduce dmam_zalloc_coherent()

2017-08-09 Thread kbuild test robot
Hi Michael, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc4 next-20170808] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michael-Moese/Introduce-dmam_zalloc_coherent

[PATCH] mmc: vub300: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/mmc/host/vub300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] sched/fair: Make PELT signal more accurate

2017-08-09 Thread Joel Fernandes
Hi Vincent, On Wed, Aug 9, 2017 at 3:23 AM, Vincent Guittot wrote: >> >> Yes this is true, however since I'm using the 'delta' instead of >> period_contrib, its only does the update every 128us, however if >> several updates fall within a 128us boundary then those will be rate >> limited. So say

Re: AMD Polaris 12 / RX 5xx support for Linux 4.9.x

2017-08-09 Thread Greg KH
On Wed, Aug 09, 2017 at 07:36:20PM +0200, Axel Rohde wrote: > > Hi Kernel Maintainers, >   > I'm using Debian 9 ("Stretch", has just become stable) with Kernel 4.9.30. >   > Recently I added a AMD Radeon RX 550 (Polaris 12) graphics board to my system > to connect an > Ultra HD Monitor using Disp

Re: [PATCH v4 1/2] x86/unwind: add ORC unwinder

2017-08-09 Thread Juergen Gross
On 09/08/17 18:11, Andy Lutomirski wrote: > On Wed, Aug 9, 2017 at 1:49 AM, Juergen Gross wrote: >> On 08/08/17 22:09, Andy Lutomirski wrote: >>> On Tue, Aug 8, 2017 at 12:13 PM, Josh Poimboeuf wrote: On Tue, Aug 08, 2017 at 12:03:51PM -0700, Linus Torvalds wrote: > On Tue, Aug 8, 2017 a

[PATCH v3 3/3] cgroup: Make debug controller report new controller masks

2017-08-09 Thread Waiman Long
The newly added cgroup controller masks (subtree_bypass and enable_ss_mask) are now being reported in the debug.masks controller file. Signed-off-by: Waiman Long --- kernel/cgroup/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cgroup/debug.c b/kernel/cgroup/debug.c index f6

[PATCH v3 1/3] cgroup: subtree_control bypass mode for non-domain controllers

2017-08-09 Thread Waiman Long
The special prefix '#' attached to a non-domain controller name can now be written into the cgroup.subtree_control file to set that controller in bypass mode in all the child cgroups. The controller will show up in the children's cgroup.controllers file, but the corresponding control knobs will be

[PATCH v3 2/3] cgroup: Allow reenabling of controller in bypass mode

2017-08-09 Thread Waiman Long
Non-domain controllers set to bypass mode in the parent's "cgroup.subtree_control" can now be optionally enabled by writing the controller name with the '+' prefix to "cgroup.controllers". Using the '#' prefix will reset it back to the bypass state. This capability allows a cgroup parent to indivi

[PATCH v3 0/3] cgroup: Introducing bypass mode

2017-08-09 Thread Waiman Long
v2->v3: - Remove invalid cgroup subdirectory creation patch. - Add use cases for the bypass mode and removing statements about control files ownership in cgroup-v2.txt. - Restrict bypass mode to non-domain (threaded) controllers only. v1->v2: - Remove relax no-internal-process constr

Re: [PATCH v7] hwmon: (it87) Reapply probe path chip registers settings after resume

2017-08-09 Thread Maciej S. Szmigiero
On 09.08.2017 19:39, Guenter Roeck wrote: > On Wed, Aug 09, 2017 at 05:15:46PM +0200, Maciej S. Szmigiero wrote: (..) >> >> Changes from v6: Add __maybe_unused to it87_resume_sio(), move a message >> about failure to enter Super I/O on resume to this function, make it clear >> what had actually fai

Re: [PATCH v4 3/5] drm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD

2017-08-09 Thread Noralf Trønnes
Den 07.08.2017 19.39, skrev David Lechner: LEGO MINDSTORMS EV3 has an LCD with a ST7586 controller. This adds a new module for the ST7586 controller with parameters for the LEGO MINDSTORMS EV3 LCD display. Signed-off-by: David Lechner --- This looks good, even I understand the pixel packing

[PATCH v2 0/4] ACPI-APEI-HEST: Fine-tuning for two function implementations

2017-08-09 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 9 Aug 2017 19:45:43 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Fix a typo in a comment line Use kmalloc_array() in hest_ghes_dev_register() Move an assignment in hest_ghes_dev_register() Red

[PATCH v2 1/4] ACPI-APEI-HEST: Fix a typo in a comment line

2017-08-09 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 5 Sep 2016 20:37:38 +0200 Add a missing character to the fourth word at the beginning of this file. Signed-off-by: Markus Elfring --- drivers/acpi/apei/hest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/apei/hest.c b/drivers/

[PATCH] NFC: nfcmrvl: constify usb_device_id

2017-08-09 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/nfc/nfcmrvl/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 2/4] ACPI-APEI-HEST: Use kmalloc_array() in hest_ghes_dev_register()

2017-08-09 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 5 Sep 2016 20:55:33 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle

[PATCH v2 3/4] ACPI-APEI-HEST: Move an assignment in hest_ghes_dev_register()

2017-08-09 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 5 Sep 2016 21:15:22 +0200 Move one assignment for a data structure member in one local variable so that its setting will only be performed after a corresponding memory allocation succeeded by this function. Signed-off-by: Markus Elfring --- drivers/acpi/apei/hes

Re: [PATCH v9 1/4] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-09 Thread Raj, Ashok
On Wed, Aug 09, 2017 at 04:46:07PM +, Casey Leedom wrote: > | From: Raj, Ashok > | Sent: Wednesday, August 9, 2017 8:58 AM > | ... > | As Casey pointed out in an earlier thread, we choose the heavy hammer > | approach because there are some that can lead to data-corruption as opposed > | to pe

[PATCH v2 4/4] ACPI-APEI-HEST: Reduce the scope for a variable in acpi_hest_init()

2017-08-09 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 5 Sep 2016 21:50:34 +0200 Move the definition for the local variable "ghes_count" into an if branch so that the corresponding setting will only be performed if GHES could be enabled by this function. Signed-off-by: Markus Elfring --- drivers/acpi/apei/hest.c | 3

[PATCH] ARC: HSDK: DTS: Add reset controller node to manage ethernet reset

2017-08-09 Thread Eugeniy Paltsev
DW ethernet controller on HSDK hangs sometimes after SW reset, so add reset node to make possible to reset DW ethernet controller HW. Signed-off-by: Eugeniy Paltsev --- NOTE: this patch is effective only if patches to DW ethernet controller and reset controller are applied (they are already

Re: [PATCH] drm/rockchip: Fix suspend crash when drm is not bound

2017-08-09 Thread Sean Paul
On Wed, Aug 9, 2017 at 6:41 AM, Jeffy Chen wrote: > Currently we are allocating drm_device in rockchip_drm_bind, so if the > suspend/resume code access it when drm is not bound, we would hit this > crash: > > [ 253.402836] Unable to handle kernel NULL pointer dereference at virtual > address 000

[PATCH 4.9 01/93] parisc: Handle vmas whose context is not current in flush_cache_range

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: John David Anglin commit 13d57093c141db2036364d6be35e394fc5b64728 upstream. In testing James' patch to drivers/parisc/pdc_stable.c, I hit the BUG statement in flush_cache_range() during a syste

[PATCH 4.9 16/93] ASoC: do not close shared backend dailink

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Banajit Goswami commit b1cd2e34c69a2f3988786af451b6e17967c293a0 upstream. Multiple frontend dailinks may be connected to a backend dailink at the same time. When one of frontend dailinks is clo

[PATCH 4.9 03/93] cgroup: fix error return value from cgroup_subtree_control()

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 3c74541777302eec43a0d1327c4d58b8659a776b upstream. While refactoring, f7b2814bb9b6 ("cgroup: factor out cgroup_{apply|finalize}_control() from cgroup_subtree_control_write()")

[PATCH 4.9 05/93] workqueue: restore WQ_UNBOUND/max_active==1 to be ordered

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 5c0338c68706be53b3dc472e4308961c36e4ece1 upstream. The combination of WQ_UNBOUND and max_active == 1 used to imply ordered execution. After NUMA affinity 4c16bd327c74 ("workqu

[PATCH 4.9 07/93] brcmfmac: fix memleak due to calling brcmf_sdiod_sgtable_alloc() twice

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arend Van Spriel commit 5f5d03143de5e0c593da4ab18fc6393c2815e108 upstream. Due to a bugfix in wireless tree and the commit mentioned below a merge was needed which went haywire. So the submitte

[PATCH 4.9 30/93] mmc: dw_mmc: Use device_property_read instead of of_property_read

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Woods commit 852ff5fea9eb6a9799f1881d6df2cd69a9e6eed5 upstream. Using the device_property interfaces allows the dw_mmc driver to work on platforms which run on either device tree or ACPI.

[PATCH 4.9 25/93] ext4: fix overflow caused by missing cast in ext4_resize_fs()

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Lee commit aec51758ce10a9c847a62a48a168f8c804c6e053 upstream. On a 32-bit platform, the value of n_blcoks_count may be wrong during the file system is resized to size larger than 2^32 blo

[PATCH 4.9 12/93] mm, mprotect: flush TLB if potentially racing with a parallel reclaim leaving stale TLB entries

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mel Gorman commit 3ea277194daaeaa84ce75180ec7c7a2075027a68 upstream. Nadav Amit identified a theoritical race between page reclaim and mprotect due to TLB flushes being batched outside of the P

[PATCH 4.9 14/93] ALSA: hda - Fix speaker output from VAIO VPCL14M1R

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sergei A. Trusov commit 3f3c371421e601fa93b6cb7fb52da9ad59ec90b4 upstream. Sony VAIO VPCL14M1R needs the quirk to make the speaker working properly. Tested-by: Dmitriy Signed-off-by: Sergei A

[PATCH 4.9 55/93] sctp: dont dereference ptr before leaving _sctp_walk_{params, errors}()

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Potapenko [ Upstream commit b1f5bfc27a19f214006b9b4db7b9126df2dfdf5a ] If the length field of the iterator (|pos.p| or |err|) is past the end of the chunk, we shouldn't access it. T

[PATCH 4.9 38/93] tcp_bbr: introduce bbr_init_pacing_rate_from_rtt() helper

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Neal Cardwell [ Upstream commit 79135b89b8af304456bd67916b80116ddf03d7b6 ] Introduce a helper to initialize the BBR pacing rate unconditionally, based on the current cwnd and RTT estimate. Thi

[PATCH 4.9 49/93] packet: fix use-after-free in prb_retire_rx_blk_timer_expired()

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: WANG Cong [ Upstream commit c800aaf8d869f2b9b47b10c5c312fe19f0a94042 ] There are multiple reports showing we have a use-after-free in the timer prb_retire_rx_blk_timer_expired(), where we use

[PATCH 4.9 51/93] net: ethernet: nb8800: Handle all 4 RGMII modes identically

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marc Gonzalez [ Upstream commit 4813497b537c6208c90d6cbecac5072d347de900 ] Before commit bf8f6952a233 ("Add blurb about RGMII") it was unclear whose responsibility it was to insert the require

[PATCH 4.9 78/93] clk/samsung: exynos542x: mark some clocks as critical

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marek Szyprowski [ Upstream commit 318fa46cc60d37fec1e87dbf03a82aca0f5ce695 ] Some parent clocks of the Exynos542x clock blocks, which have separate power domains (like DISP, MFC, MSC, GSC, FS

[PATCH 4.9 50/93] ipv6: Dont increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment()

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Stefano Brivio [ Upstream commit afce615aaabfbaad02550e75c0bec106dafa1adf ] RFC 2465 defines ipv6IfStatsOutFragFails as: "The number of IPv6 datagrams that have been discarded

[PATCH 4.9 82/93] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Emmanuel Vadot [ Upstream commit 3116d37651d77125bf50f81f859b1278e02ccce6 ] The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the original node (mmc2_pins_a) s

[PATCH 4.9 81/93] ARM: dts: sun8i: Support DTB build for NanoPi M1

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Milo Kim [ Upstream commit 661ccdc1a95f18ab6c1373322fde09afd5b90a1f ] The commit 10efbf5f1633 ("ARM: dts: sun8i: Add dts file for NanoPi M1 SBC") introduced NanoPi M1 board but it's missing in

[PATCH 4.9 80/93] drm/virtio: fix framebuffer sparse warning

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Gerd Hoffmann [ Upstream commit 71d3f6ef7f5af38dea2975ec5715c88bae92e92d ] virtio uses normal ram as backing storage for the framebuffer, so we should assign the address to new screen_buffer (

[PATCH 4.9 72/93] x86/boot: Add missing declaration of string functions

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Mc Guire [ Upstream commit fac69d0efad08fc15e4dbfc116830782acc0dc9a ] Add the missing declarations of basic string functions to string.h to allow a clean build. Fixes: 5be865661516 (

[PATCH 4.9 79/93] scsi: qla2xxx: Get mutex lock before checking optrom_state

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: "Milan P. Gandhi" [ Upstream commit c7702b8c22712a06080e10f1d2dee1a133ec8809 ] There is a race condition with qla2xxx optrom functions where one thread might modify optrom buffer, optrom_state

[PATCH 4.9 77/93] ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Pavel Tikhomirov [ Upstream commit b007f09072ca8afa118ade333e717ba443e8d807 ] > cat /proc/sys/net/ipv4/tcp_notsent_lowat -1 > echo 4294967295 > /proc/sys/net/ipv4/tcp_notsent_lowat -bash: echo

[PATCH 4.9 74/93] ASoC: rt5645: set sel_i2s_pre_div1 to 2

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bard Liao [ Upstream commit 02c5c03283c52157d336abf5e44ffcda10579fbf ] The i2s clock pre-divider 1 is used for both i2s1 and sysclk. The i2s1 is usually used for the main i2s and the pre-divid

[PATCH 4.9 73/93] spi: spi-axi: Free resources on error path

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET [ Upstream commit 9620ca90115d4bd700f05862d3b210a266a66efe ] We should go to 'err_put_master' here instead of returning directly. Otherwise a call to 'spi_master_put' is mis

[PATCH 4.9 76/93] phy state machine: failsafe leave invalid RUNNING state

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Zefir Kurtisi [ Upstream commit 811a919135b980bac8009d042acdccf10dc1ef5e ] While in RUNNING state, phy_state_machine() checks for link changes by comparing phydev->link before and after callin

[PATCH 4.9 53/93] dccp: fix a memleak that dccp_ipv4 doesnt put reqsk properly

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit b7953d3c0e30a5fc944f6b7bd0bcceb0794bcd85 ] The patch "dccp: fix a memleak that dccp_ipv6 doesn't put reqsk properly" fixed reqsk refcnt leak for dccp_ipv6. The same

[PATCH 4.9 89/93] signal: protect SIGNAL_UNKILLABLE from unintentional clearing.

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jamie Iles [ Upstream commit 2d39b3cd34e6d323720d4c61bd714f5ae202c022 ] Since commit 00cd5c37afd5 ("ptrace: permit ptracing of /sbin/init") we can now trace init processes. init is initially

[PATCH 4.9 92/93] ipv4: Should use consistent conditional judgement for ip fragment in __ip_append_data and ip_finish_output

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: zheng li [ Upstream commit 0a28cfd51e17f4f0a056bcf66bfbe492c3b99f38 ] There is an inconsistent conditional judgement in __ip_append_data and ip_finish_output functions, the variable length in

[PATCH 4.9 52/93] dccp: fix a memleak that dccp_ipv6 doesnt put reqsk properly

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 0c2232b0a71db0ac1d22f751aa1ac0cadb950fd2 ] In dccp_v6_conn_request, after reqsk gets alloced and hashed into ehash table, reqsk's refcnt is set 3. one is for req->rs

[PATCH 4.9 83/93] iw_cxgb4: do not send RX_DATA_ACK CPLs after close/abort

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Steve Wise [ Upstream commit 3bcf96e0183f5c863657cb6ae9adad307a0f6071 ] Function rx_data(), which handles ingress CPL_RX_DATA messages, was always sending an RX_DATA_ACK with the goal of updat

[PATCH 4.9 91/93] net/mlx5: E-Switch, Re-enable RoCE on mode change only after FDB destroy

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Or Gerlitz [ Upstream commit 5bae8c031053c69b4aa74b7f1ba15d4ec8426208 ] We must re-enable RoCE on the e-switch management port (PF) only after destroying the FDB in its switchdev/offloaded mo

[PATCH 4.9 87/93] mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko [ Upstream commit bb1107f7c6052c863692a41f78c000db792334bf ] Andrey Konovalov has reported the following warning triggered by the syzkaller fuzzer. WARNING: CPU: 1 PID: 9935 at

[PATCH 4.9 90/93] mm: dont dereference struct page fields of invalid pages

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel [ Upstream commit f073bdc51771f5a5c7a8d1191bfc3ae371d44de7 ] The VM_BUG_ON() check in move_freepages() checks whether the node id of a page matches the node id of its zone. How

[PATCH 4.9 88/93] lib/Kconfig.debug: fix frv build failure

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sudip Mukherjee [ Upstream commit da0510c47519fe0999cffe316e1d370e29f952be ] The build of frv allmodconfig was failing with the errors like: /tmp/cc0JSPc3.s: Assembler messages: /tmp/cc0J

[PATCH 4.9 84/93] nbd: blk_mq_init_queue returns an error code on failure, not NULL

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Moyer [ Upstream commit 25b4acfc7de0fc4da3bfea3a316f7282c6fbde81 ] Additionally, don't assign directly to disk->queue, otherwise blk_put_queue (called via put_disk) will choke (panic) on

[PATCH 4.9 86/93] ARM: 8632/1: ftrace: fix syscall name matching

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Rabin Vincent [ Upstream commit 270c8cf1cacc69cb8d99dea812f06067a45e4609 ] ARM has a few system calls (most notably mmap) for which the names of the functions which are referenced in the sysca

[PATCH 4.9 45/93] ipv4: initialize fib_trie prior to register_netdev_notifier call.

2017-08-09 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mahesh Bandewar [ Upstream commit 8799a221f5944a7d74516ecf46d58c28ec1d1f75 ] Net stack initialization currently initializes fib-trie after the first call to netdevice_notifier() call. In fact

  1   2   3   4   5   6   7   8   9   10   >