[PATCH] net: phy: fix auto-negotiation stall due to unavailable interrupt

2017-04-19 Thread Alexander Kochetkov
The problem I fix related to SMSC LAN8710/LAN8720 PHY handled using interrupts. During power-up cycle the PHY do auto-negotiation, generate interrupt and set BMSR_ANEGCOMPLETE flag. Interrupt is handled by PHY state machine but doesn't update link because PHY is in PHY_READY state. After some time

Re: [RFC 2/4] Deactivate mmap_sem assert

2017-04-19 Thread Laurent Dufour
On 19/04/2017 14:30, Peter Zijlstra wrote: > On Wed, Apr 19, 2017 at 02:18:25PM +0200, Laurent Dufour wrote: >> When mmap_sem will be moved to a range lock, some assertion done in >> the code are no more valid, like the one ensuring mmap_sem is held. >> > > Why are they no longer valid? I didn't

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-19 Thread Sudeep Holla
On 19/04/17 12:47, Viresh Kumar wrote: > On 18-04-17, 17:01, Sudeep Holla wrote: >> Understood. I would incline towards reusing regulators we that's what is > > It can be just a regulator, but it can be anything else as well. That > entity may have its own clock/volt/current tunables, etc. >

Re: [PATCH] net: phy: fix auto-negotiation stall due to unavailable interrupt

2017-04-19 Thread Alexander Kochetkov
Just found similar problem fixed in another PHY. See commit 99f81afc139c ("phy: micrel: Disable auto negotiation on startup») > 19 апр. 2017 г., в 16:46, Alexander Kochetkov > написал(а): > > The problem I fix related to SMSC LAN8710/LAN8720 PHY handled using > interrupts.

Re: [PATCH v5 4/7] perf report: Refactor the branch info printing code

2017-04-19 Thread Jiri Olsa
On Wed, Apr 19, 2017 at 11:48:11PM +0800, Jin Yao wrote: SNIP > static int counts_str_build(char *bf, int bfsize, >u64 branch_count, u64 predicted_count, >u64 abort_count, u64 cycles_count, >u64 iter_count, u64

Re: [PATCH] MAINTAINERS: drop akarwar from mwifiex

2017-04-19 Thread Kalle Valo
amit karwar writes: > On Thu, Apr 13, 2017 at 6:47 PM, Kalle Valo wrote: >> Brian Norris writes: >> >>> His email is bouncing, and I expect he's not doing this work any more. >>> >>> Cc: Amitkumar Karwar

[PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-19 Thread Colin King
From: Colin Ian King Ensure that when an invalid value in ret or value is found -EINVAL is returned. A previous commit broke the way the return error is being returned and instead caused the return code in ret to be re-assigned rather than be returned. Fixes:

[PATCH 4.9 46/69] zram: do not use copy_page with non-page aligned address

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Minchan Kim commit d72e9a7a93e4f8e9e52491921d99e0c8aa89eb4e upstream. The copy_page is optimized memcpy for page-alinged address. If it is used with non-page aligned

[PATCH 4.9 37/69] libnvdimm: fix reconfig_mutex, mmap_sem, and jbd2_handle lockdep splat

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 0beb2012a1722633515c8aaa263c73449636c893 upstream. Holding the reconfig_mutex over a potential userspace fault sets up a lockdep dependency chain

Re: [PATCH 0/4] ARM: sunxi: device tree pinctrl clean up and H3 OTG

2017-04-19 Thread Maxime Ripard
On Wed, Apr 19, 2017 at 01:09:15PM +0800, Chen-Yu Tsai wrote: > Hi Maxime, > > This series has 2 parts. The parts are largely unrelated, though the > second part should be applied after the first part, so we don't > accidentally mux pins that we shouldn't. Hence I'm sending them > together. > >

[PATCH 4.4 13/45] scsi: sr: Sanity check returned mode data

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin K. Petersen commit a00a7862513089f17209b732f230922f1942e0b9 upstream. Kefeng Wang discovered that old versions of the QEMU CD driver would return mangled

[PATCH 4.4 01/45] cgroup, kthread: close race window where new kthreads can be migrated to non-root cgroups

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 77f88796cee819b9c4562b0b6b44691b3b7755b1 upstream. Creation of a kthread goes through a couple interlocked stages between the kthread itself and its creator.

[PATCH 4.4 11/45] iscsi-target: Fix TMR reference leak during session shutdown

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit efb2ea770bb3b0f40007530bc8b0c22f36e1c5eb upstream. This patch fixes a iscsi-target specific TMR reference leak during session shutdown, that

[PATCH 4.4 17/45] libnvdimm: fix reconfig_mutex, mmap_sem, and jbd2_handle lockdep splat

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 0beb2012a1722633515c8aaa263c73449636c893 upstream. Holding the reconfig_mutex over a potential userspace fault sets up a lockdep dependency chain

[PATCH 4.4 12/45] iscsi-target: Drop work-around for legacy GlobalSAN initiator

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 1c99de981f30b3e7868b8d20ce5479fa1c0fea46 upstream. Once upon a time back in 2009, a work-around was added to support the GlobalSAN iSCSI

[PATCH 4.4 16/45] xen, fbfront: fix connecting to backend

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Juergen Gross commit 9121b15b5628b38b4695282dc18c553440e0f79b upstream. Connecting to the backend isn't working reliably in xen-fbfront: in case XenbusStateInitWait of the

[PATCH 4.4 10/45] acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit b03b99a329a14b7302f37c3ea6da3848db41c8c5 upstream. While reviewing the -stable patch for commit 86ef58a4e35e "nfit, libnvdimm: fix interleave set

Re: [PATCH v24 09/11] acpi/arm64: Add memory-mapped timer support in GTDT driver

2017-04-19 Thread Mark Rutland
On Tue, Apr 18, 2017 at 06:21:07PM +0100, Lorenzo Pieralisi wrote: > On Sat, Apr 15, 2017 at 02:40:12AM +0800, fu@linaro.org wrote: > > +error: > > + for (i = 0; i < ARCH_TIMER_MEM_MAX_FRAMES; i++) { > > + frame = _mem->frame[i]; > > + if (frame->phys_irq > 0) > > +

[PATCH 4.9 22/69] ACPI / scan: Set the visited flag for all enumerated devices

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Rafael J. Wysocki commit f406270bf73d71ea7b35ee3f7a08a44f6594c9b1 upstream. Commit 10c7e20b2ff3 (ACPI / scan: fix enumeration (visited) flags for bus rescans)

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Paul E. McKenney
On Wed, Apr 19, 2017 at 04:52:15PM +0200, Peter Zijlstra wrote: > On Wed, Apr 19, 2017 at 07:47:30AM -0700, Paul E. McKenney wrote: > > The RCU expedited primitives have been completely rewritten since then, > > and no longer use try_stop_cpus(), no longer disturb idle CPUs, and no > > longer

[PATCH 4.9 21/69] acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit b03b99a329a14b7302f37c3ea6da3848db41c8c5 upstream. While reviewing the -stable patch for commit 86ef58a4e35e "nfit, libnvdimm: fix interleave set

Re: [backport v4.9] tpm_tis: use default timeout value if chip reports it as zero

2017-04-19 Thread Jarkko Sakkinen
On Sat, Apr 15, 2017 at 06:04:05PM +0200, Maciej S. Szmigiero wrote: > Hi Jarkko, > > On 15.04.2017 17:26, Jarkko Sakkinen wrote: > > From: "Maciej S. Szmigiero" > > > > Since commit 1107d065fdf1 ("tpm_tis: Introduce intermediate layer for > > TPM access") Atmel 3203

Re: [PATCH 1/2] n2rng: Use devm_kcalloc() in n2rng_probe()

2017-04-19 Thread Shannon Nelson
On 4/19/2017 2:10 AM, SF Markus Elfring wrote: From: Markus Elfring Date: Wed, 19 Apr 2017 10:30:47 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the

Re: [PATCH 2/2] n2rng: Combine substrings for two messages in n2rng_probe()

2017-04-19 Thread Shannon Nelson
On 4/19/2017 2:11 AM, SF Markus Elfring wrote: From: Markus Elfring Date: Wed, 19 Apr 2017 10:50:04 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places.

Re: [tpmdd-devel] [backport v4.9] tpm_tis: use default timeout value if chip reports it as zero

2017-04-19 Thread Jarkko Sakkinen
On Sun, Apr 16, 2017 at 09:14:29PM +0200, Paul Menzel wrote: > Dear Greg, > > > On 2017-04-15 22:50, Greg KH wrote: > > On Sat, Apr 15, 2017 at 06:26:22PM +0300, Jarkko Sakkinen wrote: > > > From: "Maciej S. Szmigiero" > > > > > > Since commit 1107d065fdf1

[PATCH 4.10 25/69] x86, pmem: fix broken __copy_user_nocache cache-bypass assumptions

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 11e63f6d920d6f2dfd3cd421e939a4aec9a58dcd upstream. Before we rework the "pmem api" to stop abusing __copy_user_nocache() for memcpy_to_pmem() we

[PATCH 4.10 23/69] x86/signals: Fix lower/upper bound reporting in compat siginfo

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit cfac6dfa42bddfa9711b20d486e521d1a41ab09f upstream. Put the right values from the original siginfo into the userspace compat-siginfo. This fixes the

[PATCH 4.10 21/69] perf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32()

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit f2200ac311302fcdca6556fd0c5127eab6c65a3e upstream. When the perf_branch_entry::{in_tx,abort,cycles} fields were added, intel_pmu_lbr_read_32()

Re: [resend PATCH v2 08/33] dcssblk: add dax_operations support

2017-04-19 Thread Dan Williams
On Wed, Apr 19, 2017 at 8:31 AM, Gerald Schaefer wrote: > On Mon, 17 Apr 2017 12:09:32 -0700 > Dan Williams wrote: > >> Setup a dax_dev to have the same lifetime as the dcssblk block device >> and add a ->direct_access() method that is

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 08:37:03AM -0700, Paul E. McKenney wrote: > On Wed, Apr 19, 2017 at 03:15:53PM +0200, Peter Zijlstra wrote: > > On Wed, Apr 19, 2017 at 06:02:45AM -0700, Paul E. McKenney wrote: > > > On Wed, Apr 19, 2017 at 01:28:45PM +0200, Peter Zijlstra wrote: > > > > > > > > So the

[PATCH v2 0/3] ACG support for dwc2 driver

2017-04-19 Thread Razmik Karapetyan
Patches related to implementation of ACG functionality in dwc2 driver. In short this feature specifies, that controller supports Dynamic Power Reduction during no traffic scenarios. Razmik Karapetyan (3): usb: dwc2: Define PCGCCTL1 register in hw.h usb: dwc2: Define Active Clock Gating

Re: WARNING: kernel stack frame pointer has bad value

2017-04-19 Thread Josh Poimboeuf
On Tue, Apr 18, 2017 at 11:37:14PM -0400, Steven Rostedt wrote: > Josh, > > I'm starting to get a bunch of these warnings, and I'm thinking they > are false positives. The stack frame error is recorded at a call from > entry_SYSCALL_64_fastpath, where I would expect the bp to not be valid. > >

Re: ath9k: Add cast to u8 to FREQ2FBIN macro

2017-04-19 Thread Kalle Valo
Matthias Kaehlcke wrote: > The macro results are assigned to u8 variables/fields. Adding the cast > fixes plenty of clang warnings about "implicit conversion from 'int' to > 'u8'". > > Signed-off-by: Matthias Kaehlcke Patch applied to ath-next branch of

Re: [PATCH 3/3] powerpc/mm: Implement CONFIG_DEBUG_RODATA on PPC32

2017-04-19 Thread Michael Ellerman
Christophe Leroy writes: > diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c > index 32509de6ce4c..4af81fb23653 100644 > --- a/arch/powerpc/kernel/ftrace.c > +++ b/arch/powerpc/kernel/ftrace.c > @@ -526,7 +526,9 @@ void ftrace_replace_code(int

Re: [PATCH V4 4/9] PM / QOS: Add DEV_PM_QOS_PERFORMANCE request

2017-04-19 Thread Ulf Hansson
On 20 March 2017 at 10:32, Viresh Kumar wrote: > Some platforms have the capability to configure the performance state of > their Power Domains. The performance levels are identified by positive > integer values, a lower value represents lower performance state. The >

Re: [PATCH V4 00/16] Introduce the BFQ I/O scheduler

2017-04-19 Thread Jens Axboe
On 04/19/2017 03:23 AM, Paolo Valente wrote: > >> Il giorno 12 apr 2017, alle ore 18:23, Paolo Valente >> ha scritto: >> >> Hi, >> new patch series, addressing (both) issues raised by Bart [1], and >> with block/Makefile fixed as suggested by Bart [2]. >> > > Hi Jens,

[PATCH 4.10 39/69] target: Avoid mappedlun symlink creation during lun shutdown

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 49cb77e297dc611a1b795cfeb79452b3002bd331 upstream. This patch closes a race between se_lun deletion during configfs unlink in

[PATCH 4.10 43/69] libnvdimm: fix blk free space accounting

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit fe514739d8538783749d3ce72f78e5a999ea5668 upstream. Commit a1f3e4d6a0c3 "libnvdimm, region: update nd_region_available_dpa() for multi-pmem

[PATCH 4.9 63/69] mm: Tighten x86 /dev/mem with zeroing reads

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit a4866aa812518ed1a37d8ea0c881dc946409de94 upstream. Under CONFIG_STRICT_DEVMEM, reading System RAM through /dev/mem is disallowed. However, on x86, the

[PATCH 4.9 51/69] ath9k: fix NULL pointer dereference

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Miaoqing Pan commit 40bea976c72b9ee60f8d097852deb53ccbeaffbe upstream. relay_open() may return NULL, check the return value to avoid the crash. BUG: unable to handle

[PATCH 4.9 60/69] x86/xen: Fix APIC id mismatch warning on Intel

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mohit Gambhir commit cc272163ea554a97dac180fa8dd6cd54c2810bd1 upstream. This patch fixes the following warning message seen when booting the kernel as Dom0 with Xen

[PATCH 4.9 27/69] iscsi-target: Drop work-around for legacy GlobalSAN initiator

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 1c99de981f30b3e7868b8d20ce5479fa1c0fea46 upstream. Once upon a time back in 2009, a work-around was added to support the GlobalSAN iSCSI

[PATCH 4.9 34/69] [iov_iter] new privimitive: iov_iter_revert()

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 27c0e3748e41ca79171ffa3e97415a20af6facd0 upstream. opposite to iov_iter_advance(); the caller is responsible for never using it to move back past the

[PATCH 4.9 35/69] make skb_copy_datagram_msg() et.al. preserve ->msg_iter on error

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 3278682123811dd8ef07de5eb701fc4548fcebf2 upstream. Fixes the mess observed in e.g. rsync over a noisy link we'd been seeing since last Summer. What

[PATCH 4.9 44/69] Revert "MIPS: Lantiq: Fix cascaded IRQ setup"

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman This reverts commit 362721c4957dcda7b1fbd45380e7a6617a1d077c which is commit 6c356eda225e3ee134ed4176b9ae3a76f793f4dd upstream. It shouldn't have

[PATCH 4.9 45/69] kvm: fix page struct leak in handle_vmon

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Bonzini commit 06ce521af9558814b8606c0476c54497cf83a653 upstream. handle_vmon gets a reference on VMXON region page, but does not release it. Release the reference.

[PATCH 4.9 41/69] irqchip/irq-imx-gpcv2: Fix spinlock initialization

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tyler Baker commit 75eb5e1e7b4edbc8e8f930de59004d21cb46961f upstream. The raw_spinlock in the IMX GPCV2 interupt chip is not initialized before usage. That results in a

[PATCH 4.9 02/69] tcmu: Fix possible overwrite of t_data_sgs last iov[]

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xiubo Li commit ab22d2604c86ceb01bb2725c9860b88a7dd383bb upstream. If there has BIDI data, its first iov[] will overwrite the last iov[] for se_cmd->t_data_sg.

[PATCH 4.9 43/69] char: lack of bool string made CONFIG_DEVPORT always on

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Max Bires commit f2cfa58b136e4b06a9b9db7af5ef62fbb5992f62 upstream. Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually

Re: KASLR causes intermittent boot failures on some systems

2017-04-19 Thread Baoquan He
On 04/19/17 at 07:27am, Thomas Garnier wrote: > On Wed, Apr 19, 2017 at 6:36 AM, Baoquan He wrote: > > Hi all, > > > > I login in Jeff's system, and added debug code, no clue found. However > > DaveY found he disabled page_offset randomization only and the efi issue > > won't be

[PATCH 4.4 19/45] ftrace: Fix removing of second function probe

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 82cc4fc2e70ec5baeff8f776f2773abc8b2cc0ae upstream. When two function probes are added to set_ftrace_filter, and then one of them is removed,

[PATCH 4.4 15/45] scsi: sd: Fix capacity calculation with 32-bit sector_t

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin K. Petersen commit 7c856152cb92f8eee2df29ef325a1b1f43161aff upstream. We previously made sure that the reported disk capacity was less than 0x blocks

[PATCH 4.4 02/45] thp: fix MADV_DONTNEED vs clear soft dirty race

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 5b7abeae3af8c08c577e599dd0578b9e3ee6687b upstream. Yet another instance of the same race. Fix is identical to change_huge_pmd().

[PATCH 4.4 20/45] char: Drop bogus dependency of DEVPORT on !M68K

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 309124e2648d668a0c23539c5078815660a4a850 upstream. According to full-history-linux commit d3794f4fa7c3edc3 ("[PATCH] M68k update (part 25)"),

[PATCH 4.9 07/69] zsmalloc: expand class bit

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Minchan Kim commit 85d492f28d056c40629fc25d79f54da618a29dc4 upstream. Now 64K page system, zsamlloc has 257 classes so 8 class bit is not enough. With that, it corrupts

[PATCH 4.9 38/69] can: ifi: use correct register to read rx status

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Markus Marb commit 57c1d4c33e8f7ec90976d79127059c1919cc0651 upstream. The incorrect offset was used when trying to read the RXSTCMD register. Signed-off-by: Markus Marb

Re: [PATCH tip/core/rcu 02/40] rcu: Make arch select smp_mb__after_unlock_lock() strength

2017-04-19 Thread Paul E. McKenney
On Wed, Apr 19, 2017 at 11:38:22PM +1000, Michael Ellerman wrote: > "Paul E. McKenney" writes: > > > On Thu, Apr 13, 2017 at 06:37:57PM +0200, Peter Zijlstra wrote: > >> On Thu, Apr 13, 2017 at 09:26:51AM -0700, Paul E. McKenney wrote: > >> > >> >

[PATCH 4.9 15/69] perf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32()

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit f2200ac311302fcdca6556fd0c5127eab6c65a3e upstream. When the perf_branch_entry::{in_tx,abort,cycles} fields were added, intel_pmu_lbr_read_32()

[PATCH 4.9 13/69] CIFS: store results of cifs_reopen_file to avoid infinite wait

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Germano Percossi commit 1fa839b4986d648b907d117275869a0e46c324b9 upstream. This fixes Continuous Availability when errors during file reopen are encountered.

Re: [PATCH v3 7/7] powerpc: kprobes: remove duplicate saving of msr

2017-04-19 Thread Masami Hiramatsu
On Wed, 19 Apr 2017 18:21:06 +0530 "Naveen N. Rao" wrote: > set_current_kprobe() already saves regs->msr into kprobe_saved_msr. Remove > the redundant save. > Looks good to me. Reviewed-by: Masami Hiramatsu Thank you, > Signed-off-by:

[PATCH 4.9 10/69] drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ilia Mirkin commit f94773b9f5ecd1df7c88c2e921924dd41d2020cc upstream. The NV4A (aka NV44A) is an oddity in the family. It only comes in AGP and PCI varieties, rather than

[PATCH 4.9 11/69] drm/etnaviv: fix missing unlock on error in etnaviv_gpu_submit()

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Wei Yongjun commit 45abdf35cf82e4270328c7237e7812de960ac560 upstream. Add the missing unlock before return from function etnaviv_gpu_submit() in the error handling

[PATCH 4.10 60/69] parisc: Fix get_user() for 64-bit value on 32-bit kernel

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 3f795cef0ecdf9bc980dd058d49bdab4b19af1d3 upstream. This fixes a bug in which the upper 32-bits of a 64-bit value which is read by get_user() was lost on a

[PATCH 4.10 51/69] drm/i915/gvt: set the correct default value of CTX STATUS PTR

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Min He commit a34f83639490a5cc11a9d5c1b3773d4b6eb69a9e upstream. Fix wrong initial csb read pointer value. This fixes the random engine timeout issue in guest when guest

[PATCH 4.10 36/69] scsi: sd: Consider max_xfer_blocks if opt_xfer_blocks is unusable

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Fam Zheng commit 6780414519f91c2a84da9baa963a940ac916f803 upstream. If device reports a small max_xfer_blocks and a zero opt_xfer_blocks, we end up using BLK_DEF_MAX_SECTORS,

[PATCH 4.10 20/69] perf annotate s390: Fix perf annotate error -95 (4.10 regression)

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger commit 3c1a427954399fd1bda1ee7e1b356f47b61cee74 upstream. since 4.10 perf annotate exits on s390 with an "unknown error -95". Turns out that

[PATCH 4.10 28/69] acpi, nfit, libnvdimm: fix interleave set cookie calculation (64-bit comparison)

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit b03b99a329a14b7302f37c3ea6da3848db41c8c5 upstream. While reviewing the -stable patch for commit 86ef58a4e35e "nfit, libnvdimm: fix interleave set

[PATCH 4.10 27/69] x86/vdso: Plug race between mapping and ELF header setup

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 6fdc6dd90272ce7e75d744f71535cfbd8d77da81 upstream. The vsyscall32 sysctl can racy against a concurrent fork when it switches from disabled to

[PATCH 4.10 29/69] ACPI / scan: Set the visited flag for all enumerated devices

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Rafael J. Wysocki commit f406270bf73d71ea7b35ee3f7a08a44f6594c9b1 upstream. Commit 10c7e20b2ff3 (ACPI / scan: fix enumeration (visited) flags for bus rescans)

[PATCH 4.10 22/69] x86/efi: Dont try to reserve runtime regions

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Omar Sandoval commit 6f6266a561306e206e0e31a5038f029b6a7b1d89 upstream. Reserving a runtime region results in splitting the EFI memory descriptors for the runtime region. This

Re: [PATCH v3 1/6] mtd: dataflash: Replace C99 types with their kernel counterparts

2017-04-19 Thread David Woodhouse
On Wed, 2017-04-19 at 08:23 -0700, Andrey Smirnov wrote: > No functional change intended. FWIW I *deliberately* used the proper C datatypes throughout all of the MTD code instead of the silly kernel-speshul datatypes. To the extent of *fixing* submissions to be written in C when they were using

Re: [PATCH v5 01/32] x86: Documentation for AMD Secure Memory Encryption (SME)

2017-04-19 Thread Borislav Petkov
On Wed, Apr 19, 2017 at 09:23:47AM -0500, Tom Lendacky wrote: > Btw, I tried to update all the subjects and descriptions to be > more descriptive but I'm sure there is still room for improvement > so keep the comments on them coming. No worries there :) > Note, just because the bit is set in

Re: [PATCH v24 09/11] acpi/arm64: Add memory-mapped timer support in GTDT driver

2017-04-19 Thread Mark Rutland
On Wed, Apr 19, 2017 at 04:07:25PM +0100, Mark Rutland wrote: > On Tue, Apr 18, 2017 at 06:21:07PM +0100, Lorenzo Pieralisi wrote: > > On Sat, Apr 15, 2017 at 02:40:12AM +0800, fu@linaro.org wrote: > > If yes, why can't it simply be written like this ? > > > > for (; i >= 0; i--,

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-04-19 Thread Peter Zijlstra
On Tue, Mar 14, 2017 at 05:18:52PM +0900, Byungchul Park wrote: > +struct hist_lock { > + /* > + * Each work of workqueue might run in a different context, > + * thanks to concurrency support of workqueue. So we have to > + * distinguish each work to avoid false positive. > +

Re: [PATCH v5 01/32] x86: Documentation for AMD Secure Memory Encryption (SME)

2017-04-19 Thread Tom Lendacky
On 4/19/2017 4:02 AM, Borislav Petkov wrote: Always have a verb in the Subject to form a "do this" or "do that" sentence to better explain what the patch does: "Subject: [PATCH v5 01/32] x86: Add documentation for AMD Secure Memory Encryption (SME)" Will do. Btw, I tried to update all the

Re: KASLR causes intermittent boot failures on some systems

2017-04-19 Thread Dan Williams
On Wed, Apr 19, 2017 at 7:27 AM, Thomas Garnier wrote: > On Wed, Apr 19, 2017 at 6:36 AM, Baoquan He wrote: >> Hi all, >> >> I login in Jeff's system, and added debug code, no clue found. However >> DaveY found he disabled page_offset randomization only and

Re: [PATCH 0/4] staging: add ccree crypto driver

2017-04-19 Thread Gilad Ben-Yossef
On Tue, Apr 18, 2017 at 6:39 PM, Greg Kroah-Hartman wrote: > On Tue, Apr 18, 2017 at 05:07:50PM +0300, Gilad Ben-Yossef wrote: >> Arm TrustZone CryptoCell 700 is a family of cryptographic hardware >> accelerators. It is supported by a long lived series of out of tree

Re: [PATCH v6 6/8] coresight: add support for CPU debug module

2017-04-19 Thread Mathieu Poirier
On 18 April 2017 at 18:18, Leo Yan wrote: > On Tue, Apr 18, 2017 at 11:40:50AM -0600, Mathieu Poirier wrote: >> On Thu, Apr 06, 2017 at 09:30:59PM +0800, Leo Yan wrote: >> > Coresight includes debug module and usually the module connects with CPU >> > debug logic. ARMv8

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 07:47:30AM -0700, Paul E. McKenney wrote: > The RCU expedited primitives have been completely rewritten since then, > and no longer use try_stop_cpus(), no longer disturb idle CPUs, and no > longer disturb nohz_full CPUs running in userspace. In addition, there > is the

[PATCH 4.4 45/45] MIPS: fix Select HAVE_IRQ_EXIT_ON_IRQ_STACK patch.

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman Commit f017e58da4aba293e4a6ab62ca5d4801f79cc929 which was commit 3cc3434fd6307d06b53b98ce83e76bf9807689b9 upstream, was misapplied to the 4.4

[PATCH 4.4 35/45] virtio-console: avoid DMA from stack

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Omar Sandoval commit c4baad50297d84bde1a7ad45e50c73adae4a2192 upstream. put_chars() stuffs the buffer it gets into an sg, but that buffer may be on the stack. This breaks with

Re: [PATCH v2 tip/core/rcu 0/13] Miscellaneous fixes for 4.12

2017-04-19 Thread Josh Triplett
On Wed, Apr 19, 2017 at 07:47:30AM -0700, Paul E. McKenney wrote: > On Wed, Apr 19, 2017 at 02:08:47PM +0200, Peter Zijlstra wrote: > > On Wed, Apr 19, 2017 at 01:48:08PM +0200, Christian Borntraeger wrote: > > > On 04/19/2017 01:28 PM, Peter Zijlstra wrote: > > > > > > > > So the thing Maz

[PATCH 4.4 04/45] drm/nouveau/mmu/nv4a: use nv04 mmu rather than the nv44 one

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ilia Mirkin commit f94773b9f5ecd1df7c88c2e921924dd41d2020cc upstream. The NV4A (aka NV44A) is an oddity in the family. It only comes in AGP and PCI varieties, rather than

[PATCH 4.4 29/45] ext4: fix inode checksum calculation problem if i_extra_size is small

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Daeho Jeong commit 05ac5aa18abd7db341e54df4ae2b4c98ea0e43b7 upstream. We've fixed the race condition problem in calculating ext4 checksum value in commit b47820edd163

[PATCH 4.4 38/45] catc: Combine failure cleanup code in catc_probe()

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit d41149145f98fe26dcd0bfd1d6cc095e6e041418 upstream. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller

[PATCH 4.4 26/45] crypto: ahash - Fix EINPROGRESS notification callback

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit ef0579b64e93188710d48667cb5e014926af9f1b upstream. The ahash API modifies the request's callback function in order to clean up after itself in

[PATCH 4.4 27/45] ath9k: fix NULL pointer dereference

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Miaoqing Pan commit 40bea976c72b9ee60f8d097852deb53ccbeaffbe upstream. relay_open() may return NULL, check the return value to avoid the crash. BUG: unable to handle

[PATCH 4.4 21/45] char: lack of bool string made CONFIG_DEVPORT always on

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Max Bires commit f2cfa58b136e4b06a9b9db7af5ef62fbb5992f62 upstream. Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually

[PATCH 4.4 23/45] kvm: fix page struct leak in handle_vmon

2017-04-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Bonzini commit 06ce521af9558814b8606c0476c54497cf83a653 upstream. handle_vmon gets a reference on VMXON region page, but does not release it. Release the reference.

Re: [PATCH tip/core/rcu 04/13] rcu: Make RCU_FANOUT_LEAF help text more explicit about skew_tick

2017-04-19 Thread Paul E. McKenney
On Wed, Apr 19, 2017 at 03:48:35PM +0200, Peter Zijlstra wrote: > On Wed, Apr 19, 2017 at 03:22:26PM +0200, Peter Zijlstra wrote: > > On Thu, Apr 13, 2017 at 11:42:32AM -0700, Paul E. McKenney wrote: > > > > > I believe that you are missing the fact that RCU grace-period > > > initialization and

Re: KASLR causes intermittent boot failures on some systems

2017-04-19 Thread Baoquan He
On 04/19/17 at 07:34am, Dan Williams wrote: > On Wed, Apr 19, 2017 at 7:27 AM, Thomas Garnier wrote: > > On Wed, Apr 19, 2017 at 6:36 AM, Baoquan He wrote: > >> Hi all, > >> > >> I login in Jeff's system, and added debug code, no clue found. However > >>

Re: [PATCH v6 6/8] coresight: add support for CPU debug module

2017-04-19 Thread Leo Yan
On Wed, Apr 19, 2017 at 03:32:39PM +0100, Suzuki K Poulose wrote: [...] > >>>+static int debug_probe(struct amba_device *adev, const struct amba_id *id) > >>>+{ > >>>+ void __iomem *base; > >>>+ struct device *dev = >dev; > >>>+ struct debug_drvdata *drvdata; > >>>+ struct resource *res =

Re: [PATCH v2 3/3] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Andrey Smirnov
On Wed, Apr 19, 2017 at 1:47 AM, Marek Vasut wrote: > On 04/19/2017 04:58 AM, Andrey Smirnov wrote: >> On Tue, Apr 18, 2017 at 11:31 AM, Marek Vasut wrote: >>> On 04/18/2017 04:21 PM, Andrey Smirnov wrote: In anticipation of supporting chips

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-04-19 Thread Peter Zijlstra
On Tue, Mar 14, 2017 at 05:18:52PM +0900, Byungchul Park wrote: > +/* > + * Only access local task's data, so irq disable is only required. > + */ > +static int same_context_xhlock(struct hist_lock *xhlock) > +{ > + struct task_struct *curr = current; > + > + /* In the case of hardirq

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-04-19 Thread Guenter Roeck
On Wed, Apr 19, 2017 at 07:45:00AM -0700, Badhri Jagan Sridharan wrote: > On Wed, Apr 19, 2017 at 4:23 AM, Heikki Krogerus > wrote: > > Hi, > > > > On Tue, Apr 18, 2017 at 11:52:33AM -0700, Badhri Jagan Sridharan wrote: > >> Hi Heikki, > >> > >> I have a question

[PATCH 4.9 16/69] x86/efi: Dont try to reserve runtime regions

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Omar Sandoval commit 6f6266a561306e206e0e31a5038f029b6a7b1d89 upstream. Reserving a runtime region results in splitting the EFI memory descriptors for the runtime region. This

[PATCH 4.9 19/69] x86/vdso: Ensure vdso32_enabled gets set to valid values only

2017-04-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Krause commit c06989da39cdb10604d572c8c7ea8c8c97f3c483 upstream. vdso_enabled can be set to arbitrary integer values via the kernel command line 'vdso32='

[PATCH 4.10 53/69] Revert "MIPS: Lantiq: Fix cascaded IRQ setup"

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman This reverts commit b576c58331340c87bcf61f1205003a8fdffdff24 which is commit 6c356eda225e3ee134ed4176b9ae3a76f793f4dd upstream. It shouldn't

[PATCH 4.10 50/69] ftrace: Fix removing of second function probe

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 82cc4fc2e70ec5baeff8f776f2773abc8b2cc0ae upstream. When two function probes are added to set_ftrace_filter, and then one of them is

[PATCH 4.10 49/69] irqchip/irq-imx-gpcv2: Fix spinlock initialization

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Tyler Baker commit 75eb5e1e7b4edbc8e8f930de59004d21cb46961f upstream. The raw_spinlock in the IMX GPCV2 interupt chip is not initialized before usage. That results in

  1   2   3   4   5   6   7   8   9   10   >