[GIT PULL] ACPI regression fixes for v4.7

2016-07-12 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-urgent-4.7 to receive ACPI regression fixes for v4.7 with top-most commit d0420d20bacd1eef9f75a769ad48befd383ad190 Merge branches 'acpica-fixes' and 'acpi-ec-fixes' on top of commit

[PATCH 46/66] perf tools: Fallback to reading sysfs to get cacheline size

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo On systems where sysconf(_SC_LEVEL1_DCACHE_LINESIZE) is not available, such as musl LIBC and Android's bionic libc. Cc: Adrian Hunter Cc: Chris Phlipot Cc: David Ahern Cc: Jiri

[PATCH 41/66] perf tools: Introduce weak alternative to sched_getcpu()

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Which is just a wrapper for sys_getcpu and is not present in at least musl libc. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan

[PATCH 03/66] perf hists: Introduce hists__add_entry_ops function

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Introducing hists__add_entry_ops function to allow using the allocation callbacks externally. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra

[PATCH 07/66] perf trace beauty msg_flags: Remove MSG_TRYHARD

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It is the same as MSG_DONTROUTE and is only defined together with _GNU_SOURCE. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan

[PATCH 45/66] tools: Copy the header files needed by perf tools

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Those kernel files were being directly accessed, which we're not allowing anymore to avoid that changes in the kernel side break tooling. Warn if these copies drift from the original files. Cc: Adrian Hunter Cc:

[PATCH 34/66] perf tools: event.h needs asm/perf_regs.h

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As it uses PERF_REGS_MAX, fix it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 1/4] Documentation: dt: iio: at91_adc: fix trigger node names

2016-07-12 Thread Alexandre Belloni
The trigger doesn't need the reg property. When it is not defined, the node name doesn't need a unit-address. Remove them from the example. Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/iio/adc/at91_adc.txt | 12 1 file

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-12 Thread Andy Lutomirski
On Tue, Jul 12, 2016 at 10:12 AM, Dave Hansen wrote: > On 07/12/2016 09:32 AM, Andy Lutomirski wrote: >> I think it's more or less impossible to get sensible behavior passing >> pkey != 0 data to legacy functions. If you call: >> >> void frob(struct foo *p); >> >> If frob

[PATCH 31/66] tools lib: Guard the strlcpy() header with __GLIBC__

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Better to whitelist it for libraries that require it (glibc) than blacklist it with the ones that don't (uclibc, musl libc, etc). Cc: Adrian Hunter Cc: Alexey Brodkin Cc: David Ahern

[GIT PULL 00/66] perf/core improvements and fixes

2016-07-12 Thread Arnaldo Carvalho de Melo
44530d588e142a96cf0cd345a7cb8911c4f88720: Revert "perf/x86/intel, watchdog: Switch NMI watchdog to ref cycles on x86" (2016-07-10 20:58:36 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160712 for you to fetch

[PATCH 39/66] perf test bpf: Use epoll_wait() instead of epoll_pwait()

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The prototype for epoll_wait() is available in older distros, so use it instead of epoll_pwait() (removing the last NULL arg, the sigmask, makes it the same thing anyway) to avoid breaking the build. Cc: Adrian Hunter Cc:

[PATCH 36/66] perf bench: Copy kernel files needed to build mem{cpy,set} x86_64 benchmarks

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We can't access kernel files directly from tools/, so copy the required bits, and make sure that we detect when the original files, in the kernel, gets modified. Cc: Adrian Hunter Cc: David Ahern Cc:

Re: dm stripe: add DAX support

2016-07-12 Thread Kani, Toshimitsu
On Fri, 2016-06-24 at 14:29 -0400, Mike Snitzer wrote: >  > BTW, if in your testing you could evaluate/quantify any extra overhead > from DM that'd be useful to share.  It could be there are bottlenecks > that need to be fixed, etc. Here are some results from fio benchmark.  The test is

mmotm 2016-07-12-15-56 uploaded

2016-07-12 Thread akpm
The mm-of-the-moment snapshot 2016-07-12-15-56 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH 42/66] perf tools: Remove unneeded magic.h include from util.h

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not used anymore, IIRC it was for useless PROC_FS_MAGIC procfs checks, but those are long gone. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim

[PATCH 26/66] perf tools: Remove needless includes from cache.h

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The cache.h header doesn't use any of the definitions in some of the headers it includes, ditch them and fix the fallout, where files were getting stuff they needed just because they were including it, sometimes not using what it really exports at

[PATCH 01/66] perf hists: Introduce hist_entry__init function

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move the 'struct hist_entry' initialization code to a separate function. It'll be useful and more clear for the following patches that introduce allocation callbacks. Releasing the hist_entry object in hist_entry__new function (where it's allocated) rather than

[PATCH 43/66] perf trace: Remove unused sys/ptrace.h include

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 3/4] Documentation: dt: usb: atmel-usb: add unit-address

2016-07-12 Thread Alexandre Belloni
The endpoint nodes have a reg property, they also need a unit-address. Add them in the example. Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCH 4/4] ARM: dts: at91: Fix USB endpoint nodes

2016-07-12 Thread Alexandre Belloni
Endpoint nodes have a reg property. Add their mandatory unit-address. This solves: Warning (unit_address_vs_reg): Node /ahb/gadget@0040/ep0 has a reg or ranges property, but no unit name Warning (unit_address_vs_reg): Node /ahb/gadget@0040/ep1 has a reg or ranges property, but no unit

[PATCH 09/66] perf trace beauty open_flags: Add missing headers

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Those beautifiers need to make sure they include what they reference, as changes in builtin-trace.c may end up removing needed stuff, like when undefining _GNU_SOURCE. Cc: Adrian Hunter Cc: David Ahern

[PATCH 59/66] perf python: Init perf_event_attr::size in perf.evsel constructor

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently 0 is passed as perf_event_attr::size, which could block usage of new features. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 05/66] perf annotate: Introduce --stdio-color to setup the color output mode selection

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo 'perf annotate --stdio' will colorize entries with most hits and possibly some other aspects of its output, but those colors gets suppressed if we redirect the output to a non-tty, allow keeping the colors by adding a new option, --stdio-color, now

[PATCH 48/66] perf trace beauty seccomp: Remove seccomp.h include

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo All we need from it is already conditionally defined, and this header file is not present in older systems, so ditch it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung

Re: Minor PKRU bug?

2016-07-12 Thread Dave Hansen
On 07/12/2016 03:55 PM, H. Peter Anvin wrote: > On 07/12/16 08:32, Dave Hansen wrote: >> On 07/09/2016 02:27 PM, Andy Lutomirski wrote: >>> is_prefetch in arch/x86/mm/fault.c can be called on a user address >>> that's not readable due to PKRU. This could break it. You might need >>> to add a

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-12 Thread Shayan Pooya
> Yep. Bug still not fixed in upstream. In our kernel I've plugged it with > this: > > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -2808,8 +2808,9 @@ asmlinkage __visible void schedule_tail(struct > task_struct *prev) > balance_callback(rq); > preempt_enable(); > > -

Re: [PATCH v5 18/32] signal: Consolidate {TS,TLF}_RESTORE_SIGMASK code

2016-07-12 Thread Andy Lutomirski
On Tue, Jul 12, 2016 at 4:57 AM, Brian Gerst wrote: > On Mon, Jul 11, 2016 at 4:53 PM, Andy Lutomirski wrote: >> In general, there's no need for the "restore sigmask" flag to live in >> ti->flags. alpha, ia64, microblaze, powerpc, sh, sparc (64-bit only), >>

[PATCH 10/66] perf trace beauty mmap: Add more conditional defines

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Don't handle some flags only if they have its defines in headers at time of building, define what is missing. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim

[PATCH 20/66] perf strbuf: Add missing headers

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were only indirectly and by luck getting types, etc needed for this file, fix it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-12 Thread Petr Tesarik
On Tue, 12 Jul 2016 13:25:11 -0300 Thiago Jung Bauermann wrote: > Hi Eric, > > I'm trying to understand your concerns leading to your nack. I hope you > don't mind expanding your thoughts on them a bit. > > Am Dienstag, 12 Juli 2016, 08:25:48 schrieb Eric W.

Re: [PATCH 1/1] net: nps_enet: Fix PCS reset

2016-07-12 Thread David Miller
From: Elad Kanfi Date: Tue, 12 Jul 2016 16:01:11 +0300 > From: Noam Camus > > During commit b54b8c2d6e3c > ("net: ezchip: adapt driver to little endian architecture") > adapting to little endian architecture, > zeroing of controller was left out. >

[PATCH 01/32] x86/intel_rdt: Cache Allocation documentation

2016-07-12 Thread Fenghua Yu
From: Vikas Shivappa Adds a description of Cache allocation technology, overview of kernel framework implementation. The framework has APIs to manage class of service, capacity bitmask(CBM), scheduling support and other architecture specific implementation. The

[PATCH 07/32] x86/intel_rdt: Intel haswell Cache Allocation enumeration

2016-07-12 Thread Fenghua Yu
From: Vikas Shivappa This patch is specific to Intel haswell (hsw) server SKUs. Cache Allocation on hsw server needs to be enumerated separately as HSW does not have support for CPUID enumeration for Cache Allocation. This patch does a probe by writing a CLOSid

Re: [PATCH] capabilities: audit capability use

2016-07-12 Thread Paul Moore
On Tue, Jul 12, 2016 at 9:16 AM, Eric W. Biederman wrote: > Not logging capabilities outside of the initial user namespace is > certainly the conservative place to start, and what selinux does. FYI, we added some basic userns capability smarts to SELinux in Linux 4.7.

[PATCH] device-tree: aqp8064.dtsi: Remove usb phy dr_mode = "host"

2016-07-12 Thread John Stultz
Most 8064 devices have micro-usb ports for phy1, so setting the dr_mode to host here seems incorrect. Leaving it unspecified should default to otg, and then any boards that wish to specify something else, can override it in their dts file. Cc: Rob Herring Cc: Andy Gross

Re: [PATCH] thunderbolt: Add support for INTEL_FALCON_RIDGE_2C controller

2016-07-12 Thread Lukas Wunner
On Tue, Jul 12, 2016 at 11:13:24PM +0200, Lukas Wunner wrote: > On Tue, Jul 12, 2016 at 09:38:51PM +0200, Xavier Gnata wrote: > > Add support to INTEL_FALCON_RIDGE_2C controller and corresponding quirk to > > support suspend/resume. > > Tested against 4.7 master on a MacBook Air 11" 2015 [...] >

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-12 Thread Eric W. Biederman
Petr Tesarik writes: > On Tue, 12 Jul 2016 13:25:11 -0300 > Thiago Jung Bauermann wrote: > >> Hi Eric, >> >> I'm trying to understand your concerns leading to your nack. I hope you >> don't mind expanding your thoughts on them a bit. >> >> Am

Re: [PATCH v2 00/13] Runtime PM for Thunderbolt on Macs

2016-07-12 Thread Andreas Noever
On Sat, Jul 9, 2016 at 7:23 AM, Greg KH wrote: > On Thu, Jul 07, 2016 at 07:39:12PM +0200, Andreas Noever wrote: >> On Tue, Jun 14, 2016 at 10:22 PM, Bjorn Helgaas wrote: >> > On Tue, Jun 14, 2016 at 09:14:27PM +0200, Andreas Noever wrote: >> >> On

[PATCH 10/10] binfmt_flat: allow compressed flat binary format to work on MMU systems

2016-07-12 Thread Nicolas Pitre
Let's take the simple and obvious approach by decompressing the binary into a kernel buffer and then copying it to user space. Those who are looking for more performance on a MMU system are unlikely to choose this executable format anyway. Signed-off-by: Nicolas Pitre ---

[PATCH 04/10] binfmt_flat: clean up create_flat_tables() and stack accesses

2016-07-12 Thread Nicolas Pitre
In addition to better code clarity, this brings proper usage of user memory accessors everywhere the stack is touched. This is essential for making this work on MMU systems. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 117

[PATCH 02/10] elf_fdpic_transfer_args_to_stack(): make it generic

2016-07-12 Thread Nicolas Pitre
This copying of arguments and environment is common to both NOMMU binary formats we support. Let's make the elf_fdpic version available to the flat format as well. While at it, improve the code a bit not to copy below the actual data area. Signed-off-by: Nicolas Pitre ---

Loan Offer

2016-07-12 Thread Quick Loans
Instant cash Loan with same day payout on all kinds of Loan are available at Quick Financial Home were loan is offered at 2% per annul. Email: quickloa...@foxmail.com

[PATCH 03/10] binfmt_flat: use generic transfer_args_to_stack()

2016-07-12 Thread Nicolas Pitre
This gets rid of the rather ugly, open coded and suboptimal copy code. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index 085059d879..64feb873f0

[PATCH 06/10] binfmt_flat: use proper user space accessors with old relocs code

2016-07-12 Thread Nicolas Pitre
Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index fc0ee3ed5d..c85f8f1239 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -394,38

[PATCH 01/10] binfmt_flat: assorted cleanups

2016-07-12 Thread Nicolas Pitre
Remove excessive casts, do some code grouping, etc. No functional changes. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 118 ++- 1 file changed, 56 insertions(+), 62 deletions(-) diff --git a/fs/binfmt_flat.c

[PATCH 07/10] binfmt_flat: use clear_user() rather than memset() to clear .bss

2016-07-12 Thread Nicolas Pitre
This is needed on systems with a MMU. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index c85f8f1239..e981e66bb5 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c

Re: [PATCH] thunderbolt: fix spelling mistake: "missmatch" -> "mismatch"

2016-07-12 Thread Andreas Noever
On Tue, Jun 28, 2016 at 2:19 PM, Colin King wrote: > From: Colin Ian King > > trivial fix to spelling mistake in warning message > > Signed-off-by: Colin Ian King > --- > drivers/thunderbolt/eeprom.c | 2 +- > 1 file

[PATCH 09/10] binfmt_flat: add MMU-specific support

2016-07-12 Thread Nicolas Pitre
Not much else to do at this point. Signed-off-by: Nicolas Pitre --- fs/Kconfig.binfmt | 3 ++- fs/binfmt_flat.c | 16 +--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt index 72c03354c1..1faba6a755 100644 ---

[PATCH 00/10] allow BFLT executables on systems with a MMU

2016-07-12 Thread Nicolas Pitre
This series provides the necessary changes to allow "flat" executable binaries meant for no-MMU systems to actually run on systems with a MMU. *Why?* Because developing and testing natively on a large system with lots of RAM makes it so much more convenient to use all the existing profiling

[PATCH 08/10] binfmt_flat: update libraries' data segment pointer with userspace accessors

2016-07-12 Thread Nicolas Pitre
This is needed on systems with a MMU. This also gets rid of the strangest C code I've seen lateli i.e. an integer indexed with a pointer value within square brackets. That really looked backwards. Signed-off-by: Nicolas Pitre --- fs/binfmt_flat.c | 19 +-- 1

[PATCH 05/10] binfmt_flat: use proper user space accessors with relocs processing code

2016-07-12 Thread Nicolas Pitre
Relocs are fixed up in place in user space memory. The appropriate accessors are required for this code to work with an active MMU. Only those architectures with trivial architecture-specific handlers are covered by this patch. Incidentally, those NOMMU architectures that can also have a MMU are

[PATCH 04/32] x86/intel_rdt: Add L3 cache capacity bitmask management

2016-07-12 Thread Fenghua Yu
From: Vikas Shivappa This patch adds different APIs to manage the L3 cache capacity bitmask. The capacity bit mask(CBM) needs to have only contiguous bits set. The current implementation has a global CBM for each class of service id. There are APIs added to update

Re: [PATCH 2/2] fpga-manager: Add Socfpga Arria10 support

2016-07-12 Thread Russell King - ARM Linux
On Tue, Jul 12, 2016 at 02:31:05PM -0700, Moritz Fischer wrote: > On Tue, Jul 12, 2016 at 12:07 PM, Alan Tull > wrote: > > + priv->clk = devm_clk_get(dev, NULL); > > + if (IS_ERR(priv->clk)) { > > + dev_err(dev, "no clock specified\n"); > >

[PATCH v2 1/5] mmu: extend the is_present check to 32 bits

2016-07-12 Thread Bandan Das
This is safe because this function is called on host controlled page table and non-present/non-MMIO sptes never use bits 1..31. For the EPT case, this ensures that cases where only the execute bit is set is marked valid. Signed-off-by: Bandan Das --- arch/x86/kvm/mmu.c | 2 +-

[PATCH 05/32] x86/intel_rdt: Implement scheduling support for Intel RDT

2016-07-12 Thread Fenghua Yu
From: Vikas Shivappa Adds support for IA32_PQR_ASSOC MSR writes during task scheduling. For Cache Allocation, MSR write would let the task fill in the cache 'subset' represented by the task's capacity bit mask. The high 32 bits in the per processor MSR

[PATCH v2 3/5] mmu: remove is_present_gpte()

2016-07-12 Thread Bandan Das
We have two versions of the above function. To prevent confusion and bugs in the future, remove the non-FNAME version entirely and replace all calls with the actual check. Signed-off-by: Bandan Das --- arch/x86/kvm/mmu.c | 2 +- arch/x86/kvm/mmu.h | 5 -

Re: [PATCH] thunderbolt: Add support for INTEL_FALCON_RIDGE_2C controller

2016-07-12 Thread Andreas Noever
On Tue, Jul 12, 2016 at 11:13 PM, Lukas Wunner wrote: > On Tue, Jul 12, 2016 at 09:38:51PM +0200, Xavier Gnata wrote: >> Add support to INTEL_FALCON_RIDGE_2C controller and corresponding quirk to >> support suspend/resume. >> Tested against 4.7 master on a MacBook Air 11" 2015 >

[PATCH v2 0/5] Add support for EPT execute only for nested hypervisors

2016-07-12 Thread Bandan Das
v1 of this series posted at https://lkml.org/lkml/2016/6/28/7 Changes since v1: - 1/5 : modify is_shadow_present_pte to check against 0x Reasoning provided in commit message. - 2/5 : Removed 2/5 from v1 since kvm doesn't use execute only. 3/5 from v1 is now 2/5. Introduce

[PATCH 00/32] Enable Intel Resource Allocation in Resource Director Technology

2016-07-12 Thread Fenghua Yu
From: Fenghua Yu L3 cache allocation allows per task control over which areas of the last level cache are available for allocation. It is the first resource that can be controlled as part of Intel Resource Director Technology (RDT). This patch series creates a framework

Re: [PATCH v2 16/17] x86/insn: remove pcommit

2016-07-12 Thread Dan Williams
On Tue, Jul 12, 2016 at 7:57 AM, Peter Zijlstra wrote: > On Sat, Jul 09, 2016 at 08:25:54PM -0700, Dan Williams wrote: >> The pcommit instruction is being deprecated in favor of either ADR >> (asynchronous DRAM refresh: flush-on-power-fail) at the platform level, or >>

[PATCH v2 5/5] vmx: advertise support for ept execute only

2016-07-12 Thread Bandan Das
MMU now knows about execute only mappings, so advertise the feature to L1 hypervisors Signed-off-by: Bandan Das --- arch/x86/kvm/vmx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index f73b5dc..2c49355f 100644 ---

[PATCH v2 2/5] mmu: don't set the present bit unconditionally

2016-07-12 Thread Bandan Das
To support execute only mappings on behalf of L1 hypervisors, we teach set_spte() to honor L1's valid XWR bits. This is only if host supports EPT execute only. Reuse ACC_USER_MASK to signify if the L1 hypervisor has the R bit set. Add a new variable "shadow_present_mask" that is set for non EPT

Re: [PATCH v2 0/8] thunderbolt: Introducing Thunderbolt(TM) networking

2016-07-12 Thread Andreas Noever
On Tue, Jul 12, 2016 at 12:50 PM, Levy, Amir (Jer) wrote: > On Wed, Jun 29 2016, 11:35 AM, Levy, Amir (Jer) wrote: >> This is version 2 of Thunderbolt(TM) driver for non-Apple hardware. >> >> Changes since v1: >> - Separation to 2 modules. >> - Moved ICM specific

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-12 Thread Russell King - ARM Linux
On Tue, Jul 12, 2016 at 10:58:05PM +0200, Petr Tesarik wrote: > I'm not an expert on DTB, so I can't provide an example of code > execution, but you have already mentioned the /chosen/linux,stdout-path > property. If an attacker redirects the bootloader to an insecure > console, they may get

Re: [PATCH v2] clk: imx7d: do not set parent of ethernet time/ref clocks

2016-07-12 Thread Fabio Estevam
On Tue, Jul 12, 2016 at 7:14 PM, Michael Turquette wrote: > It should show up now on the mirror. Yes, it is there now. Thanks!

[PATCH v2 4/5] mmu: change unconditional setting of the u bit in fault bitmap

2016-07-12 Thread Bandan Das
For the nested EPT case, we assume that the read bit (u) is always set since we used to unconditionally set it in set_spte(). Modify it to only be set when host ept execute only support isn't present. Signed-off-by: Bandan Das --- arch/x86/kvm/mmu.c | 7 --- 1 file changed,

[PATCH 08/66] perf trace beauty flock: Add missing fcntl.h include

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Those beautifiers need to make sure they include what they reference, as changes in builtin-trace.c may end up removing needed stuff, like when undefining _GNU_SOURCE. Cc: Adrian Hunter Cc: David Ahern

[PATCH 38/66] tools: Copy uapi/asm/perf_regs.h from the kernel

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To allow the build to complete on older systems, where those files are either not uptodate, lacking some recent additions or not present at all. And check if the copy drifts from the kernel. Cc: Adrian Hunter Cc: David

[PATCH 44/66] kvm arm/arm64: Remove trailing whitespace from headers

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Noticed while making a copy of these files to tools/ where those kernel files were being directly accessed, which we're not allowing anymore to avoid that changes in the kernel side break tooling. Cc: Christoffer Dall

[PATCH 64/66] perf python: Add support to resolve tracepoint fields

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding tp_getattro callback for sample event. It resolves tracepoint fields in runtime. It's now possible to access tracepoint fields in normal fashion like hardcoded ones (see the example in the next patch). Reported-and-Tested-by: Jiri Pirko

[PATCH 22/66] perf tests cpumap: Add missing headers

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It was getting all sort of needed stuff by sheer luck, via indirect includes, fix it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang

[PATCH 61/66] perf python: Put perf.event objects into dictionary

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Make perf.event object parts of the perf module dictionary so we can address them by name. The following objects/names are added: mmap_event lost_event comm_event task_event throttle_event task_event read_event sample_event switch_event We

[PATCH 50/66] perf script python: Silence -Werror=maybe-uninitialized on gcc 5.3.0

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Sounds like a compiler bug, but to silence it, initialize those variables to NULL. Noticed on: Target: x86_64-alpine-linux-musl Configured with: /home/buildozer/aports/main/gcc/src/gcc-5.3.0/configure --prefix=/usr --mandir=/usr/share/man

[PATCH 66/66] tools lib traceevent: Add filter on task CPU id

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Steven Rostedt Add a 'CPU' special field to allow the filter in trace-cmd report to filter on the task's CPU. By adding a special field 'CPU' (all caps) the user can now filter out tasks based on which CPU they are on. This is useful when filtering out (or in) a bunch

[PATCH 57/66] perf evlist: Make event2evsel public

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa It will be used outside of evlist.c object in folowing patches. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 18/66] perf bench: Disentangle headers

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We should try avoiding that perf.h header, it includes way too much stuff, making it difficult to use things like setting _GNU_SOURCE only on a small set of headers. Cc: Adrian Hunter Cc: David Ahern

[PATCH net-next 1/3] perf, events: add non-linear data support for raw records

2016-07-12 Thread Daniel Borkmann
This patch adds support for non-linear data on raw records. It means that for such data, the newly introduced __output_custom() helper will be used instead of __output_copy(). __output_custom() will invoke whatever custom callback is passed in via struct perf_raw_record_frag to extract the data

Re: [PATCH v2 1/3] Add the initify gcc plugin

2016-07-12 Thread Kees Cook
On Tue, Jul 12, 2016 at 6:08 PM, Russell King - ARM Linux wrote: > On Tue, Jul 12, 2016 at 03:45:56PM -0400, Kees Cook wrote: >> On Mon, Jul 4, 2016 at 7:40 PM, Emese Revfy wrote: >> > If a function is called by __init and __exit functions as well then

[PATCH 54/66] perf intel-pt-decoder: Avoid checking code drift on busibox's diff

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo That doesn't have -I to match lines. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 1/4] ARM: dts: at91: sama5d3_xplained: fix regulator name

2016-07-12 Thread Alexandre Belloni
vcc_mmc0_reg is a fixed regulator and doesn't need a reg property. Remove its unit-address. Solves: Warning (unit_address_vs_reg): Node /fixedregulator@0 has a unit name, but no reg property Signed-off-by: Alexandre Belloni ---

[PATCH 60/66] perf python: Fix pyrf_evlist__read_on_cpu event consuming

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We can't consume the event before parsing it. Under heavy load we could get caught by kernel writer overwriting the event we're trying to parse. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim

[PATCH 2/4] ARM: dts: at91: sama5d4_xplained: fix regulator names

2016-07-12 Thread Alexandre Belloni
vcc_3v3_reg and vcc_mmc1_reg are fixed regulators and don't need a reg property. Remove their unit-address. Solves: Warning (unit_address_vs_reg): Node /fixedregulator@0 has a unit name, but no reg property Warning (unit_address_vs_reg): Node /fixedregulator@1 has a unit name, but no reg

[PATCH 63/66] perf python: Add struct evsel into struct pyrf_event

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa To be able to find out event configuration info during sample parsing. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH net-next 0/3] BPF event output helper improvements

2016-07-12 Thread Daniel Borkmann
This set adds improvements to the BPF event output helper to support non-linear data sampling, here specifically, for skb context. For details please see individual patches. The set is based against net-next tree. Thanks a lot! Daniel Borkmann (3): perf, events: add non-linear data support for

[PATCH 06/66] perf report: Introduce --stdio-color to setup the color output mode selection

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo 'perf report --stdio' will colorize entries with most hits and possibly some other aspects of its output, but those colors gets suppressed if we redirect the output to a non-tty, allow keeping the colors by adding a new option, --stdio-color, now

[PATCH 21/66] perf quote: Disentangle headers

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No need to include stdio.h from quote.h, also forward declare strbuf. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan

[PATCH 12/66] perf trace beauty open_flags: Add more conditional defines

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Don't handle some flags only if they have its defines in headers at time of building, define what is missing. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim

[PATCH 14/66] perf bench: Add missing pthread.h include for CPU_*() macros

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Davidlohr Bueso Cc: Hitoshi Mitake Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 13/66] tools: Introduce str_error_r()

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The tools so far have been using the strerror_r() GNU variant, that returns a string, be it the buffer passed or something else. But that, besides being tricky in cases where we expect that the function using strerror_r() returns the error

[PATCH 51/66] tools: Copy the bitsperlong.h files from the kernel

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We use it in bitops/__ffs.h and bitops/atomic.h, that we also got from the kernel, but were getting it from either newer systems that carry it in /usr/include, or from the kernel sources, that we decided not to touch from tools/ code. Fix it. Cc:

[PATCH 19/66] perf tools: Move syscall number fallbacks from perf-sys.h to tools/arch/x86/include/asm/

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And remove the empty tools/arch/x86/include/asm/unistd_{32,64}.h files introduced by eae7a755ee81 ("perf tools, x86: Build perf on older user-space as well"). This way we get closer to mirroring the kernel for cases where __NR_ can't be found for

[PATCH 56/66] perf symbols: Add Rust demangling

2016-07-12 Thread Arnaldo Carvalho de Melo
From: David Tolnay Rust demangling is another step after bfd demangling. Add a diagnosis to identify mangled Rust symbols based on the hash that the Rust mangler appends as the last path component, as well as other characteristics. Add a demangler to reconstruct the original

[PATCH net-next 2/3] bpf, perf: split bpf_perf_event_output

2016-07-12 Thread Daniel Borkmann
Split the bpf_perf_event_output() helper as a preparation into two parts. The newly bpf_perf_event_output() will prepare the raw record itself and test for unknown flags from BPF trace context, where the __bpf_perf_event_output() does the core work and will be reused later as well. Signed-off-by:

[PATCH net-next 3/3] bpf: avoid stack copy and use skb ctx for event output

2016-07-12 Thread Daniel Borkmann
This work improves bpf_skb_event_output() helper in two ways, i) it avoids that users need to unnecessary extract sampled skb data to stack first via bpf_skb_load_bytes() and then copy once again into the ring buffer slot, and ii) it avoids that only portions can be sampled with

[PATCH 4/4] ARM: dts: at91: sama5d4_ma5d4evk: fix regulator names

2016-07-12 Thread Alexandre Belloni
vcc_mmc1_reg is a fixed regulators and doesn't need a reg property. Remove its unit-address. Solves: Warning (unit_address_vs_reg): Node /fixedregulator@2 has a unit name, but no reg property Signed-off-by: Alexandre Belloni --- Cc: Marek Vasut

[PATCH 17/66] perf tests openat-syscall-tp-fields: Add some conditional defines

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo These were only defined if _GNU_SOURCE was set in older glibc versions, check that and provide the defines in such cases. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung

[PATCH 16/66] perf trace: Add conditional define for AT_FDCWD

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This one was only defined if _GNU_SOURCE was set in older glibc versions, check that and provide the define in such cases. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc:

[PATCH 29/66] tools lib traceevent: Use str_error_r()

2016-07-12 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To make it portable to non-glibc systems, that follow the XSI variant instead of the GNU specific one that gets in place when _GNU_SOURCE is defined. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa

Re: Minor PKRU bug?

2016-07-12 Thread Andy Lutomirski
On Tue, Jul 12, 2016 at 3:55 PM, H. Peter Anvin wrote: > On 07/12/16 08:32, Dave Hansen wrote: >> On 07/09/2016 02:27 PM, Andy Lutomirski wrote: >>> is_prefetch in arch/x86/mm/fault.c can be called on a user address >>> that's not readable due to PKRU. This could break it. You

  1   2   3   4   5   6   7   8   9   10   >