Re: [PATCH v2 0/2] arm64: fix the bugs found in the hugetlb test

2016-11-08 Thread Catalin Marinas
remove the wrong pmd check in find_num_contig() > arm64: hugetlb: fix the wrong address for several functions For these patches: Reviewed-by: Catalin Marinas I'm not sure whether Will plans to push them into 4.9. AFAICT, the contiguous huge pages never worked properly, so we may not co

Re: [PATCHv4 0/4] WX checking for arm64

2016-11-07 Thread Catalin Marinas
On Mon, Nov 07, 2016 at 08:26:34AM -0800, Laura Abbott wrote: > On 11/07/2016 07:38 AM, Mark Rutland wrote: > >From 06fef1ad1138d0808eec770e64458a350941bd2d Mon Sep 17 00:00:00 2001 > >From: Mark Rutland > >Date: Mon, 7 Nov 2016 15:24:40 + > >Subject: [PATCH] Fix KASAN splats with DEBUG_WX [..

Re: [PATCH V3 0/6] ARM64: Uprobe support added

2016-11-07 Thread Catalin Marinas
On Sat, Nov 05, 2016 at 11:01:31AM +0530, Pratyush Anand wrote: > On Saturday 05 November 2016 12:16 AM, Catalin Marinas wrote: > > On Fri, Nov 04, 2016 at 11:49:51AM -0600, Catalin Marinas wrote: > > > On Wed, Nov 02, 2016 at 02:40:40PM +0530, Pratyush Anand wrote: > &g

Re: [PATCH V3 0/6] ARM64: Uprobe support added

2016-11-04 Thread Catalin Marinas
On Fri, Nov 04, 2016 at 11:49:51AM -0600, Catalin Marinas wrote: > On Wed, Nov 02, 2016 at 02:40:40PM +0530, Pratyush Anand wrote: > > Pratyush Anand (6): > > arm64: kprobe: protect/rename few definitions to be reused by uprobe > > arm64: kgdb_step_brk_fn: ignore other&#x

Re: [PATCH V3 0/6] ARM64: Uprobe support added

2016-11-04 Thread Catalin Marinas
On Wed, Nov 02, 2016 at 02:40:40PM +0530, Pratyush Anand wrote: > Pratyush Anand (6): > arm64: kprobe: protect/rename few definitions to be reused by uprobe > arm64: kgdb_step_brk_fn: ignore other's exception > arm64: Handle TRAP_TRACE for user mode as well > arm64: Handle TRAP_BRKPT for us

Re: [PATCH 1/2] arm64: hugetlb: remove the wrong pmd check in find_num_contig()

2016-11-04 Thread Catalin Marinas
On Fri, Nov 04, 2016 at 10:52:17AM +0800, Huang Shijie wrote: > On Thu, Nov 03, 2016 at 06:16:16PM -0600, Catalin Marinas wrote: > > On Thu, Nov 03, 2016 at 10:27:38AM +0800, Huang Shijie wrote: > > > diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c &

Re: [PATCH 1/2] arm64: hugetlb: remove the wrong pmd check in find_num_contig()

2016-11-03 Thread Catalin Marinas
On Thu, Nov 03, 2016 at 10:27:38AM +0800, Huang Shijie wrote: > diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c > index 2e49bd2..4811ef1 100644 > --- a/arch/arm64/mm/hugetlbpage.c > +++ b/arch/arm64/mm/hugetlbpage.c > @@ -61,10 +61,6 @@ static int find_num_contig(struct mm_st

Re: [RFC] make kmemleak scan __ro_after_init section (was: Re: [PATCH 0/5] genetlink improvements)

2016-11-03 Thread Catalin Marinas
hit a similar issue on arm64 but didn't get the chance to fix it (also at LPC). With a proper commit message, feel free to add: Reviewed-by: Catalin Marinas

Re: arm64 build failure with CONFIG_ARM64_LSE_ATOMICS=y

2016-11-03 Thread Catalin Marinas
th an older gcc (4.8.5), but doesn't with 6.2.0. > The different bit is that with 4.8.5 I don't have CC_HAVE_ASM_GOTO set. > It is reproducible with 6.2.0 if you manually remove CC_HAVE_ASM_GOTO. -------8<---- >From e27eb40cd5af38f1a5e64553a367220f00a1b5d8 M

Re: [PATCH] arc: Implement arch-specific dma_map_ops.mmap

2016-11-02 Thread Catalin Marinas
_to_pfn(plat_dma_to_phys(dma_addr)); Other than that: Reviewed-by: Catalin Marinas

Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-31 Thread Catalin Marinas
On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: > +int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct > *mm, > + unsigned long addr) > +{ > + probe_opcode_t insn; > + > + /* TODO: Currently we do not support AARCH32 instruction probing */

Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-31 Thread Catalin Marinas
Hi Pratyush, On Mon, Oct 31, 2016 at 02:10:43PM +0530, Pratyush Anand wrote: > On Sun, Oct 30, 2016 at 7:39 PM, Catalin Marinas > wrote: > > On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: > >> --- /dev/null > >> +++ b/arch/arm64/kernel/probes

Re: [PATCH] arm64: mm: fix __page_to_voff definition

2016-10-31 Thread Catalin Marinas
On Sun, Oct 30, 2016 at 02:38:58PM +, Catalin Marinas wrote: > On Fri, Oct 21, 2016 at 02:28:46PM +0530, Neeraj Upadhyay wrote: > > Fix parameter name for __page_to_voff, to match its definition. > > At present, we don't see any issue, as page_to_virt's

Re: [RFC] dma-mapping: fix dma_common_mmap() for ARC

2016-10-30 Thread Catalin Marinas
On Wed, Oct 26, 2016 at 10:22:44PM +0300, Alexey Brodkin wrote: > >8--- > arc_dma_alloc() > ioremap_nocache() AKA ioremap() > ioremap_prot() > get_vm_area() + ioremap_page_range() on obtained vaddr > >8-

Re: [PATCHv4 0/4] WX checking for arm64

2016-10-30 Thread Catalin Marinas
On Thu, Oct 27, 2016 at 09:27:30AM -0700, Laura Abbott wrote: > Laura Abbott (4): > arm64: dump: Make ptdump debugfs a separate option > arm64: dump: Make the page table dumping seq_file optional > arm64: dump: Remove max_addr > arm64: dump: Add checking for writable and exectuable pages Q

Re: [PATCH] arm64: mm: fix __page_to_voff definition

2016-10-30 Thread Catalin Marinas
On Fri, Oct 21, 2016 at 02:28:46PM +0530, Neeraj Upadhyay wrote: > Fix parameter name for __page_to_voff, to match its definition. > At present, we don't see any issue, as page_to_virt's caller > declares 'page'. > > Fixes: 9f2875912dac ("arm64: mm: restrict virt_to_page() to the linear > mapping

Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-30 Thread Catalin Marinas
On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: > --- /dev/null > +++ b/arch/arm64/kernel/probes/uprobes.c > @@ -0,0 +1,221 @@ > +/* > + * Copyright (C) 2014-2016 Pratyush Anand > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the term

Re: [PATCH v7 REPOST 0/9] CPUs capacity information for heterogeneous systems

2016-10-30 Thread Catalin Marinas
On Mon, Oct 17, 2016 at 04:46:41PM +0100, Juri Lelli wrote: > I'm thus now assuming that everybody is OK with the patches and that they can > be queued for 4.10 (we certainly need this plumbing at this point). Please > speak if my assumption is wrong (and provide feedback! :). > Otherwise I'm going

Re: [PATCH] mm: kmemleak: Ensure that the task stack is not freed during scanning

2016-10-20 Thread Catalin Marinas
Hi Andrew, On Wed, Oct 19, 2016 at 11:33:27AM -0700, Andrew Morton wrote: > On Wed, 12 Oct 2016 10:57:03 +0100 Catalin Marinas > wrote: > > Commit 68f24b08ee89 ("sched/core: Free the stack early if > > CONFIG_THREAD_INFO_IN_TASK") may cause the task->stack to be

Re: [PATCH] kmemleak: fix reference to Documentation

2016-10-17 Thread Catalin Marinas
On Sat, Oct 15, 2016 at 03:22:26PM +, Andreas Platschek wrote: > Documentation/kmemleak.txt was moved to Documentation/dev-tools/kmemleak.rst, > this fixes the reference to the new location. > > Signed-off-by: Andreas Platschek In case Andrew picks this patch up: Acked-by: Cat

Re: [PATCH] mm: kmemleak: Ensure that the task stack is not freed during scanning

2016-10-12 Thread Catalin Marinas
On Wed, Oct 12, 2016 at 11:54:17AM -0400, CAI Qian wrote: > - Original Message - > > From: "Catalin Marinas" > > To: linux...@kvack.org > > Cc: linux-kernel@vger.kernel.org, "Andrew Morton" > > , "Andy Lutomirski" , > &g

Re: [PATCH] mm: kmemleak: Ensure that the task stack is not freed during scanning

2016-10-12 Thread Catalin Marinas
On Wed, Oct 12, 2016 at 06:16:46PM +0800, Hillf Danton wrote: > > @@ -1453,8 +1453,11 @@ static void kmemleak_scan(void) > > > > read_lock(&tasklist_lock); > > do_each_thread(g, p) { > > Take a look at this commit please. > 1da4db0cd5 ("oom_kill: change oom_kill.c to

[PATCH] mm: kmemleak: Ensure that the task stack is not freed during scanning

2016-10-12 Thread Catalin Marinas
tch uses the new try_get_task_stack() API to ensure that the task stack is not freed during kmemleak stack scanning. Fixes: 68f24b08ee89 ("sched/core: Free the stack early if CONFIG_THREAD_INFO_IN_TASK") Cc: Andrew Morton Cc: Andy Lutomirski Cc: CAI Qian Reported-by: CAI Qian Signed-off-by:

Re: [PATCH v2] sched/fair: Fix dereference NULL sched domain during select_idle_sibling

2016-10-10 Thread Catalin Marinas
unplug cpu, then NULL > sched domain will be dereferenced to acquire the average cost of the scan. > > This patch fix it by failing the search of an idle CPU in the LLC process > if this sched domain is NULL. > > Cc: Ingo Molnar > Cc: Mike Galbraith > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Signed-off-by: Wanpeng Li This patch fixes a similar panic on arm64 (triggered by the LTP cpuhotplug tests). FWIW: Tested-by: Catalin Marinas

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-28 Thread Catalin Marinas
On Tue, Sep 27, 2016 at 08:33:25PM +0530, Pratyush Anand wrote: > On Tuesday 27 September 2016 07:21 PM, Catalin Marinas wrote: > >There is also the is_trap_at_addr() function which uses is_trap_insn(). > >I haven't checked the call paths here, are there any implication

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-27 Thread Catalin Marinas
On Mon, Sep 26, 2016 at 06:33:59PM +0530, Pratyush Anand wrote: > On 26/09/2016:12:01:59 PM, Catalin Marinas wrote: > > On Sun, Sep 25, 2016 at 10:32:28PM +0530, Pratyush Anand wrote: > > > On Fri, Sep 23, 2016 at 6:35 PM, Catalin Marinas > > > wrote: > > >

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-26 Thread Catalin Marinas
On Sun, Sep 25, 2016 at 10:32:28PM +0530, Pratyush Anand wrote: > On Fri, Sep 23, 2016 at 6:35 PM, Catalin Marinas > wrote: > > On Fri, Sep 23, 2016 at 09:42:30AM +0530, Pratyush Anand wrote: > >> On 22/09/2016:05:50:30 PM, Catalin Marinas wrote: > >> > On Thu,

[GIT PULL] arm64 fixes for 4.8

2016-09-23 Thread Catalin Marinas
Hi Linus, Please pull a couple of last-minute arm64 fixes for 4.8. Thanks. The following changes since commit 3be7988674ab33565700a37b210f502563d932e6: Linux 4.8-rc7 (2016-09-18 17:27:41 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linu

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-23 Thread Catalin Marinas
On Fri, Sep 23, 2016 at 09:42:30AM +0530, Pratyush Anand wrote: > On 22/09/2016:05:50:30 PM, Catalin Marinas wrote: > > On Thu, Sep 22, 2016 at 08:53:28AM +0530, Pratyush Anand wrote: > > > On 21/09/2016:06:04:04 PM, Catalin Marinas wrote: > > > > On Wed, Sep 21, 2016

Re: [PATCH] arm64: Call numa_store_cpu_info() earlier.

2016-09-22 Thread Catalin Marinas
On Tue, Sep 20, 2016 at 11:46:35AM -0700, David Daney wrote: > From: David Daney > > The wq_numa_init() function makes a private CPU to node map by calling > cpu_to_node() early in the boot process, before the non-boot CPUs are > brought online. Since the default implementation of cpu_to_node()

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-22 Thread Catalin Marinas
On Thu, Sep 22, 2016 at 08:53:28AM +0530, Pratyush Anand wrote: > On 21/09/2016:06:04:04 PM, Catalin Marinas wrote: > > On Wed, Sep 21, 2016 at 04:30:47PM +0530, Pratyush Anand wrote: > > > On 20/09/2016:05:59:46 PM, Catalin Marinas wrote: > > > > > +int arch_uprob

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-21 Thread Catalin Marinas
On Wed, Sep 21, 2016 at 04:30:47PM +0530, Pratyush Anand wrote: > On 20/09/2016:05:59:46 PM, Catalin Marinas wrote: > > On Tue, Aug 02, 2016 at 11:00:09AM +0530, Pratyush Anand wrote: > > > --- a/arch/arm64/include/asm/thread_info.h > > > +++ b/arch/arm64/include/asm/th

Re: [PATCH 5/5] arm64: Add uprobe support

2016-09-20 Thread Catalin Marinas
Hi Pratyush, On Tue, Aug 02, 2016 at 11:00:09AM +0530, Pratyush Anand wrote: > --- a/arch/arm64/include/asm/debug-monitors.h > +++ b/arch/arm64/include/asm/debug-monitors.h > @@ -70,6 +70,9 @@ > #define BRK64_ESR_MASK 0x > #define BRK64_ESR_KPROBES0x0004 > #define BRK64_OP

[GIT PULL] arm64 fixes for 4.8-rc6

2016-09-09 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit c6935931c1894ff857616ff8549b61236a19148f: Linux 4.8-rc5 (2016-09-04 14:31:46 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes fo

Re: [PATCH] arm64: use preempt_disable_notrace in _percpu_read/write

2016-09-09 Thread Catalin Marinas
On Thu, Sep 08, 2016 at 08:46:42PM +0800, Chunyan Zhang wrote: > When debug preempt or preempt tracer is enabled, preempt_count_add/sub() > can be traced by function and function graph tracing, and > preempt_disable/enable() would call preempt_count_add/sub(), so in Ftrace > subsystem we should use

Re: [PATCH v2 2/2] arm64: Use static keys for CPU features

2016-09-08 Thread Catalin Marinas
On Wed, Sep 07, 2016 at 12:59:52PM -0400, Jason Baron wrote: > On 09/05/2016 01:25 PM, Catalin Marinas wrote: > > This patch adds static keys transparently for all the cpu_hwcaps > > features by implementing an array of default-false static keys and > > enabling th

Re: [PATCH 3/5] arm64: Handle TRAP_HWBRKPT for user mode as well

2016-09-07 Thread Catalin Marinas
On Tue, Sep 06, 2016 at 05:36:18PM -0400, David Long wrote: > On 09/06/2016 12:11 PM, Catalin Marinas wrote: > > On Tue, Aug 02, 2016 at 11:00:07AM +0530, Pratyush Anand wrote: > > > --- a/arch/arm64/kernel/debug-monitors.c > > > +++ b/arch/arm64/kernel/debug-monito

Re: [PATCH 4/5] arm64: Handle TRAP_BRKPT for user mode as well

2016-09-06 Thread Catalin Marinas
On Tue, Aug 02, 2016 at 11:00:08AM +0530, Pratyush Anand wrote: > --- a/arch/arm64/kernel/debug-monitors.c > +++ b/arch/arm64/kernel/debug-monitors.c > @@ -326,16 +326,20 @@ NOKPROBE_SYMBOL(call_break_hook); > static int brk_handler(unsigned long addr, unsigned int esr, > stru

Re: [PATCH 3/5] arm64: Handle TRAP_HWBRKPT for user mode as well

2016-09-06 Thread Catalin Marinas
On Tue, Aug 02, 2016 at 11:00:07AM +0530, Pratyush Anand wrote: > --- a/arch/arm64/kernel/debug-monitors.c > +++ b/arch/arm64/kernel/debug-monitors.c > @@ -246,6 +246,8 @@ static void send_user_sigtrap(int si_code) > static int single_step_handler(unsigned long addr, unsigned int esr, >

[PATCH v2 0/2] arm64: Use static keys for CPU features

2016-09-05 Thread Catalin Marinas
x27;t seem to be a specific maintainer for jump_label.*, cc'ing Peter and Jason for comments/acks/naks. Thanks. Changes since v1: - Moved the jump_label_init() call to smp_prepare_boot_cpu() following Suzuki's suggestion - Fixed missing empty line in Documentation/static-keys.txt Cat

[PATCH v2 1/2] jump_labels: Allow array initialisers

2016-09-05 Thread Catalin Marinas
Baron Cc: Jonathan Corbet Signed-off-by: Catalin Marinas --- Documentation/static-keys.txt | 9 + include/linux/jump_label.h| 12 2 files changed, 21 insertions(+) diff --git a/Documentation/static-keys.txt b/Documentation/static-keys.txt index 477927becacb..ea8d7b4e53f0

[PATCH v2 2/2] arm64: Use static keys for CPU features

2016-09-05 Thread Catalin Marinas
test. Because of the early call to static_branch_enable() via check_local_cpu_errata() -> update_cpu_capabilities(), the jump labels are initialised in cpuinfo_store_boot_cpu(). Cc: Will Deacon Cc: Suzuki K. Poulose Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/cpufeature.h |

[GIT PULL] arm64+perf fixes 4.8-rc5

2016-09-03 Thread Catalin Marinas
Hi Linus, Please pull the arm64 and arm/perf fixes below. Thanks. The following changes since commit 3eab887a55424fc2c27553b7bfe32330df83f7b8: Linux 4.8-rc4 (2016-08-28 15:04:33 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/ar

Re: [PATCH 2/2] arm64: Use static keys for CPU features

2016-09-02 Thread Catalin Marinas
On Fri, Aug 26, 2016 at 10:22:13AM +0100, Suzuki K. Poulose wrote: > On 25/08/16 18:26, Catalin Marinas wrote: > > static inline int __attribute_const__ > >diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > >index 62272eac1352..919b2d0d68ae 10064

Re: [PATCH] [bugfix] replace unnessary ldax with common ldr

2016-09-01 Thread Catalin Marinas
On Wed, Aug 31, 2016 at 02:30:40PM +0100, Vladimir Murzin wrote: > On 30/08/16 10:07, Catalin Marinas wrote: > > On Tue, Aug 30, 2016 at 02:35:31PM +0800, Kenneth Lee wrote: > >> (add comment for the previous mail, sorry for the duplication) > >> > >> There is n

Re: [PATCH] mm:Avoid soft lockup due to possible attempt of double locking object's lock in __delete_object

2016-08-31 Thread Catalin Marinas
On Wed, Aug 31, 2016 at 09:41:23AM -0400, nick wrote: > On 2016-08-31 03:54 AM, Catalin Marinas wrote: > > On Tue, Aug 30, 2016 at 02:35:12PM -0400, Nicholas Krause wrote: > >> This fixes a issue in the current locking logic of the function, > >> __delete_object where

Re: [PATCH] mm:Avoid soft lockup due to possible attempt of double locking object's lock in __delete_object

2016-08-31 Thread Catalin Marinas
On Tue, Aug 30, 2016 at 02:35:12PM -0400, Nicholas Krause wrote: > This fixes a issue in the current locking logic of the function, > __delete_object where we are trying to attempt to lock the passed > object structure's spinlock again after being previously held > elsewhere by the kmemleak code. F

Re: [PATCH 1/2] jump_labels: Allow array initialisers

2016-08-30 Thread Catalin Marinas
On Thu, Aug 25, 2016 at 06:26:31PM +0100, Catalin Marinas wrote: > diff --git a/Documentation/static-keys.txt b/Documentation/static-keys.txt > index 477927becacb..fd490f8b1cfa 100644 > --- a/Documentation/static-keys.txt > +++ b/Documentation/static-keys.txt > @@ -15,6 +15,8 @@

Re: [PATCH ] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also

2016-08-30 Thread Catalin Marinas
On Mon, Aug 29, 2016 at 02:32:25PM +0530, Sumit Gupta wrote: > Removed restriction of displaying model name for 32 bit tasks only. > Because of this Processor details were not displayed in > "System setting -> Details" in Ubuntu model name display is generic > and can be printed for 64 bit also. >

Re: [PATCH] [bugfix] replace unnessary ldax with common ldr

2016-08-30 Thread Catalin Marinas
On Tue, Aug 30, 2016 at 02:35:31PM +0800, Kenneth Lee wrote: > (add comment for the previous mail, sorry for the duplication) > > There is no store_ex pairing with this load_ex. It is not necessary and > gave wrong hint to the cache system. > > Signed-off-by: Kenneth Lee > --- > arch/arm64/incl

[GIT PULL] arm64 fix for 4.8-rc4

2016-08-26 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fix below. Thank you. The following changes since commit fa8410b355251fd30341662a40ac6b22d3e38468: Linux 4.8-rc3 (2016-08-21 16:14:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes f

Re: [PATCH v2 9/9] arm64: Work around systems with mismatched cache line sizes

2016-08-26 Thread Catalin Marinas
On Fri, Aug 26, 2016 at 05:16:27PM +0100, Will Deacon wrote: > On Fri, Aug 26, 2016 at 02:08:01PM +0100, Suzuki K Poulose wrote: > > On 26/08/16 14:04, Suzuki K Poulose wrote: > > >On 26/08/16 12:03, Ard Biesheuvel wrote: > > >>IMO, this is a pattern that we should avoid: you are introducing one >

Re: [PATCH v15 08/13] arch/arm64: enable task isolation functionality

2016-08-26 Thread Catalin Marinas
| 2 ++ > arch/arm64/mm/fault.c| 8 +++- Not sure when/how this series will be merged (Will already picked patch 07/13 as a general clean-up) but this arm64 patch: Reviewed-by: Catalin Marinas

[PATCH 0/2] arm64: Use static keys for CPU features

2016-08-25 Thread Catalin Marinas
kernel, it will be more beneficial with new features like TTBR0 PAN are which are used on hot paths (get_user/put_user, thread switching). Catalin Marinas (2): jump_labels: Allow array initialisers arm64: Use static keys for CPU features Documentation/static-keys.txt | 8 arch

[PATCH 2/2] arm64: Use static keys for CPU features

2016-08-25 Thread Catalin Marinas
test. Because of the early call to static_branch_enable() via check_local_cpu_errata() -> update_cpu_capabilities(), the jump labels are initialised in cpuinfo_store_boot_cpu(). Cc: Will Deacon Cc: Suzuki K. Poulose Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/cpufeature.h |

[PATCH 1/2] jump_labels: Allow array initialisers

2016-08-25 Thread Catalin Marinas
Corbet Signed-off-by: Catalin Marinas --- Documentation/static-keys.txt | 8 include/linux/jump_label.h| 12 2 files changed, 20 insertions(+) diff --git a/Documentation/static-keys.txt b/Documentation/static-keys.txt index 477927becacb..fd490f8b1cfa 100644 --- a

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-25 Thread Catalin Marinas
On Thu, Aug 25, 2016 at 09:42:26AM +0800, Leizhen (ThunderTown) wrote: > On 2016/8/24 18:30, Catalin Marinas wrote: > >>>>>>>>>> On 2016/7/8 21:54, Catalin Marinas wrote: > >>>>>>>>>>> 8<--

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-24 Thread Catalin Marinas
On Wed, Aug 24, 2016 at 05:00:50PM +0800, Leizhen (ThunderTown) wrote: > > > On 2016/8/24 1:28, Catalin Marinas wrote: > > On Mon, Aug 22, 2016 at 12:19:04PM +0800, Leizhen (ThunderTown) wrote: > >> On 2016/7/20 17:19, Catalin Marinas wrote: > >>> On W

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-23 Thread Catalin Marinas
On Mon, Aug 22, 2016 at 12:19:04PM +0800, Leizhen (ThunderTown) wrote: > On 2016/7/20 17:19, Catalin Marinas wrote: > > On Wed, Jul 20, 2016 at 10:46:27AM +0800, Leizhen (ThunderTown) wrote: > >>>>>> On 2016/7/8 21:54, Catalin Marinas wrote: > >>>>>

Re: [PATCH] mm, numa: boot cpu should bound to the node0 when node_off enable

2016-08-22 Thread Catalin Marinas
Ganapatrao Kulkarni wrote: > >>>> On Thu, Aug 18, 2016 at 9:34 PM, Catalin Marinas > >>>> wrote: > >>>>> On Thu, Aug 18, 2016 at 09:09:26PM +0800, zhongjiang wrote: > >>>>>> At present, boot cpu will bound to a node from

Re: [RFC PATCH v2 2/2] arm64 Kconfig: Select gigantic page

2016-08-22 Thread Catalin Marinas
c3f00f..92217f6 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -9,6 +9,7 @@ config ARM64 > select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE > select ARCH_HAS_ELF_RANDOMIZE > select ARCH_HAS_GCOV_PROFILE_ALL > + select ARCH_HAS_GIGANTIC_PAGE Acked-by: Catalin Marinas

Re: [RFC PATCH v2 2/2] arm64 Kconfig: Select gigantic page

2016-08-22 Thread Catalin Marinas
On Mon, Aug 22, 2016 at 10:03:58AM +0200, Michal Hocko wrote: > On Mon 22-08-16 10:56:43, Xie Yisheng wrote: > > Arm64 supports gigantic page after > > commit 084bd29810a5 ("ARM64: mm: HugeTLB support.") > > however, it got broken by > > commit 944d9fec8d7a ("hugetlb: add support for gigantic page

[GIT PULL] arm64 fixes for 4.8-rc3

2016-08-18 Thread Catalin Marinas
off Catalin Marinas (2): arm64: Fix NUMA build error when !CONFIG_ACPI arm64: Fix shift warning in arch/arm64/mm/dump.c arch/arm64/kernel/sleep.S | 10 +- arch/arm64/mm/dump.c | 6 +++--- arch/arm64/mm/numa.c | 2 ++ 3 files changed, 14 insertions(+), 4 deletions

[PATCH v3] mm: kmemleak: Avoid using __va() on addresses that don't have a lowmem mapping

2016-08-18 Thread Catalin Marinas
updated to use the new kmemleak API. Reported-by: Vignesh R Cc: Vignesh R Cc: Andrew Morton Signed-off-by: Catalin Marinas --- v2->v3: Replaced the __pa(high_memory) check with PHYS_PFN(phys) < max_low_pfn as the former does not always give the right result and causes a kernel pa

Re: [PATCH] mm, numa: boot cpu should bound to the node0 when node_off enable

2016-08-18 Thread Catalin Marinas
On Thu, Aug 18, 2016 at 09:09:26PM +0800, zhongjiang wrote: > At present, boot cpu will bound to a node from device tree when node_off > enable. > if the node is not initialization, it will lead to a following problem. > > next_zones_zonelist+0x18/0x80 > __build_all_zonelists+0x1e0/0x288 > bui

Re: [PATCH] arm64: Expose TASK_SIZE to userspace via auxv

2016-08-18 Thread Catalin Marinas
On Thu, Aug 18, 2016 at 02:00:56PM +0200, Ard Biesheuvel wrote: > On 17 August 2016 at 13:12, Christopher Covington wrote: > > On August 17, 2016 6:30:06 AM EDT, Catalin Marinas > > wrote: > >>On Tue, Aug 16, 2016 at 02:32:29PM -0400, Christopher Covington wro

Re: [lkp] [mm] 122708b1b9: PANIC: early exception

2016-08-17 Thread Catalin Marinas
On Wed, Aug 17, 2016 at 12:18:08PM -0700, Andrew Morton wrote: > On Wed, 17 Aug 2016 17:10:28 +0100 Catalin Marinas > wrote: > > On Wed, Aug 17, 2016 at 11:51:41PM +0800, kernel test robot wrote: > > > FYI, we noticed the following commit: > > > > >

Re: [lkp] [mm] 122708b1b9: PANIC: early exception

2016-08-17 Thread Catalin Marinas
On Wed, Aug 17, 2016 at 11:51:41PM +0800, kernel test robot wrote: > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Catalin-Marinas/mm-kmemleak-Avoid-using-__va-on-addresses-that-don-t-have-a-lowmem-mapping/20160816-232

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Catalin Marinas
On Wed, Aug 17, 2016 at 04:32:23PM +0200, Dr. Philipp Tomsich wrote: > On 17 Aug 2016, at 16:29, Catalin Marinas wrote: > > On Wed, Aug 17, 2016 at 02:54:59PM +0200, Dr. Philipp Tomsich wrote: > >> On 17 Aug 2016, at 14:48, Yury Norov wrote: > >>> On Wed, Au

Re: [RFC2 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-08-17 Thread Catalin Marinas
On Wed, Aug 17, 2016 at 02:54:59PM +0200, Dr. Philipp Tomsich wrote: > On 17 Aug 2016, at 14:48, Yury Norov wrote: > > On Wed, Aug 17, 2016 at 02:28:50PM +0200, Alexander Graf wrote: > >> On 17 Aug 2016, at 13:46, Yury Norov wrote: > >>> This series enables aarch64 with ilp32 mode, and as support

Re: [PATCH] arm64: Expose TASK_SIZE to userspace via auxv

2016-08-17 Thread Catalin Marinas
On Tue, Aug 16, 2016 at 02:32:29PM -0400, Christopher Covington wrote: > Some userspace applications need to know the maximum virtual address they can > use (TASK_SIZE). Just curious, what are the cases needing TASK_SIZE in user space? -- Catalin

[PATCH v2] mm: kmemleak: Avoid using __va() on addresses that don't have a lowmem mapping

2016-08-17 Thread Catalin Marinas
updated to use the new kmemleak API. Reported-by: Vignesh R Cc: Vignesh R Cc: Andrew Morton Signed-off-by: Catalin Marinas --- v1 -> v2: Moved the kmemleak_*_phys() functions out of line to avoid including linux/mm.h in linux/kmemleak.h and cause build errors on several platforms Vign

Re: [PATCH] mm: kmemleak: Avoid using __va() on addresses that don't have a lowmem mapping

2016-08-16 Thread Catalin Marinas
On Tue, Aug 16, 2016 at 04:20:56PM +0100, Catalin Marinas wrote: > diff --git a/include/linux/kmemleak.h b/include/linux/kmemleak.h > index 4894c6888bc6..380f72bc3657 100644 > --- a/include/linux/kmemleak.h > +++ b/include/linux/kmemleak.h > @@ -21,6 +21,7 @@ > #ifndef __KME

Re: [PATCH] mm: kmemleak: Avoid using __va() on addresses that don't have a lowmem mapping

2016-08-16 Thread Catalin Marinas
; url: > https://github.com/0day-ci/linux/commits/Catalin-Marinas/mm-kmemleak-Avoid-using-__va-on-addresses-that-don-t-have-a-lowmem-mapping/20160816-232733 > base: git://git.cmpxchg.org/linux-mmotm.git master > config: tile-tilegx_defconfig (attached as .config) > compiler: tilegx-lin

Re: [PATCH] arm64: Introduce execute-only page access permissions

2016-08-16 Thread Catalin Marinas
On Mon, Aug 15, 2016 at 10:45:09AM -0700, Kees Cook wrote: > On Mon, Aug 15, 2016 at 3:47 AM, Catalin Marinas > wrote: > > On Fri, Aug 12, 2016 at 11:23:03AM -0700, Kees Cook wrote: > >> On Thu, Aug 11, 2016 at 10:44 AM, Catalin Marinas > >> wrote: > >>

[PATCH] mm: kmemleak: Avoid using __va() on addresses that don't have a lowmem mapping

2016-08-16 Thread Catalin Marinas
updated to use the new kmemleak API. Reported-by: Vignesh R Tested-by: Vignesh R Signed-off-by: Catalin Marinas --- Not entirely sure about cc'ing stable though. This bug has been around since the beginnings of kmemleak and I only now got a bug report. It's either because the precond

Re: [PATCH] Documentation: kprobes: Document jprobes stack copying limitations

2016-08-15 Thread Catalin Marinas
; > Was kind of hoping to see an ack (or critique) from a sparc maintainer. > > So are you saying you don't want the patch applied at this point? To avoid any doubt, for arm64: Acked-by: Catalin Marinas (and I want the patch applied)

Re: [PATCH v7 14/15] arm64, acpi, numa: NUMA support based on SRAT and SLIT

2016-08-15 Thread Catalin Marinas
_init)) I'll fix it in arch/arm64 by including asm/acpi.h directly as we do in a couple of other files: --8<-- >From 9a83bf400e0b4ef066b83eeaecdbca909b8491ea Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Mon, 15 Aug 2016 16:33:10 +01

Re: [PATCH] arm64: Introduce execute-only page access permissions

2016-08-15 Thread Catalin Marinas
On Fri, Aug 12, 2016 at 11:23:03AM -0700, Kees Cook wrote: > On Thu, Aug 11, 2016 at 10:44 AM, Catalin Marinas > wrote: > > The ARMv8 architecture allows execute-only user permissions by clearing > > the PTE_UXN and PTE_USER bits. However, the kernel running on a CPU > >

Re: [PATCH 05/19] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-08-15 Thread Catalin Marinas
On Sat, Aug 13, 2016 at 06:17:03PM +0300, Yury Norov wrote: > On Fri, Aug 12, 2016 at 03:36:12PM +0100, Catalin Marinas wrote: > > On Thu, Aug 11, 2016 at 10:29:03PM +0200, Arnd Bergmann wrote: > > > On Thursday, August 11, 2016 5:30:03 PM CEST Catalin Marinas wrote: > > &g

[GIT PULL] arm64 fixes for 4.8-rc2

2016-08-14 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below for 4.8-rcX. Thanks. The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc: Linux 4.8-rc1 (2016-08-07 18:18:00 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm

Re: [PATCHv5] arm64: Handle el1 synchronous instruction aborts cleanly

2016-08-12 Thread Catalin Marinas
On Fri, Aug 12, 2016 at 06:05:09PM +0100, Catalin Marinas wrote: > On Tue, Aug 09, 2016 at 06:25:26PM -0700, Laura Abbott wrote: > > Executing from a non-executable area gives an ugly message: > > > > lkdtm: Performing direct entry EXEC_RODATA > > lkdtm:

Re: [PATCH RESEND] MAINTAINERS: add ARM ARCHITECTED TIMER entry

2016-08-12 Thread Catalin Marinas
nd its low-level > arch components, such that get_maintainer.pl will always include > relevant interested parties for modifications to the driver. For the > timebeing, this means myself and Marc Zyngier. > > Acked-by: Marc Zyngier > Cc: Catalin Marinas > Cc: Daniel Lezcano

Re: [PATCHv5] arm64: Handle el1 synchronous instruction aborts cleanly

2016-08-12 Thread Catalin Marinas
On Tue, Aug 09, 2016 at 06:25:26PM -0700, Laura Abbott wrote: > Executing from a non-executable area gives an ugly message: > > lkdtm: Performing direct entry EXEC_RODATA > lkdtm: attempting ok execution at 084c0e08 > lkdtm: attempting bad execution at 08880700 > Bad mode in Synchr

Re: [PATCH 05/19] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-08-12 Thread Catalin Marinas
On Thu, Aug 11, 2016 at 10:29:03PM +0200, Arnd Bergmann wrote: > On Thursday, August 11, 2016 5:30:03 PM CEST Catalin Marinas wrote: > > > > > and you can have ARM binaries with > > > > > PER_LINUX (using the arm64 uname) just like you can have > > > &

Re: kmemleak: Cannot insert 0xff7f1000 into the object search tree (overlaps existing)

2016-08-12 Thread Catalin Marinas
On Fri, Aug 12, 2016 at 09:45:05AM +0530, Vignesh R wrote: > On Thursday 11 August 2016 10:38 PM, Catalin Marinas wrote: > > diff --git a/mm/memblock.c b/mm/memblock.c > > index 483197ef613f..7d3361d53ac2 100644 > > --- a/mm/memblock.c > > +++ b/mm/memblock.c

[PATCH] arm64: Introduce execute-only page access permissions

2016-08-11 Thread Catalin Marinas
t set. To work around this, the check is done on the PTE_NG bit via the pte_ng() macro. VM_READ is also checked now for page faults. Cc: Will Deacon Signed-off-by: Catalin Marinas --- arch/arm64/include/asm/pgtable-prot.h | 5 +++-- arch/arm64/include/asm/pgtable.h | 10 +- arch/arm

Re: kmemleak: Cannot insert 0xff7f1000 into the object search tree (overlaps existing)

2016-08-11 Thread Catalin Marinas
On Thu, Aug 11, 2016 at 07:48:12PM +0300, Grygorii Strashko wrote: > On 08/11/2016 06:54 PM, Catalin Marinas wrote: > > On Thu, Aug 11, 2016 at 05:20:51PM +0530, Vignesh R wrote: > >> I see the below message from kmemleak when booting linux-next on AM335x > >> GP EVM an

Re: [PATCH 1/1] arm64: Remove stack duplicating code from jprobes

2016-08-11 Thread Catalin Marinas
On Wed, Aug 10, 2016 at 04:44:51PM -0400, David Long wrote: > From: "David A. Long" > > Because the arm64 calling standard allows stacked function arguments to be > anywhere in the stack frame, do not attempt to duplicate the stack frame for > jprobes handler functions. > > Documenation changes

Re: [PATCH 05/19] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-08-11 Thread Catalin Marinas
On Thu, Aug 11, 2016 at 05:16:45PM +0200, Arnd Bergmann wrote: > On Thursday, August 11, 2016 3:50:00 PM CEST Catalin Marinas wrote: > > On Thu, Aug 11, 2016 at 10:53:01AM +0200, Arnd Bergmann wrote: > > > On Thursday, August 11, 2016 3:35:01 PM CEST Zhangjian (Bamvor) wrote: &g

Re: kmemleak: Cannot insert 0xff7f1000 into the object search tree (overlaps existing)

2016-08-11 Thread Catalin Marinas
On Thu, Aug 11, 2016 at 05:20:51PM +0530, Vignesh R wrote: > I see the below message from kmemleak when booting linux-next on AM335x > GP EVM and DRA7 EVM Can you also reproduce it with 4.8-rc1? > [0.803934] kmemleak: Cannot insert 0xff7f1000 into the object search tree > (overlaps existing)

Re: [PATCH 05/19] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2016-08-11 Thread Catalin Marinas
On Thu, Aug 11, 2016 at 10:53:01AM +0200, Arnd Bergmann wrote: > On Thursday, August 11, 2016 3:35:01 PM CEST Zhangjian (Bamvor) wrote: > > On 2016/6/18 7:54, Yury Norov wrote: > > > From: Andrew Pinski > > > > > > In this patchset ILP32 ABI support is added. Additionally to AARCH32, > > > which

Re: arm64: why set SECTION_SIZE_BITS to 1G size?

2016-08-11 Thread Catalin Marinas
On Thu, Aug 11, 2016 at 05:44:46PM +0800, Xishi Qiu wrote: > arm64: > SECTION_SIZE_BITS 30 -1G > > The memory hotplug(add_memory -->check_hotplug_memory_range) > must be aligned with section.So I can not add mem with 64M ... > Can I modify the SECTION_SIZE_BITS to 26? There was a patch to re

Re: [PATCH 08/10] docs: sphinxify kmemleak.txt and move it to dev-tools

2016-08-10 Thread Catalin Marinas
On Mon, Aug 08, 2016 at 05:35:00PM -0600, Jonathan Corbet wrote: > Cc: Catalin Marinas > Signed-off-by: Jonathan Corbet > --- > .../{kmemleak.txt => dev-tools/kmemleak.rst} | 93 > -- > Documentation/dev-tools/tools.rst

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-08-09 Thread Catalin Marinas
On Mon, Aug 08, 2016 at 10:29:05AM -0400, David Long wrote: > On 08/08/2016 07:13 AM, Daniel Thompson wrote: > >On 04/08/16 05:47, David Long wrote: > >>From b451caa1adaf1d03e08a44b5dad3fca31cebd97a Mon Sep 17 00:00:00 2001 > >>From: "David A. Long" > >>Date: Thu, 4 Aug 2016 00:35:33 -0400 > >>Sub

Re: [PATCH] drivers: net: cpsw: fix kmemleak false-positive reports for sk buffers

2016-08-09 Thread Catalin Marinas
_not_leak(skb); Nitpick: I would add a short comment above the kmemleak_not_leak() calls on why there is a false positive. Otherwise: Acked-by: Catalin Marinas

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-07-28 Thread Catalin Marinas
On Wed, Jul 27, 2016 at 06:13:37PM -0400, David Long wrote: > On 07/27/2016 07:50 AM, Daniel Thompson wrote: > >On 25/07/16 23:27, David Long wrote: > >>On 07/25/2016 01:13 PM, Catalin Marinas wrote: > >>>The problem is that the original design was done on x86 f

[GIT PULL] arm64 updates for 4.8

2016-07-27 Thread Catalin Marinas
ngs arm64: efi: always map runtime services code and data regions down to pages arm64: efi: avoid block mappings for unaligned UEFI memory regions arm64: mm: fold init_pgd() into __create_pgd_mapping() arm64: mm: make create_mapping_late() non-allocating arm64:

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-07-26 Thread Catalin Marinas
On Tue, Jul 26, 2016 at 10:50:08AM +0100, Daniel Thompson wrote: > On 25/07/16 18:13, Catalin Marinas wrote: > >On Fri, Jul 22, 2016 at 11:51:32AM -0400, David Long wrote: > >>On 07/22/2016 06:16 AM, Catalin Marinas wrote: > >>>On Thu, Jul 21, 2016 at 02:3

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-07-25 Thread Catalin Marinas
On Fri, Jul 22, 2016 at 11:51:32AM -0400, David Long wrote: > On 07/22/2016 06:16 AM, Catalin Marinas wrote: > >On Thu, Jul 21, 2016 at 02:33:52PM -0400, David Long wrote: > >>On 07/21/2016 01:23 PM, Marc Zyngier wrote: > >>>On 21/07/16 17:33, David Long wrote: >

<    10   11   12   13   14   15   16   17   18   19   >