Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread Kees Cook
On Wed, Aug 10, 2016 at 2:12 PM, John Stultz wrote: > On Wed, Aug 10, 2016 at 2:02 PM, Kees Cook wrote: >> On Wed, Aug 10, 2016 at 11:36 AM, Kees Cook wrote: >>> On Tue, Aug 9, 2016 at 4:54 PM, John Stultz wrote: In changing from checking ptrace_may_access(p, PTRACE_MODE_ATTACH_FSCREDS)

Re: [PATCH v5 8/8] drm/rockchip: Add dmc notifier in vop driver

2016-08-10 Thread kbuild test robot
/commits/Lin-Huang/rk3399-support-ddr-frequency-scaling/20160810-114433 config: arm-multi_v7_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-10 Thread Rafael J. Wysocki
On Wed, Aug 10, 2016 at 10:56 PM, Rafael J. Wysocki wrote: > On Wed, Aug 10, 2016 at 6:35 PM, Borislav Petkov wrote: >> On Wed, Aug 10, 2016 at 04:59:40PM +0200, Jiri Kosina wrote: >>> Mine is Lenovo thinkpad x200s; I think Boris has been testing it on x230s, >>

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-10 Thread Rafael J. Wysocki
On Wed, Aug 10, 2016 at 10:56 PM, Rafael J. Wysocki wrote: > On Wed, Aug 10, 2016 at 6:35 PM, Borislav Petkov wrote: >> On Wed, Aug 10, 2016 at 04:59:40PM +0200, Jiri Kosina wrote: >>> Mine is Lenovo thinkpad x200s; I think Boris has been testing it on x230s, >> >> It says "X230" here under the

RE: [Linux-ima-devel] [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-10 Thread David Laight
From: Linuxppc-dev [mailto:linuxppc-dev-bounces+david.laight=aculab@lists.ozlabs.org] On Behalf Of > > > So given what you have above, you'd use something like: > > > > > > struct ima_kexec_hdr { > > > u16 version; > > > u16 _reserved0; > > > u32 _reserved1; > > > u64 buffer_size; >

RE: [Linux-ima-devel] [PATCH 1/7] ima: on soft reboot, restore the measurement list

2016-08-10 Thread David Laight
From: Linuxppc-dev [mailto:linuxppc-dev-bounces+david.laight=aculab@lists.ozlabs.org] On Behalf Of > > > So given what you have above, you'd use something like: > > > > > > struct ima_kexec_hdr { > > > u16 version; > > > u16 _reserved0; > > > u32 _reserved1; > > > u64 buffer_size; >

RE: [PATCH 0/5] bfa: fix W=1 build warnings

2016-08-10 Thread Sudarsana Kalluru
Hi, Thanks for the patches. Changes look fine to me, other than a minor change in patch-1 and the build issue due to the removal of bfa_isr_disable()declaration. Thanks, Sudarsana -Original Message- From: Arnd Bergmann [mailto:a...@arndb.de] Sent: 02 August 2016 20:53 To: Anil

Re: [PATCH] ARM: cpuidle: declare cpuidle_ops __read_mostly

2016-08-10 Thread Arnd Bergmann
On Wednesday, August 10, 2016 5:19:26 PM CEST Jisheng Zhang wrote: > Dear Arnd, > > On Wed, 10 Aug 2016 10:57:57 +0200 Arnd Bergmann wrote: > > > On Wednesday, August 10, 2016 4:49:57 PM CEST Jisheng Zhang wrote: > > > diff --git a/arch/arm/kernel/cpuidle.c b/arch/arm/kernel/cpuidle.c > > >

Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread John Stultz
On Wed, Aug 10, 2016 at 2:02 PM, Kees Cook wrote: > On Wed, Aug 10, 2016 at 11:36 AM, Kees Cook wrote: >> On Tue, Aug 9, 2016 at 4:54 PM, John Stultz wrote: >>> In changing from checking ptrace_may_access(p,

Re: mwifiex: PCIe8997 chip specific handling

2016-08-10 Thread Steve deRosier
Hi, On Wed, Aug 10, 2016 at 12:07 AM, Amitkumar Karwar wrote: > Hi Brian, > >> From: Brian Norris [mailto:briannor...@chromium.org] >> Sent: Wednesday, August 10, 2016 12:14 AM >> To: Amitkumar Karwar >> Cc: linux-wirel...@vger.kernel.org; Cathy Luo; Nishant Sarmukadam; >>

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-08-10 Thread Stephen Boyd
(Including lists) On 08/09, James Liao wrote: > On Wed, 2016-08-03 at 13:46 +0800, James Liao wrote: >> >> Hi Mike, >> >> Do you have new patches to fix new clock parents? If not, I think we can >> use my patch first. Is it okay? >> > > Hi Stephen, > > Do you have comments for the bug fixing? I

RE: [PATCH 0/5] bfa: fix W=1 build warnings

2016-08-10 Thread Sudarsana Kalluru
Hi, Thanks for the patches. Changes look fine to me, other than a minor change in patch-1 and the build issue due to the removal of bfa_isr_disable()declaration. Thanks, Sudarsana -Original Message- From: Arnd Bergmann [mailto:a...@arndb.de] Sent: 02 August 2016 20:53 To: Anil

Re: [PATCH] ARM: cpuidle: declare cpuidle_ops __read_mostly

2016-08-10 Thread Arnd Bergmann
On Wednesday, August 10, 2016 5:19:26 PM CEST Jisheng Zhang wrote: > Dear Arnd, > > On Wed, 10 Aug 2016 10:57:57 +0200 Arnd Bergmann wrote: > > > On Wednesday, August 10, 2016 4:49:57 PM CEST Jisheng Zhang wrote: > > > diff --git a/arch/arm/kernel/cpuidle.c b/arch/arm/kernel/cpuidle.c > > >

Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread John Stultz
On Wed, Aug 10, 2016 at 2:02 PM, Kees Cook wrote: > On Wed, Aug 10, 2016 at 11:36 AM, Kees Cook wrote: >> On Tue, Aug 9, 2016 at 4:54 PM, John Stultz wrote: >>> In changing from checking ptrace_may_access(p, PTRACE_MODE_ATTACH_FSCREDS) >>> to capable(CAP_SYS_NICE), I missed that

Re: mwifiex: PCIe8997 chip specific handling

2016-08-10 Thread Steve deRosier
Hi, On Wed, Aug 10, 2016 at 12:07 AM, Amitkumar Karwar wrote: > Hi Brian, > >> From: Brian Norris [mailto:briannor...@chromium.org] >> Sent: Wednesday, August 10, 2016 12:14 AM >> To: Amitkumar Karwar >> Cc: linux-wirel...@vger.kernel.org; Cathy Luo; Nishant Sarmukadam; >>

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-08-10 Thread Stephen Boyd
(Including lists) On 08/09, James Liao wrote: > On Wed, 2016-08-03 at 13:46 +0800, James Liao wrote: >> >> Hi Mike, >> >> Do you have new patches to fix new clock parents? If not, I think we can >> use my patch first. Is it okay? >> > > Hi Stephen, > > Do you have comments for the bug fixing? I

[PATCH v5 4/7] staging: speakup: replace spk_strlwr() with strlcpytolower()

2016-08-10 Thread Markus Mayer
After introducing generic strltolower() and strtolower(), spk_strlwr() is no longer needed. Signed-off-by: Markus Mayer Acked-by: Samuel Thibault Acked-by: Chris Brannon --- drivers/staging/speakup/kobjects.c| 3

Re: [Urgent PATCH] arm64: dts: uniphier: fix IRQ trigger type of ARMv8 timer

2016-08-10 Thread Arnd Bergmann
On Monday, August 1, 2016 5:12:20 PM CEST Masahiro Yamada wrote: > Since commit 1e2a7d78499e ("irqdomain: Don't set type when mapping > an IRQ"), the interrupt type is strictly checked. Without this > patch, this board would not boot any more. > >

Re: [PATCH v6 3/8] arm, dts: add TC2 cpu capacity-dmips-mhz information

2016-08-10 Thread Juri Lelli
Hi, On 10/08/16 16:33, Sudeep Holla wrote: > Hi Juri, > > On 19/07/16 13:40, Juri Lelli wrote: > >Add TC2 cpu capacity binding information. > > > > If you repost it, > > s/binding// > Yes, I think I'll need to repost, squashing the arm64 fix in the appropriate patch. Thanks. > >Cc: Liviu

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-08-10 Thread Pavel Machek
On Tue 2016-08-09 08:04:54, Daniel Vetter wrote: > On Sun, Jul 24, 2016 at 05:00:31PM +0200, Pavel Machek wrote: > > On Mon 2016-08-08 16:08:12, Gustavo Padovan wrote: > > > 2016-08-07 Pavel Machek : > > > > > > > On Sun 2016-07-24 15:21:11, Greg Kroah-Hartman wrote: > > > > > On

Re: [PATCH 3/5] mm/page_owner: move page_owner specific function to page_owner.c

2016-08-10 Thread Sergey Senozhatsky
Hello Joonsoo, just in case, --- diff --git a/mm/page_owner.c b/mm/page_owner.c index 3b241f5..bff2d8a 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "internal.h" --- Reviewed-by: Sergey Senozhatsky

[PATCH v5 7/7] power_supply: make use of new strcpytoupper() function

2016-08-10 Thread Markus Mayer
Call strcpytoupper() rather than walking the string explicitly to convert it to uppercase. Signed-off-by: Markus Mayer Acked-By: Sebastian Reichel --- drivers/power/power_supply_sysfs.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-)

[PATCH v5 2/7] drm/nouveau/core: make use of new strlcpytolower() function

2016-08-10 Thread Markus Mayer
Call strlcpytolower() rather than copying the string explicitly and then walking it to convert it to lowercase. Signed-off-by: Markus Mayer --- drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git

[PATCH v5 3/7] ACPI / device_sysfs: make use of new strtolower() function

2016-08-10 Thread Markus Mayer
Call strtolower() rather than walking the string explicitly to convert it to lowercase. Signed-off-by: Markus Mayer Acked-by: Rafael J. Wysocki --- drivers/acpi/device_sysfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH v5 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function

2016-08-10 Thread Markus Mayer
Call strcpytoupper() rather than copying the string explicitly and then walking it to convert it to uppercase. Signed-off-by: Markus Mayer --- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH v5 4/7] staging: speakup: replace spk_strlwr() with strlcpytolower()

2016-08-10 Thread Markus Mayer
After introducing generic strltolower() and strtolower(), spk_strlwr() is no longer needed. Signed-off-by: Markus Mayer Acked-by: Samuel Thibault Acked-by: Chris Brannon --- drivers/staging/speakup/kobjects.c| 3 +-- drivers/staging/speakup/main.c| 3 ++-

Re: [Urgent PATCH] arm64: dts: uniphier: fix IRQ trigger type of ARMv8 timer

2016-08-10 Thread Arnd Bergmann
On Monday, August 1, 2016 5:12:20 PM CEST Masahiro Yamada wrote: > Since commit 1e2a7d78499e ("irqdomain: Don't set type when mapping > an IRQ"), the interrupt type is strictly checked. Without this > patch, this board would not boot any more. > >

Re: [PATCH v6 3/8] arm, dts: add TC2 cpu capacity-dmips-mhz information

2016-08-10 Thread Juri Lelli
Hi, On 10/08/16 16:33, Sudeep Holla wrote: > Hi Juri, > > On 19/07/16 13:40, Juri Lelli wrote: > >Add TC2 cpu capacity binding information. > > > > If you repost it, > > s/binding// > Yes, I think I'll need to repost, squashing the arm64 fix in the appropriate patch. Thanks. > >Cc: Liviu

Re: [PATCH 0/7] de-stage SW_SYNC validation frawework

2016-08-10 Thread Pavel Machek
On Tue 2016-08-09 08:04:54, Daniel Vetter wrote: > On Sun, Jul 24, 2016 at 05:00:31PM +0200, Pavel Machek wrote: > > On Mon 2016-08-08 16:08:12, Gustavo Padovan wrote: > > > 2016-08-07 Pavel Machek : > > > > > > > On Sun 2016-07-24 15:21:11, Greg Kroah-Hartman wrote: > > > > > On Mon, Jul 18,

Re: [PATCH 3/5] mm/page_owner: move page_owner specific function to page_owner.c

2016-08-10 Thread Sergey Senozhatsky
Hello Joonsoo, just in case, --- diff --git a/mm/page_owner.c b/mm/page_owner.c index 3b241f5..bff2d8a 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "internal.h" --- Reviewed-by: Sergey Senozhatsky --- ps. I'm

[PATCH v5 7/7] power_supply: make use of new strcpytoupper() function

2016-08-10 Thread Markus Mayer
Call strcpytoupper() rather than walking the string explicitly to convert it to uppercase. Signed-off-by: Markus Mayer Acked-By: Sebastian Reichel --- drivers/power/power_supply_sysfs.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git

[PATCH v5 2/7] drm/nouveau/core: make use of new strlcpytolower() function

2016-08-10 Thread Markus Mayer
Call strlcpytolower() rather than copying the string explicitly and then walking it to convert it to lowercase. Signed-off-by: Markus Mayer --- drivers/gpu/drm/nouveau/nvkm/core/firmware.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git

[PATCH v5 3/7] ACPI / device_sysfs: make use of new strtolower() function

2016-08-10 Thread Markus Mayer
Call strtolower() rather than walking the string explicitly to convert it to lowercase. Signed-off-by: Markus Mayer Acked-by: Rafael J. Wysocki --- drivers/acpi/device_sysfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/acpi/device_sysfs.c

[PATCH v5 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function

2016-08-10 Thread Markus Mayer
Call strcpytoupper() rather than copying the string explicitly and then walking it to convert it to uppercase. Signed-off-by: Markus Mayer --- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-10 Thread Jon Hunter
On 10/08/16 14:58, Linus Walleij wrote: > On Wed, Aug 10, 2016 at 11:56 AM, Jon Hunter wrote: >> Hi Marc, Linus, >> On 10/08/16 10:41, Marc Zyngier wrote: >>> On 10/08/16 00:03, Linus Walleij wrote: On Tue, Aug 9, 2016 at 3:20 PM, Jon Hunter

Re: [Regression] "irqdomain: Don't set type when mapping an IRQ" breaks nexus7 gpio buttons

2016-08-10 Thread Jon Hunter
On 10/08/16 14:58, Linus Walleij wrote: > On Wed, Aug 10, 2016 at 11:56 AM, Jon Hunter wrote: >> Hi Marc, Linus, >> On 10/08/16 10:41, Marc Zyngier wrote: >>> On 10/08/16 00:03, Linus Walleij wrote: On Tue, Aug 9, 2016 at 3:20 PM, Jon Hunter wrote: > If that works, then does the

Re: spin_lock implicit/explicit memory barrier

2016-08-10 Thread Paul E. McKenney
On Wed, Aug 10, 2016 at 12:17:57PM -0700, Davidlohr Bueso wrote: > On Wed, 10 Aug 2016, Manfred Spraul wrote: > > >On 08/10/2016 02:05 AM, Benjamin Herrenschmidt wrote: > >>On Tue, 2016-08-09 at 20:52 +0200, Manfred Spraul wrote: > >>>Hi Benjamin, Hi Michael, > >>> > >>>regarding commit

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Mateusz Guzik
On Wed, Aug 10, 2016 at 11:39:12AM -0400, Robert Foss wrote: > > > On 2016-08-09 04:17 PM, Robert Foss wrote: > > > > +static int totmaps_proc_show(struct seq_file *m, void *data) > > > > +{ > > > > +struct proc_maps_private *priv = m->private; > > > > +struct mm_struct *mm; > > > > +

[PATCH v5 0/7] lib: string: add functions to case-convert strings

2016-08-10 Thread Markus Mayer
This series introduces a family of generic string case conversion functions. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this functionality. Based on the discussion of the previous version of this series[1]

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-08-10 Thread David Long
On 08/09/2016 01:23 PM, Catalin Marinas wrote: On Mon, Aug 08, 2016 at 10:29:05AM -0400, David Long wrote: On 08/08/2016 07:13 AM, Daniel Thompson wrote: On 04/08/16 05:47, David Long wrote: >From b451caa1adaf1d03e08a44b5dad3fca31cebd97a Mon Sep 17 00:00:00 2001 From: "David A. Long"

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-10 Thread Mathieu Desnoyers
- On Aug 10, 2016, at 4:09 PM, Andy Lutomirski l...@amacapital.net wrote: > On Wed, Aug 10, 2016 at 1:06 PM, Mathieu Desnoyers > wrote: >>> u64 is a perfectly valid, if odd, userspace pointer on all >>> architecures that I know of, and it's certainly a

[tip:x86/mm] x86: Apply more __ro_after_init and const

2016-08-10 Thread tip-bot for Kees Cook
Commit-ID: 404f6aac9b3ef595735feca99979db084ea48315 Gitweb: http://git.kernel.org/tip/404f6aac9b3ef595735feca99979db084ea48315 Author: Kees Cook AuthorDate: Mon, 8 Aug 2016 16:29:06 -0700 Committer: Ingo Molnar CommitDate: Wed, 10 Aug 2016

Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread Kees Cook
On Wed, Aug 10, 2016 at 11:36 AM, Kees Cook wrote: > On Tue, Aug 9, 2016 at 4:54 PM, John Stultz wrote: >> In changing from checking ptrace_may_access(p, PTRACE_MODE_ATTACH_FSCREDS) >> to capable(CAP_SYS_NICE), I missed that ptrace_my_access

Re: [PATCH 1/5] mm/debug_pagealloc: clean-up guard page handling code

2016-08-10 Thread Sergey Senozhatsky
Hello, On (08/10/16 15:16), js1...@gmail.com wrote: [..] > -static inline void set_page_guard(struct zone *zone, struct page *page, > +static inline bool set_page_guard(struct zone *zone, struct page *page, > unsigned int order, int migratetype) > { > struct

[PATCH v7 5/5] regulator: tps65218: Remove all the compatibles

2016-08-10 Thread Keerthy
Remove all the individual compatibles for all the regulators and introduce id_table and update the driver accordingly to parse device tree nodes using the regulator framework. Signed-off-by: Keerthy Acked-by: Mark Brown ---

[PATCH 1/2] ahci: st: Add ports-implemented property in support

2016-08-10 Thread patrice.chotard
From: Patrice Chotard Despite ST AHCI version = 1.3, reading HOST_PORTS_IMPL returns 0. So force_port_map to 1 by using ports-implemented DT property. Signed-off-by: Patrice Chotard --- drivers/ata/ahci_st.c | 4 1 file changed, 4

RE: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-10 Thread Altshul, Maxim
On Tue, Aug 09, 2016 at 10:58:30, Johannes Berg wrote: > Subject: Re: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to > get_expected_throughput > > > > If you approve the mesh patch, then I will send two patches: > > 1. Check for sta->uploaded in the drv wrapper (will change the drv >

Re: spin_lock implicit/explicit memory barrier

2016-08-10 Thread Paul E. McKenney
On Wed, Aug 10, 2016 at 12:17:57PM -0700, Davidlohr Bueso wrote: > On Wed, 10 Aug 2016, Manfred Spraul wrote: > > >On 08/10/2016 02:05 AM, Benjamin Herrenschmidt wrote: > >>On Tue, 2016-08-09 at 20:52 +0200, Manfred Spraul wrote: > >>>Hi Benjamin, Hi Michael, > >>> > >>>regarding commit

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Mateusz Guzik
On Wed, Aug 10, 2016 at 11:39:12AM -0400, Robert Foss wrote: > > > On 2016-08-09 04:17 PM, Robert Foss wrote: > > > > +static int totmaps_proc_show(struct seq_file *m, void *data) > > > > +{ > > > > +struct proc_maps_private *priv = m->private; > > > > +struct mm_struct *mm; > > > > +

[PATCH v5 0/7] lib: string: add functions to case-convert strings

2016-08-10 Thread Markus Mayer
This series introduces a family of generic string case conversion functions. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this functionality. Based on the discussion of the previous version of this series[1]

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-08-10 Thread David Long
On 08/09/2016 01:23 PM, Catalin Marinas wrote: On Mon, Aug 08, 2016 at 10:29:05AM -0400, David Long wrote: On 08/08/2016 07:13 AM, Daniel Thompson wrote: On 04/08/16 05:47, David Long wrote: >From b451caa1adaf1d03e08a44b5dad3fca31cebd97a Mon Sep 17 00:00:00 2001 From: "David A. Long" Date:

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-10 Thread Mathieu Desnoyers
- On Aug 10, 2016, at 4:09 PM, Andy Lutomirski l...@amacapital.net wrote: > On Wed, Aug 10, 2016 at 1:06 PM, Mathieu Desnoyers > wrote: >>> u64 is a perfectly valid, if odd, userspace pointer on all >>> architecures that I know of, and it's certainly a valid userspace >>> pointer on x86

[tip:x86/mm] x86: Apply more __ro_after_init and const

2016-08-10 Thread tip-bot for Kees Cook
Commit-ID: 404f6aac9b3ef595735feca99979db084ea48315 Gitweb: http://git.kernel.org/tip/404f6aac9b3ef595735feca99979db084ea48315 Author: Kees Cook AuthorDate: Mon, 8 Aug 2016 16:29:06 -0700 Committer: Ingo Molnar CommitDate: Wed, 10 Aug 2016 14:55:05 +0200 x86: Apply more

Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread Kees Cook
On Wed, Aug 10, 2016 at 11:36 AM, Kees Cook wrote: > On Tue, Aug 9, 2016 at 4:54 PM, John Stultz wrote: >> In changing from checking ptrace_may_access(p, PTRACE_MODE_ATTACH_FSCREDS) >> to capable(CAP_SYS_NICE), I missed that ptrace_my_access succeeds >> when p == current, but the CAP_SYS_NICE

Re: [PATCH 1/5] mm/debug_pagealloc: clean-up guard page handling code

2016-08-10 Thread Sergey Senozhatsky
Hello, On (08/10/16 15:16), js1...@gmail.com wrote: [..] > -static inline void set_page_guard(struct zone *zone, struct page *page, > +static inline bool set_page_guard(struct zone *zone, struct page *page, > unsigned int order, int migratetype) > { > struct

[PATCH v7 5/5] regulator: tps65218: Remove all the compatibles

2016-08-10 Thread Keerthy
Remove all the individual compatibles for all the regulators and introduce id_table and update the driver accordingly to parse device tree nodes using the regulator framework. Signed-off-by: Keerthy Acked-by: Mark Brown --- drivers/regulator/tps65218-regulator.c | 150

[PATCH 1/2] ahci: st: Add ports-implemented property in support

2016-08-10 Thread patrice.chotard
From: Patrice Chotard Despite ST AHCI version = 1.3, reading HOST_PORTS_IMPL returns 0. So force_port_map to 1 by using ports-implemented DT property. Signed-off-by: Patrice Chotard --- drivers/ata/ahci_st.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/ata/ahci_st.c

RE: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-10 Thread Altshul, Maxim
On Tue, Aug 09, 2016 at 10:58:30, Johannes Berg wrote: > Subject: Re: [PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to > get_expected_throughput > > > > If you approve the mesh patch, then I will send two patches: > > 1. Check for sta->uploaded in the drv wrapper (will change the drv >

[PATCH v2 1/1] usb: misc: usbtest: add fix for driver hang

2016-08-10 Thread Lu Baolu
In sg_timeout(), req->status is set to "-ETIMEDOUT" before calling into usb_sg_cancel(). usb_sg_cancel() will do nothing and return directly if req->status has been set to a non-zero value. This will cause driver hang whenever transfer time out is triggered. This patch fixes this issue. It could

[PATCH v2 1/1] usb: misc: usbtest: add fix for driver hang

2016-08-10 Thread Lu Baolu
In sg_timeout(), req->status is set to "-ETIMEDOUT" before calling into usb_sg_cancel(). usb_sg_cancel() will do nothing and return directly if req->status has been set to a non-zero value. This will cause driver hang whenever transfer time out is triggered. This patch fixes this issue. It could

Re: [PATCH V3 2/4] clk: Combine DT binding doc for max77686 and max77802

2016-08-10 Thread Laxman Dewangan
Hi, On Tuesday 28 June 2016 04:58 PM, Laxman Dewangan wrote: Hi Rob, On Tuesday 21 June 2016 12:16 PM, Laxman Dewangan wrote: On Monday 20 June 2016 10:09 PM, Rob Herring wrote: On Fri, Jun 17, 2016 at 04:21:05PM +0530, Laxman Dewangan wrote: + Following properties should be presend in

Re: [PATCH V3 2/4] clk: Combine DT binding doc for max77686 and max77802

2016-08-10 Thread Laxman Dewangan
Hi, On Tuesday 28 June 2016 04:58 PM, Laxman Dewangan wrote: Hi Rob, On Tuesday 21 June 2016 12:16 PM, Laxman Dewangan wrote: On Monday 20 June 2016 10:09 PM, Rob Herring wrote: On Fri, Jun 17, 2016 at 04:21:05PM +0530, Laxman Dewangan wrote: + Following properties should be presend in

Re: [PATCH] x86/efi-bgrt: remove the check of the version field

2016-08-10 Thread Ingo Molnar
* Icenowy Zheng wrote: > Some broken firmwares have a wrongly filled version field in BGRT table. > (See http://wiki.osdev.org/Broken_UEFI_implementations ) > > As we know, these firmwares can also provide correct BGRT image, although > the table is wrong. > > After removing

[tip:x86/urgent] x86/mm: Disable preemption during CR3 read+write

2016-08-10 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 5cf0791da5c162ebc14b01eb01631cfa7ed4fa6e Gitweb: http://git.kernel.org/tip/5cf0791da5c162ebc14b01eb01631cfa7ed4fa6e Author: Sebastian Andrzej Siewior AuthorDate: Fri, 5 Aug 2016 15:37:39 +0200 Committer: Ingo Molnar CommitDate: Wed,

[PATCH 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-10 Thread John Garry
Add code in slot_complete_v2_hw() to deal with the slots which have completed due to internal abort. The status codes have the following meaning: - STAT_IO_ABORTED: the IO has been aborted due to internal abort, whether by device or individual abort command - STAT_IO_COMPLETE: internal abort

Re: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

2016-08-10 Thread Pavel Machek
Hi! > > We are using Sierra's USB-to-WWAN driver on Ubuntu-14 for Sierra's > > MC8090 modem, and we have a requirement wherein we need to have access > > to the modem-serial-port (from our user-application that is). > > > > Right now, we see that /usr/sbin/ModemManager is always connected to > >

Re: [PATCH] ARM: cpuidle: declare cpuidle_ops __read_mostly

2016-08-10 Thread Arnd Bergmann
On Wednesday, August 10, 2016 5:54:03 PM CEST Jisheng Zhang wrote: > On Wed, 10 Aug 2016 16:49:57 +0800 Jisheng Zhang wrote: > > > cpuidle_ops is initialized once by arm_cpuidle_read_ops() during > > initialization, and thereafter is mostly read in arm_cpuidle_suspend() > > > > The fact that it

Re: [PATCH 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-10 Thread Suman Anna
On 08/10/2016 03:40 PM, Bjorn Andersson wrote: > On Wed 10 Aug 12:37 PDT 2016, Suman Anna wrote: > >> Hi Lee, Bjorn, >> >> On 08/10/2016 12:40 PM, Bjorn Andersson wrote: >>> On Tue 19 Jul 08:49 PDT 2016, Lee Jones wrote: >>> - of_rproc_by_index(): look-up and obtain a reference to a rproc

Re: spin_lock implicit/explicit memory barrier

2016-08-10 Thread Paul E. McKenney
On Wed, Aug 10, 2016 at 08:21:22PM +0200, Manfred Spraul wrote: > Hi, > > [adding Peter, correcting Davidlohr's mail address] > > On 08/10/2016 02:05 AM, Benjamin Herrenschmidt wrote: > >On Tue, 2016-08-09 at 20:52 +0200, Manfred Spraul wrote: > >>Hi Benjamin, Hi Michael, > >> > >>regarding

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-10 Thread Rafael J. Wysocki
On Wed, Aug 10, 2016 at 6:35 PM, Borislav Petkov wrote: > On Wed, Aug 10, 2016 at 04:59:40PM +0200, Jiri Kosina wrote: >> Mine is Lenovo thinkpad x200s; I think Boris has been testing it on x230s, > > It says "X230" here under the screen. > >> but not sure whether any of the latest

[PATCH v5 1/7] lib: string: add functions to case-convert strings

2016-08-10 Thread Markus Mayer
Add a collection of generic functions to convert strings to lowercase or uppercase. Changing the case of a string (with or without copying it first) seems to be a recurring requirement in the kernel that is currently being solved by several duplicated implementations doing the same thing. This

[PATCH 1/8] hisi_sas: add internal abort core code

2016-08-10 Thread John Garry
Add core code for internal abort functionality. The internal abort features allows the host controller to abort commands which are still active in the controller but have not yet been sent to the slave device. Typically a command only spends a relatively short time in the controller when

[PATCH v5 5/7] iscsi-target: replace iscsi_initiatorname_tolower() with strtolower()

2016-08-10 Thread Markus Mayer
After introducing generic strtolower(), iscsi_initiatorname_tolower() is no longer needed. Signed-off-by: Markus Mayer Acked-by: Nicholas Bellinger --- drivers/target/iscsi/iscsi_target_nego.c | 17 + 1 file changed, 1 insertion(+), 16

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-10 Thread Rafael J. Wysocki
On Wed, Aug 10, 2016 at 6:35 PM, Borislav Petkov wrote: > On Wed, Aug 10, 2016 at 04:59:40PM +0200, Jiri Kosina wrote: >> Mine is Lenovo thinkpad x200s; I think Boris has been testing it on x230s, > > It says "X230" here under the screen. > >> but not sure whether any of the latest patches didn't

[PATCH v5 1/7] lib: string: add functions to case-convert strings

2016-08-10 Thread Markus Mayer
Add a collection of generic functions to convert strings to lowercase or uppercase. Changing the case of a string (with or without copying it first) seems to be a recurring requirement in the kernel that is currently being solved by several duplicated implementations doing the same thing. This

[PATCH 1/8] hisi_sas: add internal abort core code

2016-08-10 Thread John Garry
Add core code for internal abort functionality. The internal abort features allows the host controller to abort commands which are still active in the controller but have not yet been sent to the slave device. Typically a command only spends a relatively short time in the controller when

[PATCH v5 5/7] iscsi-target: replace iscsi_initiatorname_tolower() with strtolower()

2016-08-10 Thread Markus Mayer
After introducing generic strtolower(), iscsi_initiatorname_tolower() is no longer needed. Signed-off-by: Markus Mayer Acked-by: Nicholas Bellinger --- drivers/target/iscsi/iscsi_target_nego.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git

Re: [PATCH] x86/efi-bgrt: remove the check of the version field

2016-08-10 Thread Ingo Molnar
* Icenowy Zheng wrote: > Some broken firmwares have a wrongly filled version field in BGRT table. > (See http://wiki.osdev.org/Broken_UEFI_implementations ) > > As we know, these firmwares can also provide correct BGRT image, although > the table is wrong. > > After removing the check of the

[tip:x86/urgent] x86/mm: Disable preemption during CR3 read+write

2016-08-10 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 5cf0791da5c162ebc14b01eb01631cfa7ed4fa6e Gitweb: http://git.kernel.org/tip/5cf0791da5c162ebc14b01eb01631cfa7ed4fa6e Author: Sebastian Andrzej Siewior AuthorDate: Fri, 5 Aug 2016 15:37:39 +0200 Committer: Ingo Molnar CommitDate: Wed, 10 Aug 2016 15:37:16 +0200 x86/mm:

[PATCH 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-10 Thread John Garry
Add code in slot_complete_v2_hw() to deal with the slots which have completed due to internal abort. The status codes have the following meaning: - STAT_IO_ABORTED: the IO has been aborted due to internal abort, whether by device or individual abort command - STAT_IO_COMPLETE: internal abort

Re: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

2016-08-10 Thread Pavel Machek
Hi! > > We are using Sierra's USB-to-WWAN driver on Ubuntu-14 for Sierra's > > MC8090 modem, and we have a requirement wherein we need to have access > > to the modem-serial-port (from our user-application that is). > > > > Right now, we see that /usr/sbin/ModemManager is always connected to > >

Re: [PATCH] ARM: cpuidle: declare cpuidle_ops __read_mostly

2016-08-10 Thread Arnd Bergmann
On Wednesday, August 10, 2016 5:54:03 PM CEST Jisheng Zhang wrote: > On Wed, 10 Aug 2016 16:49:57 +0800 Jisheng Zhang wrote: > > > cpuidle_ops is initialized once by arm_cpuidle_read_ops() during > > initialization, and thereafter is mostly read in arm_cpuidle_suspend() > > > > The fact that it

Re: [PATCH 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-10 Thread Suman Anna
On 08/10/2016 03:40 PM, Bjorn Andersson wrote: > On Wed 10 Aug 12:37 PDT 2016, Suman Anna wrote: > >> Hi Lee, Bjorn, >> >> On 08/10/2016 12:40 PM, Bjorn Andersson wrote: >>> On Tue 19 Jul 08:49 PDT 2016, Lee Jones wrote: >>> - of_rproc_by_index(): look-up and obtain a reference to a rproc

Re: spin_lock implicit/explicit memory barrier

2016-08-10 Thread Paul E. McKenney
On Wed, Aug 10, 2016 at 08:21:22PM +0200, Manfred Spraul wrote: > Hi, > > [adding Peter, correcting Davidlohr's mail address] > > On 08/10/2016 02:05 AM, Benjamin Herrenschmidt wrote: > >On Tue, 2016-08-09 at 20:52 +0200, Manfred Spraul wrote: > >>Hi Benjamin, Hi Michael, > >> > >>regarding

RE: [PATCH 3/4] Drivers: hv: balloon: get rid on ol_waitevent

2016-08-10 Thread Alex Ng (LIS)
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, August 5, 2016 3:49 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; Haiyang Zhang ; KY > Srinivasan ; Alex Ng (LIS)

Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread John Stultz
On Wed, Aug 10, 2016 at 1:01 PM, Arjan van de Ven wrote: > On 8/10/2016 12:03 PM, John Stultz wrote: > >> I wasn't entierly sure. I didn't think PR_SET_TIMERSLACK has a >> security hook, but looking again I now see the top-level >> security_task_prctl() check, so maybe not

RE: [PATCH 3/4] Drivers: hv: balloon: get rid on ol_waitevent

2016-08-10 Thread Alex Ng (LIS)
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, August 5, 2016 3:49 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; Haiyang Zhang ; KY > Srinivasan ; Alex Ng (LIS) > Subject: [PATCH 3/4] Drivers: hv: balloon: get rid on

Re: [PATCH] proc: Fix timerslack_ns CAP_SYS_NICE check when adjusting self

2016-08-10 Thread John Stultz
On Wed, Aug 10, 2016 at 1:01 PM, Arjan van de Ven wrote: > On 8/10/2016 12:03 PM, John Stultz wrote: > >> I wasn't entierly sure. I didn't think PR_SET_TIMERSLACK has a >> security hook, but looking again I now see the top-level >> security_task_prctl() check, so maybe not skipping it in this

Re: [PATCH 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-10 Thread Bjorn Andersson
On Wed 10 Aug 12:37 PDT 2016, Suman Anna wrote: > Hi Lee, Bjorn, > > On 08/10/2016 12:40 PM, Bjorn Andersson wrote: > > On Tue 19 Jul 08:49 PDT 2016, Lee Jones wrote: > > > >> - of_rproc_by_index(): look-up and obtain a reference to a rproc > >>using the DT phandle

Re: [PATCH 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-10 Thread Bjorn Andersson
On Wed 10 Aug 12:37 PDT 2016, Suman Anna wrote: > Hi Lee, Bjorn, > > On 08/10/2016 12:40 PM, Bjorn Andersson wrote: > > On Tue 19 Jul 08:49 PDT 2016, Lee Jones wrote: > > > >> - of_rproc_by_index(): look-up and obtain a reference to a rproc > >>using the DT phandle

[PATCH 3/8] hisi_sas: add internal abort to hisi_sas_abort_task()

2016-08-10 Thread John Garry
Execute an internal abort for executing an internal task abort. This is for case of command still being present in host when abort is executed. For a SATA internal abort, we set abort for all tasks associated with the device. Signed-off-by: John Garry ---

[PATCH 7/8] hisi_sas: add TMF success check

2016-08-10 Thread John Garry
When a tmf is issued, various response codes can be returned from the target. For a query tmf the response may be TMF_RESP_FUNC_COMPLETE or TMF_RESP_FUNC_SUCC. Add a condition for TMF_RESP_FUNC_SUCC to hisi_sas_exec_internal_tmf_task(). This affects query tmf, as the result is success the returned

Re: acpi: broken suspend to RAM with v4.7-rc1

2016-08-10 Thread Andrey Skvortsov
On 05 Aug, Zheng, Lv wrote: > Hi, Andrey > > > From: Andrey Skvortsov [mailto:andrej.skvort...@gmail.com] > > Subject: Re: acpi: broken suspend to RAM with v4.7-rc1 > > > > On 24 Jun, Zheng, Lv wrote: > > > Hi, > > > > > > > From: Andrey Skvortsov [mailto:andrej.skvort...@gmail.com] > > > >

[PATCH v6 06/11] mm, compaction: more reliably increase direct compaction priority

2016-08-10 Thread Vlastimil Babka
During reclaim/compaction loop, compaction priority can be increased by the should_compact_retry() function, but the current code is not optimal. Priority is only increased when compaction_failed() is true, which means that compaction has scanned the whole zone. This may not happen even after

[PATCH v6 09/11] mm, compaction: use proper alloc_flags in __compaction_suitable()

2016-08-10 Thread Vlastimil Babka
The __compaction_suitable() function checks the low watermark plus a compact_gap() gap to decide if there's enough free memory to perform compaction. This check uses direct compactor's alloc_flags, but that's wrong, since these flags are not applicable for freepage isolation. For example,

Re: [RESEND PATCH] ARM: tegra: fix erroneous address in dts

2016-08-10 Thread Arnd Bergmann
On Monday, July 18, 2016 11:58:02 AM CEST Thierry Reding wrote: > On Mon, Jul 18, 2016 at 11:46:48AM +0200, Ralf Ramsauer wrote: > > c90bb7b enabled the high speed UARTs of the Jetson TK1. Due to a merge > > quirk, wrong addresses were introduced. Fix it and use the correct > > addresses. > > > >

Re: [Resend][PATCH] x86/power/64: Always create temporary identity mapping correctly

2016-08-10 Thread Jiri Kosina
On Wed, 10 Aug 2016, Thomas Garnier wrote: > What type of machines are you testing it on? What is the memory size? > Processor generation? Mine is Lenovo thinkpad x200s; I think Boris has been testing it on x230s, but not sure whether any of the latest patches didn't actually fix it for him.

Re: [RFC PATCH v7 1/7] Restartable sequences system call

2016-08-10 Thread Mathieu Desnoyers
- On Aug 10, 2016, at 4:43 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Aug 09, 2016 at 08:06:40PM +, Mathieu Desnoyers wrote: >> > Also, I think it would be good to have a comment explaining why this is >> > split in two structures? Don't you rely on the address

[PATCH REBASED v10 0/6] Finally fix watermarks

2016-08-10 Thread Lyude
Rebased version of https://patchwork.freedesktop.org/series/10276/ . No changes Lyude (5): drm/i915/skl: Add support for the SAGV, fix underrun hangs drm/i915/skl: Update plane watermarks atomically during plane updates drm/i915/skl: Ensure pipes with changed wms get added to the state

Re: [PATCH 2/3] dt-bindings: mailbox: Add Amlogic Meson MHU Bindings

2016-08-10 Thread Rob Herring
On Tue, Aug 09, 2016 at 10:52:16AM +0200, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > .../devicetree/bindings/mailbox/meson-mhu.txt | 33 > ++ > 1 file changed, 33 insertions(+) > create mode 100644

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