[PATCH V5] Allow compaction of unevictable pages

2015-03-13 Thread Eric B Munson
Currently, pages which are marked as unevictable are protected from compaction, but not from other types of migration. The POSIX real time extension explicitly states that mlock() will prevent a major page fault, but the spirit of is is that mlock() should give a process the ability to control sou

Re: [PATCH v10 16/21] irqchip: Add GICv2 specific ACPI boot support

2015-03-13 Thread Jason Cooper
Hanjun, Catalin, On Thu, Mar 12, 2015 at 03:31:57PM +0800, Hanjun Guo wrote: > On 2015/3/12 13:12, Jason Cooper wrote: > > On Thu, Mar 12, 2015 at 09:46:39AM +0800, Hanjun Guo wrote: > >> On 2015/3/12 7:11, Jason Cooper wrote: > >>> Hey Grant, > >>> > >>> On Wed, Mar 11, 2015 at 06:04:50PM +,

Re: [PATCH v4 4/9] selftests: Add install target

2015-03-13 Thread Shuah Khan
On 03/10/2015 10:06 PM, Michael Ellerman wrote: > This adds make install support to selftests. The basic usage is: > > $ cd tools/testing/selftests > $ make install > > That installs into tools/testing/selftests/install, which can then be > copied where ever necessary. > > The install destinatio

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-13 Thread Eric W. Biederman
Dave Hansen writes: > On 03/12/2015 03:35 PM, Andrew Morton wrote: >> On Mon, 09 Mar 2015 13:43:21 -0700 Dave Hansen wrote: >>> From: Dave Hansen >>> >>> Physical addresses are sensitive information. There are >>> existing, known exploits that are made easier if physical >>> information is ava

Re: [PATCH v4 3/9] selftests: Introduce minimal shared logic for running tests

2015-03-13 Thread Shuah Khan
On 03/10/2015 10:05 PM, Michael Ellerman wrote: > This adds a Make include file which most selftests can then include to > get the run_tests logic. > > On its own this has the advantage of some reduction in repetition, and > also means the pass/fail message is defined in fewer places. > > However

[GIT PULL] at91: cleanup for 4.1 #2

2015-03-13 Thread Nicolas Ferre
Arnd, Olof, Kevin, Another cleanup series on top of the previous one that I sent you this afternoon ;-) I think it is the last time that we can remove a whole bunch of files and legacy code... We were getting used to it! I still have another one dealing with at91rm9200 ST cleanup that I plan to se

Re: [PATCH] vxlan: fix wrong usage of VXLAN_VID_MASK

2015-03-13 Thread David Miller
From: Alexey Kodanev Date: Fri, 13 Mar 2015 19:13:53 +0300 > commit dfd8645ea1bd9127 wrongly assumes that VXLAN_VDI_MASK includes > eight lower order reserved bits of VNI field that are using for remote > checksum offload. > > Right now, when VNI number greater then 0x, vxlan_udp_encap_recv(

Re: [PATCH 0/6] ARM: cpuidle: Unify the ARM64/ARM DT approach

2015-03-13 Thread Daniel Lezcano
On 03/13/2015 06:03 PM, Kevin Hilman wrote: Daniel Lezcano writes: There is a big number of cpuidle drivers for the ARM architecture. These drivers have been cleaned up and grouped into the drivers/cpuidle directory to keep track of the changes more easily and ensure the code is following the

Re: [PATCH net-next 1/2] bpf: allow extended BPF programs access skb fields

2015-03-13 Thread Alexei Starovoitov
On 3/13/15 9:43 AM, Daniel Borkmann wrote: On 03/13/2015 05:22 PM, Alexei Starovoitov wrote: On 3/13/15 2:57 AM, Daniel Borkmann wrote: On 03/13/2015 03:21 AM, Alexei Starovoitov wrote: introduce user accessible mirror of in-kernel 'struct sk_buff': For each member, I'd also add BUILD_BUG_ON

[PATCH v3 2/5] arm/arm64: KVM: add a common vgic_queue_irq_to_lr fn

2015-03-13 Thread Alex Bennée
This helps re-factor away some of the repetitive code and makes the code flow more nicely. Signed-off-by: Alex Bennée --- v3 - Move to before the un-queue active patch diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 0cc6ab6..6682d58 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm

[PATCH v3 1/5] arm/arm64: KVM: export VCPU power state via MP_STATE ioctl

2015-03-13 Thread Alex Bennée
To cleanly restore an SMP VM we need to ensure that the current pause state of each vcpu is correctly recorded. Things could get confused if the CPU starts running after migration restore completes when it was paused before it state was captured. We use the existing KVM_GET/SET_MP_STATE ioctl to d

[PATCH v3 3/5] arm/arm64: KVM: support for un-queuing active IRQs

2015-03-13 Thread Alex Bennée
From: Christoffer Dall Migrating active interrupts causes the active state to be lost completely. This implements some additional bitmaps to track the active state on the distributor and export this to user space. Signed-off-by: Christoffer Dall Signed-off-by: Alex Bennée --- AJB: - fixed

Re: [PATCH 0/6] ARM: cpuidle: Unify the ARM64/ARM DT approach

2015-03-13 Thread Kevin Hilman
Daniel Lezcano writes: > There is a big number of cpuidle drivers for the ARM architecture. > > These drivers have been cleaned up and grouped into the drivers/cpuidle > directory to keep track of the changes more easily and ensure the code > is following the same scheme across the drivers. > > T

[PATCH v3 4/5] arm/arm64: KVM: Fix migration race in the arch timer

2015-03-13 Thread Alex Bennée
From: Christoffer Dall When a VCPU is no longer running, we currently check to see if it has a timer scheduled in the future, and if it does, we schedule a host hrtimer to notify is in case the timer expires while the VCPU is still not running. When the hrtimer fires, we mask the guest's timer a

Re: [PATCH v4 4/9] selftests: Add install target

2015-03-13 Thread Shuah Khan
On 03/13/2015 10:33 AM, Dave Jones wrote: > On Thu, Mar 12, 2015 at 02:15:44PM +1100, Michael Ellerman wrote: > > On Wed, 2015-03-11 at 07:18 -0600, Shuah Khan wrote: > > > On 03/10/2015 10:06 PM, Michael Ellerman wrote: > > > > This adds make install support to selftests. The basic usage is: >

[PATCH v3 5/5] arm/arm64: KVM: Keep elrsr/aisr in sync with software model

2015-03-13 Thread Alex Bennée
From: Christoffer Dall There is an interesting bug in the vgic code, which manifests itself when the KVM run loop has a signal pending or needs a vmid generation rollover after having disabled interrupts but before actually switching to the guest. In this case, we flush the vgic as usual, but we

Re: [PATCH v2 5/7] ARM: at91: sama5d4: remove useless map_io

2015-03-13 Thread Nicolas Ferre
Le 05/03/2015 20:17, Alexandre Belloni a écrit : > All the peripheral remapped at io_map are taken care of by their respective > drivers. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre Nice: I take this one with the at91-cleanup2 tag. So I'll skip this one when taking care of thi

Re: [PATCH v5 02/10] mfd: syscon: Add atmel system timer registers definition

2015-03-13 Thread Nicolas Ferre
Le 13/03/2015 11:40, Alexandre Belloni a écrit : > Hi, > > On 13/03/2015 at 08:03:15 +, Lee Jones wrote : >> On Thu, 12 Mar 2015, Alexandre Belloni wrote: >> >>> AT91RM920 has a memory range reserved for timer and watchdog configuration. >>> Expose those registers so that drivers can make use

Re: [PATCHv2] thermal: add omap3 support

2015-03-13 Thread Eduardo Valentin
Hey Pavel, On Fri, Mar 13, 2015 at 01:09:35PM +0100, Pavel Machek wrote: > Hi! > > I checked 4.0-rc3 and linux-next as of today, and can not see omap3 > thermal support. Can you apply the patches? Yeah, it should be possible. Apologize, it really fell into the cracks. There is a comment on it

Re: [PATCHv2] thermal: add omap3 support

2015-03-13 Thread Eduardo Valentin
On Sun, Jan 18, 2015 at 09:28:24PM +0100, Pavel Machek wrote: > > Add support for omap3430 sensor. Tested on Nokia N900. > > Fix help text to be closer to english. > > Ifdefs in ti-bandgap.h are not neccessary, as users have #ifdefs, > already. > > Signed-off-by: Pavel Machek > > diff --git a

[PATCH] staging: panel: change struct bits to a bit array

2015-03-13 Thread Isaac Lleida
From: isaky This path implements a bit array representing the LCD signal states instead of the old "struct bits", which used char to represent a single bit. This will reduce the memory usage. Signed-off-by: Isaac Lleida --- drivers/staging/panel/panel.c | 86 -

Re: [PATCH] ath10k: match wait_for_completion_timeout return type

2015-03-13 Thread Kalle Valo
Nicholas Mc Guire writes: > Return type of wait_for_completion_timeout is unsigned long not int. > An appropriately named unsigned long is added and the assignments fixed up. > > Signed-off-by: Nicholas Mc Guire Doesn't apply: Applying: ath10k: match wait_for_completion_timeout return type fat

Re: [PATCH v2] mce: use safe MSR accesses

2015-03-13 Thread Joel Schopp
On 03/13/2015 11:03 AM, jesse.lar...@amd.com wrote: > From: Jesse Larrew > > Certain MSRs are only relevant to a kernel in host mode, and kvm had > chosen not to implement these MSRs at all for guests. If a guest kernel > ever tried to access these MSRs, the result was a general protection > faul

Re: [PATCH 1/5] clk: mediatek: Add initial common clock support for Mediatek SoCs.

2015-03-13 Thread Matthias Brugger
On 22/02/15 12:49, Sascha Hauer wrote: > From: James Liao > diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h > new file mode 100644 > index 000..c7c0d35 > --- /dev/null > +++ b/drivers/clk/mediatek/clk-mtk.h [...] > +void __init mtk_clk_register_plls(struct dev

Re: [PATCH 06/11] perf data: Switch to multiple cpu stream files

2015-03-13 Thread Jérémie Galarneau
On Thu, Mar 12, 2015 at 3:17 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Mar 12, 2015 at 09:40:09PM +0800, Wang Nan escreveu: >> On 2015/3/12 20:34, Jiri Olsa wrote: >> > On Thu, Mar 12, 2015 at 07:37:02PM +0800, Wang Nan wrote: >> >> Hi Jiri, >> >> >> >> Have you noticed that this patch causes

[git pull] gadgetfs fixes

2015-03-13 Thread Al Viro
Assorted fixes around AIO on gadgetfs: leaks, use-after-free, troubles caused by ->f_op flipping. Please, pull from git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git gadget Shortlog: Al Viro (8): new helper: dup_iter() move iov_iter.c from mm/ to lib/ gadget/fun

Re: [PATCH net-next 1/2] bpf: allow extended BPF programs access skb fields

2015-03-13 Thread Daniel Borkmann
On 03/13/2015 05:22 PM, Alexei Starovoitov wrote: On 3/13/15 2:57 AM, Daniel Borkmann wrote: On 03/13/2015 03:21 AM, Alexei Starovoitov wrote: introduce user accessible mirror of in-kernel 'struct sk_buff': For each member, I'd also add BUILD_BUG_ON()s similarly as we have in convert_bpf_exte

[PATCH v2] spi: Ensure that CS line is in non-active state after spi_setup()

2015-03-13 Thread Ivan T. Ivanov
Some devices samples state of the chip select signal during power up and act differently based on this state, so SPI core should ensure that CS line is driven in non-active state after spi_setup(). Signed-off-by: Ivan T. Ivanov --- drivers/spi/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [PATCH 9/9] tulip_core.c : out-of-bounds check.

2015-03-13 Thread David Miller
From: Ameen Ali Date: Fri, 13 Mar 2015 16:15:52 +0200 > Array index 'j' is used before limits check. > > Suggest put limit check before index use. > > Signed-off-by : Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

Re: [PATCH v4 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

2015-03-13 Thread Kumar Gala
On Mar 13, 2015, at 11:25 AM, Mark Rutland wrote: > On Fri, Mar 13, 2015 at 03:50:42PM +, Kumar Gala wrote: >> >> On Mar 13, 2015, at 5:52 AM, Mark Rutland wrote: >> +/ { + chosen { + stdout-path = &blsp1_uart2; + }; >>> >>> It would be good if we had the c

Re: [PATCH v6 tip 3/8] tracing: allow BPF programs to call bpf_ktime_get_ns()

2015-03-13 Thread Alexei Starovoitov
On 3/13/15 4:24 AM, He Kuang wrote: Hi, Alexei I've followed up your bpf version. In bpf filter, sometimes we need to get 'pid' and some other context informations to decide whether to filter or not. For example, to trace a vfs read procedure, we can insert bpf program to '__vfs_read(struct fil

Re: CONFIG_PREEMPT_RT local_softirq_pending warning when ISR blocks

2015-03-13 Thread Sebastian Andrzej Siewior
* Brian Silverman | 2015-03-09 20:36:27 [-0400]: >> It looks like your softirq for net_rx is getting a packet and then after >> raising NET_RX (again?) it blocks on a lock. In order to get this lock >> it boosts and schedules bash. It gets runable but on the other CPU. On >> CPU1 there is nothig g

Re: [PATCH v3 4/9] x86, pci, acpi: Move arch-agnostic MMCONFIG (aka ECAM) and ACPI code out of arch/x86/ directory

2015-03-13 Thread Mark Salter
On Tue, 2015-03-10 at 12:35 +0100, Tomasz Nowicki wrote: > ECAM standard and MCFG table are architecture independent and it makes > sense to share common code across all architectures. Both are going to > corresponding files - ecam.c and mcfg.c > > While we are here, rename pci_parse_mcfg to acpi_

Re: [PATCH v5 00/10] Atmel System Timer cleanups

2015-03-13 Thread Nicolas Ferre
Le 13/03/2015 11:33, Daniel Lezcano a écrit : > On 03/13/2015 11:33 AM, Alexandre Belloni wrote: >> On 13/03/2015 at 11:23:05 +0100, Daniel Lezcano wrote : >>> On 03/12/2015 01:07 PM, Alexandre Belloni wrote: This patch set cleans up the system timer driver. The main goal is to get r

Re: [PATCH] tracing: add trace event for memory-failure

2015-03-13 Thread Tony Luck
On Fri, Mar 13, 2015 at 3:10 AM, Xie XiuQi wrote: > Memory-failure as the high level machine check handler, it's necessary > to report memory page recovery action result to user space by ftrace. > > This patch add a event at ras group for memory-failure. > > The output like below: > # tracer: nop

Re: linux-next: manual merge of the net-next tree with the vfs tree

2015-03-13 Thread Al Viro
On Fri, Mar 13, 2015 at 03:38:17PM +1100, Stephen Rothwell wrote: > There is also a conflict with e9eab93cc2dc ("fs: don't allow to > complete sync iocbs through aio_complete"), though it doesn't show up > in the resolution since I I just used the next-next tree bits. So a > common branch contain

Re: 3TB memory and high system load 80%+

2015-03-13 Thread jesper
> Hi. > > We have severe issues getting a Intel(R) Xeon(R) CPU E7-8857 v2 @ 3.00GHz > 48 cores server to perform nice. And report from /proc/meminfo for information. MemTotal: 3170751320 kB MemFree:63618844 kB Buffers: 86516 kB Cached: 3008212376 kB SwapCached:

Re: [PATCH v4 4/9] selftests: Add install target

2015-03-13 Thread Dave Jones
On Thu, Mar 12, 2015 at 02:15:44PM +1100, Michael Ellerman wrote: > On Wed, 2015-03-11 at 07:18 -0600, Shuah Khan wrote: > > On 03/10/2015 10:06 PM, Michael Ellerman wrote: > > > This adds make install support to selftests. The basic usage is: > > > > > > v3: Rebase onto 4.0-rc2. > > > R

RE: [PATCH v2] mce: use safe MSR accesses

2015-03-13 Thread Luck, Tony
-rdmsrl(msrs[i], val); - -/* CntP bit set? */ -if (val & BIT_64(62)) { - val &= ~BIT_64(62); - wrmsrl(msrs[i], val); -

3TB memory and high system load 80%+

2015-03-13 Thread jesper
Hi. We have severe issues getting a Intel(R) Xeon(R) CPU E7-8857 v2 @ 3.00GHz 48 cores server to perform nice. We have just setup a new server for a PostgreSQL database with 3TB of memory, primarily for disk-io-caching. The server is running Ubuntu 12.04 on kernel 3.13.0-43-generic. The only chan

[PATCH v2] selftests/kcmp: exit with non-zero code in a fail case

2015-03-13 Thread Andrey Vagin
Currently this test always returs zero code and a child process returns non-zero code only if the last testcase failed. v2: don't forget to return smth from ksft_exit() Cc: Michael Ellerman Cc: Shuah Khan Cc: Cyrill Gorcunov Signed-off-by: Andrey Vagin --- tools/testing/selftests/kcmp/kcmp_t

Re: [PATCH] mm/slub: fix lockups on PREEMPT && !SMP kernels

2015-03-13 Thread Christoph Lameter
On Fri, 13 Mar 2015, Mark Rutland wrote: >*/ > - do { > - tid = this_cpu_read(s->cpu_slab->tid); > - c = raw_cpu_ptr(s->cpu_slab); > - } while (IS_ENABLED(CONFIG_PREEMPT) && unlikely(tid != c->tid)); > + c = raw_cpu_ptr(s->cpu_slab); > + tid = READ_O

Re: [PATCH 4/4] x86/fpu: don't abuse drop_init_fpu() in flush_thread()

2015-03-13 Thread Oleg Nesterov
On 03/13, Borislav Petkov wrote: > > On Fri, Mar 13, 2015 at 03:55:42PM +0100, Oleg Nesterov wrote: > > But please look at drop_init_fpu(). If eagerfpu == F it calls drop_fpu() and > > this is what we need. flush_thread() already has the "if > > (!use_eager_fpu())", > > we can shift drop_fpu() the

Re: [PATCH 14/16] staging: rtl8723au: Improve readability of two very long lines

2015-03-13 Thread Joe Perches
On Fri, 2015-03-13 at 10:44 -0500, Larry Finger wrote: > On 03/12/2015 10:15 PM, M. Vefa Bicakci wrote: > > Improve the readability of an if statement and its very long trace > > output line in rtl8723au's rtw_security.c. [] > > diff --git a/drivers/staging/rtl8723au/core/rtw_security.c > > b/driv

Re: [PATCH 2/3 RFC] ath10k: wmi: match wait_for_completion_timeout return type

2015-03-13 Thread Nicholas Mc Guire
On Fri, 13 Mar 2015, Kalle Valo wrote: > Nicholas Mc Guire writes: > > > Return type of wait_for_completion_timeout is unsigned long not int. > > An appropriately named unsigned long is added and the assignments fixed up. > > Rather than returning 0 (timeout) or a more or less random remaining t

Re: [PATCH v4 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

2015-03-13 Thread Mark Rutland
On Fri, Mar 13, 2015 at 03:50:42PM +, Kumar Gala wrote: > > On Mar 13, 2015, at 5:52 AM, Mark Rutland wrote: > > >> +/ { > >> + chosen { > >> + stdout-path = &blsp1_uart2; > >> + }; > > > > It would be good if we had the configuration too (see > > Documentation/devicetree/binding

Re: [PATCH 2/3 RFC] ath10k: wmi: match wait_for_completion_timeout return type

2015-03-13 Thread Kalle Valo
Nicholas Mc Guire writes: > Return type of wait_for_completion_timeout is unsigned long not int. > An appropriately named unsigned long is added and the assignments fixed up. > Rather than returning 0 (timeout) or a more or less random remaining time > (completion success) this return 0 or 1 whic

Re: [PATCH 01/15] perf build: Disable default check for libbabeltrace

2015-03-13 Thread Jiri Olsa
On Fri, Mar 13, 2015 at 12:36:21PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > Auto-detecting system features: > ... dwarf: [ on ] > ... glibc: [ on ] > ... gtk2: [ on ] > ... libaudit: [ on ] >

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

2015-03-13 Thread Oleg Nesterov
Josh, I'll certainly try to read this series, but not before next week. but a couple of nits right now. On 03/12, Josh Triplett wrote: > > When passed CLONE_FD, clone4 will return a file descriptor rather than a > PID. When the child process exits, it gets automatically reaped, And even I have

Re: [PATCH net-next 1/2] bpf: allow extended BPF programs access skb fields

2015-03-13 Thread Alexei Starovoitov
On 3/13/15 2:57 AM, Daniel Borkmann wrote: On 03/13/2015 03:21 AM, Alexei Starovoitov wrote: introduce user accessible mirror of in-kernel 'struct sk_buff': For each member, I'd also add BUILD_BUG_ON()s similarly as we have in convert_bpf_extensions(). That way, people won't forget to adjust t

Re: [PATCH v6 4/4] ARM: dts: enable PCIe support for Cygnus

2015-03-13 Thread Florian Fainelli
On 11/03/15 11:06, Ray Jui wrote: > Add PCIe device nodes in bcm-cygnus.dtsi but keep them disabled there. > Only enable them for bcm958300k where PCIe interfaces are populated > > Signed-off-by: Ray Jui > Reviewed-by: Scott Branden Applied to devicetree/next with Arnd's acked-by, thanks! -- F

Re: [PATCH 4/4] x86/fpu: don't abuse drop_init_fpu() in flush_thread()

2015-03-13 Thread Borislav Petkov
On Fri, Mar 13, 2015 at 03:55:42PM +0100, Oleg Nesterov wrote: > But please look at drop_init_fpu(). If eagerfpu == F it calls drop_fpu() and > this is what we need. flush_thread() already has the "if (!use_eager_fpu())", > we can shift drop_fpu() there. > > Otherwise, if eagerfpu == T, drop_init_

[PATCH v2] mce: use safe MSR accesses

2015-03-13 Thread jesse.larrew
From: Jesse Larrew Certain MSRs are only relevant to a kernel in host mode, and kvm had chosen not to implement these MSRs at all for guests. If a guest kernel ever tried to access these MSRs, the result was a general protection fault. KVM will be separately patched to return 0 when these MSRs a

Re: [PATCH v3 1/2] x86_64,signal: Fix SS handling for signals delivered to 64-bit programs

2015-03-13 Thread Borislav Petkov
On Thu, Mar 12, 2015 at 01:57:51PM -0700, Andy Lutomirski wrote: > From: Andy Lutomirski > > The comment in the signal code says that apps can save/restore other > segments on their own. It's true that apps can *save* SS on their > own, but there's no way for apps to restore it: SYSCALL effectiv

Re: [PATCH 1/2] CAPABILITIES: add cap_isequal helper

2015-03-13 Thread Mateusz Guzik
On Fri, Mar 13, 2015 at 10:02:46AM -0400, Paul Moore wrote: > On Monday, March 09, 2015 09:35:46 PM Mateusz Guzik wrote: > > Can be used to determine whether two given sets have the same > > capabilities. > > > > Signed-off-by: Mateusz Guzik > > --- > > include/linux/capability.h | 10 ++

[PATCH] vxlan: fix wrong usage of VXLAN_VID_MASK

2015-03-13 Thread Alexey Kodanev
commit dfd8645ea1bd9127 wrongly assumes that VXLAN_VDI_MASK includes eight lower order reserved bits of VNI field that are using for remote checksum offload. Right now, when VNI number greater then 0x, vxlan_udp_encap_recv() will always return with 'bad_flag' error, reducing the usable vni ran

Re: [PATCH] selftests/kcmp: exit with non-zero code in a fail case (v2)

2015-03-13 Thread Shuah Khan
On 03/13/2015 09:55 AM, Andrey Vagin wrote: > Currently this test always returs zero code and a child process returns > non-zero code only if the last testcase failed. > > v2: don't forget to return smth from ksft_exit() Please check patch subject. It is phrased: [PATCH v2] selftests/kcmp: exit w

Re: [PATCH] selftests/exec: take into account that zero is a success code

2015-03-13 Thread Shuah Khan
On 03/13/2015 09:57 AM, Andrey Vagin wrote: > Cc: Shuah Khan > Signed-off-by: Andrey Vagin Andrey, Please add a meaningful commit log for this patch and resend. -- Shuah > --- > tools/testing/selftests/exec/execveat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/t

[GIT PULL] DeviceTree fixes for 4.0-rc

2015-03-13 Thread Rob Herring
Hi Linus, Please pull DT fixes for 4.0. Details below. Rob The following changes since commit 9eccca0843205f87c00404b663188b88eb248051: Linux 4.0-rc3 (2015-03-08 16:09:09 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git tags/devic

Re: mmotm 2015-03-12-15-17 uploaded (rocker.c)

2015-03-13 Thread Randy Dunlap
On 03/12/15 15:18, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2015-03-12-15-17 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my -mm

Re: [RFC] capabilities: Ambient capabilities

2015-03-13 Thread Christoph Lameter
On Fri, 13 Mar 2015, Andrew G. Morgan wrote: > > prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_SYS_ADMIN); > > system("/bin/bash"); > > Let's call the above two lines [a] and [b]. With this patch, you are > encouraging folk to write programs that contain a line like [a] > already. So, yes, I am

[PATCH v5 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

2015-03-13 Thread Kumar Gala
Add initial device tree support for Qualcomm MSM8916 SoC and MTP8916 evaluation board. At the current time we only boot up a single processor. Signed-off-by: Kumar Gala --- v5: * killed use of skeleton, moved to addr/size cells both being 2 * Added serial alias in prep of being able to spec uart

Re: [PATCH 0/6] CLONE_FD: Task exit notification via file descriptor

2015-03-13 Thread David Drysdale
On Fri, Mar 13, 2015 at 1:40 AM, Josh Triplett wrote: > This patch series introduces a new clone flag, CLONE_FD, which lets the caller > handle child process exit notification via a file descriptor rather than > SIGCHLD. CLONE_FD makes it possible for libraries to safely launch and manage > child

Re: [PATCH v4 02/10] mtd: st_spi_fsm: Fetch boot device locations from DT match tables

2015-03-13 Thread Brian Norris
On Tue, Feb 24, 2015 at 09:41:10AM +, Lee Jones wrote: > On Mon, 23 Feb 2015, Brian Norris wrote: > > On Tue, Feb 10, 2015 at 03:46:34PM +0800, Lee Jones wrote: > > > On Thu, 05 Feb 2015, Brian Norris wrote: [snip other discussion] > > Now, unless you were able to provide an additional enligh

Re: committed memory, mmaps and shms

2015-03-13 Thread Marcos Dione
On Fri, Mar 13, 2015 at 03:09:58PM +0100, Michal Hocko wrote: > Well, the memory management subsystem is rather complex and it is not > really trivial to match all the possible combinations into simple > counters. Yes, I imagine. > I would be interested in the particular usecase where you wan

Re: [PATCH 01/15] perf build: Disable default check for libbabeltrace

2015-03-13 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 11, 2015 at 09:58:50AM +0100, Jiri Olsa escreveu: > Remove libbabeltrace check from default features set, because the > requested version is not released yet in most distributions. We'll > enable later. > > Calling libbabeltrace check manually via feature_check > before $(feature-libba

[PATCH] selftests/exec: take into account that zero is a success code

2015-03-13 Thread Andrey Vagin
Cc: Shuah Khan Signed-off-by: Andrey Vagin --- tools/testing/selftests/exec/execveat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c index e238c95..6747a3f 100644 --- a/tools/testing/selftest

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-13 Thread Dave Hansen
On 03/12/2015 03:35 PM, Andrew Morton wrote: > On Mon, 09 Mar 2015 13:43:21 -0700 Dave Hansen wrote: >> From: Dave Hansen >> >> Physical addresses are sensitive information. There are >> existing, known exploits that are made easier if physical >> information is available. Here is one example:

[PATCH] selftests/kcmp: exit with non-zero code in a fail case (v2)

2015-03-13 Thread Andrey Vagin
Currently this test always returs zero code and a child process returns non-zero code only if the last testcase failed. v2: don't forget to return smth from ksft_exit() Cc: Michael Ellerman Cc: Shuah Khan Cc: Cyrill Gorcunov Signed-off-by: Andrey Vagin --- tools/testing/selftests/kcmp/kcmp_t

[PATCH RT 05/25] rtmutex: No need to keep task ref for lock owner check

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 2ffa5a5cd2fe792b6399c903d5172adf088d8ff7 There is no point to keep the task ref across the check for lock owner. Drop the ref before that, so the pro

Re: [PATCH 14/16] staging: rtl8723au: Improve readability of two very long lines

2015-03-13 Thread Larry Finger
On 03/12/2015 10:15 PM, M. Vefa Bicakci wrote: Improve the readability of an if statement and its very long trace output line in rtl8723au's rtw_security.c. Signed-off-by: M. Vefa Bicakci --- drivers/staging/rtl8723au/core/rtw_security.c | 18 +++--- 1 file changed, 15 insertions

[PATCH RT 18/25] x86: UV: raw_spinlock conversion

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith Shrug. Lots of hobbyists have a beast in their basement, right? Cc: stable...@vger.kernel.org Signed-off-by: Mike Galbraith Signed-off-by: Sebastian Andrzej Siewior

[PATCH RT 22/25] work-simple: Simple work queue implemenation

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Daniel Wagner Provides a framework for enqueuing callbacks from irq context PREEMPT_RT_FULL safe. The callbacks are executed in kthread context. Bases on wait-simple. Signed-off-by:

[PATCH] mm/slub: fix lockups on PREEMPT && !SMP kernels

2015-03-13 Thread Mark Rutland
Commit 9aabf810a67cd97e ("mm/slub: optimize alloc/free fastpath by removing preemption on/off") introduced an occasional hang for kernels built with CONFIG_PREEMPT && !CONFIG_SMP. The problem is the following loop the patch introduced to slab_alloc_node and slab_free: do { tid = this_cpu_

Re: [PATCH v4 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

2015-03-13 Thread Kumar Gala
On Mar 13, 2015, at 5:52 AM, Mark Rutland wrote: >> +/ { >> +chosen { >> +stdout-path = &blsp1_uart2; >> +}; > > It would be good if we had the configuration too (see > Documentation/devicetree/bindings/chosen.txt), as that avoids any > reliance on kernel defaults. > > You

Re: [PATCH v3 3/5] i2c: recovery: change input parameter to i2c_adapter for prepare/unprepare_recovery

2015-03-13 Thread Felipe Balbi
Hi, On Fri, Mar 13, 2015 at 12:15:54PM +0200, grygorii.stras...@linaro.org wrote: > Hi Wolfram, > > On 03/12/2015 01:32 PM, Alexander Sverdlin wrote: > > On 01/12/14 16:34, Grygorii Strashko wrote: > >> This patch changes type of input parameter for > >> .prepare/unprepare_recovery() > >> callba

Re: [PATCH 3/4] x86/fpu: use restore_init_xstate() instead of math_state_restore() on kthread exec

2015-03-13 Thread Borislav Petkov
On Fri, Mar 13, 2015 at 03:45:14PM +0100, Oleg Nesterov wrote: > Because in math_state_restore() case kernel_fpu_begin()->__save_init_fpu() > will overwrite (corrupt) the same fpu->state buffer we need to restore. > Without kernel_fpu_disable(). Yes. > restore_init_xstate() obviously differs beca

[PATCH RT 13/25] futex: Use futex_top_waiter() in lookup_pi_state()

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: bd1dbcc67cd2c1181e2c01daac51eabf1b964dd8 No point in open coding the same function again. Signed-off-by: Thomas Gleixner Reviewed-by: Darren Hart

[PATCH RT 12/25] futex: Make unlock_pi more robust

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: ccf9e6a80d9e1b9df69c98e6b9745cf49869ee15 The kernel tries to atomically unlock the futex without checking whether there is kernel state associated to

[PATCH RT 06/25] rtmutex: Clarify the boost/deboost part

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: a57594a13a446d1a6ab1dcd48339f799ce586843 Add a separate local variable for the boost/deboost logic to make the code more readable. Add comments where

[PATCH RT 10/25] rtmutex: Cleanup deadlock detector debug logic

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 8930ed80f970a90a795239e7415c9b0e6f964649 The conditions under which deadlock detection is conducted are unclear and undocumented. Add constants inst

[PATCH RT 08/25] rtmutex: Simplify remove_waiter()

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 1ca7b86062ec8473d03c5cdfd336abc8b1c8098c Exit right away, when the removed waiter was not the top priority waiter on the lock. Get rid of the extra i

[PATCH RT 24/27] work-simple: Simple work queue implemenation

2015-03-13 Thread Steven Rostedt
3.4.106-rt132-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Daniel Wagner Provides a framework for enqueuing callbacks from irq context PREEMPT_RT_FULL safe. The callbacks are executed in kthread context. Bases on wait-simple. Signed-off-b

[PATCH RT 02/25] create-rt-enqueue

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt To ease backporting patches, replace the plist functions with rt_mutex_enqueue{_pi}() and rt_mutex_dequeue{_pi}() like upstream -rt does. This will lower the conflicts

[PATCH RT 22/27] sas-ata/isci: dontt disable interrupts in qc_issue handler

2015-03-13 Thread Steven Rostedt
3.4.106-rt132-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Paul Gortmaker On 3.14-rt we see the following trace on Canoe Pass for SCSI_ISCI "Intel(R) C600 Series Chipset SAS Controller" when the sas qc_issue handler is run: BUG: sleeping

[PATCH RT 20/25] arm/futex: disable preemption during futex_atomic_cmpxchg_inatomic()

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior The ARM UP implementation of futex_atomic_cmpxchg_inatomic() assumes that pagefault_disable() inherits a preempt disabled section. This assumtion is true for

[PATCH] HID: uclogic: make input_mapping independent of usb

2015-03-13 Thread Benjamin Tissoires
No need to retrieve the USB handle in input_mapping() when we already do that in probe. It also allows to use the quirk without having to add the product ID matching. Signed-off-by: Benjamin Tissoires --- Nick, no need to cc DIGImend-devel when replying on this one, I'll send the same to DIGIme

[PATCH RT 14/25] futex: Split out the waiter check from lookup_pi_state()

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: e60cbc5ceaa518d630ab8f35a7d05cee1c752648 We want to be a bit more clever in futex_lock_pi_atomic() and separate the possible states. Split out the wa

[PATCH RT 04/31] rtmutex: Simplify and document try_to_take_rtmutex()

2015-03-13 Thread Steven Rostedt
3.10.70-rt75-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 358c331f391f3e0432f4f96f25017d12ac8d10b1 The current implementation of try_to_take_rtmutex() is correct, but requires more than a single brain twist

[PATCH RT 07/25] rtmutex: Document pi chain walk

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 3eb65aeadf701976b084e9171e16bb7d1e83fbb0 Add commentry to document the chain walk and the protection mechanisms and their scope. Signed-off-by: Thom

[PATCH RT 23/27] scheduling while atomic in cgroup code

2015-03-13 Thread Steven Rostedt
3.4.106-rt132-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith mm, memcg: make refill_stock() use get_cpu_light() Nikita reported the following memcg scheduling while atomic bug: Call Trace: [e22d5a90] [c0007ea8] show_stack+0x4

[PATCH RT 21/25] scheduling while atomic in cgroup code

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith mm, memcg: make refill_stock() use get_cpu_light() Nikita reported the following memcg scheduling while atomic bug: Call Trace: [e22d5a90] [c0007ea8] show_stack+0x4c/

[PATCH RT 16/27] futex: Simplify futex_lock_pi_atomic() and make it more robust

2015-03-13 Thread Steven Rostedt
3.4.106-rt132-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: af54d6a1c3ad474bbc9893c9905022646be6092c futex_lock_pi_atomic() is a maze of retry hoops and loops. Reduce it to simple and understandable states:

[PATCH RT 17/25] rt-mutex: avoid a NULL pointer dereference on deadlock

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior With task_blocks_on_rt_mutex() returning early -EDEADLK we never add the waiter to the waitqueue. Later, we try to remove it via remove_waiter() and go boom

[PATCH RT 11/25] rtmutex: Avoid pointless requeueing in the deadlock detection chain walk

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 67792e2cabadbadd1a93f6790fa7bcbd47eca7c3 In case the dead lock detector is enabled we follow the lock chain to the end in rt_mutex_adjust_prio_chain,

[PATCH RT 03/25] rtmutex: Simplify rtmutex_slowtrylock()

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream-commit: 88f2b4c15e561bb5c28709d666364f273bf54b98 Oleg noticed that rtmutex_slowtrylock() has a pointless check for rt_mutex_owner(lock) != current. To avoid

[PATCH RT 09/31] rtmutex: Confine deadlock logic to futex

2015-03-13 Thread Steven Rostedt
3.10.70-rt75-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: c051b21f71d1ffdfd7ad406a1ef5ede5e5f974c5 The deadlock logic is only required for futexes. Remove the extra arguments for the public functions and a

[PATCH RT 00/25] Linux 3.2.68-rt99-rc1

2015-03-13 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.2.68-rt99-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release cand

[PATCH RT 09/25] rtmutex: Confine deadlock logic to futex

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: c051b21f71d1ffdfd7ad406a1ef5ede5e5f974c5 The deadlock logic is only required for futexes. Remove the extra arguments for the public functions and al

[PATCH RT 04/25] rtmutex: Simplify and document try_to_take_rtmutex()

2015-03-13 Thread Steven Rostedt
3.2.68-rt99-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner upstream commit: 358c331f391f3e0432f4f96f25017d12ac8d10b1 The current implementation of try_to_take_rtmutex() is correct, but requires more than a single brain twist

<    1   2   3   4   5   6   7   8   9   >