Re: [PATCH] MIPS: Fix inline asm input/output type mismatch in checksum.h used with Clang

2021-03-03 Thread Tiezhu Yang
linux-mips/CAG_fn=W0JHf8QyUX==+rqmp8poulhrsqca9htffws31ga8k...@mail.gmail.com/ Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/checksum.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) applied to mips-next. This is in a performance-critical path (otherwise it wouldn't

[PATCH v2] MIPS: Make MIPS32_O32 depends on !CC_IS_CLANG

2021-03-03 Thread Tiezhu Yang
athan said, the config should not even be selectable when build kernel with Clang, so just make MIPS32_O32 depends on !CC_IS_CLANG. [1] https://www.kernel.org/doc/html/latest/kbuild/llvm.html [2] https://bugs.llvm.org/show_bug.cgi?id=38063 Signed-off-by: Tiezhu Yang --- arch/mips/Kconfig | 2

Re: [PATCH] riscv: Return -EFAULT if copy_to_user() failed in signal.c

2021-03-03 Thread Tiezhu Yang
On 03/02/2021 06:01 PM, Ben Dooks wrote: On 02/03/2021 07:28, Tiezhu Yang wrote: copy_to_user() returns the amount left to copy, it should return -EFAULT if copy to user failed. This looks technically correct, but the caller (only one) will check for non-zero and will covert that to -EFAULT

[PATCH v3] MIPS: Make MIPS32_O32 depends on !CC_IS_CLANG

2021-03-04 Thread Tiezhu Yang
athan said, the config should not even be selectable when building with Clang, so just make MIPS32_O32 depends on !CC_IS_CLANG. [1] https://www.kernel.org/doc/html/latest/kbuild/llvm.html [2] https://bugs.llvm.org/show_bug.cgi?id=38063 Signed-off-by: Tiezhu Yang Acked-by: Nathan Chancellor ---

[PATCH] MIPS: Enable some missed configs in loongson3_defconfig to support bpftrace

2021-03-07 Thread Tiezhu Yang
configs in loongson3_defconfig to make sure the above configs are set after make loongson3_defconfig. [1] https://github.com/iovisor/bpftrace/blob/master/INSTALL.md Signed-off-by: Tiezhu Yang --- arch/mips/configs/loongson3_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion

[PATCH] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-03-08 Thread Tiezhu Yang
can build successfully by both GCC and Clang, at the same time, we can avoid the potential performance influence with GCC. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/checksum.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/include/asm/checksum.h b/arch/mips/i

Re: [PATCH] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-03-08 Thread Tiezhu Yang
On 03/09/2021 12:52 AM, David Laight wrote: From: Tiezhu Yang Sent: 08 March 2021 12:50 The asm code in csum_tcpudp_nofold() is performance-critical, I am sorry for the poorly considered implementation about the performance influence with GCC in the commit 198688edbf77 ("MIPS: Fix inlin

[PATCH v2] MIPS: Check __clang__ to avoid performance influence with GCC in csum_tcpudp_nofold()

2021-03-08 Thread Tiezhu Yang
can build successfully by both GCC and Clang, at the same time, we can avoid the potential performance influence with GCC. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/checksum.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/mips/include/asm/checksu

[QUESTION] Will the pahole tar source code with corresponding libbpf submodule codes be released as well in the future?

2021-04-14 Thread Tiezhu Yang
(1) tools/bpf/bpftool build failed due to the following reason: Error: failed to load BTF from /boot/vmlinux-5.12.0-rc2: No such file or directory make: *** [Makefile:158: vmlinux.h] Error 2 (2) When set CONFIG_DEBUG_INFO_BTF=y, failed to generate BTF for vmlinux due to pahole is not

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-12 Thread Tiezhu Yang
On 04/12/2021 11:02 AM, Tiezhu Yang wrote: On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition that (s + strlen(s)) < __UA_LIMIT <=

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-11 Thread Tiezhu Yang
On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition that (s + strlen(s)) < __UA_LIMIT <= (s + n). The old __strnlen_user_asm() just checked (ua_limit & s) without

[PATCH bpf-next v2] bpf: Fix some invalid links in bpf_devel_QA.rst

2021-04-14 Thread Tiezhu Yang
g/doc/html/latest/bpf/bpf_devel_QA.html Fixes: 542228384888 ("bpf, doc: convert bpf_devel_QA.rst to use RST formatting") Signed-off-by: Tiezhu Yang --- v2: Add Fixes: tag Documentation/bpf/bpf_devel_QA.rst | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) d

[PATCH RFC v2] module: Use ARG_MAX as second argument of strndup_user() in load_module()

2021-04-12 Thread Tiezhu Yang
_module() failure disappered and we can login normally through a graphical interface. [1] https://lore.kernel.org/patchwork/patch/1411214/ Signed-off-by: Tiezhu Yang --- v2: Update the commit message to avoid using diff content - patch(1) might not work kernel/module.c | 2 +- 1 file changed, 1 ins

[PATCH RFC] module: Use ARG_MAX as second argument of strndup_user() in load_module()

2021-04-12 Thread Tiezhu Yang
and we can login normally through a graphical interface. [1] https://lore.kernel.org/patchwork/patch/1411214/ Signed-off-by: Tiezhu Yang --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index 3047935..30d320b 100644 --- a/ker

[PATCH bpf-next] bpf: Fix some invalid links in bpf_devel_QA.rst

2021-04-14 Thread Tiezhu Yang
t remove the links of "samples/bpf/" and "selftests" because there are not related documentations. [1] https://www.kernel.org/doc/html/MAINTAINERS [2] https://www.kernel.org/doc/html/samples/bpf/ [3] https://www.kernel.org/doc/html/tools/testing/selftests/bpf/ [4] https://

[PATCH v2 RESEND] MIPS: Add basic support for ptrace single step

2021-02-12 Thread Tiezhu Yang
From: Tiezhu Yang In the current code, arch_has_single_step() is not defined on MIPS, that means MIPS does not support instruction single-step for user mode. Delve is a debugger for the Go programming language, the ptrace syscall PtraceSingleStep() failed [1] on MIPS and then the single step

Re: [PATCH v2 0/3] Add some perf support for mips

2021-02-21 Thread Tiezhu Yang
On 02/04/2021 11:35 AM, Tiezhu Yang wrote: v2: add R26 and R27 to the enum perf_event_mips_regs in patch #1 Tiezhu Yang (3): MIPS: kernel: Support extracting off-line stack traces from user-space with perf perf tools: Support mips unwinding and dwarf-regs perf tools: Generate mips

[tip:x86/cleanups] x86/kexec: Make variable static and config dependent

2019-06-26 Thread tip-bot for Tiezhu Yang
Commit-ID: 53b7607382b0b99d6ae1ef5b1b0fa042b00ac7f4 Gitweb: https://git.kernel.org/tip/53b7607382b0b99d6ae1ef5b1b0fa042b00ac7f4 Author: Tiezhu Yang AuthorDate: Mon, 24 Jun 2019 12:41:18 +0800 Committer: Thomas Gleixner CommitDate: Wed, 26 Jun 2019 16:02:45 +0200 x86/kexec: Make

<    1   2   3   4   5   6