Re: [PATCH v3 0/9] kexec_file_load implementation for PowerPC

2016-06-23 Thread Balbir Singh
On 24/06/16 02:44, Thiago Jung Bauermann wrote: > Am Donnerstag, 23 Juni 2016, 09:57:51 schrieb Balbir Singh: >> On 23/06/16 03:02, Thiago Jung Bauermann wrote: > 3. have IMA pass-on its event log (where integrity measurements are > >registered) accross kexec to the second kernel,

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Marek Vasut
On 06/23/2016 11:58 PM, Michal Suchanek wrote: > On 23 June 2016 at 22:46, Marek Vasut wrote: >> On 06/23/2016 10:35 PM, Michal Suchanek wrote: >>> Hello, >> >> Hi, >> >>> this patch is kind of awesome. >>> >>> I have a few practical concerns however. >>> >>> On 20 June 2016 at 18:50, Cyrille Pitc

Re: Doing crypto in small stack buffers (bluetooth vs vmalloc-stack crash, etc)

2016-06-23 Thread Andy Lutomirski
On Wed, Jun 22, 2016 at 11:41 PM, Herbert Xu wrote: > On Thu, Jun 23, 2016 at 11:48:25AM +0800, Herbert Xu wrote: >> >> No we never had such an API in the kernel. However, I see that >> rxkad does some pretty silly things and we should be able to avoid >> using the stack in pretty much all cases.

Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs

2016-06-23 Thread Casey Schaufler
On 6/23/2016 2:49 PM, Kees Cook wrote: > On Thu, Jun 23, 2016 at 2:11 PM, Casey Schaufler > wrote: >> Subject: [PATCH v4 3/3] LSM: Add context interface for proc attrs >> >> The /proc/.../attr/current interface is used by all three >> Linux security modules (SELinux, Smack and AppArmor) to >> rep

Re: [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

2016-06-23 Thread Martin KaFai Lau
On Thu, Jun 23, 2016 at 11:50:08PM +0200, Daniel Borkmann wrote: > On 06/23/2016 11:26 PM, Martin KaFai Lau wrote: > >We are still hatching out how to set this up in production. However, the > >situation is similar to removing the pinned file. s/pinned file/pinned cgroup-array/ > I presume you mea

[PATCH v2 2/2] sparc64: Fix pagetable freeing for hugepage regions

2016-06-23 Thread Nitin Gupta
8M pages now allocate page tables till PMD level only. So, when freeing page table for 8M hugepage backed region, make sure we don't try to access non-existent PTE level. Signed-off-by: Nitin Gupta --- arch/sparc/include/asm/hugetlb.h | 12 ++--- arch/sparc/mm/hugetlbpage.c | 98 +++

[PATCH v2 1/2] sparc64: Trim page tables for 8M hugepages

2016-06-23 Thread Nitin Gupta
For PMD aligned (8M) hugepages, we currently allocate all four page table levels which is wasteful. We now allocate till PMD level only which saves memory usage from page tables. Orabug: 22630259 Signed-off-by: Nitin Gupta --- Changelog v2 vs v1: - Move sparc specific declaration of hugetlb_fr

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-06-23 Thread Andy Lutomirski
On Thu, Jun 23, 2016 at 1:40 PM, Josh Poimboeuf wrote: > On Thu, Jun 23, 2016 at 01:31:32PM -0500, Josh Poimboeuf wrote: >> On Thu, Jun 23, 2016 at 09:35:29AM -0700, Andy Lutomirski wrote: >> > > So which is the least-bad option? To summarize: >> > > >> > > 1) task flag(s) for preemption and pa

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 23 June 2016 at 22:46, Marek Vasut wrote: > On 06/23/2016 10:35 PM, Michal Suchanek wrote: >> Hello, > > Hi, > >> this patch is kind of awesome. >> >> I have a few practical concerns however. >> >> On 20 June 2016 at 18:50, Cyrille Pitchen wrote: >>> Before this patch, m25p80_read() supported

[PATCH V2] printk: Create pr_ functions

2016-06-23 Thread Joe Perches
Using functions instead of macros can reduce overall code size by eliminating unnecessary "KERN_SOH" prefixes from format strings. defconfig x86-64: $ size vmlinux* textdata bss dec hex filename 10193570 4331464 1105920 15630954 ee826a vmlinux.new 10192623 4335560 1105920 15

Re: [PATCH 3.14 00/29] 3.14.73-stable review -rc2

2016-06-23 Thread Shuah Khan
On 06/22/2016 10:54 PM, Greg Kroah-Hartman wrote: > -rc2! > > Please test this... > > This is the start of the stable review cycle for the 3.14.73 release. > There are 35 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, pl

Re: [PATCH 4.4 00/75] 4.4.14-stable review -rc2

2016-06-23 Thread Shuah Khan
On 06/22/2016 10:54 PM, Greg Kroah-Hartman wrote: > -rc2! > > This is the start of the stable review cycle for the 4.4.14 release. > There are 81 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. > > R

[REPOST, PATCH] builddeb: really include objtool binary in headers package

2016-06-23 Thread Wilfried Klaebe
On May 4th, Bjørn Mork provided patch 697bbc7b832048d3a679cd55caf2268a325efbe0 to include objtool binaries in the headers package. However, that one only works if $srctree=$objtree, because the objtool binaries are not written to the srctree, but to the objtree. Signed-off-by: Wilfried Klaebe ---

Re: [PATCH v3 3/3] x86/ptrace, x86/signal: Remove TS_I386_REGS_POKED

2016-06-23 Thread Andy Lutomirski
On Thu, Jun 23, 2016 at 2:26 PM, Oleg Nesterov wrote: > Again, I think the patch is fine, just a question > > On 06/20, Andy Lutomirski wrote: >> >> System call restart has some oddities wrt ptrace: >> >> 1. For whatever reason, the kernel delivers signals and triggers >>ptrace before handling

Re: [PATCH 4.6 00/87] 4.6.3-stable review -rc2

2016-06-23 Thread Shuah Khan
On 06/22/2016 10:52 PM, Greg Kroah-Hartman wrote: > Let's try a -rc2! > > This is the start of the stable review cycle for the 4.6.3 release. > There are 87 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 k

Re: [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

2016-06-23 Thread Daniel Borkmann
On 06/23/2016 11:26 PM, Martin KaFai Lau wrote: On Thu, Jun 23, 2016 at 11:42:31AM +0200, Daniel Borkmann wrote: Hi Martin, [ sorry to jump late in here, on pto currently ] Thanks for reviewing. Could you describe a bit more with regards to pinning maps and how this should interact with cgro

Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs

2016-06-23 Thread Kees Cook
On Thu, Jun 23, 2016 at 2:11 PM, Casey Schaufler wrote: > Subject: [PATCH v4 3/3] LSM: Add context interface for proc attrs > > The /proc/.../attr/current interface is used by all three > Linux security modules (SELinux, Smack and AppArmor) to > report and modify the process security attribute. Th

[PATCH 2/2] net: ethernet: dnet: use phy_ethtool_{get|set}_link_ksettings

2016-06-23 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/dnet.c | 24 ++-- 1 files changed, 2 insertions(+), 22 deletions(-) diff --git

[PATCH 1/2] net: ethernet: dnet: use phydev from struct net_device

2016-06-23 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

Re: [PATCH 3/3] rt-tests: Add cyclicdeadline and deadline_test to the Make system

2016-06-23 Thread Steven Rostedt
On Thu, 23 Jun 2016 14:11:51 +0200 John Kacur wrote: > index 9c50456f7419..f530488545e0 100644 > --- a/src/sched_deadline/cyclicdeadline.c > +++ b/src/sched_deadline/cyclicdeadline.c > @@ -1,4 +1,6 @@ > +#ifndef _GNU_SOURCE > #define _GNU_SOURCE > +#endif > #include > #include > #include

Re: [PATCH v8 3/4] i2c: i801: add support of Host Notify

2016-06-23 Thread Wolfram Sang
On Thu, Jun 23, 2016 at 01:55:52PM -0700, Dmitry Torokhov wrote: > On Thu, Jun 16, 2016 at 08:09:42AM +0200, Wolfram Sang wrote: > > > > - removed the .resume hook as upstream changed suspend/resume hooks and > > > > there > > > > is no need in the end to re-enable host notify on resume (tested

Re: [v3 PATCH 3/5] phy: Add USB Type-C PHY driver for rk3399

2016-06-23 Thread Guenter Roeck
Hi Chris, On Thu, Jun 23, 2016 at 5:51 AM, Chris Zhong wrote: > Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB > Type-C PHY is designed to support the USB3 and DP applications. The > PHY basically has two main components: USB3 and DisplyPort. USB3 > operates in SuperSpeed mode a

Re: [PATCH 00/27] Move LRU page reclaim from zones to nodes v7

2016-06-23 Thread Andrew Morton
On Thu, 23 Jun 2016 11:26:48 +0100 Mel Gorman wrote: > On Tue, Jun 21, 2016 at 03:15:39PM +0100, Mel Gorman wrote: > > The bulk of the updates are in response to review from Vlastimil Babka > > and received a lot more testing than v6. > > > > Hi Andrew, > > Please drop these patches again fro

Re: [PATCH net-next v2 3/4] cgroup: bpf: Add bpf_skb_in_cgroup_proto

2016-06-23 Thread Martin KaFai Lau
On Thu, Jun 23, 2016 at 10:07:27PM +0200, Daniel Borkmann wrote: > On 06/23/2016 06:54 PM, Martin KaFai Lau wrote: > >On Thu, Jun 23, 2016 at 11:53:50AM +0200, Daniel Borkmann wrote: > >>>diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > >>>index 668e079..68753e0 100644 > >>>--- a/kernel

Re: [PATCH] capabilities: add capability cgroup controller

2016-06-23 Thread Tejun Heo
Hello, On Thu, Jun 23, 2016 at 06:07:10PM +0300, Topi Miettinen wrote: > There are many basic ways to control processes, including capabilities, > cgroups and resource limits. However, there are far fewer ways to find > out useful values for the limits, except blind trial and error. > > Currently

Re: [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

2016-06-23 Thread Daniel Borkmann
On 06/23/2016 11:13 PM, Tejun Heo wrote: Hello, On Thu, Jun 23, 2016 at 11:42:31AM +0200, Daniel Borkmann wrote: I presume it's a valid use case to pin a cgroup map, put fds into it and remove the pinned file expecting to continue to match on it, right? So lifetime is really until last prog usi

Re: [PATCH v9 06/12] kthread: Add kthread_drain_worker()

2016-06-23 Thread Tejun Heo
Hello, On Wed, Jun 22, 2016 at 10:54:45PM +0200, Peter Zijlstra wrote: > > + * The caller is responsible for blocking all users of this kthread > > + * worker from queuing new works. Also it is responsible for blocking > > + * the already queued works from an infinite re-queuing! > > This, I real

Re: [PATCH] staging: wilc1000: arrays can't be NULL

2016-06-23 Thread Luis de Bethencourt
On 23/06/16 20:24, Joe Perches wrote: > On Thu, 2016-06-23 at 18:57 +0100, Luis de Bethencourt wrote: >> hif_drv->usr_scan_req.net.net_info[i] contains found_net_info structs >> which have the following element: >> u8 bssid[6]; > [] >> I am aware this patch gives a few checkpatch.pl warnings about

[PATCH 04/27] perf hists browser: Introduce struct hist_browser title callback

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We can now setup title callback for hist_browser, which will be useful in following changes to create customized hist_browsers. This also separates struct perf_evsel dependency out of hist_browser basic code. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter

[PATCH 05/27] perf hists browser: Move horizontal scroll init to new()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Moving horizontal scroll init to initialization function as already intended. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1466459899-1166-6-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 06/27] perf hists browser: Introduce perf_evsel_browser constructor

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa So we could use hist_browser__new for generic hist browser in following patches. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1466459899-1166-7-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Me

[PATCH 02/27] perf hists browser: Move hist_browser into header file

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa This way we can use it outside of ui/browsers/hists.c and extend it in following patches. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1466459899-1166-3-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carva

[PATCH 03/27] perf hists browser: Make (new|delete|run) public

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa This way we can use it outside of ui/browsers/hists.c and extend it in following patches. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1466459899-1166-4-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carva

[PATCH 24/27] perf auxtrace: Add option to feed branches to the thread stack

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In preparation for using the thread stack to print an indent representing the stack depth in perf script, add an option to tell decoders to feed branches to the thread stack. Add support for that option to Intel PT and Intel BTS. The advantage of using the decoder to feed the

[PATCH 07/27] perf hists browser: Introduce init()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Factoring out the hist_browser initialization code, so it could be used from other parts in following patches. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1466459899-1166-8-git-send-email-jo...@kernel.org Signed-

[PATCH 11/27] perf tests time-to-tsc: No need to disable an event before deleting it

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Because at the destructor we will call close() and that will do the disable. And we destructors can accept NULL, just like free(), so no need to check it. Cc: Adrian Hunter Cc: Peter Zijlstra Cc: Jiri Olsa Link: http://lkml.kernel.org/n/tip-i98mcyfkkjh5qp62dle27

[PATCH 25/27] perf script: Add callindent option

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Based on patches from Andi Kleen. When printing PT instruction traces with perf script it is rather useful to see some indentation for the call tree. This patch adds a new callindent field to perf script that prints spaces for the function call stack depth. We already have c

[PATCH 23/27] perf script: Print sample flags more nicely

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The flags field is synthesized and may have a value when Instruction Trace decoding. The flags are "bcrosyiABEx" which stand for branch, call, return, conditional, system, asynchronous, interrupt, transaction abort, trace begin, trace end, and in transaction, respectively. Ch

[PATCH 20/27] perf tools: Rename strlist_for_each() macros to for_each_entry()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To match the semantics for list.h in the kernel, that are the interface we use in them. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Taeung Song Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-0b5i2ki9c3di6706fxpti...

[PATCH 26/27] perf config: Introduce new init() and exit()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Taeung Song Many sub-commands use perf_config() but everytime perf_config() is called, perf_config() always read config files. (i.e. user config '~/.perfconfig' and system config '$(sysconfdir)/perfconfig') But it is better to use the config set that already contains all config key-value

[PATCH 17/27] perf unwind: Fix wrongly used regs for x86_32 unwind

2016-06-23 Thread Arnaldo Carvalho de Melo
From: He Kuang By default, "unwind-libunwind-local.c" gets SP/IP register number according to the host platform, for remote unwind, we should use register number for target platform. Fix this by define LIBUNWIND_ARCH_REG_SP/IP in the wrapper file of x86_32 platform. Signed-off-by: He Kuang Acke

Re: [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

2016-06-23 Thread Martin KaFai Lau
On Thu, Jun 23, 2016 at 11:42:31AM +0200, Daniel Borkmann wrote: > Hi Martin, > > [ sorry to jump late in here, on pto currently ] Thanks for reviewing. > Could you describe a bit more with regards to pinning maps and how this > should interact with cgroups? The two specialized array maps we have

[PATCH 10/27] perf session: Destructors should accept NULL

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And do nothing, just like free(), to avoid having to test it in callers, usually in error paths. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-dyuupcj0hnoyt96vma8b3...@git

[PATCH 27/27] perf config: Reimplement show_config() using config_set__for_each

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Taeung Song Recently config_set__for_each got added. In order to let show_config() be short and clear, rewrite this function using it. Signed-off-by: Taeung Song Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link: http:/

[PATCH 22/27] perf intlist: Rename for_each() macros to for_each_entry()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To match the semantics for list.h in the kernel, that are the interface we use in them. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Taeung Song Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-mdp1heu9xjjc12zebh912...

[PATCH 01/27] perf script stackcollapse: Remove reference to the perl interpreter

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It is ignored and this is actually a python script, not a perl one. Reported-by: Brendan Gregg Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Paolo Bonzini Link: http://lkml.kernel.org/n/tip-0w4bpbqd79v3sl34jvpr1...@git.kernel.org Signed-off-by: Arnaldo C

[PATCH 09/27] perf evlist: Destructors should accept NULL

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And do nothing, just like free(), to avoid having to test it in callers, usually in error paths. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-mexbavy0ft387j5w89t36...@git

[PATCH 12/27] perf machine: Destructors should accept NULL

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And do nothing, just like free(), to avoid having to test it in callers, usually in error paths. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-q42gj3b3znhho9z1mrbo4...@git

Re: [RFC 5/5] dma-buf/sync_file: rework fence storage in struct file

2016-06-23 Thread Chris Wilson
On Thu, Jun 23, 2016 at 12:29:50PM -0300, Gustavo Padovan wrote: > -static void sync_file_add_pt(struct sync_file *sync_file, int *i, > +static int sync_file_set_fence(struct sync_file *sync_file, > +struct fence **fences) > +{ > + struct fence_array *array; > + > +

[PATCH 18/27] perf unwind: Fix wrongly used regs for aarch64 unwind

2016-06-23 Thread Arnaldo Carvalho de Melo
From: He Kuang By default, "unwind-libunwind-local.c" gets SP/IP register number according to the host platform, for remote unwind, we should use register number for target platform. Fix this by define LIBUNWIND_ARCH_REG_SP/IP in the wrapper file of aarch64 platform. Signed-off-by: He Kuang Ack

[PATCH 16/27] perf unwind: Change macro names of perf register

2016-06-23 Thread Arnaldo Carvalho de Melo
From: He Kuang Use macro name prefixed with "LIBUNWIND_ARCH" for better understanding that the regs used by callbacks of libunwind are arch specific. The real regs used should be defined in the wrapper file of "unwind-libunwind-local.c" for each supported arch. Signed-off-by: He Kuang Acked-by:

[PATCH 14/27] perf config: Move config declarations from util/cache.h to util/config.h

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Taeung Song Lately util/config.h has been added but util/cache.h has declarations of functions and a global variable for config features. To manage codes about configuration at one spot, move them to util/config.h and let source files that need config features include config.h And if the s

[PATCH 19/27] perf evlist: Rename for_each() macros to for_each_entry()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To match the semantics for list.h in the kernel, that are used to implement those macros. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Taeung Song Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-qbcjlgj0ffxquxscahbpd.

Re: [PATCH v3 3/3] x86/ptrace, x86/signal: Remove TS_I386_REGS_POKED

2016-06-23 Thread Oleg Nesterov
Again, I think the patch is fine, just a question On 06/20, Andy Lutomirski wrote: > > System call restart has some oddities wrt ptrace: > > 1. For whatever reason, the kernel delivers signals and triggers >ptrace before handling syscall restart. This means that >-ERESTART_RESTARTBLOCK, e

[PATCH 21/27] perf rb_resort: Rename for_each() macros to for_each_entry()

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To match the semantics for list.h in the kernel, that are the interface we use in them. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Milian Wolff Cc: Namhyung Kim Cc: Taeung Song Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-iaxuq2yu43mtb504j96q0...

[PATCH 15/27] perf tools: Find right DSO taking into account if binary is 32 or 64-bit

2016-06-23 Thread Arnaldo Carvalho de Melo
From: He Kuang There's a problem in machine__findnew_vdso(), vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso named as 'vdso32' and get failed. This patch tries to find

[PATCH 13/27] perf tools: Let python use correct gcc for build_ext

2016-06-23 Thread Arnaldo Carvalho de Melo
From: He Kuang Currently, python uses host gcc instead of cross-compile gcc in the last step of compiling build_ext(remove '--quiet' to show verbose): cross-gcc ... cross-gcc ... creating ~/out/python_ext_build/lib gcc -pthread -shared -Wl,-z ... This is wrong but may not cause any erro

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

2016-06-23 Thread Arnaldo Carvalho de Melo
ailable in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160623 for you to fetch changes up to 4a35b3497c413de8b409f9d75700eeb4772b21b8: perf config: Reimplement show_config() using config_set__for_each (2016-06-23 17:2

[PATCH 08/27] perf hists: Enlarge pid sort entry size

2016-06-23 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The pid sort entry currently aligns pids with 5 digits, which is not enough for current 4 million pids limit. This leads to unaligned ':' header-data output when we display 7 digits pid: # Children Self SymbolPid:Command # ..

Re: [PATCH v2 11/13] sched/fair: Avoid pulling tasks from non-overloaded higher capacity groups

2016-06-23 Thread Sai Gurrappadi
Hi Morten, On 06/22/2016 10:03 AM, Morten Rasmussen wrote: [...] > > +/* > + * group_smaller_cpu_capacity: Returns true if sched_group sg has smaller > + * per-cpu capacity than sched_group ref. > + */ > +static inline bool > +group_smaller_cpu_capacity(struct sched_group *sg, struct sched_gro

Re: [PATCH v3] cgroup: Disable IRQs while holding css_set_lock

2016-06-23 Thread Tejun Heo
Applied to cgroup/for-4.7-fixes. Thanks. -- tejun

Re: [PATCH v3 2/3] x86/signal: Rewire the restart_block() syscall to have a constant nr

2016-06-23 Thread Oleg Nesterov
So I think this series is fine, yesterday I misread it completely. On 06/20, Andy Lutomirski wrote: > > Suppose a 64-bit task A traces a 32-bit task B. And even if they are both 64-bit ... > B makes a syscall > that uses ERESTART_RESTARTBLOCK and gets a signal. A catches > syscall exit, snapsho

Re: [PATCH] sysfs: correctly handle read offset on PREALLOC attrs

2016-06-23 Thread Tejun Heo
On Wed, Jun 22, 2016 at 09:42:16PM +0300, Konstantin Khlebnikov wrote: > Attributes declared with __ATTR_PREALLOC use sysfs_kf_read() which returns > zero bytes for non-zero offset. This breaks script checkarray in mdadm tool > in debian where /bin/sh is 'dash' because its builtin 'read' reads only

Re: [PATCH v3 04/12] of: add J-Core timer bindings

2016-06-23 Thread Rich Felker
On Thu, Jun 02, 2016 at 05:44:25PM -0500, Rob Herring wrote: > > > > In theory it would even be possible to just require a DT node per > > > > cpulocal timer, but I didn't see a good way to make the bindings > > > > represent the relationship to cpus or to make the driver handle irqs > > > > correc

Re: [patch] cpufreq/pcc-cpufreq: Fix doorbell.access_width

2016-06-23 Thread Rafael J. Wysocki
On 6/23/2016 8:45 AM, Mike Galbraith wrote: Commit 920de6ebfab8 apparently exposed a latent bug, doorbell.access_width is initialized to 64, but per Lv Zheng, it should be 4, and indeed, making that change does bring pcc-cpufreq back to life. Suggested-by: Lv Zheng Signed-off-by: Mike Galbraith

Re: [PATCH net-next v2 2/4] cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

2016-06-23 Thread Tejun Heo
Hello, On Thu, Jun 23, 2016 at 11:42:31AM +0200, Daniel Borkmann wrote: > I presume it's a valid use case to pin a cgroup map, put fds into it and > remove the pinned file expecting to continue to match on it, right? So > lifetime is really until last prog using a cgroup map somewhere gets removed

[PATCH v3 0/4] Support DAX for device-mapper linear devices

2016-06-23 Thread Mike Snitzer
Jens, please pick up the first 2 block patches and I'll get the other 2 DM patches staged for 4.8. v3: - fixed "warning: context imbalance in 'dm_blk_direct_access' - different lock contexts for basic block" due to missing dm_put_live_table in dm_blk_direct_access's dm_get_live_table error

Re: Reported regressions for 4.7 as of Sunday, 2016-06-19

2016-06-23 Thread Eric W. Biederman
Linus Torvalds writes: > On Thu, Jun 23, 2016 at 9:13 AM, Quinn Tran wrote: >> >> >> QT: setting up the interrupt vector does not mean the interrupt starts >> firing immediately. > > Actually, it very much can mean that. If the interrupt can possibly be > shared, there is a very real possibilit

[PATCH v3 2/4] block: expose QUEUE_FLAG_DAX in sysfs

2016-06-23 Thread Mike Snitzer
From: Yigal Korman Provides the ability to identify DAX enabled devices in userspace. Signed-off-by: Yigal Korman Signed-off-by: Toshi Kani Acked-by: Dan Williams Signed-off-by: Mike Snitzer --- block/blk-sysfs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/blk-sys

[PATCH v4 3/3] LSM: Add context interface for proc attrs

2016-06-23 Thread Casey Schaufler
Subject: [PATCH v4 3/3] LSM: Add context interface for proc attrs The /proc/.../attr/current interface is used by all three Linux security modules (SELinux, Smack and AppArmor) to report and modify the process security attribute. This is all fine when there is exactly one of these modules active a

[PATCH v4 0/3] LSM: module hierarchy in /proc/.../attr

2016-06-23 Thread Casey Schaufler
Subject: [PATCH v4 0/3] LSM: module hierarchy in /proc/.../attr Changes from v3: Use kasprintf instead of kzalloc() ... sprintf. Create interfaces that make it possible to deal with process attributes in the face of multiple "major" security modules. Patch 1/3 adds /sys/kernel/security/l

[PATCH v4 1/3] LSM: Add /sys/kernel/security/lsm

2016-06-23 Thread Casey Schaufler
Subject: [PATCH v4 1/3] LSM: Add /sys/kernel/security/lsm I got tired of having to find indirect ways to determine what security modules are active on a system. I have added /sys/kernel/security/lsm, which contains a comma separated list of the active security modules. No more groping around in /p

[PATCH v3 4/4] dm linear: add DAX support

2016-06-23 Thread Mike Snitzer
From: Toshi Kani Change dm-linear to implement direct_access function, linear_direct_access(), which maps sector and calls direct_access function of its physical target device. Signed-off-by: Toshi Kani Signed-off-by: Mike Snitzer Cc: Alasdair Kergon Cc: Dan Williams Cc: Ross Zwisler --- d

[PATCH v3 1/4] block: add QUEUE_FLAG_DAX for devices to advertise their DAX support

2016-06-23 Thread Mike Snitzer
From: Toshi Kani Currently, presence of direct_access() in block_device_operations indicates support of DAX on its block device. Because block_device_operations is instantiated with 'const', this DAX capablity may not be enabled conditinally. In preparation for supporting DAX to device-mapper d

[PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr

2016-06-23 Thread Casey Schaufler
Subject: [PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr Back in 2007 I made what turned out to be a rather serious mistake in the implementation of the Smack security module. The SELinux module used an interface in /proc to manipulate the security context on processes. Rather than use a si

Re: [PATCH net-next v2 1/4] cgroup: Add cgroup_get_from_fd

2016-06-23 Thread Tejun Heo
On Wed, Jun 22, 2016 at 02:17:29PM -0700, Martin KaFai Lau wrote: > Add a helper function to get a cgroup2 from a fd. It will be > stored in a bpf array (BPF_MAP_TYPE_CGROUP_ARRAY) which will > be introduced in the later patch. > > Signed-off-by: Martin KaFai Lau > Cc: Alexei Starovoitov > Cc:

Re: [PATCH v2 1/3] block: add QUEUE_FLAG_DAX for devices to advertise their DAX support

2016-06-23 Thread Mike Snitzer
On Thu, Jun 23 2016 at 1:36pm -0400, Kani, Toshimitsu wrote: > On Thu, 2016-06-23 at 19:31 +0300, Yigal Korman wrote: > > On Thu, Jun 23, 2016 at 2:54 AM, Toshi Kani wrote: > > > > > > > > > Currently, presence of direct_access() in block_device_operations > > > indicates support of DAX on it

[PATCH v3 3/4] dm: add infrastructure for DAX support

2016-06-23 Thread Mike Snitzer
From: Toshi Kani Change mapped device to implement direct_access function, dm_blk_direct_access(), which calls a target direct_access function. 'struct target_type' is extended to have target direct_access interface. This function limits direct accessible size to the dm_target's limit with max_io

Re: [PATCH] capabilities: add capability cgroup controller

2016-06-23 Thread Kees Cook
On Thu, Jun 23, 2016 at 8:07 AM, Topi Miettinen wrote: > There are many basic ways to control processes, including capabilities, > cgroups and resource limits. However, there are far fewer ways to find > out useful values for the limits, except blind trial and error. > > Currently, there is no way

Re: [PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-23 Thread Dmitry Torokhov
On Thu, Jun 23, 2016 at 01:54:20PM -0700, John Stultz wrote: > On Thu, Jun 23, 2016 at 1:47 PM, Dmitry Torokhov > wrote: > > On Thu, Jun 23, 2016 at 01:40:22PM -0700, Dmitry Torokhov wrote: > >> On Thu, Jun 23, 2016 at 01:31:28PM -0700, John Stultz wrote: > >> > On Wed, Jun 22, 2016 at 5:47 PM, Dm

Re: [PATCH v8 3/4] i2c: i801: add support of Host Notify

2016-06-23 Thread Dmitry Torokhov
On Thu, Jun 16, 2016 at 08:09:42AM +0200, Wolfram Sang wrote: > > > - removed the .resume hook as upstream changed suspend/resume hooks and > > > there > > > is no need in the end to re-enable host notify on resume (tested on > > > Lenovo > > > t440 and t450). > > > > Actually, this hook see

Re: [PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-23 Thread John Stultz
On Thu, Jun 23, 2016 at 1:47 PM, Dmitry Torokhov wrote: > On Thu, Jun 23, 2016 at 01:40:22PM -0700, Dmitry Torokhov wrote: >> On Thu, Jun 23, 2016 at 01:31:28PM -0700, John Stultz wrote: >> > On Wed, Jun 22, 2016 at 5:47 PM, Dmitry Torokhov >> > wrote: >> > > >> > > Right, sorry, does the followi

Re: [RFC 1/5] dma-buf/fence: add .teardown() ops

2016-06-23 Thread Chris Wilson
On Thu, Jun 23, 2016 at 12:29:46PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > fence_array requires a function to clean up its state before we > are able to call fence_put() and release it. An explanation along the lines of: As the array of fence callbacks held by an active struct

Re: [PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-23 Thread Dmitry Torokhov
On Thu, Jun 23, 2016 at 01:40:22PM -0700, Dmitry Torokhov wrote: > On Thu, Jun 23, 2016 at 01:31:28PM -0700, John Stultz wrote: > > On Wed, Jun 22, 2016 at 5:47 PM, Dmitry Torokhov > > wrote: > > > On Tue, Jun 21, 2016 at 05:06:23PM -0700, John Stultz wrote: > > >> On Tue, Jun 14, 2016 at 3:43 PM,

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Marek Vasut
On 06/23/2016 10:35 PM, Michal Suchanek wrote: > Hello, Hi, > this patch is kind of awesome. > > I have a few practical concerns however. > > On 20 June 2016 at 18:50, Cyrille Pitchen wrote: >> Before this patch, m25p80_read() supported few SPI protocols: >> - regular SPI 1-1-1 >> - SPI Dual O

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-06-23 Thread Josh Poimboeuf
On Thu, Jun 23, 2016 at 01:31:32PM -0500, Josh Poimboeuf wrote: > On Thu, Jun 23, 2016 at 09:35:29AM -0700, Andy Lutomirski wrote: > > > So which is the least-bad option? To summarize: > > > > > > 1) task flag(s) for preemption and page faults > > > > > > 2) turn pt_regs into a stack frame > >

Re: [PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-23 Thread Dmitry Torokhov
On Thu, Jun 23, 2016 at 01:31:28PM -0700, John Stultz wrote: > On Wed, Jun 22, 2016 at 5:47 PM, Dmitry Torokhov > wrote: > > On Tue, Jun 21, 2016 at 05:06:23PM -0700, John Stultz wrote: > >> On Tue, Jun 14, 2016 at 3:43 PM, John Stultz > >> wrote: > >> > From: Jorge Ramirez-Ortiz > >> > > >> >

Re: [RFC 3/5] dma-buf/fence: add .get_fences() ops

2016-06-23 Thread Chris Wilson
On Thu, Jun 23, 2016 at 12:29:48PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > get_fences() should return a copy of all fences in the fence as some > fence subclass (such as fence_array) can store more than one fence at > time. > > Signed-off-by: Gustavo Padovan > --- > drivers/d

[RESEND][PATCH 0/2] Add pl031 RTC support for Hi6220/HiKey

2016-06-23 Thread John Stultz
This patchset enables the pl031 RTC on the Hi6220 SoC. I'd like to submit it for review and consideration to be merged. (But I've not gotten much feedback on it. Do I have the right people cc'ed?) Michael/Wei: If you don't object to this, can I get an ack from one of you so the other can take the

[RESEND][PATCH 1/2] clk: hi6220: Add RTC clock for pl031

2016-06-23 Thread John Stultz
From: Zhangfei Gao Adds clk support for the pl031 RTC on hi6220 Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: Pawel Moll Cc: Wei Xu Cc: Guodong Xu Signed-off-by: Zhangfei Gao [jstultz: Forward ported, tweaked commit description] Signed-off-by: John Stultz --- drivers/clk/hi

[RESEND][PATCH 2/2] arm64: dts: hi6220: Add pl031 RTC support

2016-06-23 Thread John Stultz
From: Zhangfei Gao Add pl031 rtc0 and rtc1 support to hi6220 dtsi Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: Pawel Moll Cc: Wei Xu Cc: Guodong Xu Signed-off-by: Zhangfei Gao [jstultz: Forward ported and tweaked commit description, added rtc1 entry as suggested by Guodong]

Re: [RFC 4/5] dma-buf/fence-array: add fence_array_get_fences()

2016-06-23 Thread Chris Wilson
On Thu, Jun 23, 2016 at 12:29:49PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > This function returns a copy of the array of fences. > > Signed-off-by: Gustavo Padovan > --- > drivers/dma-buf/fence-array.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/d

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
Hello, this patch is kind of awesome. I have a few practical concerns however. On 20 June 2016 at 18:50, Cyrille Pitchen wrote: > Before this patch, m25p80_read() supported few SPI protocols: > - regular SPI 1-1-1 > - SPI Dual Output 1-1-2 > - SPI Quad Output 1-1-4 > On the other hand, all othe

Re: [PATCH RESEND 2/3] pwm: kona: Add support for Broadcom iproc pwm controller

2016-06-23 Thread Boris Brezillon
Hi, On Tue, 10 May 2016 16:40:24 +0200 Thierry Reding wrote: > On Tue, Mar 29, 2016 at 10:22:29AM -0400, Yendapally Reddy Dhananjaya Reddy > wrote: > > Update the kona driver to support Broadcom iproc pwm controller > > > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > > > > --- > > dr

Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2016-06-23 Thread Darren Hart
On Thu, Jun 23, 2016 at 12:55:15PM -0700, Darren Hart wrote: > On Thu, Jun 23, 2016 at 08:41:09PM +0200, Michael Kerrisk (man-pages) wrote: > > On 06/23/2016 08:28 PM, Darren Hart wrote: > > > On Thu, Jun 23, 2016 at 07:26:52PM +0200, Thomas Gleixner wrote: > > > > On Thu, 23 Jun 2016, Darren Hart

Re: [PATCH 1/4] drivers: input: powerkey for HISI 65xx SoC

2016-06-23 Thread John Stultz
On Wed, Jun 22, 2016 at 5:47 PM, Dmitry Torokhov wrote: > On Tue, Jun 21, 2016 at 05:06:23PM -0700, John Stultz wrote: >> On Tue, Jun 14, 2016 at 3:43 PM, John Stultz wrote: >> > From: Jorge Ramirez-Ortiz >> > >> > This driver provides a input driver for the power button on the >> > HiSi 65xx So

Re: [kernel-hardening] [PATCH v7 0/9] x86/mm: memory area address KASLR

2016-06-23 Thread Jason Cooper
On Thu, Jun 23, 2016 at 12:59:07PM -0700, Kees Cook wrote: > On Thu, Jun 23, 2016 at 12:45 PM, Sandy Harris wrote: > > Jason Cooper wrote: > > > >> Modern systems that receive a seed from the bootloader via the > >> random-seed property (typically from the hw-rng) can mix both sources > >> for in

Re: [PATCH] Input: elantech - add more IC body types to the list

2016-06-23 Thread 'Dmitry Torokhov'
On Thu, Jun 23, 2016 at 07:25:24PM +, Patrick Lessard wrote: > Hello Dmitry, > > Tested against 4.6.2 and it works fine! Awesome, thank you! > > Here is a little log: > > [manager@archlaptop linux-4.6.2]$ cat elantech.patch > --- a/drivers/input/mouse/elantech.c > +++ b/drivers/input/mouse

Re: [PATCH] namespaces: add transparent user namespaces

2016-06-23 Thread Eric W. Biederman
Jann Horn writes: > On Thu, Jun 23, 2016 at 8:50 PM, Eric W. Biederman > wrote: >> Jann Horn writes: >> >>> This allows the admin of a user namespace to mark the namespace as >>> transparent. All other namespaces, by default, are opaque. >>> >>> While the current behavior of user namespaces is

Re: [kernel-hardening] [PATCH v7 0/9] x86/mm: memory area address KASLR

2016-06-23 Thread Jason Cooper
Hey Sandy, On Thu, Jun 23, 2016 at 03:45:54PM -0400, Sandy Harris wrote: > Jason Cooper wrote: > > > Modern systems that receive a seed from the bootloader via the > > random-seed property (typically from the hw-rng) can mix both sources > > for increased resilience. > > > > Unfortunately, I'm n

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