Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Andrew Donnellan
On 09/05/17 03:57, Daniel Axtens wrote: (ppc people: this does some compile and run time bounds checking on string functions. It's cool - currently it picks up a lot of random things so it will require some more work across the tree, but hopefully it will eventually hit mainline.) Ooh, nice!

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-08 Thread Madhavan Srinivasan
On Monday 08 May 2017 07:42 PM, Daniel Axtens wrote: Hi all, I've had a look at the API as it was a big thing I didn't like in the earlier version. I am much happier with this one. Thanks to mpe for suggesting this. :) Some comments: - I'm no longer subscribed to skiboot but I've had

Re: [PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Justin Forbes
On Mon, May 8, 2017 at 8:50 AM, Horia Geantă wrote: > On 5/8/2017 2:57 PM, Michael Ellerman wrote: >> Horia Geantă writes: >> >>> Makefile.postlink always includes include/config/auto.conf, however >>> this file is not present in a clean kernel tree, causing make to fail: >>> >>> arch/powerpc/Mak

Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Kees Cook
On Mon, May 8, 2017 at 1:50 PM, Daniel Micay wrote: > On Tue, 2017-05-09 at 03:57 +1000, Daniel Axtens wrote: >> Hi Daniel and ppc people, >> >> (ppc people: this does some compile and run time bounds checking on >> string functions. It's cool - currently it picks up a lot of random >> things so i

Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Daniel Micay
On Tue, 2017-05-09 at 03:57 +1000, Daniel Axtens wrote: > Hi Daniel and ppc people, > > (ppc people: this does some compile and run time bounds checking on > string functions. It's cool - currently it picks up a lot of random > things so it will require some more work across the tree, but > hopefu

Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Daniel Axtens
Hi Daniel and ppc people, (ppc people: this does some compile and run time bounds checking on string functions. It's cool - currently it picks up a lot of random things so it will require some more work across the tree, but hopefully it will eventually hit mainline.) I've tested this on ppc with

Re: [PATCH] powerpc/64e: Don't place the stack beyond TASK_SIZE

2017-05-08 Thread Scott Wood
On Tue, 2017-05-09 at 00:09 +1000, Michael Ellerman wrote: > Scott Wood writes: > > > Commit f4ea6dcb08ea ("powerpc/mm: Enable mappings above 128TB") increased > > the task size on book3s, and introduced a mechanism to dynamically > > control whether a task uses these larger addresses.  While the

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-08 Thread Daniel Axtens
Hi all, I've had a look at the API as it was a big thing I didn't like in the earlier version. I am much happier with this one. Some comments: - I'm no longer subscribed to skiboot but I've had a look at the patches on that side: * in patch 9 should opal_imc_counters_init return someth

Re: [PATCH] powerpc/64e: Don't place the stack beyond TASK_SIZE

2017-05-08 Thread Michael Ellerman
Scott Wood writes: > Commit f4ea6dcb08ea ("powerpc/mm: Enable mappings above 128TB") increased > the task size on book3s, and introduced a mechanism to dynamically > control whether a task uses these larger addresses. While the change to > the task size itself was ifdef-protected to only apply o

Re: [linux-next][bock] WARNING: CPU: 22 PID: 0 at block/blk-core.c:2655 .blk_update_request+0x4f8/0x500

2017-05-08 Thread Jens Axboe
On 05/08/2017 01:13 AM, Abdul Haleem wrote: > On Fri, 2017-05-05 at 08:02 -0600, Jens Axboe wrote: >> On 05/05/2017 12:25 AM, Abdul Haleem wrote: >>> Hi, >>> >>> 4.11.0 Linus mainline booted with Warnings on PowerPC. >>> >>> We did not see this on next-20170407 but on next-20170410 and later. >> >>

Re: [PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Horia Geantă
On 5/8/2017 2:57 PM, Michael Ellerman wrote: > Horia Geantă writes: > >> Makefile.postlink always includes include/config/auto.conf, however >> this file is not present in a clean kernel tree, causing make to fail: >> >> arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such file or

Re: [PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Michael Ellerman
Horia Geantă writes: > Makefile.postlink always includes include/config/auto.conf, however > this file is not present in a clean kernel tree, causing make to fail: > > arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such file or > directory > make[1]: *** No rule to make target `

Re: [v3 9/9] s390: teach platforms not to zero struct pages memory

2017-05-08 Thread Heiko Carstens
On Fri, May 05, 2017 at 01:03:16PM -0400, Pavel Tatashin wrote: > If we are using deferred struct page initialization feature, most of > "struct page"es are getting initialized after other CPUs are started, and > hence we are benefiting from doing this job in parallel. However, we are > still zeroi

[PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Horia Geantă
Makefile.postlink always includes include/config/auto.conf, however this file is not present in a clean kernel tree, causing make to fail: arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such file or directory make[1]: *** No rule to make target `include/config/auto.conf'. Stop.

Re: [linux-next][bock] WARNING: CPU: 22 PID: 0 at block/blk-core.c:2655 .blk_update_request+0x4f8/0x500

2017-05-08 Thread Abdul Haleem
On Fri, 2017-05-05 at 08:02 -0600, Jens Axboe wrote: > On 05/05/2017 12:25 AM, Abdul Haleem wrote: > > Hi, > > > > 4.11.0 Linus mainline booted with Warnings on PowerPC. > > > > We did not see this on next-20170407 but on next-20170410 and later. > > Have you tried current Linus -git? Both of th

[PATCH 2/2] selftests/powerpc: Test TM and VMX register state

2017-05-08 Thread Michael Neuling
Test that the VMX checkpointed register state is maintained when a VMX unavailable exception is taken during a transaction. Thanks to Breno Leitao and Gustavo Bueno Romero for the original test this is based heavily on. Signed-off-by: Michael Neuling --- tools/testing/selftests/powerpc/tm/Mak

[PATCH 1/2] powerpc/tm: Fix FP and VMX register corruption

2017-05-08 Thread Michael Neuling
In this commit: commit dc3106690b20305c3df06b42456fe386dd632ac9 Author: Cyril Bur powerpc: tm: Always use fp_state and vr_state to store live registers A section of code was removed that copied the current state to checkpointed state. This should not have been removed. When an FP unavaila