[PATCH v2 02/18] block_dev: Check permissions towards block device inode when mounting

2015-12-07 Thread Seth Forshee
Unprivileged users should not be able to mount block devices when they lack sufficient privileges towards the block device inode. Update blkdev_get_by_path() to validate that the user has the required access to the inode at the specified path. The check will be skipped for CAP_SYS_ADMIN, so privile

[PATCHv6 4/7] x86-pci: allow pci domain specific dma ops

2015-12-07 Thread Keith Busch
New x86 pci h/w will require dma operations specific to that domain. This patch allows those domains to register their operations, and sets devices as they are discovere3d in that domain to use them. Signed-off-by: Keith Busch --- arch/x86/include/asm/device.h | 10 ++ arch/x86/pci/commo

[PATCH v2 06/18] Smack: Handle labels consistently in untrusted mounts

2015-12-07 Thread Seth Forshee
The SMACK64, SMACK64EXEC, and SMACK64MMAP labels are all handled differently in untrusted mounts. This is confusing and potentically problematic. Change this to handle them all the same way that SMACK64 is currently handled; that is, read the label from disk and check it at use time. For SMACK64 an

[PATCHv6 2/7] pci: child bus alloc fix on constrained resource

2015-12-07 Thread Keith Busch
Does not allocate a child bus if the new bus number does not fit in the parent's bus resource window. Signed-off-by: Keith Busch --- drivers/pci/probe.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index edb1984..6e29f7a 100644 --- a/drivers

[PATCHv6 5/7] x86/pci: Initial commit for new VMD device driver

2015-12-07 Thread Keith Busch
The Intel Volume Management Device (VMD) is an integrated endpoint on the platform's PCIe root complex that acts as a host bridge to a secondary PCIe domain. BIOS can reassign one or more root ports to appear within a VMD domain instead of the primary domain. The immediate benefit is that additiona

[PATCHv5 7/7] pciutils: Allow 32-bit domains

2015-12-07 Thread Keith Busch
PCI-e segments will continue to use the lower 16 bits as required by ACPI. Special domains may use the full 32-bits. Signed-off-by: Keith Busch --- lib/filter.c |2 +- lib/pci.h|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filter.c b/lib/filter.c index d42

[PATCHv6 6/7] aer_inject: Use 32 bit int type domains

2015-12-07 Thread Keith Busch
New pci device provides additional pci domains that start above what 16 bits can address. Signed-off-by: Keith Busch --- drivers/pci/pcie/aer/aer_inject.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/ae

[PATCHv6 0/7] Driver for new "VMD" device

2015-12-07 Thread Keith Busch
v5 -> v6: Fixed kernel doc. Fixed S-o-B on PATCH 1/7. Added driver power management to save and restoring VMD pci state. Allow VMD domains to be accisble to aer_inject, which requires a minor change to use 32-bit pci domains. Changed child bus resource conflict detection on walking

Re: [PATCH v5 0/5] Add iProc PCIe PAXC and MSI support

2015-12-07 Thread Bjorn Helgaas
On Mon, Dec 07, 2015 at 12:32:03PM -0800, Florian Fainelli wrote: > On 07/12/15 09:01, Bjorn Helgaas wrote: > > On Fri, Dec 04, 2015 at 09:34:57AM -0800, Ray Jui wrote: > >> This patch series adds support for the iProc PAXC interface and support for > >> event queue based MSI, integrated in the iPr

Re: [PATCH 2/2] powerpc: tracing: don't trace hcalls on offline CPUs

2015-12-07 Thread Steven Rostedt
On Tue, 08 Dec 2015 08:02:15 +1100 Benjamin Herrenschmidt wrote: > On Mon, 2015-12-07 at 15:52 -0500, Steven Rostedt wrote: > > > + TP_CONDITION(cpu_online(smp_processor_id())), > > > + > > This should probably be some kind of __raw version though, hcalls can > be called in contexts where

[PATCHv6 3/7] Export msi and irq functions for module use

2015-12-07 Thread Keith Busch
Signed-off-by: Keith Busch --- drivers/pci/msi.c | 2 ++ kernel/irq/irqdomain.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 53e4632..0fec654 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -1126,6 +1126,7 @@ struct pci_dev *msi_

[PATCHv6 1/7] msi: Relax msi_domain_alloc() to support parentless MSI irqdomains

2015-12-07 Thread Keith Busch
From: Liu Jiang Previously msi_domain_alloc() assumes MSI irqdomains always have parent irqdomains, but that's not true for the new Intel VMD devices. So relax msi_domain_alloc() to support parentless MSI irqdomains. Signed-off-by: Jiang Liu Signed-off-by: Keith Busch --- kernel/irq/msi.c | 8

[PATCH v2 01/18] block_dev: Support checking inode permissions in lookup_bdev()

2015-12-07 Thread Seth Forshee
When looking up a block device by path no permission check is done to verify that the user has access to the block device inode at the specified path. In some cases it may be necessary to check permissions towards the inode, such as allowing unprivileged users to mount block devices in user namespa

Re: [PATCH v3 net-next 0/4] Further fix for dsa unbinding

2015-12-07 Thread David Miller
From: Neil Armstrong Date: Mon, 7 Dec 2015 13:57:31 +0100 > This serie fixes further issues for DSA dynamic unbinding. > The first patch completely removes the PHY link state polling. > The two following cleans up the dsa state upon removal. > The last patch moves slave destroy code as slave fun

[PATCH v2 11/18] fs: Ensure the mounter of a filesystem is privileged towards its inodes

2015-12-07 Thread Seth Forshee
The mounter of a filesystem should be privileged towards the inodes of that filesystem. Extend the checks in inode_owner_or_capable() and capable_wrt_inode_uidgid() to permit access by users priviliged in the user namespace of the inode's superblock. Signed-off-by: Seth Forshee Acked-by: Serge Ha

Re: [PATCH 4.2 000/124] 4.2.7-stable review

2015-12-07 Thread Guenter Roeck
On Mon, Dec 07, 2015 at 09:54:50AM -0500, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.2.7 release. > There are 124 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.

Re: [PATCH 4.3 000/125] 4.3.1-stable review

2015-12-07 Thread Guenter Roeck
On Mon, Dec 07, 2015 at 10:00:13AM -0500, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.3.1 release. > There are 125 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.

Re: [PATCH v2 2/2] workqueue: implement lockup detector

2015-12-07 Thread Don Zickus
On Mon, Dec 07, 2015 at 02:06:17PM -0500, Tejun Heo wrote: > Hello, > > Decoupled the control knobs from softlockup. It's now workqueue > module param which can be updated at runtime. If there's no > objection, I'll push the two patches through wq/for-4.5. Does this still compile correctly with

Re: [PATCH v2 2/2] workqueue: implement lockup detector

2015-12-07 Thread Tejun Heo
On Mon, Dec 07, 2015 at 04:38:16PM -0500, Don Zickus wrote: > On Mon, Dec 07, 2015 at 02:06:17PM -0500, Tejun Heo wrote: > > Hello, > > > > Decoupled the control knobs from softlockup. It's now workqueue > > module param which can be updated at runtime. If there's no > > objection, I'll push the

Re: [PATCH v2 1/1] cxgb3: Convert simple_strtoul to kstrtox

2015-12-07 Thread David Miller
From: LABBE Corentin Date: Mon, 7 Dec 2015 14:11:33 +0100 > the simple_strtoul function is obsolete. This patch replace it by > kstrtox. > > Signed-off-by: LABBE Corentin Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to ma

[PATCH 01/12] selftests/x86: Extend Makefile to allow 64-bit only tests

2015-12-07 Thread Andy Lutomirski
There aren't any yet, but there might be a few some day. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 389701f5994

[PATCH 04/12] x86/syscalls: Remove __SYSCALL_COMMON and __SYSCALL_X32

2015-12-07 Thread Andy Lutomirski
The common/64/x32 distinction has no effect other than determining which kernels actually support the syscall. Move the logic into syscalltbl.sh. Signed-off-by: Andy Lutomirski --- arch/x86/entry/syscall_64.c | 8 arch/x86/entry/syscalls/syscalltbl.sh | 17 -

[PATCH 10/12] x86/entry/64: Migrate the 64-bit syscall slow path to C

2015-12-07 Thread Andy Lutomirski
This is more complicated than the 32-bit and compat cases because it preserves an asm fast path for the case where the callee-saved regs aren't needed in pt_regs and no entry or exit work needs to be done. This appears to slow down fastpath syscalls by no more than one cycle on my Skylake laptop.

[PATCH 09/12] x86/entry/64: Stop using int_ret_from_sys_call in ret_from_fork

2015-12-07 Thread Andy Lutomirski
ret_from_fork is now open-coded and is no longer tangled up with the syscall code. This isn't so bad -- this adds very little code, and IMO the result is much easier to understand. Signed-off-by: Andy Lutomirski --- arch/x86/entry/entry_64.S | 35 +++ 1 file chan

Re: [PATCH 1/2] security: let security modules use PTRACE_MODE_* with bitmasks

2015-12-07 Thread Casey Schaufler
On 12/7/2015 1:25 PM, Jann Horn wrote: It looks like smack and yama weren't aware that the ptrace mode can have flags ORed into it - PTRACE_MODE_NOAUDIT until now, but only for /proc/$pid/stat, and with the PTRACE_MODE_*CREDS patch, all modes have flags ORed into them. Signed-off-by: Jann Horn

Re: [PATCH] ARM: mm: mark section-aligned portion of rodata NX

2015-12-07 Thread Ard Biesheuvel
On 7 December 2015 at 21:54, Kees Cook wrote: > When rodata is large enough that it crosses a section boundary after the > kernel text, mark the rest NX. This is as close to full NX of rodata as > we can get without splitting page tables or doing section alignment via > CONFIG_DEBUG_ALIGN_RODATA.

[PATCH 12/12] x86/entry: Do enter_from_user_mode with IRQs off

2015-12-07 Thread Andy Lutomirski
Now that slow-path syscalls always enter C before enabling interrupts, it's straightforward to do enter_from_user_mode before enabling interrupts rather than doing it as part of entry tracing. With this change, we should finally be able to retire exception_enter. This will also enable optimizatio

[PATCH 11/12] x86/entry/32: Change INT80 to be an interrupt gate

2015-12-07 Thread Andy Lutomirski
I want all of the syscall entries to run with interrupts off so that I can efficiently run context tracking before enabling interrupts. This will regress int $0x80 performance on 32-bit kernels by a couple of cycles. This shouldn't matter much -- int $0x80 is not a fast path. This effectively re

[PATCH 08/12] x86/entry/64: Call all native slow-path syscalls with full pt-regs

2015-12-07 Thread Andy Lutomirski
This removes all of the remaining asm syscall stubs except for stub_ptregs_64. Entries in the main syscall table are now normal C functions. The resulting asm is every bit as ridiculous as it looks. The next few patches will clean it up. This patch is here to let reviewers rest their brains and

Re: [PATCH 4.2 000/124] 4.2.7-stable review

2015-12-07 Thread Kevin Hilman
On Mon, Dec 7, 2015 at 1:36 PM, Guenter Roeck wrote: > On Mon, Dec 07, 2015 at 09:54:50AM -0500, Greg Kroah-Hartman wrote: >> This is the start of the stable review cycle for the 4.2.7 release. >> There are 124 patches in this series, all will be posted as a response >> to this one. If anyone has

[PATCH 07/12] x86/entry/64: Always run ptregs-using syscalls on the slow path

2015-12-07 Thread Andy Lutomirski
64-bit syscalls currently have an optimization in which they are called with partial pt_regs. A small handful require full pt_regs. In the 32-bit and compat cases, I cleaned this up by forcing full pt_regs for all syscalls. The performance hit doesn't really matter. I want to clean up the 64-bi

[PATCH 02/12] selftests/x86: Add check_initial_reg_state

2015-12-07 Thread Andy Lutomirski
This checks that ELF binaries are started with an appropriately blank register state. (There's currently a nasty special case in the entry asm to arrange for this. I'm planning on removing the special case, and this will help make sure I don't break it.) Signed-off-by: Andy Lutomirski --- to

Re: [PATCH part3 v12 00/10] Cleanup platform pci_domain_nr()

2015-12-07 Thread Bjorn Helgaas
On Mon, Jul 20, 2015 at 08:01:08PM +0800, Yijing Wang wrote: > This series is splitted out from previous patchset > "Refine PCI scan interfaces and make generic pci host bridge". > It try to clean up all platform pci_domain_nr(), save domain > in pci_host_bridge, so we could get domain number from

[PATCH 06/12] x86/syscalls: Add syscall entry qualifiers

2015-12-07 Thread Andy Lutomirski
This will let us specify something like sys_xyz/foo instead of sys_xyz in the syscall table, where the foo conveys some information to the C code. The intent is to allow things like sys_execve/ptregs to indicate that sys_execve touches pt_regs. Signed-off-by: Andy Lutomirski --- arch/x86/entry/

[PATCH 03/12] x86/syscalls: Refactor syscalltbl.sh

2015-12-07 Thread Andy Lutomirski
This splits out the code to emit a syscall line. Signed-off-by: Andy Lutomirski --- arch/x86/entry/syscalls/syscalltbl.sh | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/x86/entry/syscalls/syscalltbl.sh b/arch/x86/entry/syscalls/syscalltbl.sh index 0

Re: [PATCH] ARM: mm: mark section-aligned portion of rodata NX

2015-12-07 Thread Kees Cook
On Mon, Dec 7, 2015 at 1:52 PM, Ard Biesheuvel wrote: > On 7 December 2015 at 21:54, Kees Cook wrote: >> When rodata is large enough that it crosses a section boundary after the >> kernel text, mark the rest NX. This is as close to full NX of rodata as >> we can get without splitting page tables

[PATCH 05/12] x86/syscalls: Move compat syscall entry handling into syscalltbl.sh

2015-12-07 Thread Andy Lutomirski
Rather than duplicating the compat entry handling in all consumers of syscalls_BITS.h, handle it directly in syscalltbl.sh. Now we generate entries in syscalls_32.h like: __SYSCALL_I386(5, sys_open) __SYSCALL_I386(5, compat_sys_open) and all of its consumers implicitly get the right entry point.

[PATCH 00/12] x86: Rewrite 64-bit syscall code

2015-12-07 Thread Andy Lutomirski
This is kind of like the 32-bit and compat code, except that I preserved the fast path this time. I was unable to measure any significant performance change on my laptop in the fast path. What do you all think? Andy Lutomirski (12): selftests/x86: Extend Makefile to allow 64-bit only tests s

Re: [PATCH v5 05/11] spi: imx: Add support for loopback for ECSPI controllers

2015-12-07 Thread Anton Bondarenko
On 2015-12-07 10:27, Sascha Hauer wrote: On Sat, Dec 05, 2015 at 05:57:03PM +0100, Anton Bondarenko wrote: Support for ECSPI loopback for IMX51, IMX53 and IMX6Q using TEST register. Signed-off-by: Mohsin Kazmi Signed-off-by: Anton Bondarenko --- drivers/spi/spi-imx.c | 19

Re: [PATCH v9] i40e: Look up MAC address in Open Firmware or IDPROM

2015-12-07 Thread Shannon Nelson
Acked-by: Shannon Nelson wrote: > From: Sowmini Varadhan > Date: Mon, 7 Dec 2015 15:06:34 -0500 > >> This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC >> address in Open Firmware or IDPROM"). >> >> As with that fix, attempt to look up the MAC address in Open Firmware >> on s

Re: snprintf, overlapping destination and source

2015-12-07 Thread Kees Cook
On Sat, Dec 5, 2015 at 12:38 PM, Rasmus Villemoes wrote: > I did a search for code doing > > s[n]printf(buf, "...", ..., buf, ...) > > and found a few instances. They all do it with the format string > beginning with "%s" and buf being passed as the corresponding parameter > (obviously to append

RE: [Patch V2] x86, mce: Ensure offline CPU's don't participate in mce rendezvous process.

2015-12-07 Thread Luck, Tony
> And that is incorrect too, because the MCE (at least the one I'm > injecting) gets broadcasted to the CPUs on the *node* and not to the > whole system. Which system? What kind of machine check? On Intel we expect machine checks to be broadcast to all logical cpus on all nodes (unless local mac

[PATCH] Staging: rtl8188eu: core: rtw_debug: fixed a parentheses coding style issue

2015-12-07 Thread Chris Elliott
Removed unnecessary parentheses. Signed-off-by: Chris Elliott --- drivers/staging/rtl8188eu/core/rtw_debug.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_debug.c b/drivers/staging/rtl8188eu/core/rtw_debug.c index 2c4afb8..

Re: [PATCH 4.3 090/125] KVM: s390: fix wrong lookup of VCPUs by array index

2015-12-07 Thread Christian Borntraeger
On 12/07/2015 04:01 PM, Greg Kroah-Hartman wrote: > 4.3-stable review patch. If anyone has any objections, please let me know. > > -- > > From: David Hildenbrand > > commit 152e9f65d66f0a3891efc3869440becc0e7ff53f upstream. Greg, That commit has a dependency, the patch descri

Re: [PATCH] ARM: mm: mark section-aligned portion of rodata NX

2015-12-07 Thread Ard Biesheuvel
On 7 December 2015 at 22:56, Kees Cook wrote: > On Mon, Dec 7, 2015 at 1:52 PM, Ard Biesheuvel > wrote: >> On 7 December 2015 at 21:54, Kees Cook wrote: >>> When rodata is large enough that it crosses a section boundary after the >>> kernel text, mark the rest NX. This is as close to full NX of

Re: [PATCH V2 5/6] cpufreq: governor: replace per-cpu delayed work with timers

2015-12-07 Thread Rafael J. Wysocki
On Monday, December 07, 2015 01:20:27 PM Viresh Kumar wrote: > On 07-12-15, 02:28, Rafael J. Wysocki wrote: > > What about if that happens in parallel with the decrementation in > > dbs_work_handler()? > > > > Is there anything preventing that from happening? > > Hmmm, you are right. Following is

Re: [PATCH v5 0/5] Add iProc PCIe PAXC and MSI support

2015-12-07 Thread Florian Fainelli
On 07/12/15 13:33, Bjorn Helgaas wrote: > On Mon, Dec 07, 2015 at 12:32:03PM -0800, Florian Fainelli wrote: >> On 07/12/15 09:01, Bjorn Helgaas wrote: >>> On Fri, Dec 04, 2015 at 09:34:57AM -0800, Ray Jui wrote: This patch series adds support for the iProc PAXC interface and support for e

Re: [PATCH v5 5/5] ARM: dts: Enable MSI support for Broadcom Cygnus

2015-12-07 Thread Florian Fainelli
On 04/12/15 09:35, Ray Jui wrote: > Enable MSI support for Broadcom Cygnus platforms > > Signed-off-by: Ray Jui > Reviewed-by: Anup Patel > Reviewed-by: Pramod KUMAR > Reviewed-by: Vikram Prakash > Reviewed-by: Scott Branden Applied to devicetree/next, thanks! -- Florian -- To unsubscribe f

Re: [PATCH] Staging: rtl8188eu: core: rtw_debug: fixed a parentheses coding style issue

2015-12-07 Thread Joe Perches
On Mon, 2015-12-07 at 22:02 +, Chris Elliott wrote: > Removed unnecessary parentheses. [] > diff --git a/drivers/staging/rtl8188eu/core/rtw_debug.c > b/drivers/staging/rtl8188eu/core/rtw_debug.c [] > @@ -149,7 +149,7 @@ int proc_get_fwstate(char *page, char **start, >  { >   struct net_dev

[PATCH 02/14] perf test: Use machine__new_host in dwarf unwind test

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa This is more straightforward than what we have now. It also fixes a segfault within machine__exit, that's caused by not creating kernel maps for machine.. We're calling machine__destroy_kernel_maps in machine__exit since commit: ebe9729c8c31 perf machine: Fix to destroy kernel

Re: [PATCH] ARM: mm: mark section-aligned portion of rodata NX

2015-12-07 Thread Ard Biesheuvel
On 7 December 2015 at 23:14, Ard Biesheuvel wrote: > On 7 December 2015 at 22:56, Kees Cook wrote: >> On Mon, Dec 7, 2015 at 1:52 PM, Ard Biesheuvel >> wrote: >>> On 7 December 2015 at 21:54, Kees Cook wrote: When rodata is large enough that it crosses a section boundary after the ker

[PATCH 14/14] perf annotate: ARM support

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Russell King Add basic support to parse ARM assembly. This: * enables perf to correctly show the disassembly, rather than chopping some constants off at the '#' (which is not a comment character on ARM). * allows perf to identify ARM instructions that branch to other parts within t

[PATCH 07/14] perf test: Create kernel maps properly for hist entries test

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa It fixes segfault within machine__exit, that's caused but not creating kernel maps for machine.. We're calling machine__destroy_kernel_maps in machine__exit since commit: ebe9729c8c31 perf machine: Fix to destroy kernel maps when machine exits Signed-off-by: Jiri Olsa Acked-b

[PATCH 05/14] perf test: Fix cpus and thread maps reference in error path

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa In error path to try user space event, both cpus and threads map now owned by evlist and freed by perf_evlist__set_maps call. Getting reference to keep them alive. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: David Ahern Cc: Masami Hiramatsu Cc: Pet

Re: [PATCH 1/1] ACPI: Support D3 COLD device for old BIOS

2015-12-07 Thread Rafael J. Wysocki
On Monday, December 07, 2015 12:44:33 PM Ken Xue wrote: > D3cold is only regarded as valid if the "_PR3" object is present > for the given device after the commit <20dacb71ad28> > (ACPI/PM: Reworkdevice power management to follow ACPI 6). > > But some old BIOS only defined "_PS3" for the D3COLD de

[PATCH 13/14] perf stat: Move enable_on_exec setup under earlier code

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa It's more readable this way and we can save one perf_evsel__is_group_leader condition in current code. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1449133606-14429-7-git-send-email-jo...@kerne

[PATCH 04/14] perf test: Use machine__new_host in mmap thread code reading test

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa This is more straightforward than what we have now. It also fixes a segfault within machine__exit, that's caused by not creating kernel maps for machine.. We're calling machine__destroy_kernel_maps in machine__exit since commit: ebe9729c8c31 perf machine: Fix to destroy kernel

Re: [RFC PATCH -v2] mm, oom: introduce oom reaper

2015-12-07 Thread Tetsuo Handa
Michal Hocko wrote: > Yes you are right! The reference count should be incremented before > publishing the new mm_to_reap. I thought that an elevated ref. count by > the caller would be enough but this was clearly wrong. Does the update > below looks better? I think that moving mmdrop() from oom_k

[PATCH 12/14] perf stat: Create events as disabled

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently we have 2 kinds of stat counters based on when the event is enabled: 1) tracee command events, which are enable once the tracee executes exec syscall (enable_on_exec bit) 2) all other events which get alive within the perf_event_open syscall And 2) case c

[PATCH 10/14] perf evlist: Factor perf_evlist__(enable|disable) functions

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Use perf_evsel__(enable|disable) functions in perf_evlist__(enable|disable) functions in order to centralize ioctl enable/disable calls. This way we eliminate 2 places calling directly ioctl. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc: Namhyung Kim Cc: Pete

[PATCH 11/14] perf stat: Use perf_evlist__enable in handle_initial_delay

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa No need to mimic the behaviour of perf_evlist__enable, we can use it directly. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Adrian Hunter Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1449133606-14429-5-git-send-emai

[PATCH 08/14] perf evsel: Use event maps directly in perf_evsel__enable

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa All events now share proper cpu and thread maps. There's no need to pass those maps from evlist, it's safe to use evsel maps for enabling event. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/144

[PATCH 06/14] perf test: Prevent using bpf-output event in round trip name test

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The bpf-output is added under software events, but is not parse-able within parse_events, which is what round trip test is expecting. Checking software events only until dummy event. Signed-off-by: Jiri Olsa Acked-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Adria

[PATCH 01/14] perf machine: Pass correct string to dso__adjust_kmod_long_name

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Wang Nan There's a mistake in dso__adjust_kmod_long_name() that it use strdup() to dup the new long_name of a dso, but passes the original string to dso__set_long_name(). Which causes random crash during cleanup. Signed-off-by: Wang Nan Reviewed-by: Masami Hiramatsu Cc: Namhyung Kim Cc:

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

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi Ingo, Please consider pulling, will continue processing the backlog tomorrow, Thanks, - Arnaldo The following changes since commit f1ad44884a4c421ceaa9a4a8242a6f686670: perf/x86: Remove old MSR perf tracing code (2015-12-06 12:56:14 +0100) are

[PATCH 03/14] perf test: Use machine__new_host in mmap thread lookup test

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa This is more straightforward than what we have now. It also fixes a segfault within machine__exit, that's caused by not creating kernel maps for machine.. We're calling machine__destroy_kernel_maps in machine__exit since commit: ebe9729c8c31 perf machine: Fix to destroy kernel

[PATCH 09/14] perf evsel: Introduce disable() method

2015-12-07 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding perf_evsel__disable function to have complement for perf_evsel__enable function. Both will be used in following patch to factor perf_evlist__(enable|disable). Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://

Re: [PATCH v2 1/1] x86/platform/iosf_mbi: Remove duplicate definitions

2015-12-07 Thread Rafael J. Wysocki
On Wednesday, November 25, 2015 03:37:54 PM Thomas Gleixner wrote: > On Wed, 25 Nov 2015, Andy Shevchenko wrote: > > …we are working on another fix which is based also on this patch. Can > > you provide your ACK if you are okay with the changes to arch/x86 ? > > I'm fine with the patch. Once I hav

[PATCH 00/23] mtd: rework ECC layout definition

2015-12-07 Thread Boris Brezillon
Hello, This patchset aims at getting rid of the nand_ecclayout limitations. struct nand_ecclayout is defining fixed eccpos and oobfree arrays which can only be increased by modifying the MTD_MAX_ECCPOS_ENTRIES_LARGE and MTD_MAX_OOBFREE_ENTRIES_LARGE macros. This approach forces us to modify the ma

[PATCH 12/23] mtd: use mtd_eccpos() and mtd_oobfree() where appropriate

2015-12-07 Thread Boris Brezillon
The mtd_eccpos(), mtd_oobfree() and mtd_eccbytes() helper functions have been added to avoid direct accesses to the ecclayout, and thus allow for future rework. Use these helpers in all places where the oobfree[] and eccpos[] arrays are referenced. Signed-off-by: Boris Brezillon --- drivers/mtd/

[PATCH 09/23] mtd: nand: vf610: remove useless mtd->ecclayout assignment

2015-12-07 Thread Boris Brezillon
The NAND core layer is already taking care of ecclayout propagation. Remove this useless assignment. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/vf610_nfc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c index 1c86c6b..041

[PATCH 11/23] mtd: add mtd_eccpos(), mtd_oobfree() and mtd_eccbytes() helper functions

2015-12-07 Thread Boris Brezillon
In order to make the ecclayout definition completely dynamic we need to rework the way these different ECC layouts are defined and iterated. Create the mtd_eccpos(), mtd_oobfree() and mtd_eccbytes() helpers to hide ecclayout definition internals to their users. Signed-off-by: Boris Brezillon ---

[PATCH 01/23] mtd: kill the ecclayout->oobavail field

2015-12-07 Thread Boris Brezillon
ecclayout->oobavail is just redundant with the mtd->oobavail field. Moreover, it prevents static const definition of ecc layouts since the NAND framework is calculating this value based on the ecclayout->oobfree field. Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c

[PATCH 04/23] mtd: nand: s3c2410: kill the ->ecc_layout field

2015-12-07 Thread Boris Brezillon
The s3c2410 is allowing board data to overload the default ECC layout defined inside the driver, but this feature is not used by board specific definitions. Kill this field so that we can easily move to a model where ecclayout are dynamically allocated by the NAND controller driver. Signed-off-by:

[PATCH 16/23] mtd: docg3: switch to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 6b516e1..7463dd8 100644 --- a/drivers/mtd/devices/docg3.c +++ b/dr

[PATCH 15/23] mtd: create an mtd_ooblayout_ops struct to ease ECC layout definition

2015-12-07 Thread Boris Brezillon
ECC layout definitions are currently exposed using the nand_ecclayout struct which embeds oobfree and eccpos arrays with predefined size. This approach was acceptable when the NAND were providing relatively small OOB regions, but MLC and TLC now provide OOB regions of several hundreds of bytes, whi

[PATCH 22/23] mtd: nand: kill layout field

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 8 drivers/mtd/nand/nand_bch.c | 9 - include/linux/mtd/nand.h | 1 - 3 files changed, 18 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 6440c5d..85deacb 100644 --

[PATCH 23/23] mtd: kill the nand_ecclayout struct

2015-12-07 Thread Boris Brezillon
Now that all mtd drivers have moved to the mtd_ooblayout_ops model we can safely remove the struct nand_ecclayout definition, and all the remaining places where it was still used. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdchar.c | 12 ++-- drivers/mtd/mtdcore.c | 44 ---

[PATCH 19/23] mtd: nand: switch all drivers to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify all NAND drivers to switch to this approach. Signed-off-by: Boris Brezillon --- This commit is a collection of commits that have been squashed to into a single one to limit the size of the

[PATCH 20/23] mtd: onenand: switch to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify the onenand drivers to switch to this approach. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onenand_base.c | 144 + include/linux/mtd/onenand

[PATCH 21/23] staging: mt29f_spinand: switch to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 44 --- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c index cb9d5ab..967d50a

[PATCH 18/23] mtd: nand: bch: switch to nand_ecclayout_pos

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_bch.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/nand/nand_bch.c b/drivers/mtd/nand/nand_bch.c index 9cff544..2937b49 100644 --- a/drivers/mtd/nand/nand_bch.c +++ b/dr

[PATCH 1/1] perf/x86/intel: Add perf core PMU support for Intel Knights Landing

2015-12-07 Thread Harish Chegondi
Knights Landing core is based on Silvermont core with several differences. Like Silvermont, Knights Landing has 8 pairs of LBR MSRs. However, the LBR MSRs addresses match those of the Xeon cores' first 8 pairs of LBR MSRs Unlike Silvermont, Knights Landing supports hyperthreading. Knights Landing o

Re: [PATCH v3 1/9] device core: add BUS_NOTIFY_DRIVER_NOT_BOUND notification

2015-12-07 Thread Rafael J. Wysocki
On Monday, December 07, 2015 12:57:33 PM Andy Shevchenko wrote: > On Mon, 2015-12-07 at 02:31 +0100, Rafael J. Wysocki wrote: > > On Saturday, December 05, 2015 08:36:22 AM Greg Kroah-Hartman wrote: > > > On Sat, Dec 05, 2015 at 06:24:05PM +0200, Andy Shevchenko wrote: > > > > On Sat, Dec 5, 2015 a

[PATCH 17/23] mtd: nand: implement the default mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Replace the default nand_ecclayout definitions for large and small page devices with the equivalent mtd_ooblayout_ops. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 138 +++ include/linux/mtd/nand.h | 3 + 2 files changed, 90 inse

[PATCH 13/23] mtd: add mtd_set_ecclayout() helper function

2015-12-07 Thread Boris Brezillon
Add an mtd_set_ecclayout() helper function to avoid direct accesses to the mtd->ecclayout field. This will ease future refactor of ECC layout definition. Signed-off-by: Boris Brezillon --- include/linux/mtd/mtd.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/mtd/mtd.h b

[PATCH 10/23] mtd: nand: simplify nand_bch_init() usage

2015-12-07 Thread Boris Brezillon
nand_bch_init() requires several arguments which could directly be deduced from the mtd device. Get rid of those useless parameters. nand_bch_init() is also requiring the caller to provide a proper eccbytes value, while this value could be deduced from the ecc.size and ecc.strength value. Fallback

linux-next: manual merge of the vfs tree with the s390 tree

2015-12-07 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: drivers/s390/char/zcore.c between commit: ffa52d02c50e ("s390/zcore: remove /sys/kernel/debug/zcore/mem") from the s390 tree and commit: 41fb31e4f962 ("new helper: no_seek_end_llseek()") from the vfs tree. I fixed it u

[PATCH 07/23] staging: mt29f_spinand: kill unused ecclayout field

2015-12-07 Thread Boris Brezillon
The spinand_info struct embeds a pointer to an ecclayout definition, but this field is never used in the mt29f driver. Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.h

[PATCH 14/23] mtd: use mtd_set_ecclayout() where appropriate

2015-12-07 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c| 2 +- drivers/mtd/mtdconcat.c| 2 +- drivers/mtd/mtdpart.c | 2 +- drivers/mtd/nand/nand_base.c | 2 +-

[PATCH 03/23] mtd: nftl: kill unused oobinfo field

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- include/linux/mtd/nftl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/nftl.h b/include/linux/mtd/nftl.h index b059629..044daa0 100644 --- a/include/linux/mtd/nftl.h +++ b/include/linux/mtd/nftl.h @@ -50,7 +50,6 @@ struct NFTLrecord {

[PATCH 08/23] mtd: nand: lpc32xx_mlc: fix ecc.size

2015-12-07 Thread Boris Brezillon
According to the ECC layout description the actual ecc.size is 512 bytes and not mtd->writesize. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/lpc32xx_mlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/lpc32xx_mlc.c b/drivers/mtd/nand/lpc32xx_mlc.c i

[PATCH 02/23] mtd: inftl: kill unused oobinfo field

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- include/linux/mtd/inftl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/inftl.h b/include/linux/mtd/inftl.h index 02cd5f9..8255118 100644 --- a/include/linux/mtd/inftl.h +++ b/include/linux/mtd/inftl.h @@ -44,7 +44,6 @@ struct INFTLrecord

[PATCH 05/23] mtd: nand: jz4770: kill the ->ecc_layout field

2015-12-07 Thread Boris Brezillon
->ecc_layout is not used by any board file. Kill this field to avoid any confusion. New boards are encouraged to use the default ECC layout defined in NAND core. Signed-off-by: Boris Brezillon --- arch/mips/include/asm/mach-jz4740/jz4740_nand.h | 2 -- drivers/mtd/nand/jz4740_nand.c

[PATCH 06/23] mtd: nand: kill unused ->ecclayout field in platform_nand_chip struct

2015-12-07 Thread Boris Brezillon
This field is not set in any board file and can thus be dropped. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/plat_nand.c | 1 - include/linux/mtd/nand.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 06ac6c6..71

[PATCH 2/2] perf/x86/intel/uncore: Add Knights Landing uncore PMU support

2015-12-07 Thread Harish Chegondi
Knights Landing uncore performance monitoring (perfmon) is derived from Haswell-EP uncore perfmon with several differences. One notable difference is in PCI device IDs. Knights Landing uses common PCI device ID for multiple instances of an uncore PMU device type. In Haswell-EP, each instance of a P

Re: [Patch V2] x86, mce: Ensure offline CPU's don't participate in mce rendezvous process.

2015-12-07 Thread Borislav Petkov
On Mon, Dec 07, 2015 at 10:07:59PM +, Luck, Tony wrote: > > And that is incorrect too, because the MCE (at least the one I'm > > injecting) gets broadcasted to the CPUs on the *node* and not to the > > whole system. > > Which system? What kind of machine check? On Intel we expect machine che

[PATCH 1/2] perf/x86/intel/uncore: Remove hard coding of PMON box control MSR offset

2015-12-07 Thread Harish Chegondi
Call uncore_pci_box_ctl() function to get the PMON box control MSR offset instead of hard coding the offset. This would allow us to use this snbep_uncore_pci_init_box() function for other PCI PMON devices whose box control MSR offset is different from SNBEP_PCI_PMON_BOX_CTL. Signed-off-by: Harish

[PATCH v2] ARM: mm: mark section-aligned portion of rodata NX

2015-12-07 Thread Kees Cook
When rodata is large enough that it crosses a section boundary after the kernel text, mark the rest NX. This is as close to full NX of rodata as we can get without splitting page tables or doing section alignment via CONFIG_DEBUG_ALIGN_RODATA. When the config is: CONFIG_DEBUG_RODATA=y # CONFIG_

Re: [PATCH 2/2] keys, trusted: seal with a policy

2015-12-07 Thread James Morris
On Mon, 7 Dec 2015, Jarkko Sakkinen wrote: > On Fri, Nov 20, 2015 at 01:34:35PM +1100, James Morris wrote: > > On Wed, 18 Nov 2015, Jarkko Sakkinen wrote: > > > > > On Wed, Nov 18, 2015 at 11:21:01AM +1100, James Morris wrote: > > > > On Tue, 17 Nov 2015, Jarkko Sakkinen wrote: > > > > > > > > >

<    5   6   7   8   9   10   11   12   13   >