[PATCH 4.10 58/69] crypto: ahash - Fix EINPROGRESS notification callback

2017-04-19 Thread Greg Kroah-Hartman
4.10-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 some corner cases (unaligned fi

[PATCH 4.10 61/69] [media] dvb-usb-v2: avoid use-after-free

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 005145378c9ad7575a01b6ce1ba118fb427f583a upstream. I ran into a stack frame size warning because of the on-stack copy of the USB device structure: drivers/media/usb/dvb-u

[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, which is wrong an

[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 32-bit kernel. Wh

[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 boots up. Fixes: 8453

[PATCH 4.10 55/69] ftrace: Fix function pid filter on instances

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Namhyung Kim commit d879d0b8c183aabeb9a65eba91f3f9e3c7e7b905 upstream. When function tracer has a pid filter, it adds a probe to sched_switch to track if current task can be ignored. The prob

[PATCH] Fix BSS corruption/overwrite issue in early x86 kernel startup

2017-04-19 Thread Ashish Kalra
From: Ashish Kalra The minimum size for a new stack (512 bytes) setup for arch/x86/boot components when the bootloader does not setup/provide a stack for the early boot components is not "enough". The setup code executing as part of early kernel startup code, uses the stack beyond 512 bytes and

[PATCH 4.10 45/69] libnvdimm: band aid btt vs clear poison locking

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 4aa5615e080a9855e607accc75b07ab79b252dde upstream. The following warning results from holding a lane spinlock, preempt_disable(), or the btt map spinlock and then trying to

[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 have been included in a stable r

[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 removed, the update to the fu

[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 a lockdep splat: INFO:

[PATCH 4.10 48/69] cpufreq: Bring CPUs up even if cpufreq_online() failed

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Chen Yu commit c4a3fa261b16858416f1fd7db03a33d7ef5fc0b3 upstream. There is a report that after commit 27622b061eb4 ("cpufreq: Convert to hotplug state machine"), the normal CPU offline/online

Re: [PATCH net-next v3] bindings: net: stmmac: add missing note about LPI interrupt

2017-04-19 Thread Joao Pinto
Hi Niklas, Às 1:39 PM de 4/18/2017, Niklas Cassel escreveu: > From: Niklas Cassel > > The hardware has a LPI interrupt. > There is already code in the stmmac driver to parse and handle the > interrupt. However, this information was missing from the DT binding. > > At the same time, improve the

[PATCH 4.10 46/69] can: ifi: use correct register to read rx status

2017-04-19 Thread Greg Kroah-Hartman
4.10-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 Signed-off-by: Marc K

[PATCH 4.10 44/69] libnvdimm: fix reconfig_mutex, mmap_sem, and jbd2_handle lockdep splat

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 0beb2012a1722633515c8aaa263c73449636c893 upstream. Holding the reconfig_mutex over a potential userspace fault sets up a lockdep dependency chain between filesystem-DAX and

[PATCH 4.10 08/69] zsmalloc: expand class bit

2017-04-19 Thread Greg Kroah-Hartman
4.10-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 the system when zsmall

[PATCH 4.10 47/69] pwm: rockchip: State of PWM clock should synchronize with PWM enabled state

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: David Wu commit a900152b5c29aea8134cc7a4c5db25552b3cd8f7 upstream. If the PWM was not enabled at U-Boot loader, PWM could not work for clock always disabled at PWM driver. The PWM clock is ena

[PATCH v3 5/6] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Andrey Smirnov
In anticipation of supporting chips that need it, extend the size of struct flash_info's 'jedec_id' field to make room 2 byte of extended device information as well as add code to fetch this data during jedec_probe(). Cc: cphe...@gmail.com Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon

[PATCH v3 4/6] mtd: dataflash: Get rid of loop counter in jedec_probe()

2017-04-19 Thread Andrey Smirnov
"For" loop in jedec_probe can be simplified to not need counter 'i'. Convert the code and get rid of the variable. Cc: cphe...@gmail.com Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-kernel@vger.kernel.org Signed

[PATCH v3 2/6] mtd: dataflash: Improve coding style in jedec_probe()

2017-04-19 Thread Andrey Smirnov
Change the following: - Replace indentation between type and name of local variable from tabs to spaces - Replace magic number 0x1F with CFI_MFR_ATMEL macro - Replace variable 'tmp' with 'ret' and 'i' where appropriate - Reformat multi-line comments and add newlines where appro

[PATCH v3 6/6] mtd: dataflash: Add flash_info for AT45DB641E

2017-04-19 Thread Andrey Smirnov
Cc: cphe...@gmail.com Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrey Smirnov --- No changes between v3 through v1. drivers/mtd/devices/mtd_dataflash.c | 3 +++ 1 fil

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

2017-04-19 Thread Andrey Smirnov
No functional change intended. Cc: cphe...@gmail.com Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Richard Weinberger Cc: Cyrille Pitchen Cc: linux-kernel@vger.kernel.org Acked-by: Marek Vasut Signed-off-by: Andrey Smirnov --- Changes since [v2]: - Re-worded commit

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 corresponding function "devm_kcalloc". * R

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. Signed-off-by: Markus Elfring

[PATCH 4.10 07/69] thp: fix MADV_DONTNEED vs clear soft dirty race

2017-04-19 Thread Greg Kroah-Hartman
4.10-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(). See "thp: fix MADV_DONTNEED vs. nu

[PATCH 4.10 06/69] thp: fix MADV_DONTNEED vs. MADV_FREE race

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 58ceeb6bec86d9140f9d91d71a710e963523d063 upstream. Both MADV_DONTNEED and MADV_FREE handled with down_read(mmap_sem). It's critical to not clear pmd intermittently w

[PATCH 4.10 05/69] tcmu: Skip Data-Out blocks before gathering Data-In buffer for BIDI case

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Xiubo Li commit a5d68ba85801a78c892a0eb8efb711e293ed314b upstream. For the bidirectional case, the Data-Out buffer blocks will always at the head of the tcmu_cmd's bitmap, and before gathering

[PATCH 4.10 04/69] tcmu: Fix wrongly calculating of the base_command_size

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Xiubo Li commit abe342a5b4b5aa579f6bf40ba73447c699e6b579 upstream. The t_data_nents and t_bidi_data_nents are the numbers of the segments, but it couldn't be sure the block size equals to size

[PATCH 4.10 31/69] efi/libstub: Skip GOP with PIXEL_BLT_ONLY format

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Cohen, Eugene commit 540f4c0e894f7e46a66dfa424b16424cbdc12c38 upstream. The UEFI Specification permits Graphics Output Protocol (GOP) instances without direct framebuffer access. This is indic

Re: [RFC 2/2] mux: mmio-based syscon mux controller

2017-04-19 Thread Philipp Zabel
On Wed, 2017-04-19 at 13:58 +0200, Peter Rosin wrote: > On 2017-04-19 13:50, Philipp Zabel wrote: > > On Thu, 2017-04-13 at 18:09 -0700, Steve Longerbeam wrote: > >> > >> On 04/13/2017 08:48 AM, Philipp Zabel wrote: > >>> This adds a driver for mmio-based syscon multiplexers controlled by a > >>> s

[PATCH 4.10 32/69] efi/fb: Avoid reconfiguration of BAR that covers the framebuffer

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ard Biesheuvel commit 55d728a40d368ba80443be85c02e641fc9082a3f upstream. On UEFI systems, the PCI subsystem is enumerated by the firmware, and if a graphical framebuffer is exposed via a PCI d

[PATCH 4.10 03/69] tcmu: Fix possible overwrite of t_data_sgs last iov[]

2017-04-19 Thread Greg Kroah-Hartman
4.10-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. To fix this, we can just increa

[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 cookie calculation" Ben no

[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 commit 786c1b51844d ("perf an

[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 enabled: arch_setup_ad

[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) attempted to fix a problem with A

[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 results in runti

[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() wasn't updated to initializ

[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 need to fix cases where 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 32-bit MPX "tabletest"

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 ("tpm_tis: Introduce intermediate laye

Re: [PATCH 06/38] Annotate hardware config module parameters in drivers/clocksource/

2017-04-19 Thread David Howells
Jens Rottmann wrote: > > When the kernel is running in secure boot mode [...] prevent > > access by means of configuring driver modules > > I may easily be wrong, but doesn't secure boot require EFI? For the patches I have, yes. It could feasibly be done by some other mechanism, though I don't

[PATCH 4.10 19/69] Input: xpad - add support for Razer Wildcat gamepad

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Cameron Gutman commit 5376366886251e2f8f248704adb620a4bc4c0937 upstream. Signed-off-by: Cameron Gutman Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/j

Re: [PATCH] tpm: Fix reference count to main device

2017-04-19 Thread Jarkko Sakkinen
On Mon, Apr 17, 2017 at 09:58:26PM -0400, Stefan Berger wrote: > The main device is currently not properly released due to one additional > reference to the 'devs' device which is only released in case of a TPM 2. > So, also get the additional reference only in case of a TPM2. > > Fixes: fdc915f7f

[PATCH 4.10 02/69] audit: make sure we dont let the retry queue grow without bounds

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Paul Moore commit 264d509637d95f9404e52ced5003ad352e0f6a26 upstream. The retry queue is intended to provide a temporary buffer in the case of transient errors when communicating with auditd, i

[PATCH 4.10 17/69] CIFS: reconnect thread reschedule itself

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Germano Percossi commit 18ea43113f5b74a97dd4be9bddbac10d68b1a6ce upstream. In case of error, smb2_reconnect_server reschedule itself with a delay, to avoid being too aggressive. Signed-off-by

Re: [PATCH v3 3/7] kprobes: validate the symbol name length

2017-04-19 Thread Masami Hiramatsu
On Wed, 19 Apr 2017 18:21:02 +0530 "Naveen N. Rao" wrote: > When a kprobe is being registered, we use the symbol_name field to > lookup the address where the probe should be placed. Since this is a > user-provided field, let's ensure that the length of the string is > within expected limits. Wou

[PATCH 4.10 13/69] drm/nouveau/kms/nv50: fix double dma_fence_put() when destroying plane state

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit 2907e8670b6ef253bffb33bf47fd2182969cf2a0 upstream. When the atomic support was added to nouveau, the DRM core did not do this. However, later in the same merge window, a com

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

2017-04-19 Thread Gerald Schaefer
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 equivalent to > dcssblk_direct_access(). Once fs/dax.c has been converted to use > dax_operations the old dcssblk_direct_acce

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

2017-04-19 Thread Marek Vasut
On 04/19/2017 05:07 PM, Andrey Smirnov wrote: > 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 chip

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

2017-04-19 Thread Leo Yan
On Wed, Apr 19, 2017 at 08:52:12AM -0600, Mathieu Poirier wrote: [...] > >> > +static bool debug_enable; > >> > +module_param_named(enable, debug_enable, bool, 0600); > >> > +MODULE_PARM_DESC(enable, "Knob to enable debug functionality " > >> > +"(default is 0, which means is disabled

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

2017-04-19 Thread Greg Kroah-Hartman
4.10-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. Once the new kth

[PATCH 4.10 12/69] drm/nouveau/kms/nv50: fix setting of HeadSetRasterVertBlankDmi method

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit d639fbcc102745187f747a21bdcffcf628e174c8 upstream. Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nv50_display.c |8 +---

RE: [PATCH v2 1/2] dt-binding: regulator: anatop: make regulator name property required

2017-04-19 Thread A.S. Dong
> -Original Message- > From: Dong Aisheng [mailto:aisheng.d...@nxp.com] > Sent: Friday, April 14, 2017 10:31 PM > To: linux-kernel@vger.kernel.org > Cc: A.S. Dong; Rob Herring; Mark Rutland; devicet...@vger.kernel.org > Subject: [PATCH v2 1/2] dt-binding: regulator: anatop: make regulator n

Re: [PATCH 06/38] Annotate hardware config module parameters in drivers/clocksource/

2017-04-19 Thread David Howells
Hi Thomas, Thomas Gleixner wrote: > > --- a/drivers/clocksource/cs5535-clockevt.c > > +++ b/drivers/clocksource/cs5535-clockevt.c > > @@ -22,7 +22,7 @@ > > #define DRV_NAME "cs5535-clockevt" > > > > static int timer_irq; > > -module_param_named(irq, timer_irq, int, 0644); > > +module_param_h

[PATCH 4.10 10/69] drm/nouveau/mpeg: mthd returns true on success now

2017-04-19 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Ilia Mirkin commit 83bce9c2baa51e439480a713119a73d3c8b61083 upstream. Signed-off-by: Ilia Mirkin Fixes: 590801c1a3 ("drm/nouveau/mpeg: remove dependence on namedb/engctx lookup") Signed-off-

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 th

Re: [PATCH 2/4] ARM: sunxi: Drop mmc0_cd_pin_reference_design pinmux setting

2017-04-19 Thread icenowy
在 2017-04-19 13:09,Chen-Yu Tsai 写道: As part of our effort to move pinctrl/GPIO interlocking into the driver where it belongs, this patch drops the definition and usage of the mmc0_cd_pin_reference_design pinmux setting for the default mmc0 card detect GPIO pin. Signed-off-by: Chen-Yu Tsai ---

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 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 thing Maz complained about is because KVM assumes > > > synchronize_srcu() is '

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

2017-04-19 Thread Greg KH
On Wed, Apr 19, 2017 at 06:29:08PM +0300, Jarkko Sakkinen wrote: > 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"

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 %cr3

Re: [PATCH] nvmet: convert from kmap to nvmet_copy_from_sgl

2017-04-19 Thread Logan Gunthorpe
Thanks Max! On 19/04/17 03:44 AM, Max Gurtovoy wrote: > Looks good, > > Reviewed-by: Max Gurtovoy

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

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 08:08:09AM -0700, Paul E. McKenney wrote: > And even that would not be completely sufficient. After all, the state > in the leaf rcu_node structure will be out of date during grace-period > initialization and cleanup. So to -completely- synchronize state for > the incoming

Re: [PATCH v3 4/6] mtd: dataflash: Get rid of loop counter in jedec_probe()

2017-04-19 Thread Marek Vasut
On 04/19/2017 05:23 PM, Andrey Smirnov wrote: > "For" loop in jedec_probe can be simplified to not need counter > 'i'. Convert the code and get rid of the variable. > > Cc: cphe...@gmail.com > Cc: David Woodhouse > Cc: Brian Norris > Cc: Boris Brezillon > Cc: Marek Vasut > Cc: Richard Weinberg

Re: [PATCH v3 5/6] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Marek Vasut
On 04/19/2017 05:23 PM, Andrey Smirnov wrote: > In anticipation of supporting chips that need it, extend the size of > struct flash_info's 'jedec_id' field to make room 2 byte of extended > device information as well as add code to fetch this data during > jedec_probe(). > > Cc: cphe...@gmail.com

Re: bfq-mq performance comparison to cfq

2017-04-19 Thread Bart Van Assche
On Wed, 2017-04-19 at 09:02 +0200, Paolo Valente wrote: > > Il giorno 19 apr 2017, alle ore 07:01, Bart Van Assche > > ha scritto: > > What API was used by the Android application to tell the I/O scheduler > > to optimize for latency? Do you think that it would be sufficient if the > > applicat

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 thi

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 equivalent to >> dcssblk_direct_access(). Once fs/dax.c has b

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--, gtdt_frame-

Re: [linux-sunxi] Re: [PATCH 2/4] ARM: sunxi: Drop mmc0_cd_pin_reference_design pinmux setting

2017-04-19 Thread Chen-Yu Tsai
On Wed, Apr 19, 2017 at 11:36 PM, wrote: > 在 2017-04-19 13:09,Chen-Yu Tsai 写道: >> >> As part of our effort to move pinctrl/GPIO interlocking into the >> driver where it belongs, this patch drops the definition and usage >> of the mmc0_cd_pin_reference_design pinmux setting for the default >> mmc0

Re: [PATCH -mm -v9 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-04-19 Thread Johannes Weiner
On Wed, Apr 19, 2017 at 03:06:23PM +0800, Huang, Ying wrote: > @@ -206,17 +212,34 @@ int add_to_swap(struct page *page, struct list_head > *list) >*/ > err = add_to_swap_cache(page, entry, > __GFP_HIGH|__GFP_NOMEMALLOC|__GFP_NOWARN); > - > - if (!err) { > -

Re: [PATCH 4/5] Hot-remove implementation for arm64

2017-04-19 Thread Laura Abbott
On 04/18/2017 11:48 AM, Ard Biesheuvel wrote: On 18 April 2017 at 19:21, Mark Rutland wrote: On Fri, Apr 14, 2017 at 03:01:58PM +0100, Andrea Reale wrote: I guess it is likely that I might have made assumptions that are true for x86_64 but do not hold for arm64. Whenever you feel this is the c

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

2017-04-19 Thread Lorenzo Pieralisi
On Wed, Apr 19, 2017 at 04:45:54PM +0100, Mark Rutland wrote: > 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 i

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-19 Thread Jason Gunthorpe
On Wed, Apr 19, 2017 at 11:20:06AM +1000, Benjamin Herrenschmidt wrote: > That helper wouldn't perform the actual iommu mapping. It would simply > return something along the lines of: > > - "use that alternate bus address and don't map in the iommu" I was thinking only this one would be support

Re: [PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-19 Thread Stephen Boyd
On 04/16, Daniel Lezcano wrote: > On Wed, Apr 12, 2017 at 08:02:45AM -0700, Stephen Boyd wrote: > > On 04/08, Daniel Lezcano wrote: > > > > + struct hi655x_clk *hi655x_clk; > > > + const char *clk_name = "hi655x-clk"; > > > + int ret; > > > + > > > + hi655x_clk = devm_kzalloc(&pdev->dev, sizeof(*

Re: [PATCH -mm -v9 3/3] mm, THP, swap: Enable THP swap optimization only if has compound map

2017-04-19 Thread Johannes Weiner
On Wed, Apr 19, 2017 at 03:06:25PM +0800, Huang, Ying wrote: > From: Huang Ying > > If there is no compound map for a THP (Transparent Huge Page), it is > possible that the map count of some sub-pages of the THP is 0. So it > is better to split the THP before swapping out. In this way, the > sub

Re: [PATCH v3 5/6] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Andrey Smirnov
On Wed, Apr 19, 2017 at 8:42 AM, Marek Vasut wrote: > On 04/19/2017 05:23 PM, Andrey Smirnov wrote: >> In anticipation of supporting chips that need it, extend the size of >> struct flash_info's 'jedec_id' field to make room 2 byte of extended >> device information as well as add code to fetch thi

Re: [PATCH v3] xen,input: add xen-kbdfront module parameter for setting resolution

2017-04-19 Thread Dmitry Torokhov
On Tue, Apr 11, 2017 at 02:30:37PM +0200, Juergen Gross wrote: > Add a parameter for setting the resolution of xen-kbdfront in order to > be able to cope with a (virtual) frame buffer of arbitrary resolution. > > While at it remove the pointless second reading of parameters from > Xenstore in the

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

2017-04-19 Thread Andrey Smirnov
[ +cc: Marek, since I accidentally dropped him off CC list ] On Wed, Apr 19, 2017 at 8:35 AM, David Woodhouse wrote: > 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

[PATCH 3/3] KEYS: fix keyctl_set_reqkey_keyring() to not leak thread keyrings

2017-04-19 Thread David Howells
From: Eric Biggers This fixes CVE-2017-7472. Running the following program as an unprivileged user exhausts kernel memory by leaking thread keyrings: #include int main() { for (;;) keyctl_set_reqkey_keyring(KEY_REQKEY_DEFL_THREA

[PATCH 2/3] KEYS: Change the name of the dead type to ".dead" to prevent user access

2017-04-19 Thread David Howells
This fixes CVE-2017-6951. Userspace should not be able to do things with the "dead" key type as it doesn't have some of the helper functions set upon it that the kernel needs. Attempting to use it may cause the kernel to crash. Fix this by changing the name of the type to ".dead" so that it's re

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-19 Thread David Ahern
On 4/18/17 2:43 PM, Andrey Konovalov wrote: > Hi! > > I've finally managed to reproduce one of the crashes on commit > 4f7d029b9bf009fbee76bb10c0c4351a1870d2f3 (4.11-rc7). > > I'm not sure if this bug has the same root cause as the first one > reported in this thread, but it definitely has to do

[PATCH 1/3] KEYS: Disallow keyrings beginning with '.' to be joined as session keyrings

2017-04-19 Thread David Howells
This fixes CVE-2016-9604. Keyrings whose name begin with a '.' are special internal keyrings and so userspace isn't allowed to create keyrings by this name to prevent shadowing. However, the patch that added the guard didn't fix KEYCTL_JOIN_SESSION_KEYRING. Not only can that create dot-named key

[PATCH 0/3] KEYS: Fixes

2017-04-19 Thread David Howells
) to not leak thread keyrings [CVE-2017-7472]. The patches can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-fixes Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git keys-fixes-20170

Re: [PATCH v3 5/6] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Marek Vasut
On 04/19/2017 06:01 PM, Andrey Smirnov wrote: > On Wed, Apr 19, 2017 at 8:42 AM, Marek Vasut wrote: >> On 04/19/2017 05:23 PM, Andrey Smirnov wrote: >>> In anticipation of supporting chips that need it, extend the size of >>> struct flash_info's 'jedec_id' field to make room 2 byte of extended >>>

Re: [PATCH 0/3] KEYS: Fixes

2017-04-19 Thread David Howells
Let me try this again, this time with the correct email addresses... David

[PATCH 0/3] KEYS: Fixes

2017-04-19 Thread David Howells
) to not leak thread keyrings [CVE-2017-7472]. The patches can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-fixes Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git keys-fixes-20170

Re: [PATCH] ASoC: dwc: disallow building designware_pcm as a module

2017-04-19 Thread Jose Abreu
Hi Lubomir, On 18-04-2017 18:15, Mark Brown wrote: > On Tue, Apr 18, 2017 at 06:13:30PM +0200, Lubomir Rintel wrote: > >> I don't think designware_pcm is a separate driver. It looks tightly >> coupled with designware_i2s: you can either disable designware_pcm >> altogether at build time or always

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-19 Thread Andrey Konovalov
On Wed, Apr 19, 2017 at 6:09 PM, David Ahern wrote: > On 4/18/17 2:43 PM, Andrey Konovalov wrote: >> Hi! >> >> I've finally managed to reproduce one of the crashes on commit >> 4f7d029b9bf009fbee76bb10c0c4351a1870d2f3 (4.11-rc7). >> >> I'm not sure if this bug has the same root cause as the first

[PATCH 1/3] KEYS: Disallow keyrings beginning with '.' to be joined as session keyrings

2017-04-19 Thread David Howells
This fixes CVE-2016-9604. Keyrings whose name begin with a '.' are special internal keyrings and so userspace isn't allowed to create keyrings by this name to prevent shadowing. However, the patch that added the guard didn't fix KEYCTL_JOIN_SESSION_KEYRING. Not only can that create dot-named key

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 05:43:43PM +0200, Peter Zijlstra wrote: > 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, 201

[PATCH 2/3] KEYS: Change the name of the dead type to ".dead" to prevent user access

2017-04-19 Thread David Howells
This fixes CVE-2017-6951. Userspace should not be able to do things with the "dead" key type as it doesn't have some of the helper functions set upon it that the kernel needs. Attempting to use it may cause the kernel to crash. Fix this by changing the name of the type to ".dead" so that it's re

Re: [PATCH -mm -v9 2/3] mm, THP, swap: Check whether THP can be split firstly

2017-04-19 Thread Johannes Weiner
On Wed, Apr 19, 2017 at 03:06:24PM +0800, Huang, Ying wrote: > From: Huang Ying > > To swap out THP (Transparent Huage Page), before splitting the THP, > the swap cluster will be allocated and the THP will be added into the > swap cache. But it is possible that the THP cannot be split, so that >

[PATCH 3/3] KEYS: fix keyctl_set_reqkey_keyring() to not leak thread keyrings

2017-04-19 Thread David Howells
From: Eric Biggers This fixes CVE-2017-7472. Running the following program as an unprivileged user exhausts kernel memory by leaking thread keyrings: #include int main() { for (;;) keyctl_set_reqkey_keyring(KEY_REQKEY_DEFL_THREA

Re: [PATCH v3 5/6] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Marek Vasut
On 04/19/2017 06:08 PM, Marek Vasut wrote: > On 04/19/2017 06:01 PM, Andrey Smirnov wrote: >> On Wed, Apr 19, 2017 at 8:42 AM, Marek Vasut wrote: >>> On 04/19/2017 05:23 PM, Andrey Smirnov wrote: In anticipation of supporting chips that need it, extend the size of struct flash_info's 'je

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 05:40:40PM +0200, Peter Zijlstra wrote: > On Wed, Apr 19, 2017 at 08:08:09AM -0700, Paul E. McKenney wrote: > > And even that would not be completely sufficient. After all, the state > > in the leaf rcu_node structure will be out of date during grace-period > > initializati

Re: [PATCH] ASoC: dwc: disallow building designware_pcm as a module

2017-04-19 Thread Lubomir Rintel
On Wed, 2017-04-19 at 17:12 +0100, Jose Abreu wrote: > Hi Lubomir, > > > On 18-04-2017 18:15, Mark Brown wrote: > > On Tue, Apr 18, 2017 at 06:13:30PM +0200, Lubomir Rintel wrote: > > > > > I don't think designware_pcm is a separate driver. It looks > > > tightly > > > coupled with designware_i2

Re: [PATCH v2 1/2] clk: imx7d: fix USDHC NAND clock

2017-04-19 Thread Stephen Boyd
On 04/10, Stefan Agner wrote: > The USDHC NAND root clock is not gated by any CCM clock gate. Remove > the bogus gate definition. > > Signed-off-by: Stefan Agner > --- Can this be applied? It's followed by a dtsi change and there is zero information about if the two depend on each other. Please

[PATCH 02/28] perf tools: Remove FLEX_ARRAY definition

2017-04-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We rely on symbol->name[0] since the beginning of tools/perf/, never having received any complaint about it, also all the containers build perf just fine, so remove this git codebase remnant. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc:

[PATCH 05/28] tools include: Move ARRAY_SIZE() to linux/kernel.h

2017-04-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To match the kernel, then look for places redefining it to make it use this version, which checks that its parameter is an array at build time. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-txl

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