Re: [PATCH] mm, numa: Fix bad pmd by atomically check for pmd_trans_huge when marking page tables prot_numa

2017-04-10 Thread Mel Gorman
On Mon, Apr 10, 2017 at 12:49:40PM -0500, Zi Yan wrote: > On 10 Apr 2017, at 12:20, Mel Gorman wrote: > > > On Mon, Apr 10, 2017 at 11:45:08AM -0500, Zi Yan wrote: > >>> While this could be fixed with heavy locking, it's only necessary to > >>> make a copy of the PMD on the stack during change_pmd

Re: [PATCH v4 1/9] pinctrl: generic: Add bi-directional and output-enable

2017-04-10 Thread Rob Herring
On Wed, Apr 05, 2017 at 04:07:19PM +0200, Jacopo Mondi wrote: > Add bi-directional and output-enable pin configuration properties. > > bi-directional allows to specify when a pin shall operate in input and > output mode at the same time. This is particularly useful in platforms > where input and o

Re: [PATCH 13/16] ASoC: madera: Add common support for Cirrus Logic Madera codecs

2017-04-10 Thread Rob Herring
On Wed, Apr 05, 2017 at 11:08:01AM +0100, Richard Fitzgerald wrote: > The Cirrus Logic Madera codecs are a family of related codecs with > extensive digital and analogue I/O, digital mixing and routing, > signal processing and programmable DSPs. > > This patch adds common support code shared by al

Re: [PATCH] tick/nohz: Fix wrong user and system time accouting against vtime sampling

2017-04-10 Thread Frederic Weisbecker
On Mon, Apr 10, 2017 at 05:45:56PM +0200, Thomas Gleixner wrote: > On Wed, 5 Apr 2017, Wanpeng Li wrote: > > + /* > > +* Offset the tick to avert jiffies_lock contention, and all ticks > > +* alignment in order that the vtime sampling does not end up "in > > +* phase" with the jiffies

Re: [PATCH v9 3/3] printk: fix double printing with earlycon

2017-04-10 Thread Aleksey Makarov
On 04/10/2017 05:22 PM, Petr Mladek wrote: On Wed 2017-04-05 23:20:00, Aleksey Makarov wrote: If a console was specified by ACPI SPCR table _and_ command line parameters like "console=ttyAMA0" _and_ "earlycon" were specified, then log messages appear twice. The root cause is that the code tra

[PATCH 4.4 01/32] drm/vmwgfx: Type-check lookups of fence objects

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit f7652afa8eadb416b23eb57dec6f158529942041 upstream. A malicious caller could otherwise hand over handles to other objects causing all sorts of interesting problems. Test

[PATCH 4.4 02/32] drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Murray McAllister commit 36274ab8c596f1240c606bb514da329add2a1bcd upstream. Before memory allocations vmw_surface_define_ioctl() checks the upper-bounds of a user-supplied size, but does not ch

[PATCH 4.4 06/32] drm/vmwgfx: fix integer overflow in vmw_surface_define_ioctl()

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Li Qiang commit e7e11f99564222d82f0ce84bd521e57d78a6b678 upstream. In vmw_surface_define_ioctl(), the 'num_sizes' is the sum of the 'req->mip_levels' array. This array can be assigned any value

[tip:x86/urgent] x86/vdso: Plug race between mapping and ELF header setup

2017-04-10 Thread tip-bot for Thomas Gleixner
Commit-ID: 6fdc6dd90272ce7e75d744f71535cfbd8d77da81 Gitweb: http://git.kernel.org/tip/6fdc6dd90272ce7e75d744f71535cfbd8d77da81 Author: Thomas Gleixner AuthorDate: Mon, 10 Apr 2017 17:14:28 +0200 Committer: Thomas Gleixner CommitDate: Mon, 10 Apr 2017 18:31:41 +0200 x86/vdso: Plug race

[PATCH 4.4 07/32] sysfs: be careful of error returns from ops->show()

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit c8a139d001a1aab1ea8734db14b22dac9dd143b6 upstream. ops->show() can return a negative error code. Commit 65da3484d9be ("sysfs: correctly handle short reads on PREALLOC attrs.")

[PATCH 4.4 21/32] metag/usercopy: Add missing fixups

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit b884a190afcecdbef34ca508ea5ee88bb7c77861 upstream. The rapf copy loops in the Meta usercopy code is missing some extable entries for HTP cores with unaligned access checking

[PATCH 4.4 19/32] metag/usercopy: Set flags before ADDZ

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit fd40eee1290ad7add7aa665e3ce6b0f9fe9734b4 upstream. The fixup code for the copy_to_user rapf loops reads TXStatus.LSM_STEP to decide how far to rewind the source pointer. Ther

Re: [PATCH] ipmi_si: use smi_num for init_name

2017-04-10 Thread Tony Camuso
On 04/10/2017 01:43 PM, miny...@acm.org wrote: From: Tony Camuso Commit 1abf71e moved the creation of new_smi->dev to earlier in the init sequence in order to provide infrastructure for log printing. However, the init_name was created with a hard-coded value of zero. This presents a problem in

[PATCH 4.4 10/32] arm/arm64: KVM: Take mmap_sem in kvm_arch_prepare_memory_region

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 72f310481a08db821b614e7b5d00febcc9064b36 upstream. We don't hold the mmap_sem while searching for VMAs (via find_vma), in kvm_arch_prepare_memory_region, which can end up in

[PATCH 4.4 18/32] metag/usercopy: Zero rest of buffer from copy_from_user

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 563ddc1076109f2b3f88e6d355eab7b6fd4662cb upstream. Currently we try to zero the destination for a failed read from userland in fixup code in the usercopy.c macros. The rest o

Re: [PATCH 09/16] pinctrl: madera: Add driver for Cirrus Logic Madera codecs

2017-04-10 Thread Rob Herring
On Wed, Apr 05, 2017 at 11:07:57AM +0100, Richard Fitzgerald wrote: > These codecs have a variable number of I/O lines each of which > is individually selectable to a wide range of possible functions. > > The functionality is slightly different from the traditional muxed > GPIO since most of the f

[PATCH 4.4 20/32] metag/usercopy: Fix src fixup in from user rapf loops

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2c0b1df88b987a12d95ea1d6beaf01894f3cc725 upstream. The fixup code to rewind the source pointer in __asm_copy_from_user_{32,64}bit_rapf_loop() always rewound the source by a s

[PATCH 4.4 13/32] ptrace: fix PTRACE_LISTEN race corrupting task->state

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: bseg...@google.com commit 5402e97af667e35e54177af8f6575518bf251d51 upstream. In PT_SEIZED + LISTEN mode STOP/CONT signals cause a wakeup against __TASK_TRACED. If this races with the ptrace_un

[PATCH 4.4 11/32] iio: bmg160: reset chip when probing

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Quentin Schulz commit 4bdc9029685ac03be50b320b29691766d2326c2b upstream. The gyroscope chip might need to be reset to be used. Without the chip being reset, the driver stopped at the first reg

[PATCH 4.4 12/32] Reset TreeId to zero on SMB2 TREE_CONNECT

2017-04-10 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jan-Marek Glogowski commit 806a28efe9b78ffae5e2757e1ee924b8e50c08ab upstream. Currently the cifs module breaks the CIFS specs on reconnect as described in http://msdn.microsoft.com/en-us/librar

[PATCH 4.9 012/152] arm/arm64: KVM: Take mmap_sem in kvm_arch_prepare_memory_region

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 72f310481a08db821b614e7b5d00febcc9064b36 upstream. We don't hold the mmap_sem while searching for VMAs (via find_vma), in kvm_arch_prepare_memory_region, which can end up in

[PATCH 4.9 011/152] arm/arm64: KVM: Take mmap_sem in stage2_unmap_vm

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 90f6e150e44a0dc3883110eeb3ab35d1be42b6bb upstream. We don't hold the mmap_sem while searching for the VMAs when we try to unmap each memslot for a VM. Fix this properly to a

[PATCH 4.9 001/152] ppdev: check before attaching port

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sudip Mukherjee commit dd5c472a60e43549d789a17a8444513eec64bd7e upstream. After parport starts using the device model, all pardevice drivers should decide in their match_port callback function

[PATCH 4.9 014/152] iio: bmg160: reset chip when probing

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Quentin Schulz commit 4bdc9029685ac03be50b320b29691766d2326c2b upstream. The gyroscope chip might need to be reset to be used. Without the chip being reset, the driver stopped at the first reg

[PATCH 4.9 010/152] staging: android: ashmem: lseek failed due to no FMODE_LSEEK.

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Shuxiao Zhang commit 97fbfef6bd597888485b653175fb846c6998b60c upstream. vfs_llseek will check whether the file mode has FMODE_LSEEK, no return failure. But ashmem can be lseek, so add FMODE_LSE

[PATCH 4.9 013/152] kvm: arm/arm64: Fix locking for kvm_free_stage2_pgd

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Suzuki K Poulose commit 8b3405e345b5a098101b0c31b264c812bba045d9 upstream. In kvm_free_stage2_pgd() we don't hold the kvm->mmu_lock while calling unmap_stage2_range() on the entire memory range

[PATCH 4.9 015/152] arm64: mm: unaligned access by user-land should be received as SIGBUS

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Victor Kamensky commit 09a6adf53d42ca3088fa3fb41f40b768efc711ed upstream. After 52d7523 (arm64: mm: allow the kernel to handle alignment faults on user accesses) commit user-land accesses that

[PATCH 4.9 016/152] cfg80211: check rdev resume callback only for registered wiphy

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arend Van Spriel commit b3ef5520c1eabb56064474043c7c55a1a65b8708 upstream. We got the following use-after-free KASAN report: BUG: KASAN: use-after-free in wiphy_resume+0x591/0x5a0 [cfg80211]

Re: WARN @lib/refcount.c:128 during hot unplug of I/O adapter.

2017-04-10 Thread Tyrel Datwyler
On 04/06/2017 09:04 PM, Michael Ellerman wrote: > Tyrel Datwyler writes: > >> On 04/06/2017 03:27 AM, Sachin Sant wrote: >>> On a POWER8 LPAR running 4.11.0-rc5, a hot unplug operation on >>> any I/O adapter results in the following warning >>> >>> This problem has been in the code for some time

Re: [PATCH 08/16] irqchip: Add driver for Cirrus Logic Madera codecs

2017-04-10 Thread Rob Herring
On Wed, Apr 05, 2017 at 11:07:56AM +0100, Richard Fitzgerald wrote: > The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) > are highly complex devices containing up to 7 programmable DSPs and many > other internal sources of interrupts plus a number of GPIOs that can be > used

Re: [PATCH -v2 0/9] mm: make movable onlining suck less

2017-04-10 Thread Michal Hocko
On Mon 10-04-17 12:35:53, Jerome Glisse wrote: > On Mon, Apr 10, 2017 at 01:03:42PM +0200, Michal Hocko wrote: > > Hi, > > The last version of this series has been posted here [1]. It has seen > > some more serious testing (thanks to Reza Arbab) and fixes for the found > > issues. I have also decid

[PATCH 4.9 017/152] Reset TreeId to zero on SMB2 TREE_CONNECT

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jan-Marek Glogowski commit 806a28efe9b78ffae5e2757e1ee924b8e50c08ab upstream. Currently the cifs module breaks the CIFS specs on reconnect as described in http://msdn.microsoft.com/en-us/librar

[PATCH 4.9 020/152] dm verity fec: limit error correction recursion

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sami Tolvanen commit f1a880a93baaadb14c10a348fd199f1cdb6bcccd upstream. If the hash tree itself is sufficiently corrupt in addition to data blocks, it's possible for error correction to end up

[PATCH 4.9 019/152] ptrace: fix PTRACE_LISTEN race corrupting task->state

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: bseg...@google.com commit 5402e97af667e35e54177af8f6575518bf251d51 upstream. In PT_SEIZED + LISTEN mode STOP/CONT signals cause a wakeup against __TASK_TRACED. If this races with the ptrace_un

[PATCH 4.9 004/152] drm/vmwgfx: NULL pointer dereference in vmw_surface_define_ioctl()

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Murray McAllister commit 36274ab8c596f1240c606bb514da329add2a1bcd upstream. Before memory allocations vmw_surface_define_ioctl() checks the upper-bounds of a user-supplied size, but does not ch

[PATCH v7 2/4] x86/syscalls: Architecture specific pre-usermode check

2017-04-10 Thread Thomas Garnier
Garnier --- Based on next-20170410 --- arch/x86/Kconfig| 1 + arch/x86/entry/common.c | 3 +++ arch/x86/entry/entry_64.S | 8 arch/x86/include/asm/pgtable_64_types.h | 11 +++ arch/x86/include/asm/processor.h| 11

[PATCH 4.9 005/152] drm/vmwgfx: avoid calling vzalloc with a 0 size in vmw_get_cap_3d_ioctl()

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Murray McAllister commit 63774069d9527a1aeaa4aa20e929ef5e8e9ecc38 upstream. In vmw_get_cap_3d_ioctl(), a user can supply 0 for a size that is used in vzalloc(). This eventually calls dump_stack

[PATCH v7 3/4] arm/syscalls: Architecture specific pre-usermode check

2017-04-10 Thread Thomas Garnier
address limit was changed, a generic handler is called to stop the kernel on an explicit check. Signed-off-by: Thomas Garnier --- Based on next-20170410 --- arch/arm/Kconfig | 1 + arch/arm/kernel/entry-common.S | 10 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff

[PATCH v7 1/4] syscalls: Restore address limit after a syscall

2017-04-10 Thread Thomas Garnier
CONFIG_ARCH_NO_SYSCALL_VERIFY_PRE_USERMODE_STATE option is also added so each architecture can optimize this change. Signed-off-by: Thomas Garnier Tested-by: Kees Cook --- Based on next-20170410 --- arch/s390/Kconfig| 1 + include/linux/syscalls.h | 26 +- init/Kconfig

[PATCH 4.9 007/152] drm/vmwgfx: Remove getparam error message

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit 53e16798b0864464c5444a204e1bb93ae246c429 upstream. The mesa winsys sometimes uses unimplemented parameter requests to check for features. Remove the error message to avo

[PATCH 4.9 021/152] dm verity fec: fix bufio leaks

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sami Tolvanen commit 86e3e83b443669dd2bcc5c8a83b23e3aa0694c0d upstream. Buffers read through dm_bufio_read() were not released in all code paths. Fixes: a739ff3f543a ("dm verity: add support f

Re: [PATCH v2 5/5] iio: dac: stm32: add support for waveform generator

2017-04-10 Thread Fabrice Gasnier
On 04/09/2017 11:34 AM, Jonathan Cameron wrote: > On 06/04/17 17:11, Fabrice Gasnier wrote: >> STM32 DAC has built-in noise or triangle waveform generator. >> - "wavetype" extended attribute selects noise or triangle. >> - "amplitude" extended attribute selects amplitude for waveform generator >> >

[PATCH 4.9 009/152] sysfs: be careful of error returns from ops->show()

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit c8a139d001a1aab1ea8734db14b22dac9dd143b6 upstream. ops->show() can return a negative error code. Commit 65da3484d9be ("sysfs: correctly handle short reads on PREALLOC attrs.")

Re: [PATCH] mm, numa: Fix bad pmd by atomically check for pmd_trans_huge when marking page tables prot_numa

2017-04-10 Thread Zi Yan
On 10 Apr 2017, at 12:20, Mel Gorman wrote: > On Mon, Apr 10, 2017 at 11:45:08AM -0500, Zi Yan wrote: >>> While this could be fixed with heavy locking, it's only necessary to >>> make a copy of the PMD on the stack during change_pmd_range and avoid >>> races. A new helper is created for this as th

[PATCH 4.9 032/152] metag/usercopy: Zero rest of buffer from copy_from_user

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 563ddc1076109f2b3f88e6d355eab7b6fd4662cb upstream. Currently we try to zero the destination for a failed read from userland in fixup code in the usercopy.c macros. The rest o

Re: [PATCH 06/16] regulator: madera-ldo1: LDO1 driver for Cirrus Logic Madera codecs

2017-04-10 Thread Rob Herring
On Wed, Apr 05, 2017 at 11:07:54AM +0100, Richard Fitzgerald wrote: > This patch adds a driver for the internal LDO1 regulator on > some Cirrus Logic Madera class codecs. > > Signed-off-by: Richard Fitzgerald > Signed-off-by: Charles Keepax > --- > .../devicetree/bindings/regulator/madera-ldo1.

[PATCH 4.9 008/152] drm/vmwgfx: fix integer overflow in vmw_surface_define_ioctl()

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Li Qiang commit e7e11f99564222d82f0ce84bd521e57d78a6b678 upstream. In vmw_surface_define_ioctl(), the 'num_sizes' is the sum of the 'req->mip_levels' array. This array can be assigned any value

Re: [PATCH] ipmi_si: use smi_num for init_name

2017-04-10 Thread Tony Camuso
On 04/10/2017 01:43 PM, miny...@acm.org wrote: From: Tony Camuso Commit 1abf71e moved the creation of new_smi->dev to earlier in the init sequence in order to provide infrastructure for log printing. However, the init_name was created with a hard-coded value of zero. This presents a problem in

[PATCH 4.9 036/152] powerpc: Disable HFSCR[TM] if TM is not supported

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 7ed23e1bae8bf7e37fd555066550a00b95a3a98b upstream. On Power8 & Power9 the early CPU inititialisation in __init_HFSCR() turns on HFSCR[TM] (Hypervisor Facility Stat

[PATCH 4.9 034/152] metag/usercopy: Fix src fixup in from user rapf loops

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2c0b1df88b987a12d95ea1d6beaf01894f3cc725 upstream. The fixup code to rewind the source pointer in __asm_copy_from_user_{32,64}bit_rapf_loop() always rewound the source by a s

Re: [PATCH v3] lightnvm: physical block device (pblk) target

2017-04-10 Thread Matias Bjørling
On 04/10/2017 05:55 PM, Bart Van Assche wrote: On Sun, 2017-04-09 at 11:15 +0200, Javier González wrote: On 8 Apr 2017, at 22.56, Bart Van Assche wrote: On 04/07/17 11:50, Javier González wrote: struct ppa_addr, which is the physical address format is not affected, but pblk's internal L2P add

[PATCH] PCI: Improve __pci_read_base robustness

2017-04-10 Thread Marc Gonzalez
Local variables 'l' and 'sz' are uninitialized. Normally, they would be initialized by pci_read_config_dword() but when an error occurs, some drivers immediately return an error code, which leaves the argument uninitialized. Provide a safe initial value to make the code more robust. Signed-off-by

[PATCH 4.9 038/152] powerpc/64: Fix flush_(d|i)cache_range() called from modules

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Oliver O'Halloran commit 8f5f525d5b83f7d76a6baf9c4e94d4bf312ea7f6 upstream. When the kernel is compiled to use 64bit ABIv2 the _GLOBAL() macro does not include a global entry point. A function'

Re: net/ipv4: use-after-free in ip_queue_xmit

2017-04-10 Thread Andrey Konovalov
On Mon, Apr 10, 2017 at 7:42 PM, Cong Wang wrote: > On Mon, Apr 10, 2017 at 7:40 AM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit 39da7c509acff13fc8cb12ec1bb20337c988ed36 (4.11-rc6). >> >> Unfortunately it's n

[PATCH] checkpatch: Avoid suggesting struct definitions should be const

2017-04-10 Thread Joe Perches
Many structs are generally used const and there is a known list of these structs. struct definitions should not be generally be declared const. Add a test for the lack of an open brace immediately after the struct to avoid definitions. This avoids the false positive "struct foo should normally b

[PATCH 4.9 039/152] powerpc: Dont try to fix up misaligned load-with-reservation instructions

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras commit 48fe9e9488743eec9b7c1addd3c93f12f2123d54 upstream. In the past, there was only one load-with-reservation instruction, lwarx, and if a program attempted a lwarx on a misali

[PATCH 4.9 042/152] nios2: reserve boot memory for device tree

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tobias Klauser commit 921d701e6f31e1ffaca3560416af1aa04edb4c4f upstream. Make sure to reserve the boot memory for the flattened device tree. Otherwise it might get overwritten, e.g. when initia

Re: [PATCH] mm, numa: Fix bad pmd by atomically check for pmd_trans_huge when marking page tables prot_numa

2017-04-10 Thread Zi Yan
On 10 Apr 2017, at 4:48, Mel Gorman wrote: > A user reported a bug against a distribution kernel while running > a proprietary workload described as "memory intensive that is not > swapping" that is expected to apply to mainline kernels. The workload > is read/write/modifying ranges of memory and

[PATCH 4.9 044/152] s390/decompressor: fix initrd corruption caused by bss clear

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Henrique Cerri commit d82c0d12c92705ef468683c9b7a8298dd61ed191 upstream. Reorder the operations in decompress_kernel() to ensure initrd is moved to a safe location before the bss sectio

[PATCH 4.9 043/152] xtensa: make __pa work with uncached KSEG addresses

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit 2b83878dd74a7c73bedcb6600663c1c46836e8af upstream. When __pa is applied to virtual address in uncached KSEG region the result is incorrect. Fix it by checking if the origina

[PATCH 4.9 046/152] MIPS: Force o32 fp64 support on 32bit MIPS64r6 kernels

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2e6c7747730296a6d4fd700894286db1132598c4 upstream. When a 32-bit kernel is configured to support MIPS64r6 (CPU_MIPS64_R6), MIPS_O32_FP64_SUPPORT won't be selected as it shoul

[PATCH] ipmi_si: use smi_num for init_name

2017-04-10 Thread minyard
From: Tony Camuso Commit 1abf71e moved the creation of new_smi->dev to earlier in the init sequence in order to provide infrastructure for log printing. However, the init_name was created with a hard-coded value of zero. This presents a problem in systems with more than one interface, producing

Re: net/ipv4: use-after-free in ip_queue_xmit

2017-04-10 Thread Cong Wang
On Mon, Apr 10, 2017 at 7:40 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 39da7c509acff13fc8cb12ec1bb20337c988ed36 (4.11-rc6). > > Unfortunately it's not reproducible. > > BUG: KASAN: use-after-free in ip_select_tt

Re: [PATCH 4.9 112/152] Input: gpio_keys - add support for GPIO descriptors

2017-04-10 Thread Dmitry Torokhov
On Mon, Apr 10, 2017 at 9:42 AM, Greg Kroah-Hartman wrote: > 4.9-stable review patch. If anyone has any objections, please let me know. Confused why it needs to be in stable as there should be no chnage in behavior. Is it because there are other patches depending on this one? > > --

[PATCH 4.9 025/152] xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Calvin Owens commit 3dd09d5a8589c640abb49cfcf92b4ed669eafad1 upstream. When punching past EOF on XFS, fallocate(mode=PUNCH_HOLE|KEEP_SIZE) will round the file size up to the nearest multiple of

[PATCH 4.9 049/152] MIPS: Lantiq: fix missing xbar kernel panic

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hauke Mehrtens commit 6ef90877eee63a0d03e83183bb44b64229b624e6 upstream. Commit 08b3c894e565 ("MIPS: lantiq: Disable xbar fpi burst mode") accidentally requested the resources from the pmu addr

[PATCH 4.9 053/152] MIPS: c-r4k: Fix Loongson-3s vcache/scache waysize calculation

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Huacai Chen commit 0be032c190abcdcfa948082b6a1e0d461184ba4d upstream. If scache.waysize is 0, r4k___flush_cache_all() will do nothing and then cause bugs. BTW, though vcache.waysize isn't being

[PATCH 4.9 056/152] random: use chacha20 for get_random_int/long

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jason A. Donenfeld commit f5b98461cb8167ba362ad9f74c41d126b7becea7 upstream. Now that our crng uses chacha20, we can rely on its speedy characteristics for replacing MD5, while simultaneously a

[PATCH 4.9 054/152] Documentation: stable-kernel-rules: fix stable-tag format

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit cf903e9d3a97f89b224d2d07be37c0f160db8192 upstream. A patch documenting how to specify which kernels a particular fix should be backported to (seemingly) inadvertently added

[PATCH 4.9 058/152] drm/sun4i: Add compatible strings for A31/A31s display pipelines

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chen-Yu Tsai commit 49c440e87cd6f547f93d0dc53571ae0e11d9ec8f upstream. The A31's display pipeline has 2 frontends, 2 backends, and 2 TCONs. It also has new display enhancement blocks, such as t

[PATCH 4.9 057/152] drm/sun4i: tcon: Move SoC specific quirks to a DT matched data structure

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chen-Yu Tsai commit 91ea2f29cba6a7fe035ea232e4f981211a9fce5d upstream. We already have some differences between the 2 supported SoCs. More will be added as we support other SoCs. To avoid bloat

[PATCH 4.9 059/152] drm/sun4i: Add compatible string for A31/A31s TCON (timing controller)

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chen-Yu Tsai commit 93a5ec14da24a8abbac5bcb953b45cc7a5d0198a upstream. The A31 TCON has mux controls for how TCON outputs are routed to the HDMI and MIPI DSI blocks. Since the A31s does not ha

[PATCH 4.9 028/152] brcmfmac: use local iftype avoiding use-after-free of virtual interface

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arend Van Spriel commit d77facb88448cdeaaa3adba5b9704a48ac2ac8d6 upstream. A use-after-free was found using KASAN. In brcmf_p2p_del_if() the virtual interface is removed using call to brcmf_rem

[PATCH 4.9 062/152] HID: i2c-hid: add a simple quirk to fix device defects

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: HungNien Chen [ Upstream commit 71af01a8c85ad89449209594133bdfdfaa9f1e2a ] Certain devices produced by Weida Tech need to have a wakeup command sent to them before powering on. The call itself

[PATCH 4.9 063/152] usb: dwc3: gadget: delay unmap of bounced requests

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Janusz Dziedzic commit de288e36fe33f7e06fa272bc8e2f85aa386d99aa upstream. In the case of bounced ep0 requests, we must delay DMA operation until after ->complete() otherwise we might overwrite

[PATCH 4.9 030/152] metag/usercopy: Fix alignment error checking

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit 2257211942bbbf6c798ab70b487d7e62f7835a1a upstream. Fix the error checking of the alignment adjustment code in raw_copy_from_user(), which mistakenly considers it safe to skip

Re: [PATCH] mm, numa: Fix bad pmd by atomically check for pmd_trans_huge when marking page tables prot_numa

2017-04-10 Thread Mel Gorman
On Mon, Apr 10, 2017 at 03:53:42PM +0200, Michal Hocko wrote: > > While this could be fixed with heavy locking, it's only necessary to > > make a copy of the PMD on the stack during change_pmd_range and avoid > > races. A new helper is created for this as the check if quite subtle and the > > exist

[PATCH 4.9 029/152] metag/usercopy: Drop unused macros

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit ef62a2d81f73d9cddef14bc3d9097a57010d551c upstream. Metag's lib/usercopy.c has a bunch of copy_from_user macros for larger copies between 5 and 16 bytes which are completely u

[PATCH 4.9 027/152] mac80211: unconditionally start new netdev queues with iTXQ support

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 7d65f82954dadbbe7b6e1aec7e07ad17bc6d958b upstream. When internal mac80211 TXQs aren't supported, netdev queues must always started out started even when driver queues are s

Re: [PATCH v2] sched/fair: update scale invariance of PELT

2017-04-10 Thread Peter Zijlstra
Thanks for the rebase. On Mon, Apr 10, 2017 at 11:18:29AM +0200, Vincent Guittot wrote: Ok, so let me try and paraphrase what this patch does. So consider a task that runs 16 out of our 32ms window: running idle |-|-| You're saying that when we scale running with the f

[PATCH 4.9 066/152] net/mlx4_core: Use device ID defines

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas [ Upstream commit c19e4b9037fa8a0477525a64e93847f534e8cc17 ] We added a bunch of new Mellanox device ID definitions because they'll be used by INTx quirks. Use them in the mlx4 I

[PATCH 4.9 031/152] metag/usercopy: Add early abort to copy_to_user

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit fb8ea062a8f2e85256e13f55696c5c5f0dfdcc8b upstream. When copying to userland on Meta, if any faults are encountered immediately abort the copy instead of continuing on and rep

[PATCH 4.9 076/152] x86/intel_idle: Add CPU model 0x4a (Atom Z34xx series)

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andy Shevchenko [ Upstream commit 5e7ec268fd48d63cfd0e3a9be6c6443f01673bd4 ] Add CPU ID for Atom Z34xx processors. Datasheets indicate support for this, detailed information about potential qui

[PATCH 4.9 078/152] arm64: PCI: Add local struct device pointers

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas [ Upstream commit dfd1972c2b464c10fb585c4c60b594e09d181a01 ] Use a local "struct device *dev" for brevity. No functional change intended. Signed-off-by: Bjorn Helgaas Acked-by:

[PATCH 4.9 084/152] PCI: thunder-pem: Factor out resource lookup

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas [ Upstream commit 0d414268fb8d0844030f87027e904f69d96706be ] Pull the register resource lookup out of thunder_pem_init() so we can easily add a corresponding lookup using ACPI. N

[PATCH 4.9 082/152] PCI: Add MCFG quirks for Qualcomm QDF2432 host controller

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christopher Covington [ Upstream commit 2ca5b8ddc6f70d77a51851ba5e5cd0d39c27dd88 ] The Qualcomm Technologies QDF2432 SoC does not support accesses smaller than 32 bits to the PCI configuration

[PATCH 4.9 077/152] arm64: PCI: Manage controller-specific data on per-controller basis

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tomasz Nowicki [ Upstream commit 093d24a204425f71f4f106b7e62c8df4b456e1cc ] Currently we use one shared global acpi_pci_root_ops structure to keep controller-specific ops. We pass its pointer t

[PATCH 4.9 081/152] PCI/ACPI: Check for platform-specific MCFG quirks

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tomasz Nowicki [ Upstream commit 5b69b85ba1ddd36be01f5c57830b37a3c8256009 ] The PCIe spec (r3.0, sec 7.2.2) specifies an "Enhanced Configuration Access Mechanism" (ECAM) for memory-mapped acces

[PATCH 4.9 067/152] clocksource/drivers/arm_arch_timer: Dont assume clock runs in suspend

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brian Norris [ Upstream commit d8ec7595a013237f82d965dcf981571aeb41855b ] The ARM specifies that the system counter "must be implemented in an always-on power domain," and so we try to use the

[PATCH 4.9 092/152] ALSA: usb-audio: Add native DSD support for TEAC 501/503 DAC

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nobutaka Okabe [ Upstream commit 7f38ca047b0cb54df7f6d9e4110e292e45dba6ad ] This patch adds native DSD support for the following devices. - TEAC NT-503 - TEAC UD-503 - TEAC UD-501 (1) Add qui

RE: [PATCH 6/7] x86/hyper-v: use hypercall for remove TLB flush

2017-04-10 Thread Jork Loeser
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > > We may be supporting more than 64 CPUs in this hypercall. I am going > > to inquire with the Windows folks and get back to you. > > Thanks! It is even specified in the specification: > "Future versions of the h

[PATCH 4.9 089/152] scsi: ufs: add quirk to increase host PA_SaveConfigTime

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Subhash Jadavani [ Upstream commit 56d4a1866d748732fd8d690b2c2156bbc9c9eb02 ] The maximum value PA_SaveConfigTime is 250 (10us) but this is not enough for some vendors. Gear switch from PWM to

[PATCH 4.9 085/152] PCI: Add MCFG quirks for Cavium ThunderX pass2.x host controller

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tomasz Nowicki [ Upstream commit 44f22bd91e88f9a1203a6e564a237e593f5f2f74 ] ThunderX PCIe controller to off-chip devices (so-called PEM) is not fully compliant with ECAM standard. It uses non-s

[PATCH 4.9 087/152] PCI: Add MCFG quirks for X-Gene host controller

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Duc Dang [ Upstream commit c5d4603961009c39de94725213d8b5420f110f9e ] PCIe controllers in X-Gene SoCs are not ECAM compliant: software needs to configure additional controller's register to add

[PATCH 4.9 091/152] PCI: Expand "VPD access disabled" quirk message

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas [ Upstream commit 044bc425bb72ffdecfb2a66d50cb1d024ecb96d0 ] It's not very enlightening to see pci :07:00.0: [Firmware Bug]: VPD access disabled in the dmesg log because t

[PATCH 4.9 090/152] ALSA: usb-audio: add implicit fb quirk for Axe-Fx II

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alberto Aguirre [ Upstream commit 17f08b0d9aafccdb10038ab6dbd9ddb6433c13e2 ] The Axe-Fx II implicit feedback end point and the data sync endpoint are in different interface descriptors. Add qui

[PATCH 4.9 094/152] HID: asus: Add i2c touchpad support

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brendan McGrath [ Upstream commit 9ce12d8be12c94334634dd57050444910415e45f ] Update the hid-asus module to add multitouch support for the Asus i2c touchpad. This patch aims to resolve the issu

[PATCH 4.9 095/152] HID: asus: Fix keyboard support

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Brendan McGrath [ Upstream commit c8b1b3dd89ea7b3f77a73e59c4c4495e16338e15 ] The previous submission which added Touchpad support broke the Keyboard support of this driver. This patch: 1. fixes

[PATCH 4.9 098/152] nvme: simplify stripe quirk

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Keith Busch [ Upstream commit e6282aef7b89a11d26e731060c4409b7aac278bf ] Some OEMs believe they own the Identify Controller vendor specific region and will repurpose it with their own values. W

[PATCH 4.9 103/152] drm/i915: fix INTEL_BDW_IDS definition

2017-04-10 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Paulo Zanoni [ Upstream commit 7fbd995ce4241e98d30859405504c3fb279c4ccb ] Remove duplicated IDs from the list. Currently, this definition is only used by early-quirks.c. From my understanding o

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