[PATCH_v4 0/2] arm64: Add seccomp support

2014-03-14 Thread AKASHI Takahiro
(Please apply this patch after my ftrace patch and audit patch in order to avoid some conflict on arm64/Kconfig.) This patch enables secure computing (system call filtering) on arm64. System calls can be allowed or denied by loaded bpf-style rules. Architecture specific part is to run

[PATCH_v4 2/2] arm64: Add seccomp support

2014-03-14 Thread AKASHI Takahiro
secure_computing() should always be called first in syscall_trace_enter(). If it returns non-zero, we should stop further handling. Then that system call may eventually fail, be trapped or the process itself be killed depending on loaded rules. In this case, syscall_trace_enter() returns a

[PATCH_v4 1/2] asm-generic: Add generic seccomp.h for secure computing mode 1

2014-03-14 Thread AKASHI Takahiro
Those values (__NR_seccomp_*) are used solely in secure_computing() to identify mode 1 system calls. If compat system calls have different syscall numbers, asm/seccomp.h may override them. Acked-by: Arnd Bergmann Signed-off-by: AKASHI Takahiro --- include/asm-generic/seccomp.h | 28

[PATCH_v8 0/2] arm64: Add audit support

2014-03-14 Thread AKASHI Takahiro
(Please apply this patch after my ftrace patch to resolve some conflict on arm64/kernel/ptrace.c, functionally it doesn't depend on ftrace though) This patchset adds system call audit support on arm64. Both 32-bit (AUDIT_ARCH_ARM) and 64-bit tasks (AUDIT_ARCH_AARCH64) are supported. Since arm64

[PATCH_v8 1/2] arm64: Add audit support

2014-03-14 Thread AKASHI Takahiro
On AArch64, audit is supported through generic lib/audit.c and compat_audit.c, and so this patch adds arch specific definitions required. Acked-by Will Deacon Acked-by: Richard Guy Briggs Signed-off-by: AKASHI Takahiro --- arch/arm64/Kconfig | 2 ++

[PATCH_v8 2/2] arm64: audit: Add audit hook in syscall_trace_enter/exit()

2014-03-14 Thread AKASHI Takahiro
This patch adds auditing functions on entry to or exit from every system call invocation. Acked-by: Richard Guy Briggs Signed-off-by: AKASHI Takahiro --- arch/arm64/kernel/ptrace.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/kernel/ptrace.c

[PATCH_v5] audit: Add generic compat syscall support

2014-03-14 Thread AKASHI Takahiro
lib/audit.c provides a generic function for auditing system calls. This patch extends it for compat syscall support on bi-architectures (32/64-bit) by adding lib/compat_audit.c. What is required to support this feature are: * add asm/unistd32.h for compat system call names * select

[PATCH_v5] audit: generic compat system call support

2014-03-14 Thread AKASHI Takahiro
Arm64 supports 32-bit mode(AArch32) and 64-bit mode(AArch64). To enable audit on arm64, we want to use lib/audit.c and re-work it to support compat system calls as well without copying it under arch sub-directory. Since this patch is implemented in much the same way as on existing

[PATCH v7 7/7] arm64: ftrace: Add system call tracepoint

2014-03-14 Thread AKASHI Takahiro
This patch allows system call entry or exit to be traced as ftrace events, ie. sys_enter_*/sys_exit_*, if CONFIG_FTRACE_SYSCALLS is enabled. Those events appear and can be controlled under ${sysfs}/tracing/events/syscalls/ Please note that we can't trace compat system calls here because

[PATCH v7 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-14 Thread AKASHI Takahiro
CALLER_ADDRx returns caller's address at specified level in call stacks. They are used for several tracers like irqsoff and preemptoff. Strange to say, however, they are refered even without FTRACE. Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/ftrace.h| 13 -

[PATCH v7 5/7] arm64: ftrace: Add dynamic ftrace support

2014-03-14 Thread AKASHI Takahiro
This patch allows "dynamic ftrace" if CONFIG_DYNAMIC_FTRACE is enabled. Here we can turn on and off tracing dynamically per-function base. On arm64, this is done by patching single branch instruction to _mcount() inserted by gcc -pg option. The branch is replaced to NOP initially at kernel start

[PATCH v7 4/7] arm64: Add ftrace support

2014-03-14 Thread AKASHI Takahiro
This patch implements arm64 specific part to support function tracers, such as function (CONFIG_FUNCTION_TRACER), function_graph (CONFIG_FUNCTION_GRAPH_TRACER) and function profiler (CONFIG_FUNCTION_PROFILER). With 'function' tracer, all the functions in the kernel are traced with timestamps in

[PATCH v5 1/4] arm64: make a single hook to syscall_trace() for all syscall features

2014-03-14 Thread AKASHI Takahiro
Currently syscall_trace() is called only for ptrace. With additional TIF_xx flags defined, it is now called in all the cases of audit, ftrace and seccomp in addition to ptrace. Acked-by: Richard Guy Briggs Acked-by: Will Deacon Signed-off-by: AKASHI Takahiro ---

[PATCH v7 3/7] ftrace: Add arm64 support to recordmcount

2014-03-14 Thread AKASHI Takahiro
Recordmcount utility under scripts is run, after compiling each object, to find out all the locations of calling _mcount() and put them into specific seciton named __mcount_loc. Then linker collects all such information into a table in the kernel image (between __start_mcount_loc and

[PATCH v7 2/7] arm64: Add 'notrace' attribute to unwind_frame() for ftrace

2014-03-14 Thread AKASHI Takahiro
walk_stackframe() calls unwind_frame(), and if walk_stackframe() is "notrace", unwind_frame() should be also "notrace". Acked-by: Will Deacon Signed-off-by: AKASHI Takahiro --- arch/arm64/kernel/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v7 1/7] arm64: add __ASSEMBLY__ in asm/insn.h

2014-03-14 Thread AKASHI Takahiro
Since insn.h is indirectly included in asm/entry-ftrace.S, we need to exclude some declarations by __ASSEMBLY__. Acked-by: Will Deacon Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/insn.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/insn.h

[PATCH v7 0/7] arm64: Add ftrace support

2014-03-14 Thread AKASHI Takahiro
This patchset implements a function tracer on arm64. There was another implementation from Cavium network, but both of us agreed to use my patchset as future base. He is supposed to review this code, too. The only issue that I had some concern on was "fault protection" code in

[PATCH v5 3/4] arm64: Add regs_return_value() in syscall.h

2014-03-14 Thread AKASHI Takahiro
This macro, regs_return_value, is used mainly for audit to record system call's results, but may also be used in test_kprobes.c. Acked-by: Will Deacon Acked-by: Richard Guy Briggs Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/ptrace.h | 5 + 1 file changed, 5 insertions(+)

[PATCH v5 2/4] arm64: split syscall_trace() into separate functions for enter/exit

2014-03-14 Thread AKASHI Takahiro
As done in arm, this change makes it easy to confirm we invoke syscall related hooks, including syscall tracepoint, audit and seccomp which would be implemented later, in correct order. That is, undoing operations in the opposite order on exit that they were done on entry. Signed-off-by: AKASHI

[PATCH v5 0/4] arm64: prerequisites for audit and ftrace

2014-03-14 Thread AKASHI Takahiro
This patchset contains some patches commonly applied for audit and ftrace. Patch [1/4] defines syscall trace related TIF_* flags in order to add hooks, including ftrace, audit and seccomp, later on. Those features will be implemented in separate patchsets, but it's safe to check for all TIF_*

[PATCH v5 4/4] arm64: is_compat_task is defined both in asm/compat.h and linux/compat.h

2014-03-14 Thread AKASHI Takahiro
Some kernel files may include both linux/compat.h and asm/compat.h directly or indirectly. Since both header files contain is_compat_task() under !CONFIG_COMPAT, compiling them with !CONFIG_COMPAT will eventually fail. Such files include kernel/auditsc.c, kernel/seccomp.c and init/do_mountfs.c

Re: linux-next: build failure after merge of the driver-core tree

2014-03-14 Thread Greg KH
On Sat, Mar 15, 2014 at 01:57:29PM +1100, Benjamin Herrenschmidt wrote: > On Sat, 2014-03-15 at 00:03 +, Greg KH wrote: > > On Fri, Mar 14, 2014 at 09:14:55AM +1100, Benjamin Herrenschmidt wrote: > > > On Thu, 2014-03-13 at 11:37 +1100, Benjamin Herrenschmidt wrote: > > > > On Wed, 2014-03-12

Re: [PATCH v3 1/2] Staging: comedi: convert while loops to timeouts in s626.c

2014-03-14 Thread gre...@linuxfoundation.org
On Fri, Mar 14, 2014 at 06:43:37PM -0700, Chase Southwood wrote: > >On Tuesday, March 11, 2014 9:26 AM, Ian Abbott wrote: > > >>On 2014-03-09 04:00, Chase Southwood wrote: > >> This patch changes a handful of while loops to timeouts to prevent > >> infinite looping on hardware failure. A couple

Re: [PATCH RFC 0/9] socket filtering using nf_tables

2014-03-14 Thread Alexei Starovoitov
On Fri, Mar 14, 2014 at 11:16 AM, Pablo Neira Ayuso wrote: > On Fri, Mar 14, 2014 at 08:28:05AM -0700, Alexei Starovoitov wrote: >> On Thu, Mar 13, 2014 at 5:29 AM, Pablo Neira Ayuso >> wrote: >> > On Wed, Mar 12, 2014 at 08:29:07PM -0700, Alexei Starovoitov wrote: >> >> On Wed, Mar 12, 2014 at

[PATCH] virtio-blk: make the queue depth the max supportable by the hypervisor

2014-03-14 Thread Theodore Ts'o
The current virtio block sets a queue depth of 64, which is insufficient for very fast devices. It has been demonstrated that with a high IOPS device, using a queue depth of 256 can double the IOPS which can be sustained. As suggested by Venkatash Srinivas, set the queue depth by default to be

Re: [PATCH] staging: comedi: fix memory leak

2014-03-14 Thread Chase Southwood
>On Friday, March 14, 2014 11:47 AM, Levente Kurusa wrote: >Call kfree() on bdev. The variable is otherwise leaked. > >Signed-off-by: Levente Kurusa >--- >drivers/staging/comedi/drivers/comedi_bond.c | 1 + >1 file changed, 1 insertion(+) > >diff --git

Re: [PATCH v4 1/4] pci: APM X-Gene PCIe controller driver

2014-03-14 Thread Tanmay Inamdar
Thanks for the review and comments. I will incorporate the comments from you and Jingoo Han in next version. -Tanmay On Fri, Mar 14, 2014 at 5:18 AM, Arnd Bergmann wrote: > On Thursday 06 March 2014, Tanmay Inamdar wrote: > >> +static inline void xgene_pcie_cfg_out16(void __iomem *addr, u16

Re: [PATCH v4 2/4] arm64: dts: APM X-Gene PCIe device tree nodes

2014-03-14 Thread Tanmay Inamdar
On Fri, Mar 14, 2014 at 5:07 AM, Arnd Bergmann wrote: > On Thursday 06 March 2014, Tanmay Inamdar wrote: >> + pcie0: pcie@1f2b { >> + status = "disabled"; >> + device_type = "pci"; >> + compatible =

Re: [PATCH 2/6] mm/memory-failure.c: report and recovery for memory error on dirty pagecache

2014-03-14 Thread Andi Kleen
On Thu, Mar 13, 2014 at 05:39:42PM -0400, Naoya Horiguchi wrote: > Unifying error reporting between memory error and normal IO errors is ideal > in a long run, but at first let's solve it separately. I hope that some code > in this patch will be helpful when thinking of the unification. The

[PATCH 1/4] perf kmem: introduce --list-cmds for use by scripts

2014-03-14 Thread Ramkumar Ramachandra
Signed-off-by: Ramkumar Ramachandra --- tools/perf/builtin-kmem.c | 8 +--- tools/perf/perf-completion.sh | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 929462a..bd91de0 100644 ---

[PATCH 0/4] perf: trivial follow-ons to --list-cmds

2014-03-14 Thread Ramkumar Ramachandra
Hi, With "perf kvm: introduce --list-cmds for use by scripts" accepted, these are trivial follow-on patches to enable the same functionality in kmem, mem, lock, and sched. Thanks. Ramkumar Ramachandra (4): perf kmem: introduce --list-cmds for use by scripts perf mem: introduce --list-cmds

[PATCH 4/4] perf sched: introduce --list-cmds for use by scripts

2014-03-14 Thread Ramkumar Ramachandra
Signed-off-by: Ramkumar Ramachandra --- tools/perf/builtin-sched.c| 10 ++ tools/perf/perf-completion.sh | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 6a76a07..347bd32 100644 ---

[PATCH 3/4] perf lock: introduce --list-cmds for use by scripts

2014-03-14 Thread Ramkumar Ramachandra
Signed-off-by: Ramkumar Ramachandra --- tools/perf/builtin-lock.c | 10 ++ tools/perf/perf-completion.sh | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index c852c7a..6148afc 100644 ---

[PATCH 2/4] perf mem: introduce --list-cmds for use by scripts

2014-03-14 Thread Ramkumar Ramachandra
Signed-off-by: Ramkumar Ramachandra --- tools/perf/builtin-mem.c | 15 --- tools/perf/perf-completion.sh | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c index 2e3ade69..4a1a6c9 100644 ---

Re: [PATCH] mm: numa: Recheck for transhuge pages under lock during protection changes

2014-03-14 Thread Sasha Levin
fer: [ 1877.098281](ftrace buffer empty) [ 1877.098825] Modules linked in: [ 1877.099327] CPU: 19 PID: 27913 Comm: trinity-c100 Tainted: GW 3.14.0-rc6-next-20140314-sasha-00012-g5590866 #219 [ 1877.100044] task: 8808f428 ti: 8806e1e54000 task.ti: 8806e1e54

Re: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered

2014-03-14 Thread Sasha Levin
741.194177] Dumping ftrace buffer: [ 741.194645](ftrace buffer empty) [ 741.195109] Modules linked in: [ 741.195728] CPU: 23 PID: 19908 Comm: trinity-c264 Tainted: G W 3.14.0-rc6-next-20140314-sasha-00012-g5590866 #219 [ 741.197549] task: 88061fc2b000 ti: 8805decb8000

Re: linux-next: build failure after merge of the driver-core tree

2014-03-14 Thread Benjamin Herrenschmidt
On Sat, 2014-03-15 at 00:03 +, Greg KH wrote: > On Fri, Mar 14, 2014 at 09:14:55AM +1100, Benjamin Herrenschmidt wrote: > > On Thu, 2014-03-13 at 11:37 +1100, Benjamin Herrenschmidt wrote: > > > On Wed, 2014-03-12 at 16:21 -0400, Tejun Heo wrote: > > > > It's a series of rather complex

[no subject]

2014-03-14 Thread Christian Organization
Good day We are Christian Organization, we give out loan to those who are dedicated christians contact us via email, marieloanlend...@gmail.com Regard Mrs Marie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: pull request: wireless 2014-03-14

2014-03-14 Thread David Miller
From: "John W. Linville" Date: Fri, 14 Mar 2014 14:20:26 -0400 > Please pull these last(?) few wireless bits intended for the 3.14 > stream. Each is here to address a problem found with a patch already > merged... > > Dave Jones gives us a memory leak fix, for an error path in brcmfmac. > >

Re: [PATCH] net: phy: fix uninitalized ethtool_wolinfo in phy_suspend

2014-03-14 Thread David Miller
From: Sebastian Hesselbarth Date: Fri, 14 Mar 2014 10:07:44 +0100 > Callers of phy_ethtool_get_wol are supposed to provide a properly > cleared struct ethtool_wolinfo. Therefore, fix phy_suspend to clear > it before passing it to phy_ethtool_get_wol. > > Signed-off-by: Sebastian Hesselbarth

Re: [RFC PATCH] MAINTAINERS: Add linux.n...@intel.com to INTEL ETHERNET DRIVERS

2014-03-14 Thread David Miller
From: Joe Perches Date: Thu, 13 Mar 2014 10:11:45 -0700 > If this is added to the driver files, then maybe it's > appropriate to add to MAINTAINERS as well. > > Signed-off-by: Joe Perches Applied, thanks Joe. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH 01/10] perf, tools: Add jsmn `jasmine' JSON parser

2014-03-14 Thread Andi Kleen
On Fri, Mar 14, 2014 at 04:41:31PM -0600, David Ahern wrote: > On 3/14/14, 3:31 PM, Andi Kleen wrote: > >@@ -374,6 +376,8 @@ LIB_OBJS += $(OUTPUT)util/stat.o > > LIB_OBJS += $(OUTPUT)util/record.o > > LIB_OBJS += $(OUTPUT)util/srcline.o > > LIB_OBJS += $(OUTPUT)util/data.o > >+LIB_OBJS +=

Re: [PATCH net-next 0/2] bonding: use correct ether type for alb

2014-03-14 Thread David Miller
From: Veaceslav Falico Date: Thu, 13 Mar 2014 12:41:56 +0100 > There have been reports that, while using the ETH_P_LOOP ether type > (0x0060), the ether type is treated as its packet length. > > To avoid that and to not break already existing apps - add new ether type > ETH_P_LOOPBACK that

Re: 3.14-rc: /proc/acpi/battery gone?

2014-03-14 Thread Stefan Lippers-Hollmann
Hi On Saturday 15 March 2014, Rafael J. Wysocki wrote: > On Friday, March 14, 2014 06:14:12 PM Ilia Mirkin wrote: > > On Fri, Mar 14, 2014 at 6:11 PM, Pavel Machek wrote: > > > On Fri 2014-03-14 17:29:41, Ilia Mirkin wrote: > > >> On Fri, Mar 14, 2014 at 5:14 PM, Pavel Machek wrote: [...] > >

Re: [PATCH 3/3] bridge: fix bridge root block on designated port

2014-03-14 Thread Luis R. Rodriguez
On Thu, Mar 13, 2014 at 03:16:23PM -0700, Stephen Hemminger wrote: > On Wed, 12 Mar 2014 20:15:27 -0700 > "Luis R. Rodriguez" wrote: > > > --- a/net/bridge/br_private.h > > +++ b/net/bridge/br_private.h > > @@ -150,6 +150,7 @@ struct net_bridge_port > > u8

Re: [PATCH v2 1/2] cpufreq: Add exit_prepare callback to cpufreq_driver interface

2014-03-14 Thread Rafael J. Wysocki
On Friday, March 14, 2014 02:03:56 PM dirk.brande...@gmail.com wrote: > From: Dirk Brandewie > > This callback allows the driver to do clean up before the CPU is > completely down and its state cannot be modified. This is used > by the intel_pstate driver to reduce the requested P state prior

Re: [PATCH 0/2] Add exit_prepare callback to the cpufreq_driver interface.

2014-03-14 Thread Rafael J. Wysocki
On Friday, March 14, 2014 11:29:04 AM Dirk Brandewie wrote: > On 03/14/2014 10:07 AM, Viresh Kumar wrote: > > On 14 March 2014 20:40, Dirk Brandewie wrote: > >> Are you proposing adding cpufreq_generic_suspend() to the core I can not > >> find > >> it in the mainline code. > > > > Its already

Re: [PATCH v3 1/2] Staging: comedi: convert while loops to timeouts in s626.c

2014-03-14 Thread Chase Southwood
>On Tuesday, March 11, 2014 9:26 AM, Ian Abbott wrote: >>On 2014-03-09 04:00, Chase Southwood wrote: >> This patch changes a handful of while loops to timeouts to prevent >> infinite looping on hardware failure. A couple such loops are in a >> function (s626_debi_transfer()) which is called from

Re: [PATCH] usb: gadget: fsl: Add FSL USB Gadget entry in platform device id

2014-03-14 Thread Felipe Balbi
On Fri, Mar 14, 2014 at 08:52:19PM +, suresh.gu...@freescale.com wrote: > Hi, > Thanks for reviewing my patches. > Please find my comments inline > > -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Thursday, March 13, 2014 8:56 PM > To: Gupta Suresh-B42813 > Cc:

Re: [PATCH] USB : Gadget: fsl: add information message

2014-03-14 Thread Felipe Balbi
On Fri, Mar 14, 2014 at 08:52:49PM +, suresh.gu...@freescale.com wrote: > Hi, > > -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Thursday, March 13, 2014 8:56 PM > To: Gupta Suresh-B42813 > Cc: ba...@ti.com; gre...@linuxfoundation.org;

Re: [PATCH 2/3] bridge: trigger a bridge calculation upon port changes

2014-03-14 Thread Luis R. Rodriguez
On Thu, Mar 13, 2014 at 11:26:25AM -0700, Cong Wang wrote: > On Wed, Mar 12, 2014 at 8:15 PM, Luis R. Rodriguez > wrote: > > spin_lock_bh(>br->lock); > > err = br_setport(p, tb); > > + changed =

Re: [PATCH] USB: Gadget: fsl driver pullup fix

2014-03-14 Thread Felipe Balbi
Hi, (first of all, please fix your email client, we need the quotation marks. See Documentation/email-clients.txt) On Fri, Mar 14, 2014 at 08:53:24PM +, suresh.gu...@freescale.com wrote: > > On Thu, Mar 13, 2014 at 06:40:55PM +0530, Suresh Gupta wrote: > > > Attached is a small fix for the

Re: 3.14-rc: /proc/acpi/battery gone?

2014-03-14 Thread Rafael J. Wysocki
On Friday, March 14, 2014 06:14:12 PM Ilia Mirkin wrote: > On Fri, Mar 14, 2014 at 6:11 PM, Pavel Machek wrote: > > On Fri 2014-03-14 17:29:41, Ilia Mirkin wrote: > >> On Fri, Mar 14, 2014 at 5:14 PM, Pavel Machek wrote: > >> > Hi! > >> > > >> > It seems /proc/acpi/battery interface is gone, and

[PATCH] mfd: bcm590xx: Fix type argument for module device table

2014-03-14 Thread Axel Lin
This fixes below build error. FATAL: drivers/mfd/bcm590xx: sizeof(struct i2c_device_id)=24 is not a modulo of the size of section __mod_i2c_device_table=392. Fix definition of struct i2c_device_id in mod_devicetable.h make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Signed-off-by:

RE: [PATCH V2 06/13] ACPI: introduce enumerable_id flag

2014-03-14 Thread Zhang, Rui
> -Original Message- > From: Wysocki, Rafael J > Sent: Saturday, March 15, 2014 9:03 AM > To: Zhang, Rui > Cc: linux-a...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; matthew.garr...@nebula.com; > dmitry.torok...@gmail.com > Subject: Re: [PATCH V2 06/13] ACPI:

Re: [RFC 4/5] clocksource: omap-timer: Introduce clocksource driver for OMAP SoCs

2014-03-14 Thread Joel Fernandes
On 03/14/2014 07:13 PM, Suman Anna wrote: > Hi Joel, > > On 03/13/2014 03:35 PM, Joel Fernandes wrote: >> We introduce functions to initialize clocksource and clockevent, use >> CLOCKSOURCE_OF_DECLARE to declare the clocksource, and handle the >> clocksource >> selection on a per-SoC basis

Re: [PATCH V2 06/13] ACPI: introduce enumerable_id flag

2014-03-14 Thread Rafael J. Wysocki
On 3/13/2014 5:16 PM, Zhang Rui wrote: Only certain kind of ACPI device objects can be enumerated via ACPI. These ACPI device objects include 1. ACPI device objects that have _HID control method. 2. some ACPI device objects that have Linux specified HID strings. In order to distinguish those

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-14 Thread Tetsuo Handa
Joseph Salisbury wrote: > A kernel bug report was opened against Ubuntu[0]. We performed a kernel > bisect, and found that reverting the following commit resolved this bug: I added a comment to that bug report. This commit by chance revealed incorrect error handling of mptsas_probe() or

Re: [PATCH] PCI: Do not enable INTx in pci_reenable_device()

2014-03-14 Thread Yinghai Lu
On Tue, Mar 11, 2014 at 10:48 AM, Bjorn Helgaas wrote: > Andreas reported that after 1f42db786b14 ("PCI: Enable INTx if BIOS left > them disabled"), pciehp surprise removal stopped working. > > This happens because pci_reenable_device() on the hotplug bridge (used in > the

Re: Trusted kernel patchset for Secure Boot lockdown

2014-03-14 Thread One Thousand Gnomes
> So as far as the narrow question of whether we should accept these > patches, I think it's a good thing. Personally, I'm always going to > be disabling UEFI secure boot (even if it doesn't brick my laptop), > because for me, the security guarantees it provides isn't worth it. > But there will

btrfs: lock inversion between delayed_node->mutex and found->groups_sem

2014-03-14 Thread Sasha Levin
Hi all, While fuzzing with trinity inside a KVM tools guest running the latest -next kernel I've stumbled on the following: [ 788.451695] = [ 788.452455] [ INFO: possible irq lock inversion dependency detected ] [ 788.453020]

Re: [RFC 4/5] clocksource: omap-timer: Introduce clocksource driver for OMAP SoCs

2014-03-14 Thread Suman Anna
Hi Joel, On 03/13/2014 03:35 PM, Joel Fernandes wrote: We introduce functions to initialize clocksource and clockevent, use CLOCKSOURCE_OF_DECLARE to declare the clocksource, and handle the clocksource selection on a per-SoC basis (Currently only AM335x is supported). Powering up of the timer

Re: [RFC PATCH] Support map_pages() for DAX

2014-03-14 Thread Toshi Kani
On Sat, 2014-03-15 at 01:32 +0200, Kirill A. Shutemov wrote: > On Fri, Mar 14, 2014 at 05:03:19PM -0600, Toshi Kani wrote: > > +void dax_map_pages(struct vm_area_struct *vma, struct vm_fault *vmf, > > + get_block_t get_block) > > +{ > > + struct file *file = vma->vm_file; > > +

Re: linux-next: build failure after merge of the driver-core tree

2014-03-14 Thread Greg KH
On Fri, Mar 14, 2014 at 09:14:55AM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2014-03-13 at 11:37 +1100, Benjamin Herrenschmidt wrote: > > On Wed, 2014-03-12 at 16:21 -0400, Tejun Heo wrote: > > > It's a series of rather complex patches. I really don't think > > > duplicating them is a good

Re: [PATCH] [RFC] perf: Fix a race between ring_buffer_detach() and ring_buffer_wakeup()

2014-03-14 Thread Paul E. McKenney
On Fri, Mar 14, 2014 at 04:02:31PM -0700, Paul E. McKenney wrote: > On Fri, Mar 14, 2014 at 11:43:17PM +0100, Peter Zijlstra wrote: > > On Fri, Mar 14, 2014 at 01:47:37PM -0700, Paul E. McKenney wrote: > > > This general idea can be made to work, but it will need some > > > internal-to-RCU help.

Re: [PATCHv4 0/7] omap hwspinlock dt support

2014-03-14 Thread Suman Anna
Hi Ohad, On 03/14/2014 03:10 PM, Ohad Ben-Cohen wrote: Hi Suman, Mark, On Mon, Feb 24, 2014 at 8:14 PM, Suman Anna wrote: Mark, Ohad, ... Gentle reminder, can you provide your acks/comments? Sorry for the late jump in. I have a few comments: Thanks for the comments. It probably covers

Re: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered

2014-03-14 Thread Sasha Levin
On 12/17/2013 08:00 AM, Vlastimil Babka wrote: From: Vlastimil Babka Date: Fri, 13 Dec 2013 14:25:21 +0100 Subject: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered Since commit ff6a6da60 ("mm: accelerate munlock() treatment of THP pages") munlock skips tail pages of a

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-03-14 Thread gre...@linuxfoundation.org
On Fri, Mar 14, 2014 at 04:50:23PM +, Julien Grall wrote: > On 02/24/2014 08:49 PM, Stefano Stabellini wrote: > > On Mon, 24 Feb 2014, gre...@linuxfoundation.org wrote: > > Julien is proposing to store the list of "safe" devices on an hash table > > in the Xen specific code (in

Re: [PATCH 2/2] net: Implement SO_PEERCGROUP

2014-03-14 Thread Eric W. Biederman
Vivek Goyal writes: > On Wed, Mar 12, 2014 at 07:12:25PM -0700, Andy Lutomirski wrote: > >> I can think of at least three other ways to do this. >> >> 1. Fix Docker to use user namespaces and use the uid of the requesting >> process via SCM_CREDENTIALS. > > Using user namespaces sounds like the

Re: [PATCH 2/2] net: Implement SO_PEERCGROUP

2014-03-14 Thread Eric W. Biederman
Vivek Goyal writes: > On Thu, Mar 13, 2014 at 12:58:14PM -0700, Andy Lutomirski wrote: >> On Thu, Mar 13, 2014 at 12:53 PM, Vivek Goyal wrote: >> > On Thu, Mar 13, 2014 at 10:55:16AM -0700, Andy Lutomirski wrote: >> > >> > [..] >> >> >> 2. Docker is a container system, so use the "container"

Re: [PATCH net-next v3 1/2] r8152:addRTL8152_EARLY_AGG_TIMEOUT_SUPER

2014-03-14 Thread Francois Romieu
hayeswang : [...] > Besides, I don't wish to modify the setting by ethtool when re-loading > the driver or rebooting every time. Why ? The recipe is different but there isn't much setup difference between a module param and an ethtool command that is run through udev. The latter is more

Re: [PATCH] staging: android: fix coding style

2014-03-14 Thread Greg KH
On Thu, Mar 13, 2014 at 10:44:55AM +0100, mo...@2600fr.org wrote: > From: mourn > > Signed-off-by: mourn As said in the thread for your other thread, this patch can't be accepted unless you use your real name, sorry. greg k-h -- To unsubscribe from this list: send the line "unsubscribe

Re: [RFC PATCH] Support map_pages() for DAX

2014-03-14 Thread Kirill A. Shutemov
On Fri, Mar 14, 2014 at 05:03:19PM -0600, Toshi Kani wrote: > +void dax_map_pages(struct vm_area_struct *vma, struct vm_fault *vmf, > + get_block_t get_block) > +{ > + struct file *file = vma->vm_file; > + struct inode *inode = file_inode(file); > + struct buffer_head bh; >

Re: [PATCH] staging: android: fix coding style

2014-03-14 Thread Greg KH
On Thu, Mar 13, 2014 at 03:13:04PM +0100, mourn wrote: > > > The changes look good, however you should be a bit more specific about > > what the > > fixes are, and that you used checkpatch.pl to find them (I assume). > > > > Yes, you are right. I can edit the commit log. > > > Also,

Re: Trusted kernel patchset for Secure Boot lockdown

2014-03-14 Thread Theodore Ts'o
On Fri, Mar 14, 2014 at 10:08:40PM +, One Thousand Gnomes wrote: > > Signed userspace is not a requirement, and therefore any solution that > > relies on a signed initrd is inadequate. There are use cases that > > require verification of the initrd and other levels. This isn't one of > > them.

Re: [PATCH 9/9] powerpc/pm: support deep sleep feature on T1040

2014-03-14 Thread Scott Wood
On Wed, 2014-03-12 at 18:40 +0800, Chenhui Zhao wrote: > On Tue, Mar 11, 2014 at 08:10:24PM -0500, Scott Wood wrote: > > On Fri, 2014-03-07 at 12:58 +0800, Chenhui Zhao wrote: > > > From: Zhao Chenhui > > > > > > T1040 supports deep sleep feature, which can switch off most parts of > > > the SoC

Re: [RFC PATCH] MAINTAINERS: Add linux.n...@intel.com to INTEL ETHERNET DRIVERS

2014-03-14 Thread Jeff Kirsher
On Fri, 2014-03-14 at 15:43 -0400, David Miller wrote: > From: Joe Perches > Date: Thu, 13 Mar 2014 10:11:45 -0700 > > > If this is added to the driver files, then maybe it's > > appropriate to add to MAINTAINERS as well. > > > > Signed-off-by: Joe Perches > > Intel folks, this look ok to

[RFC PATCH] Support map_pages() for DAX

2014-03-14 Thread Toshi Kani
DAX provides direct access to NVDIMM and bypasses the page caches. Newly introduced map_pages() callback reduces page faults by adding mappings around a faulted page, which is not supported for DAX. This patch implements map_pages() callback for DAX. It reduces a number of page faults and

Re: [PATCH] perf/x86/intel: Use rdmsrl_safe when initializing RAPL PMU.

2014-03-14 Thread Venkatesh Srinivas
On Fri, Mar 14, 2014 at 10:57:58AM -0600, David Ahern wrote: On 3/14/14, 10:17 AM, Andi Kleen wrote: The Intel ISR section for RDMSR seems to say: "Specifying a reserved or unimplemented MSR address in ECX will also cause a general protection exception". From a guest's perspective,

Re: [PATCH v2 01/11] base: power: Add generic OF-based power domain look-up

2014-03-14 Thread Kevin Hilman
Tomasz Figa writes: > This patch introduces generic code to perform power domain look-up using > device tree and automatically bind devices to their power domains. > Generic device tree binding is introduced to specify power domains of > devices in their device tree nodes. > > Backwards

Re: [PATCH] [RFC] perf: Fix a race between ring_buffer_detach() and ring_buffer_wakeup()

2014-03-14 Thread Paul E. McKenney
On Fri, Mar 14, 2014 at 11:43:17PM +0100, Peter Zijlstra wrote: > On Fri, Mar 14, 2014 at 01:47:37PM -0700, Paul E. McKenney wrote: > > This general idea can be made to work, but it will need some > > internal-to-RCU help. One vulnerability of the patch below is the > > following sequence of

Re: [PATCH 8/9] powerpc/85xx: add save/restore functions for core registers

2014-03-14 Thread Scott Wood
On Wed, 2014-03-12 at 17:42 +0800, Chenhui Zhao wrote: > On Tue, Mar 11, 2014 at 07:45:14PM -0500, Scott Wood wrote: > > On Fri, 2014-03-07 at 12:58 +0800, Chenhui Zhao wrote: > > > From: Wang Dongsheng > > > > > > Add booke_cpu_state_save() and booke_cpu_state_restore() functions which > > >

[PATCH 2/2] Cleanup useless architecture versions of scatterlist.h

2014-03-14 Thread Laura Abbott
There's no need to have an architecture version of scatterlist.h if the only thing the file does is include asm-generic/scatterlist.h. Switch to the asm-generic versions directly. Cc: Mikael Starvik Cc: Jesper Nilsson Cc: David Howells Cc: Hirokazu Takata , Cc: Michal Simek Cc: David Howells

[PATCH 1/2] lib/scatterlist: Make ARCH_HAS_SG_CHAIN an actual Kconfig

2014-03-14 Thread Laura Abbott
Rather than have architectures #define ARCH_HAS_SG_CHAIN in an architecture specific scatterlist.h, make it a proper Kconfig option and use that instead. At same time, remove the header files are are now mostly useless and just include asm-generic/scatterlist.h. Cc: Russell King Cc: Tony Luck

Re: Trusted kernel patchset for Secure Boot lockdown

2014-03-14 Thread Matthew Garrett
On Fri, 2014-03-14 at 22:31 +, One Thousand Gnomes wrote: > On Fri, 14 Mar 2014 22:15:45 + > Matthew Garrett wrote: > > The general problem includes having to support this even without an > > selinux policy. > > Yes. No dispute about that. But equally the general solution should allow >

Re: [PATCH 7/9] fsl: add EPU FSM configuration for deep sleep

2014-03-14 Thread Scott Wood
On Wed, 2014-03-12 at 16:34 +0800, Chenhui Zhao wrote: > On Tue, Mar 11, 2014 at 07:08:43PM -0500, Scott Wood wrote: > > On Fri, 2014-03-07 at 12:58 +0800, Chenhui Zhao wrote: > > > From: Hongbo Zhang > > > > > > In the last stage of deep sleep, software will trigger a Finite > > > State Machine

[GIT PULL] x86 fixes for v3.14-rc7

2014-03-14 Thread H. Peter Anvin
Hi Linus, Two x86 fixes: Suresh's eager FPU fix, and a fix to the NUMA quirk for AMD northbridges. This only includes Suresh's fix patch, not the "mostly a cleanup" patch which had __init issues. The following changes since commit fa389e220254c69ffae0d403eac4146171062d08: Linux 3.14-rc6

Re: [PATCH 6/9] powerpc/85xx: support sleep feature on QorIQ SoCs with RCPM

2014-03-14 Thread Scott Wood
On Wed, 2014-03-12 at 16:08 +0800, Chenhui Zhao wrote: > On Tue, Mar 11, 2014 at 07:00:27PM -0500, Scott Wood wrote: > > On Fri, 2014-03-07 at 12:58 +0800, Chenhui Zhao wrote: > > > In sleep mode, the clocks of e500 cores and unused IP blocks is > > > turned off. The IP blocks which are allowed to

Re: [patch v3]DM: dm-insitu-comp: a compressed DM target for SSD

2014-03-14 Thread Mike Snitzer
On Fri, Mar 14 2014 at 5:40am -0400, Shaohua Li wrote: > On Mon, Mar 10, 2014 at 09:52:56AM -0400, Mike Snitzer wrote: > > On Fri, Mar 07 2014 at 2:57am -0500, > > Shaohua Li wrote: > > > > > ping! > > > > Hi, > > > > I intend to get dm-insitu-comp reviewed for 3.15. Sorry I haven't > >

Re: [PATCH] [RFC] perf: Fix a race between ring_buffer_detach() and ring_buffer_wakeup()

2014-03-14 Thread Peter Zijlstra
On Fri, Mar 14, 2014 at 01:47:37PM -0700, Paul E. McKenney wrote: > This general idea can be made to work, but it will need some > internal-to-RCU help. One vulnerability of the patch below is the > following sequence of steps: > > 1.RCU has just finished a grace period, and is doing the >

Re: [PATCH 01/10] perf, tools: Add jsmn `jasmine' JSON parser

2014-03-14 Thread David Ahern
On 3/14/14, 3:31 PM, Andi Kleen wrote: @@ -374,6 +376,8 @@ LIB_OBJS += $(OUTPUT)util/stat.o LIB_OBJS += $(OUTPUT)util/record.o LIB_OBJS += $(OUTPUT)util/srcline.o LIB_OBJS += $(OUTPUT)util/data.o +LIB_OBJS += $(OUTPUT)util/jsmn.o +LIB_OBJS += $(OUTPUT)util/json.o LIB_OBJS +=

Re: [PATCH 5/9] powerpc/85xx: disable irq by hardware when suspend for 64-bit

2014-03-14 Thread Scott Wood
On Wed, 2014-03-12 at 15:46 +0800, Chenhui Zhao wrote: > On Tue, Mar 11, 2014 at 06:51:20PM -0500, Scott Wood wrote: > > On Fri, 2014-03-07 at 12:58 +0800, Chenhui Zhao wrote: > > > In 64-bit mode, kernel just clears the irq soft-enable flag > > > in struct paca_struct to disable external irqs.

Re: [PATCH 3/9] powerpc/rcpm: add RCPM driver

2014-03-14 Thread Scott Wood
On Wed, 2014-03-12 at 11:59 +0800, Chenhui Zhao wrote: > On Tue, Mar 11, 2014 at 06:42:51PM -0500, Scott Wood wrote: > > On Fri, 2014-03-07 at 12:57 +0800, Chenhui Zhao wrote: > > > +int fsl_rcpm_init(void) > > > +{ > > > + struct device_node *np; > > > + > > > + np = of_find_compatible_node(NULL,

Re: Trusted kernel patchset for Secure Boot lockdown

2014-03-14 Thread One Thousand Gnomes
On Fri, 14 Mar 2014 22:15:45 + Matthew Garrett wrote: > On Fri, 2014-03-14 at 22:08 +, One Thousand Gnomes wrote: > > On Fri, 14 Mar 2014 21:56:33 + > > Matthew Garrett wrote: > > > Signed userspace is not a requirement, and therefore any solution that > > > relies on a signed

Re: [PATCH 9/9] powerpc/pm: support deep sleep feature on T1040

2014-03-14 Thread Scott Wood
On Thu, 2014-03-13 at 15:46 +0800, Kevin Hao wrote: > On Wed, Mar 12, 2014 at 12:43:05PM -0500, Scott Wood wrote: > > > Shouldn't we use "readback, sync" here? The following is quoted form > > > t4240RM: > > > To guarantee that the results of any sequence of writes to configuration > > >

Re: [ovs-dev] [PATCH] openvswitch: Orphan frags before sending to userspace via Netlink to avoid guest stall

2014-03-14 Thread Zoltan Kiss
On 11/03/14 19:41, Zoltan Kiss wrote: On 07/03/14 17:59, Thomas Graf wrote: On 03/07/2014 06:28 PM, Pravin Shelar wrote: Problem is mapping SKBTX_DEV_ZEROCOPY pages to userspace. skb_zerocopy is not doing that. Unless I missing something, Current netlink code can not handle skb-frags with

[PATCH 1/4] sched/rt: Sum number of all children tasks in hierarhy at rt_nr_running

2014-03-14 Thread Kirill Tkhai
{inc,dec}_rt_tasks used to count entities which are directly queued on rt_rq. If an entity was not a task (i.e., it is some queue), its children were not counted. There is no problem here, but now we want to count number of all tasks which are actually queued under the rt_rq in all the hierarhy

[PATCH 4/4] sched: Revert commit 4c6c4e38c4e9

2014-03-14 Thread Kirill Tkhai
This reverts commit 4c6c4e38c4e9 [sched/core: Fix endless loop in pick_next_task()], which is not necessary after [sched/rt: Substract number of tasks of throttled queues from rq->nr_running] Signed-off-by: Kirill Tkhai CC: Peter Zijlstra CC: Ingo Molnar --- kernel/sched/fair.c |4 +---

[PATCH 3/4] sched/rt: Substract number of tasks of throttled queues from rq->nr_running

2014-03-14 Thread Kirill Tkhai
Now rq->rt becomes to be able to be in dequeued or enqueued state. We add new member rt_rq->rt_queued, which is used to indicate this. The member is used only for top queue rq->rt_rq. The goal is to fit generic scheme which is used in deadline and fair classes, i.e. throttled rt_rq's

[PATCH 2/4] sched/rt: Add accessors rq_of_rt_se()

2014-03-14 Thread Kirill Tkhai
Two accessors for RT_GROUP_SCHED and !RT_GROUP_SCHED cases. Signed-off-by: Kirill Tkhai CC: Peter Zijlstra CC: Ingo Molnar --- kernel/sched/rt.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index

  1   2   3   4   5   6   7   8   9   10   >