[PATCH] clocksourc: Fix the comments to __clocksource_register_scale

2021-03-06 Thread Hailong Liu
From: Hailong Liu The return value of __clocksource_register_scale() is awlays 0, which does not match the comments. Signed-off-by: Hailong Liu --- kernel/time/clocksource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/clocksource.c b/kernel/time

Re: [PATCH] arm64/ptdump:display the Linear Mapping start marker

2021-02-03 Thread Hailong Liu
On 2/3/21 3:39 AM, Randy Dunlap wrote: > On 2/2/21 7:07 AM, Hailong Liu wrote: >> From: Hailong Liu >> >> The current /sys/kernel/debug/kernel_page_tables does not display the >> *Linear Mapping start* marker on arm64, which I think should be paired >> with

[PATCH] arm64/ptdump:display the Linear Mapping start marker

2021-02-02 Thread Hailong Liu
From: Hailong Liu The current /sys/kernel/debug/kernel_page_tables does not display the *Linear Mapping start* marker on arm64, which I think should be paired with the *Linear Mapping start* marker. Since *Linear Mapping start* is the first marker, use level=-1 to display it. Signed-off-by

[RESEND PATCH v2] arm/mm/ptdump:Add address markers for KASAN regions

2021-01-20 Thread Hailong liu
From: Hailong Liu ARM has recently supported KASAN, so I think that it's time to add KASAN regions for PTDUMP on ARM. I have tested this patch with QEMU + vexpress-a15. Both CONFIG_ARM_LPAE and no CONFIG_ARM_LPAE. The result after patching looks like this: ---[ Kasan shadow

[PATCH] arch/arm/mm/mmu.c: Remove duplicate header

2021-01-19 Thread Hailong liu
From: Hailong Liu Remove asm/fixmap.h which is included more than once. Signed-off-by: Hailong Liu --- arch/arm/mm/mmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index c06ebfbc48c4..a25b660c3017 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm

[PATCH 6/6] arm/mm/ptdump:Add address markers for KASAN regions

2021-01-19 Thread Hailong liu
From: Hailong Liu ARM has recently supported KASAN, so I think that it's time to add KASAN regions for PTDUMP on ARM. I have tested this patch with QEMU + vexpress-a15. Both CONFIG_ARM_LPAE and no CONFIG_ARM_LPAE. The result after patching looks like this: 1 CONFIG_ARM_LPAE=y ---[ Kasan s

[PATCH] arm/kasan: kasan_alloc a more precise size for pte

2021-01-10 Thread Hailong Liu
From: Hailong Liu The *PTE_HWTABLE_OFF + PTE_HWTABLE_SIZE* may be a more accurate and meaningful size for PTE tables than *PAGE_SIZE* when populating the PMD entries for arm. Signed-off-by: Hailong Liu --- arch/arm/mm/kasan_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] mm/page_alloc:add a missing mm_page_alloc_zone_locked tracepoint

2020-12-28 Thread Hailong liu
From: Hailong liu The trace point *trace_mm_page_alloc_zone_locked()* in __rmqueue() does not currently cover all branches. Add the missing tracepoint and check the page before do that. Signed-off-by: Hailong liu --- mm/page_alloc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions

[tip:sched/core] sched/rt: Restore rt_runtime after disabling RT_RUNTIME_SHARE

2018-07-25 Thread tip-bot for Hailong Liu
Commit-ID: f3d133ee0a17d5694c6f21873eec9863e11fa423 Gitweb: https://git.kernel.org/tip/f3d133ee0a17d5694c6f21873eec9863e11fa423 Author: Hailong Liu AuthorDate: Wed, 18 Jul 2018 08:46:55 +0800 Committer: Ingo Molnar CommitDate: Wed, 25 Jul 2018 11:29:08 +0200 sched/rt: Restore

[PATCH] uio: fix wrong return value from uio_mmap()

2018-07-19 Thread Hailong Liu
: Xiubo Li Signed-off-by: Hailong Liu Signed-off-by: Jiang Biao --- drivers/uio/uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 5d421d7..0ddfda2 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -814,7 +814,7 @@

[PATCH] sched/rt: restore rt_runtime after disabling RT_RUNTIME_SHARE

2018-07-17 Thread Hailong Liu
p to restore rt_runtime after we disable RT_RUNTIME_SHARE. Signed-off-by: Hailong Liu Signed-off-by: Jiang Biao --- kernel/sched/rt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 5725670..eaaec83 100644 --- a/kernel/sched/rt.c +++ b/kerne