[tip: timers/core] posix-timers: Preserve return value in clock_adjtime32()

2021-04-17 Thread tip-bot2 for Chen Jun
The following commit has been merged into the timers/core branch of tip: Commit-ID: 2d036dfa5f10df9782f5278fc591d79d283c1fad Gitweb: https://git.kernel.org/tip/2d036dfa5f10df9782f5278fc591d79d283c1fad Author:Chen Jun AuthorDate:Wed, 14 Apr 2021 03:04:49 Committer

[PATCH v2] time: Fix overwrite err unexpected in clock_adjtime32

2021-04-13 Thread Chen Jun
the correct error is covered by put_old_timex32. Fixes: 3a4d44b61625 ("ntp: Move adjtimex related compat syscalls to native counterparts") Signed-off-by: Chen Jun --- v2: Make "Fixes" tag correct kernel/time/posix-timers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH] time: Fix overwrite err unexpected in clock_adjtime32

2021-04-12 Thread Chen Jun
the correct error is covered by put_old_timex32. Fixes: f1f1d5ebd10f ("posix-timers: Introduce a syscall for clock tuning.") Signed-off-by: Chen Jun --- kernel/time/posix-timers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/posix-timers.c b/k

[PATCH 2/2] arm64: stacktrace: Add skip when task == current

2021-03-17 Thread Chen Jun
LK") Signed-off-by: Chen Jun --- arch/arm64/kernel/stacktrace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c index ad20981..c26b0ac 100644 --- a/arch/arm64/kernel/stacktrace.c +++ b/arch/arm64/kernel/sta

[PATCH 0/2] Fix page_owner broken on arm64

2021-03-17 Thread Chen Jun
*** BLURB HERE *** 1. Prepare for 2, move stacktrace_cookie to .h 2. Fix the problem Chen Jun (2): stacktrace: Move struct stacktrace_cookie to stacktrace.h arm64: stacktrace: Add skip when task == current arch/arm64/kernel/stacktrace.c | 5 +++-- include/linux/stacktrace.h | 7

[PATCH 1/2] stacktrace: Move struct stacktrace_cookie to stacktrace.h

2021-03-17 Thread Chen Jun
ARM64 need to modify the stacktrace_cookie->skip. Signed-off-by: Chen Jun --- include/linux/stacktrace.h | 7 +++ kernel/stacktrace.c| 7 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h index 50e2

[PATCH] rockchip: Make cdn_dp_resume depend on CONFIG_PM_SLEEP

2021-02-27 Thread Chen Jun
If build Image without CONFIG_PM_SLEEP, there would be a compile warning: warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function] Because SET_SYSTEM_SLEEP_PM_OPS will do nothing without CONFIG_PM_SLEEP. Make cdn_dp_resume depend on CONFIG_PM_SLEEP Signed-off-by: Chen Jun --- drivers

[PATCH] recordmcount: use w8 to read relp->r_info in arm64_is_fake_mcount

2021-02-22 Thread Chen Jun
urn 0x2d instead of 0x011b. Because w() takes uint32_t as parameter, which truncates rp->r_info. Use w8() instead w() to read relp->r_info Fixes: ea0eada45632 ("recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.") Signed-off-by: Chen Jun --- scripts/recordmcou

[PATCH] arm64: kernel: Make IPI_WAKEUP under control of CONFIG_ARM64_ACPI_PARKING_PROTOCOL

2021-01-19 Thread Chen Jun
since commit 5e89c55e4ed81d7abb1ce8828db35fa389dc0e90 ("arm64: kernel: implement ACPI parking protocol") On arm64, IPI 6 will be wasted without setting CONFIG_ARM64_ACPI_PARKING_PROTOCOL. Signed-off-by: Chen Jun --- arch/arm64/kernel/smp.c | 4 1 file changed, 4 insertions(+)

[RFC PATCH v2] selinux: Fix kmemleak after disabling selinux runtime

2020-10-28 Thread Chen Jun
From: Chen Jun Kmemleak will report a problem after using "echo 1 > /sys/fs/selinux/disable" to disable selinux on runtime. kmemleak report: unreferenced object 0x901281c208a0 (size 96): comm "swapper/0", pid 1, jiffies 4294668265 (age 692.799s) hex dump (first

[PATCH] iommu: Modify the description of iommu_sva_unbind_device

2020-10-23 Thread Chen Jun
From: Chen Jun iommu_sva_unbind_device has no return value. Remove the description of the return value of the function. Signed-off-by: Chen Jun --- drivers/iommu/iommu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 8c470f4..bb51d53

[PATCH] Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig

2020-10-21 Thread Chen Jun
From: Chen Jun commit 1abbef4f51724fb11f09adf0e75275f7cb422a8a ("mm,kmemleak-test.c: move kmemleak-test.c to samples dir") make CONFIG_DEBUG_KMEMLEAK_TEST depend on CONFIG_SAMPLES implicitly. And the dependency cannot be guaranteed by Kconfig. move the definition of CONFIG_DEBUG_KME

[PATCH -next 4/5] mm/kmemleak-test: use %px instead of %p in print

2020-09-20 Thread Chen Jun
From: Wei Yongjun Real addresses are used for diagnose issues. Convert %p with %px to print kernel addresses. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak-test.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/mm

[PATCH -next 5/5] mm/kmemleak-test: Add a test case for alloc_percpu

2020-09-20 Thread Chen Jun
[<(ptrval)>] el0_svc_common.constprop.3+0x68/0x170 [<(ptrval)>] do_el0_svc+0x24/0x90 [<(ptrval)>] el0_sync_handler+0x13c/0x1a8 [<(ptrval____)>] el0_sync+0x158/0x180 Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak-test.c | 3 +++ 1 f

[PATCH -next 0/5] mm/kmemleak:support for percpu memory leak detect

2020-09-20 Thread Chen Jun
detected by it: [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71e843295c680898959b22dc877ae3839cc22470 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=667e57da358f61b6966e12e925a69e42d912e8bb *** BLURB HERE *** Chen Jun (1): mm

[PATCH -next 2/5] mm/kmemleak: skip update_checksum for OBJECT_NO_SCAN objects

2020-09-20 Thread Chen Jun
From: Wei Yongjun Objects marked with OBJECT_NO_SCAN are never scanned. So there is no need to update checksum for them. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak.c | 4 1 file changed, 4 insertions(+) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index

[PATCH -next 3/5] mm/kmemleak: Add support for percpu memory leak detect

2020-09-20 Thread Chen Jun
check whether this pointer is referenced by other blocks. Introduce two global variables, min_percpu_addr and max_percpu_addr, to store the range of valid percpu pointer values, in order to speed up pointer lookup when scanning blocks. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm

[PATCH -next 1/5] mm/kmemleak: make create_object return void

2020-09-20 Thread Chen Jun
From: Wei Yongjun No user cares about the return value of create_object, so make it return void. Signed-off-by: Wei Yongjun Signed-off-by: Chen Jun --- mm/kmemleak.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index c0014d3b91c1

RE: [PATCH] serial: ifx6x60: ifx_spi_write don't need to do mrdy_assert when fifo is not empty.

2012-11-17 Thread Chen, Jun D
Hi, I make this patch on your tty-next tree, Do I need to make it on the branch 3.7-rc6 against? -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Friday, November 16, 2012 8:39 PM To: Chen, Jun D Cc: Alan Cox; Bi, Chao; serial; Gorby, Russ; linux-kernel

RE: [PATCH] serial: ifx6x60: ifx_spi_write don't need to do mrdy_assert when fifo is not empty.

2012-11-17 Thread Chen, Jun D
Hi, I make this patch on your tty-next tree, Do I need to make it on the branch 3.7-rc6 against? -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Friday, November 16, 2012 8:39 PM To: Chen, Jun D Cc: Alan Cox; Bi, Chao; serial; Gorby, Russ; linux-kernel