[PATCH 04/20] arm64: ilp32: add documentation on the ILP32 ABI for ARM64

2017-06-19 Thread Yury Norov
Based on Andrew Pinski's patch-series. Signed-off-by: Yury Norov --- Documentation/arm64/ilp32.txt | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/arm64/ilp32.txt diff --git a/Documentation/arm64/ilp32.txt b/Documentation/arm6

[PATCH 06/20] arm64: ensure the kernel is compiled for LP64

2017-06-19 Thread Yury Norov
From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski Signed-off-by: Phil

[PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-19 Thread Yury Norov
From: Andrew Pinski In this patchset ILP32 ABI support is added. Additionally to AARCH32, which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. >From now, AARCH32_EL0 (former COMPAT) config option means the support of AARCH32 userspace, and ARM64_ILP32 - support of ILP32 ABI (se

[PATCH 09/20] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat)

2017-06-19 Thread Yury Norov
Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in to avoid mess in headers. Some files include both and , and this is wrong beca

[PATCH 10/20] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64

2017-06-19 Thread Yury Norov
ILP32 tasks are needed to be distinguished from lp64 and aarch32. This patch adds helper functions is_ilp32_compat_{task,thread} and thread flag TIF_32BIT_AARCH64 to address it. This is a preparation for following patches in ilp32 patchset. For consistency, SET_PERSONALITY is changed here accordin

[PATCH 11/20] arm64: introduce binfmt_elf32.c

2017-06-19 Thread Yury Norov
As we support more than one compat formats, it looks more reasonable to not use fs/compat_binfmt.c. Custom binfmt_elf32.c allows to move aarch32 specific definitions there and make code more maintainable and readable. Signed-off-by: Yury Norov --- arch/arm64/Kconfig | 1 - arch/ar

[PATCH 12/20] arm64: ilp32: introduce binfmt_ilp32.c

2017-06-19 Thread Yury Norov
Like binfmt_elf32.c, binfmt_ilp32.c is needed to handle ILP32 binaries. Signed-off-by: Yury Norov Signed-off-by: Bamvor Jian Zhang --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/binfmt_ilp32.c | 85 2 files changed, 86 insertions(+) crea

[PATCH 16/20] arm64: signal32: move ilp32 and aarch32 common code to separated file

2017-06-19 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/arm64/include/asm/signal32.h| 3 + arch/arm64/include/asm/signal32_common.h | 27 +++ arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/signal32.c | 107 arch/arm64/kernel/signal32_common.c

Re: [PATCH v3 1/n] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-06-19 Thread Mark Rutland
On Mon, Jun 19, 2017 at 08:39:18AM -0700, Andi Kleen wrote: > On Mon, Jun 19, 2017 at 04:24:01PM +0100, Mark Rutland wrote: > > On Mon, Jun 19, 2017 at 08:21:51AM -0700, Andi Kleen wrote: > > > > I was trying to get a feel for how that compares to what we can do > > > > today. For other reasons (e.

[PATCH] compiler, clang: Add always_inline attribute to inline

2017-06-19 Thread Prasad Sodagudi
Commit abb2ea7dfd82 ("compiler, clang: suppress warning for unused static inline functions") re-defining the 'inline' macro but __attribute__((always_inline)) is missing. Some compilers may not honor inline hint if always_iniline attribute not there. So add always_inline attribute to inline as done

[PATCH 15/20] arm64: signal: share lp64 signal routines to ilp32

2017-06-19 Thread Yury Norov
After that, it will be possible to reuse it in ilp32. Signed-off-by: Yury Norov Signed-off-by: Bamvor Jian Zhang --- arch/arm64/include/asm/signal_common.h | 33 arch/arm64/kernel/signal.c | 93 +- 2 files changed, 92 insertions(+), 34 de

[PATCH 18/20] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2017-06-19 Thread Yury Norov
ILP32 has context-related structures different from both aarch32 and aarch64/lp64. In this patch compat_arch_ptrace() renamed to compat_a32_ptrace(), and compat_arch_ptrace() only makes choice between compat_a32_ptrace() and new compat_ilp32_ptrace() handler. compat_ilp32_ptrace() calls generic co

[PATCH 17/20] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext

2017-06-19 Thread Yury Norov
From: Andrew Pinski ILP32 uses AARCH32 compat structures and syscall handlers for signals. But ILP32 struct rt_sigframe and ucontext differs from both LP64 and AARCH32. So some specific mechanism is needed to take care of it. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- arch/ar

[PATCH 19/20] arm64:ilp32: add vdso-ilp32 and use for signal return

2017-06-19 Thread Yury Norov
From: Philipp Tomsich ILP32 VDSO exports following symbols: __kernel_rt_sigreturn; __kernel_gettimeofday; __kernel_clock_gettime; __kernel_clock_getres. What shared object to use, kernel selects depending on result of is_ilp32_compat_task() in arch/arm64/kernel/vdso.c, so it substitutes corr

[PATCH 20/20] arm64:ilp32: add ARM64_ILP32 to Kconfig

2017-06-19 Thread Yury Norov
From: Andrew Pinski This patch adds the config option for ILP32. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Kconfig | 9 - 1 file changed, 8 insertions(+), 1 deletio

[PATCH 14/20] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2017-06-19 Thread Yury Norov
From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compat-syscalls, as appropriate. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov Signed-off-by: Bamvor Jian Zhang --- arch/arm64/include/asm/unistd.h

[PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers

2017-06-19 Thread Yury Norov
According to userspace/kernel ABI, userspace off_t is passed in register pair just like in aarch32. In this patch corresponding aarch32 handlers are shared to ilp32 code. Signed-off-by: Yury Norov --- arch/arm64/kernel/Makefile | 1 + arch/arm64/kernel/entry32.S| 80 -

[PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64

2017-06-19 Thread Yury Norov
From: Andrew Pinski Define __BITS_PER_LONG depending on the ABI used (i.e. check whether __ILP32__ or __LP64__ is defined). This is necessary for glibc to determine the appropriate type definitions for the system call interface. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Sign

[PATCH 08/20] thread: move thread bits accessors to separated file

2017-06-19 Thread Yury Norov
They may be accessed from low-level code, so isolating is a measure to avoid circular dependencies in header files. The exact reason for circular dependency is WARN_ON() macro added in patch edd63a27 "set_restore_sigmask() is never called without SIGPENDING (and never should be)" Signed-off-by: Y

Re: [PATCH 2/8] mfd: Add STM32 LPTimer driver

2017-06-19 Thread Lee Jones
On Fri, 16 Jun 2017, Fabrice Gasnier wrote: > STM32 Low Power Timer hardware block can be used for: > - PWM generation > - IIO trigger (in sync with PWM) > - IIO quadrature encoder counter > PWM and IIO timer configuration are mixed in the same registers so > we need a multi fonction driver to be a

[PATCH 4.9 59/60] alarmtimer: Rate limit periodic intervals

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit ff86bf0c65f14346bf2440534f9ba5ac232c39a0 upstream. The alarmtimer code has another source of potentially rearming itself too fast. Interval timers with a very samll inter

[PATCH 4.9 23/60] mfd: omap-usb-tll: Fix inverted bit use for USB TLL mode

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tony Lindgren commit 8b8a84c54aff4256d592dc18346c65ecf6811b45 upstream. Commit 16fa3dc75c22 ("mfd: omap-usb-tll: HOST TLL platform driver") added support for USB TLL, but uses OMAP_TLL_CHANNEL_

[PATCH 4.9 52/60] alarmtimer: Prevent overflow of relative timers

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit f4781e76f90df7aec400635d73ea4c35ee1d4765 upstream. Andrey reported a alartimer related RCU stall while fuzzing the kernel with syzkaller. The reason for this is an overf

[PATCH 4.9 49/60] iio: imu: inv_mpu6050: add accel lpf setting for chip >= MPU6500

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jean-Baptiste Maneyrol commit 948588e25b8af5e66962ed3f53e1cae1656fa5af upstream. Starting from MPU6500, accelerometer dlpf is set in a separate register named ACCEL_CONFIG_2. Add this new regis

[PATCH 4.9 51/60] genirq: Release resources in __setup_irq() error path

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit commit fa07ab72cbb0d843429e61bf179308aed6cbe0dd upstream. In case __irq_set_trigger() fails the resources requested via irq_request_resources() are not released. Add the missin

[PATCH 4.9 46/60] USB: gadgetfs, dummy-hcd, net2280: fix locking for callbacks

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit f16443a034c7aa359ddf6f0f9bc40d01ca31faea upstream. Using the syzkaller kernel fuzzer, Andrey Konovalov generated the following error in gadgetfs: > BUG: KASAN: use-after-free

Re: [PATCH v5 2/3] PCI: Add tango PCIe host bridge support

2017-06-19 Thread Marc Zyngier
On 19/06/17 15:50, Marc Gonzalez wrote: > On 07/06/2017 10:19, Marc Gonzalez wrote: > >> On 31/05/2017 15:33, Marc Gonzalez wrote: >> >>> +static int tango_pcie_probe(struct platform_device *pdev) >>> +{ >>> + int ret = -EINVAL; >>> + void __iomem *base; >>> + struct resource *res; >>> + s

Re: [PATCH v11 5/6] i2c: designware: add SLAVE mode functions

2017-06-19 Thread Wolfram Sang
Hiya, > Believe me I've looked for mistakes like this but I've read the code so many > times I don't think I can see the obvious anymore. Yes, I know this. And you worked hard on this slave feature, acknowledged. Patches 1-4 look good to me from what I glimpsed. I largely trust here the *much* a

Re: [PATCH v7 10/26] x86/insn-eval: Add utility functions to get segment selector

2017-06-19 Thread Borislav Petkov
On Thu, Jun 15, 2017 at 12:04:21PM -0700, Ricardo Neri wrote: > On Thu, 2017-06-15 at 11:37 -0700, Ricardo Neri wrote: > > > Yuck, didn't we talk about this already? > > > > I am sorry Borislav. I thought you agreed that I could use the values > > of > > the segment override prefixes to identify t

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-19 Thread James Morse
Hi Yury, On 04/06/17 12:59, Yury Norov wrote: > From: Andrew Pinski > > In this patchset ILP32 ABI support is added. Additionally to AARCH32, > which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. > > From now, AARCH32_EL0 (former COMPAT) config option means the support of >

[PATCH 4.9 48/60] swap: cond_resched in swap_cgroup_prepare()

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Yu Zhao commit ef70762948dde012146926720b70e79736336764 upstream. I saw need_resched() warnings when swapping on large swapfile (TBs) because continuously allocating many pages in swap_cgroup_p

[PATCH 4.9 22/60] x86/mm/32: Set the __vmalloc_start_set flag in initmem_init()

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Laura Abbott commit 861ce4a3244c21b0af64f880d5bfe5e6e2fb9e4a upstream. '__vmalloc_start_set' currently only gets set in initmem_init() when !CONFIG_NEED_MULTIPLE_NODES. This breaks detection of

[PATCH 4.9 42/60] drivers/misc/c2port/c2port-duramar2150.c: checking for NULL instead of IS_ERR()

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 8128a31eaadbcdfa37774bbd28f3f00bac69996a upstream. c2port_device_register() never returns NULL, it uses error pointers. Link: http://lkml.kernel.org/r/20170412083321.GC325

Re: [PATCHv2 1/3] x86/mm: Provide pmdp_establish() helper

2017-06-19 Thread Kirill A. Shutemov
On Mon, Jun 19, 2017 at 04:22:29PM +0100, Catalin Marinas wrote: > Hi Kirill, > > On Thu, Jun 15, 2017 at 05:52:22PM +0300, Kirill A. Shutemov wrote: > > We need an atomic way to setup pmd page table entry, avoiding races with > > CPU setting dirty/accessed bits. This is required to implement > >

[PATCH 4.9 44/60] usb: xhci: ASMedia ASM1042A chipset need shorts TX quirk

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Corentin Labbe commit d2f48f05cd2a2a0a708fbfa45f1a00a87660d937 upstream. When plugging an USB webcam I see the following message: [106385.615559] xhci_hcd :04:00.0: WARN Successful completi

[PATCH 4.9 43/60] usb: xhci: Fix USB 3.1 supported protocol parsing

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: YD Tseng commit b72eb8435b25be3a1880264cf32ac91e626ba5ba upstream. xHCI host controllers can have both USB 3.1 and 3.0 extended speed protocol lists. If the USB3.1 speed is parsed first and 3.0

[PATCH 4.9 39/60] usb: r8a66597-hcd: decrease timeout

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chris Brandt commit dd14a3e9b92ac6f0918054f9e3477438760a4fa6 upstream. The timeout for BULK packets was 300ms which is a long time if other endpoints or devices are waiting for their turn. Chan

[PATCH 4.9 41/60] misc: mic: double free on ioctl error path

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 816c9311f1144a03da1fdc4feb2f6b0d3299fca0 upstream. This function only has one caller. Freeing "vdev" here leads to a use after free bug. There are several other error pat

[PATCH v2 2/3] iio: humidity: hdc100x: document compatible HDC10xx devices

2017-06-19 Thread Michael Stecklein
Include datasheet links, add i2c_device_id entries, and update kconfig help for compatible HDC10xx devices: HDC1000, HDC1008, HDC1010, HDC1050, and HDC1080. Signed-off-by: Michael Stecklein --- drivers/iio/humidity/Kconfig | 3 ++- drivers/iio/humidity/hdc100x.c | 11 +++ 2 files chan

Re: [PATCH v5 2/3] PCI: Add tango PCIe host bridge support

2017-06-19 Thread Marc Gonzalez
On 19/06/2017 17:58, Marc Zyngier wrote: > On 19/06/17 15:50, Marc Gonzalez wrote: >> On 07/06/2017 10:19, Marc Gonzalez wrote: >> >>> On 31/05/2017 15:33, Marc Gonzalez wrote: >>> +static int tango_pcie_probe(struct platform_device *pdev) +{ + int ret = -EINVAL; + void __iome

[PATCH v2 3/3] iio: humidity: hdc100x: add match table and device id's

2017-06-19 Thread Michael Stecklein
Add of_match_table and point it to a list of compatible device tree device id's. Signed-off-by: Michael Stecklein --- drivers/iio/humidity/hdc100x.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c index 6778bc7..785

[PATCH 4.9 21/60] serial: sh-sci: Fix late enablement of AUTORTS

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 5f76895e4c712b1b5af450cf344389b8c53ac2c2 upstream. When changing hardware control flow for a UART with dedicated RTS/CTS pins, the new AUTORTS state is not immediately

[PATCH v2 1/3] dt-bindings: iio: humidity: add bindings for HDC100x sensors

2017-06-19 Thread Michael Stecklein
Add the bindings for the family of HDC100x sensors. Signed-off-by: Michael Stecklein --- .../devicetree/bindings/iio/humidity/hdc100x.txt| 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/humidity/hdc100x.txt diff --git a/D

[PATCH 4.9 37/60] USB: gadget: dummy_hcd: fix hub-descriptor removable fields

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit d81182ce30dbd497a1e7047d7fda2af040347790 upstream. Flag the first and only port as removable while also leaving the remaining bits (including the reserved bit zero) unset in

[PATCH 4.9 34/60] usb: core: fix potential memory leak in error path during hcd creation

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Anton Bondarenko commit 1a744d2eb76aaafb997fda004ae3ae62a1538f85 upstream. Free memory allocated for address0_mutex if allocation of bandwidth_mutex failed. Fixes: feb26ac31a2a ("usb: core: hu

Re: [PATCH] fs: buffer: Modify alloc_page_buffers.

2017-06-19 Thread Al Viro
On Mon, Jun 19, 2017 at 09:01:36PM +0800, Sean Fu wrote: > Make alloc_page_buffers support circular buffer list and initialise > b_state field. > Optimize the performance by removing the buffer list traversal to create > circular buffer list. > - bh = head = alloc_page_buffers(page, bl

[PATCH 4.9 31/60] usb: gadget: udc: renesas_usb3: fix deadlock by spinlock

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 067d6fdc558d2c43f0bfdc7af99630dd5eb08dc5 upstream. This patch fixes an issue that this driver is possible to cause deadlock by double-spinclocked in renesas_usb3_stop_c

[PATCH 4.9 32/60] usb: gadget: udc: renesas_usb3: lock for PN_ registers access

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 940f538a100c84c6e72813e4ac88bd1753a86945 upstream. This controller disallows to change the PIPE until reading/writing a packet finishes. However. the previous code is n

[PATCH 4.9 30/60] usb: gadget: udc: renesas_usb3: fix pm_runtime functions calling

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit cdc876877ebc3f0677b267756d4564e2a429e730 upstream. This patch fixes an issue that this driver is possible to access the registers before pm_runtime_get_sync() if a gadg

[PATCH 4.9 33/60] USB: hub: fix SS max number of ports

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 93491ced3c87c94b12220dbac0527e1356702179 upstream. Add define for the maximum number of ports on a SuperSpeed hub as per USB 3.1 spec Table 10-5, and use it when verifying t

[PATCH 4.9 36/60] [media] pvrusb2: reduce stack usage pvr2_eeprom_analyze()

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 6830733d53a4517588e56227b9c8538633f0c496 upstream. The driver uses a relatively large data structure on the stack, which showed up on my radar as we get a warning with the

Re: [PATCH v11 5/6] i2c: designware: add SLAVE mode functions

2017-06-19 Thread Andy Shevchenko
On Mon, Jun 19, 2017 at 6:58 PM, Wolfram Sang wrote: >> Believe me I've looked for mistakes like this but I've read the code so many >> times I don't think I can see the obvious anymore. > > Yes, I know this. And you worked hard on this slave feature, > acknowledged. > > Patches 1-4 look good to m

[GIT PULL 1/2] ARM: dts: exynos: Second round for v4.13

2017-06-19 Thread Krzysztof Kozlowski
Hi, On top of previous pull request, just minor stuff. Best regards, Krzysztof The following changes since commit c92a4fb249bf98670543b4c41307e1e71942d513: ARM: dts: exynos: Use human-friendly symbols for GIC interrupt properties (2017-06-07 20:56:06 +0200) are available in the git reposit

[GIT PULL 2/2] ARM: defconfig: Topic branch with defconfig cleanup for v4.13

2017-06-19 Thread Krzysztof Kozlowski
Hi, These are ARM changes to defconfig from my cleanup patchset: https://www.spinics.net/lists/mips/msg68188.html Best regards, Krzysztof The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git reposit

[PATCH 4.9 02/60] configfs: Fix race between create_link and configfs_rmdir

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit ba80aa909c99802c428682c352b0ee0baac0acd3 upstream. This patch closes a long standing race in configfs between the creation of a new symlink in create_link(), while the

[PATCH 4.9 09/60] drm/amdgpu: Fix overflow of watermark calcs at > 4k resolutions.

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mario Kleiner commit bea10413934dcf98cb9b2dfcdc56e1d28f192897 upstream. Commit d63c277dc672e0 ("drm/amdgpu: Make display watermark calculations more accurate") made watermark calculations more

[PATCH 4.9 06/60] [media] vb2: Fix an off by one error in vb2_plane_vaddr

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET commit 5ebb6dd36c9f5fb37b1077b393c254d70a14cb46 upstream. We should ensure that 'plane_no' is '< vb->num_planes' as done in 'vb2_plane_cookie' just a few lines below. Fixes:

Re: [PATCH RESEND 0/2] Add support for ARM CCN-502 interconnect

2017-06-19 Thread Pawel Moll
On Fri, 2017-06-16 at 13:39 -0700, Scott Branden wrote: > Arnd, > > Should this patchset go through the ARM maintainers? Unless something changed in the last months, these patches should go through arm-soc. Arnd is probably just waiting for me to send a pull request. And indeed shame on me that I

[PATCH] dt-bindings: net: sms911x: Add missing optional VDD regulators

2017-06-19 Thread Krzysztof Kozlowski
The lan911x family of devices require supplying from 3.3 V power supplies (connected to VDD_IO, VDD_A and VREG_3.3 pins). The existing driver however obtains only VDD_IO and VDD_A regulators in an optional way so document this in bindings. Signed-off-by: Krzysztof Kozlowski --- Documentation/de

[PATCH 4.9 03/60] can: gs_usb: fix memory leak in gs_cmd_reset()

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Marc Kleine-Budde commit 5cda3ee5138e91ac369ed9d0b55eab0dab077686 upstream. This patch adds the missing kfree() in gs_cmd_reset() to free the memory that is not used anymore after usb_control_m

[PATCH 4.9 15/60] mac80211: strictly check mesh address extension mode

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Rajkumar Manoharan commit 5667c86acf021e6dcf02584408b4484a273ac68f upstream. Mesh forwarding path checks for address extension mode to fetch appropriate proxied address and MPP address. Existin

Re: [PATCH v2] platform/x86: wmi-bmof: New driver to expose embedded Binary WMI MOF metadata

2017-06-19 Thread Pali Rohár
On Tuesday 06 June 2017 05:16:44 Andy Lutomirski wrote: > Many laptops (and maybe servers?) have embedded WMI Binary MOF > metadata. We do not yet have open-source tools for processing the > data, although one is in the works thanks to Pali: > > https://github.com/pali/bmfdec > > There is c

[PATCH 4.9 13/60] mac80211: fix packet statistics for fast-RX

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 0328edc77d4f35014b35f32b46be0a7e16aae74f upstream. When adding per-CPU statistics, which added statistics back to mac80211 for the fast-RX path, I evidently forgot to add t

[PATCH 4.9 14/60] mac80211: fix IBSS presp allocation size

2017-06-19 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit f1f3e9e2a50a70de908f9dfe0d870e9cdc67e042 upstream. When VHT IBSS support was added, the size of the extra elements wasn't considered in ieee80211_ibss_build_presp(), which

[PATCH 4.11 40/78] iio: proximity: as3935: recalibrate RCO after resume

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Matt Ranostay commit 6272c0de13abf1480f701d38288f28a11b4301c4 upstream. According to the datasheet the RCO must be recalibrated on every power-on-reset. Also remove mutex locking in the calibr

Re: [PATCH 1/3] livepatch: introduce shadow variable API

2017-06-19 Thread Miroslav Benes
> > +struct klp_shadow { > > + struct hlist_node node; > > + struct rcu_head rcu_head; > > + void *obj; > > + char *var; > > + void *data; > > I would make the meaning more obvious. What about renaming? > > var -> key or id > data -> shadow_obj or new_obj But var is not a key to a

[PATCH 4.11 65/78] iio: imu: inv_mpu6050: add accel lpf setting for chip >= MPU6500

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Jean-Baptiste Maneyrol commit 948588e25b8af5e66962ed3f53e1cae1656fa5af upstream. Starting from MPU6500, accelerometer dlpf is set in a separate register named ACCEL_CONFIG_2. Add this new regi

Re: [PATCH v11 5/6] i2c: designware: add SLAVE mode functions

2017-06-19 Thread Luis Oliveira
On 19-Jun-17 17:05, Andy Shevchenko wrote: > On Mon, Jun 19, 2017 at 6:58 PM, Wolfram Sang wrote: >>> Believe me I've looked for mistakes like this but I've read the code so many >>> times I don't think I can see the obvious anymore. >> >> Yes, I know this. And you worked hard on this slave featur

Re: [PATCHv2] ARM32: Support mremap() for sigpage/vDSO

2017-06-19 Thread Russell King - ARM Linux
On Mon, Jun 19, 2017 at 05:50:23PM +0300, Dmitry Safonov wrote: > Should I resend this with ack, or send it to your patch system, > or you'll take it from mail? As most of it is ARM stuff, I suppose it should go via the ARM tree unless anyone has objections. Please put it in the patch system as I

[PATCH 4.11 60/78] USB: gadgetfs, dummy-hcd, net2280: fix locking for callbacks

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit f16443a034c7aa359ddf6f0f9bc40d01ca31faea upstream. Using the syzkaller kernel fuzzer, Andrey Konovalov generated the following error in gadgetfs: > BUG: KASAN: use-after-fre

[PATCH 4.11 59/78] USB: gadget: fix GPF in gadgetfs

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit f50b878fed33e360d01dcdc31a8eeb1815d033d5 upstream. A NULL-pointer dereference bug in gadgetfs was uncovered by syzkaller: > kasan: GPF could be caused by NULL-ptr deref or u

Re: [PATCH v3 2/4] asm-generic: Provide a fncpy() implementation

2017-06-19 Thread Yury Norov
On Mon, Jun 19, 2017 at 02:51:08AM +0300, Yury Norov wrote: > Hi Florian, > > Some questions and thoughts inline. > > Yury > > On Fri, Jun 16, 2017 at 05:07:42PM -0700, Florian Fainelli wrote: > > Define a generic fncpy() implementation largely based on the ARM version > > that requires an 8 byt

[PATCH 4.11 48/78] usb: core: fix potential memory leak in error path during hcd creation

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Anton Bondarenko commit 1a744d2eb76aaafb997fda004ae3ae62a1538f85 upstream. Free memory allocated for address0_mutex if allocation of bandwidth_mutex failed. Fixes: feb26ac31a2a ("usb: core: h

[PATCH 4.11 09/78] mac80211: dont look at the PM bit of BAR frames

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Emmanuel Grumbach commit 769dc04db3ed8484798aceb015b94deacc2ba557 upstream. When a peer sends a BAR frame with PM bit clear, we should not modify its PM state as madated by the spec in 802.11-

[PATCH 4.11 00/78] 4.11.7-stable review

2017-06-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.11.7 release. There are 78 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Jun 21 15:10:11 UTC 2017. Anything receive

[PATCH 4.11 08/78] selinux: fix double free in selinux_parse_opts_str()

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Paul Moore commit 023f108dcc187e34ef864bf10ed966cf25e14e2a upstream. This patch is based on a discussion generated by an earlier patch from Tetsuo Handa: * https://marc.info/?t=1490356593

[PATCH 4.11 32/78] mfd: cpcap: Fix bad use of IRQ sense register

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Tony Lindgren commit be269180c9335c257a2763c3fd3a44e65c90c1f0 upstream. The cpcap INTS registers are for getting the value of the line, not for configuring the type. Fixes: 56e1d40d3bea ("mfd

[PATCH 4.11 06/78] [media] vb2: Fix an off by one error in vb2_plane_vaddr

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Christophe JAILLET commit 5ebb6dd36c9f5fb37b1077b393c254d70a14cb46 upstream. We should ensure that 'plane_no' is '< vb->num_planes' as done in 'vb2_plane_cookie' just a few lines below. Fixes

[PATCH 4.11 04/78] ila_xlat: add missing hash secret initialization

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 0db47e3d323411beeb6ea97f2c4d19395c91fd8b upstream. While discussing the possible merits of clang warning about unused initialized functions, I found one function that was

[PATCH 4.11 07/78] [media] cec: race fix: dont return -ENONET in cec_receive()

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit b94aac64a4c17c5af92f9b4ba7164c5b384d5c02 upstream. When calling CEC_RECEIVE do not check if the adapter is configured. Typically CEC_RECEIVE is called after a select() and

RE: [PATCH v2] platform/x86: wmi-bmof: New driver to expose embedded Binary WMI MOF metadata

2017-06-19 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Monday, June 19, 2017 11:08 AM > To: Andy Lutomirski > Cc: platform-driver-...@vger.kernel.org; Andy Shevchenko > ; Andy Lutomirski ; > Limonciello, Mario ; Rafael Wysocki > ; linux-kernel@vger.kernel.org; linux-

Re: [PATCH] pinctrl/amd: Use regular interrupt instead of chained

2017-06-19 Thread Borislav Petkov
On Fri, May 26, 2017 at 09:33:10AM +, Shah, Nehal-bakulchandra wrote: > Hi Thomas, > > Thanks for the prompt reply. Agree on points. > > we will validate at our end and shall provide the update. Any news on the issue? Resolution? I still have a user reporting "irq 7: nobody cared (try boot

[PATCH 4.11 35/78] powerpc/mm: Add physical address to Linux page table dump

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Oliver O'Halloran commit aaa229529244a1135b29353fefb001c430db79f0 upstream. The current page table dumper scans the Linux page tables and coalesces mappings with adjacent virtual addresses and

Re: [ANNOUNCE] v4.11.5-rt1

2017-06-19 Thread Mike Galbraith
On Mon, 2017-06-19 at 17:03 +0200, Sebastian Andrzej Siewior wrote: > On 2017-06-19 16:36:22 [+0200], Mike Galbraith wrote: > > On Mon, 2017-06-19 at 16:06 +0200, Sebastian Andrzej Siewior wrote: > > > > > > I am suppressed that your desktop shows any symptoms on rt21. I tried my > > > smaller AMD

[PATCH 4.11 33/78] phy: rcar-gen3-usb2: fix implementation for runtime PM

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 441a681b8843474c9796b50c35794ff102701f37 upstream. This patch fixes an issue that this driver doesn't take care of the runtime PM. This code assumed that devm_phy_crea

__user with scalar data types

2017-06-19 Thread Jordan Crouse
A number of us over in DRM land have been using __u64 scalar types to store pointers for uapi structures in accordance with Daniel Vetter's now classic treatise on ioctls: http://blog.ffwll.ch/2013/11/botching-up-ioctls.html A smaller number of us have further been marking the __u64 with __user,

[PATCH 4.11 03/78] can: gs_usb: fix memory leak in gs_cmd_reset()

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Marc Kleine-Budde commit 5cda3ee5138e91ac369ed9d0b55eab0dab077686 upstream. This patch adds the missing kfree() in gs_cmd_reset() to free the memory that is not used anymore after usb_control_

[PATCH 4.11 27/78] mfd: omap-usb-tll: Fix inverted bit use for USB TLL mode

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Tony Lindgren commit 8b8a84c54aff4256d592dc18346c65ecf6811b45 upstream. Commit 16fa3dc75c22 ("mfd: omap-usb-tll: HOST TLL platform driver") added support for USB TLL, but uses OMAP_TLL_CHANNEL

[PATCH 4.11 28/78] mfd: axp20x: Add support for dts property "xpowers,master-mode"

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Rask Ingemann Lambertsen commit c0369698e6455c734a772e3acb09cff9a0c8ed9f upstream. commit b101829a029a ("mfd: axp20x: Fix AXP806 access errors on cold boot") was intended to fix the case where

[PATCH 4.11 21/78] drm/vc4: Fix OOPSes from trying to cache a partially constructed BO.

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Eric Anholt commit ca39b449f6d03e8235969f12f5dd25b8eb4304d6 upstream. If a CMA allocation failed, the partially constructed BO would be unreferenced through the normal path, and we might choos

[PATCH 4.11 26/78] x86/mm/32: Set the __vmalloc_start_set flag in initmem_init()

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Laura Abbott commit 861ce4a3244c21b0af64f880d5bfe5e6e2fb9e4a upstream. '__vmalloc_start_set' currently only gets set in initmem_init() when !CONFIG_NEED_MULTIPLE_NODES. This breaks detection o

Re: [PATCH v5 2/3] PCI: Add tango PCIe host bridge support

2017-06-19 Thread Marc Zyngier
On 19/06/17 17:01, Marc Gonzalez wrote: > On 19/06/2017 17:58, Marc Zyngier wrote: >> On 19/06/17 15:50, Marc Gonzalez wrote: >>> On 07/06/2017 10:19, Marc Gonzalez wrote: >>> On 31/05/2017 15:33, Marc Gonzalez wrote: > +static int tango_pcie_probe(struct platform_device *pdev) >

[PATCH 4.11 25/78] serial: sh-sci: Fix late enablement of AUTORTS

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 5f76895e4c712b1b5af450cf344389b8c53ac2c2 upstream. When changing hardware control flow for a UART with dedicated RTS/CTS pins, the new AUTORTS state is not immediatel

[PATCH 4.11 02/78] configfs: Fix race between create_link and configfs_rmdir

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit ba80aa909c99802c428682c352b0ee0baac0acd3 upstream. This patch closes a long standing race in configfs between the creation of a new symlink in create_link(), while th

Re: [PATCH 16/20] arm64: signal32: move ilp32 and aarch32 common code to separated file

2017-06-19 Thread James Morse
Hi Yury, On 04/06/17 13:00, Yury Norov wrote: > Signed-off-by: Yury Norov Can I offer a body for the commit message: ILP32 needs to mix 32bit struct siginfo and 64bit sigframe for its signal handlers. Move the existing compat code for copying siginfo to user space and manipulating signal masks i

Re: [PATCH v2] drm: hdlcd: Update PM code to save/restore console.

2017-06-19 Thread Liviu Dudau
On Mon, Jun 19, 2017 at 05:47:07PM +0200, Noralf Trønnes wrote: > > Den 19.06.2017 15.53, skrev Liviu Dudau: > > Update the PM code to suspend/resume the fbdev_cma console. > > > > Changelog: > > - v2: Use drm_fbdev_cma_set_suspend_unlocked() function for taking the > >console lock (sugge

[PATCH 4.11 17/78] mac80211: strictly check mesh address extension mode

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Rajkumar Manoharan commit 5667c86acf021e6dcf02584408b4484a273ac68f upstream. Mesh forwarding path checks for address extension mode to fetch appropriate proxied address and MPP address. Existi

[PATCH 4.11 19/78] mac80211: dont send SMPS action frame in AP mode when not needed

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Emmanuel Grumbach commit b3dd8279659f14f3624bb32559782d699fa6f7d1 upstream. mac80211 allows to modify the SMPS state of an AP both, when it is started, and after it has been started. Such a ch

Re: [RFC PATCH 1/2] mm: introduce bmap_walk()

2017-06-19 Thread Darrick J. Wong
On Sun, Jun 18, 2017 at 09:51:52AM +0200, Christoph Hellwig wrote: > On Sat, Jun 17, 2017 at 05:29:23AM -0700, Dan Williams wrote: > > On Fri, Jun 16, 2017 at 10:22 PM, Christoph Hellwig wrote: > > > On Fri, Jun 16, 2017 at 06:15:29PM -0700, Dan Williams wrote: > > >> Refactor the core of generic_

[PATCH 4.11 16/78] mac80211: fix IBSS presp allocation size

2017-06-19 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit f1f3e9e2a50a70de908f9dfe0d870e9cdc67e042 upstream. When VHT IBSS support was added, the size of the extra elements wasn't considered in ieee80211_ibss_build_presp(), which

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