Re: [PATCH -next] treewide: Remove duplicated include from tm-vmx-unavail.c

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 07:48, Zheng Yongjun a écrit : Remove duplicated include. Why is that flagged "treewide" ? Can you please combine all similar changes to tools/testing/selftests/powerpc/ into a single patch please ? Thanks Christophe Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun

[PATCH] powerpc/mm/book3s64: Use the correct storage key value when calling H_PROTECT

2021-03-26 Thread Aneesh Kumar K.V
H_PROTECT expect the flag value to include flags: AVPN, pp0, pp1, pp2, key0-key4, Noexec, CMO Option flags This patch updates hpte_updatepp() to fetch the storage key value from the linux page table and use the same in H_PROTECT hcall. native_hpte_updatepp() is not updated because the kernel doe

Re: [PATCH V2 1/5] powerpc/perf: Expose processor pipeline stage cycles using PERF_SAMPLE_WEIGHT_STRUCT

2021-03-26 Thread Madhavan Srinivasan
On 3/25/21 6:36 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Mar 24, 2021 at 10:05:23AM +0530, Madhavan Srinivasan escreveu: On 3/22/21 8:27 PM, Athira Rajeev wrote: Performance Monitoring Unit (PMU) registers in powerpc provides information on cycles elapsed between different stages in the pi

Re: [PATCH] soc/fsl: qbman: fix conflicting alignment attributes

2021-03-26 Thread Arnd Bergmann
On Fri, Mar 26, 2021 at 3:17 AM Li Yang wrote: > On Tue, Mar 23, 2021 at 8:17 AM Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > When building with W=1, gcc points out that the __packed attribute > > on struct qm_eqcr_entry conflicts with the 8-byte alignment > > attribute on struct qm_

Re: [PATCH v3 00/10] Rid W=1 warnings in Crypto

2021-03-26 Thread Herbert Xu
On Thu, Mar 18, 2021 at 12:44:12PM +, Lee Jones wrote: > This is set 1 of 2 sets required to fully clean Crypto. > > v2: No functional changes since v1. > v3: Description change and additional struct header fix > > Lee Jones (10): > crypto: hisilicon: sec_drv: Supply missing description for

Re: [PATCH] crypto: vmx: fix incorrect kernel-doc comment syntax in files

2021-03-26 Thread Herbert Xu
On Sun, Mar 21, 2021 at 01:55:25AM +0530, Aditya Srivastava wrote: > The opening comment mark '/**' is used for highlighting the beginning of > kernel-doc comments. > There are certain files in drivers/crypto/vmx, which follow this syntax, > but the content inside does not comply with kernel-doc. >

Re: [PATCH] crypto: nx: fix incorrect kernel-doc comment syntax in files

2021-03-26 Thread Herbert Xu
On Sun, Mar 21, 2021 at 06:00:07PM +0530, Aditya Srivastava wrote: > The opening comment mark '/**' is used for highlighting the beginning of > kernel-doc comments. > There are certain files in drivers/crypto/nx, which follow this syntax, > but the content inside does not comply with kernel-doc. >

[PATCH] arch/powerpc: Remove unneeded variable: "ret"

2021-03-26 Thread zuoqilin1
From: zuoqilin Remove unneeded variable: "ret". Signed-off-by: zuoqilin --- arch/powerpc/platforms/pseries/cmm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c index 45a3a30..95ebb0c 100644 ---

[PATCH] docs: powerpc: Fix misspellings and grammar errors

2021-03-26 Thread He Ying
Reported-by: Hulk Robot Signed-off-by: He Ying --- Documentation/powerpc/booting.rst| 2 +- Documentation/powerpc/dawr-power9.rst| 2 +- Documentation/powerpc/eeh-pci-error-recovery.rst | 2 +- Documentation/powerpc/elfnote.rst| 2 +- Documentation/pow

[PATCH] powerpc/64: Move security code into security.c

2021-03-26 Thread Michael Ellerman
When the original spectre/meltdown mitigations were merged we put them in setup_64.c for lack of a better place. Since then we created security.c for some of the other mitigation related code. But it should all be in there. This sort of code movement can cause trouble for backports, but hopefully

Re: VDSO ELF header

2021-03-26 Thread Michael Ellerman
Laurent Dufour writes: > Le 25/03/2021 à 17:56, Laurent Dufour a écrit : >> Le 25/03/2021 à 17:46, Christophe Leroy a écrit : >>> Le 25/03/2021 à 17:11, Laurent Dufour a écrit : Since v5.11 and the changes you made to the VDSO code, it no more exposing the ELF header at the beginning of

Re: VDSO ELF header

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 11:46, Michael Ellerman a écrit : Laurent Dufour writes: Le 25/03/2021 à 17:56, Laurent Dufour a écrit : Le 25/03/2021 à 17:46, Christophe Leroy a écrit : Le 25/03/2021 à 17:11, Laurent Dufour a écrit : Since v5.11 and the changes you made to the VDSO code, it no more expo

Re: [PATCH next v1 2/3] printk: remove safe buffers

2021-03-26 Thread John Ogness
On 2021-03-23, Petr Mladek wrote: >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1142,8 +1126,6 @@ void __init setup_log_buf(int early) >> new_descs, ilog2(new_descs_count), >> new_infos); >> >> -printk_safe_enter_irqsave(flags); >> - >>

Re: [PATCH] docs: powerpc: Fix misspellings and grammar errors

2021-03-26 Thread Michael Ellerman
He Ying writes: > Reported-by: Hulk Robot > Signed-off-by: He Ying > --- > Documentation/powerpc/booting.rst| 2 +- > Documentation/powerpc/dawr-power9.rst| 2 +- > Documentation/powerpc/eeh-pci-error-recovery.rst | 2 +- > Documentation/powerpc/elfnote.rst

[PATCH] powerpc: powernv: Remove unneeded variable: "rc"

2021-03-26 Thread dingsenjie
From: dingsenjie Remove unneeded variable: "rc". Signed-off-by: dingsenjie --- arch/powerpc/platforms/powernv/opal-prd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-prd.c b/arch/powerpc/platforms/powernv/opal-prd.c index deddaeb.

[PATCH v3 02/17] drivers: of: use cmdline building function

2021-03-26 Thread Christophe Leroy
This patch uses the new cmdline building function to concatenate the of provided cmdline with built-in parts based on compile-time options. Signed-off-by: Christophe Leroy --- drivers/of/fdt.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/drivers/of

[PATCH v3 03/17] cmdline: Gives architectures opportunity to use generically defined boot cmdline manipulation

2021-03-26 Thread Christophe Leroy
Most architectures have similar boot command line manipulation options. This patchs adds the definition in init/Kconfig, gated by CONFIG_HAVE_CMDLINE that the architectures can select to use them. CONFIG_CMDLINE_EXTEND is understood differently by architectures. For some of them it appends built-i

[PATCH v3 00/17] Implement GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
The purpose of this series is to improve and enhance the handling of kernel boot arguments. It is first focussed on powerpc but also extends the capability for other arches. This is based on suggestion from Daniel Walker Main changes in V3: - Also accept destination equal to source in cmdline_b

[PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-03-26 Thread Christophe Leroy
This code provides architectures with a way to build command line based on what is built in the kernel and what is handed over by the bootloader, based on selected compile-time options. Signed-off-by: Christophe Leroy --- v3: - Addressed comments from Will - Added capability to have src == dst --

[PATCH v3 04/17] powerpc: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This updates the powerpc code to use the new cmdline building function. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig| 37 + arch/powerpc/kernel/prom_init.c | 17 +++ 2 files changed, 8 insertions(+), 46 deletions(-) diff --git

[PATCH v3 05/17] arm: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/arm/Kconfig | 38 +-- arch/arm/kernel/atags_parse.c | 15 +- 2 files changed, 6 insertions(+), 47 deletions(-) diff --git a/arch/arm/Kconfig b/arc

[PATCH v3 06/17] arm64: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/arm64/Kconfig | 33 +- arch/arm64/kernel/idreg-override.c | 9 2 files changed, 5 insertions(+), 37 deletions(-) diff --git a/arch/arm64/Kconfig b/ar

[PATCH v3 07/17] hexagon: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/hexagon/Kconfig| 11 +-- arch/hexagon/kernel/setup.c | 10 ++ 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index 44a4

[PATCH v3 08/17] microblaze: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/microblaze/Kconfig | 24 +--- arch/microblaze/configs/mmu_defconfig | 2 +- arch/microblaze/kernel/head.S | 4 ++-- 3 files changed, 4 insertions(+), 26 deletio

[PATCH v3 09/17] nios2: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/nios2/Kconfig| 24 +--- arch/nios2/kernel/setup.c | 13 - 2 files changed, 5 insertions(+), 32 deletions(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig in

[PATCH v3 10/17] openrisc: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/openrisc/Kconfig | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index 591acc5990dc..ca1d0f18fe16 100644 --- a/arch/openrisc/Kco

[PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/riscv/Kconfig| 44 +-- arch/riscv/kernel/setup.c | 5 ++--- 2 files changed, 3 insertions(+), 46 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kco

[PATCH v3 14/17] xtensa: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/xtensa/Kconfig | 15 +-- arch/xtensa/configs/audio_kc705_defconfig | 1 - arch/xtensa/configs/common_defconfig| 1 - arch/xtensa/configs/generic_kc705_defco

[PATCH v3 12/17] sh: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/sh/Kconfig | 30 + arch/sh/configs/ap325rxa_defconfig | 2 +- arch/sh/configs/dreamcast_defconfig | 2 +- arch/sh/configs/ecovec24-romima

[PATCH v3 13/17] sparc: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/sparc/Kconfig | 18 +- arch/sparc/prom/bootstr_64.c | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 164a525

[PATCH v3 15/17] x86: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/x86/Kconfig| 45 ++--- arch/x86/kernel/setup.c | 17 ++ drivers/firmware/efi/libstub/x86-stub.c | 26 +++--- 3 files changed, 18

[PATCH v3 16/17] mips: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/mips/Kconfig | 1 + arch/mips/Kconfig.debug | 44 --- arch/mips/configs/ar7_defconfig | 1 - arch/mips/configs/bcm47xx_defconfig

[PATCH v3 17/17] cmdline: Remove CONFIG_CMDLINE_EXTEND

2021-03-26 Thread Christophe Leroy
All architectures providing CONFIG_CMDLINE_EXTEND are now converted to GENERIC_CMDLINE. This configuration item is not used anymore, drop it. Signed-off-by: Christophe Leroy --- init/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index af0d84662cc2.

Re: [PATCH v2 1/1] hotplug-cpu.c: show 'last online CPU' error in dlpar_cpu_offline()

2021-03-26 Thread Daniel Henrique Barboza
Hey Daniel, On 3/26/21 2:24 AM, Daniel Axtens wrote: Hi Daniel, Two small nitpicks: This patch adds a 'last online' check in dlpar_cpu_offline() to catch the 'last online CPU' offline error, eturning a more informative error ^--- s/eturning/returning/;

Re: [PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE

2021-03-26 Thread Andreas Schwab
On Mär 26 2021, Christophe Leroy wrote: > diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > index f8f15332caa2..e7c91ee478d1 100644 > --- a/arch/riscv/kernel/setup.c > +++ b/arch/riscv/kernel/setup.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include > >

[PATCH v3 0/1] show 'last online CPU' error in dlpar_cpu_offline()

2021-03-26 Thread Daniel Henrique Barboza
changes in v3 after Daniel Axtens review: - fixed typo in commit mgs - fixed block comment format to make checkpatch happy v2 link: https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210323205056.52768-2-danielhb...@gmail.com/ changes in v2 after Michael Ellerman review: - moved the verific

[PATCH v3 1/1] hotplug-cpu.c: show 'last online CPU' error in dlpar_cpu_offline()

2021-03-26 Thread Daniel Henrique Barboza
One of the reasons that dlpar_cpu_offline can fail is when attempting to offline the last online CPU of the kernel. This can be observed in a pseries QEMU guest that has hotplugged CPUs. If the user offlines all other CPUs of the guest, and a hotplugged CPU is now the last online CPU, trying to rec

Re: [PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 15:08, Andreas Schwab a écrit : On Mär 26 2021, Christophe Leroy wrote: diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index f8f15332caa2..e7c91ee478d1 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -20,6 +20,7 @@ #include #

cleanup compat exec handling

2021-03-26 Thread Christoph Hellwig
Hi all, this series cleans up the exec code by sharing the native vs compat versions less awkwardly. Diffstat: arch/arm64/include/asm/unistd32.h |4 arch/mips/kernel/syscalls/syscall_n32.tbl |4 arch/mips/kernel/syscalls/syscall_o32.tbl |4 arch/

[PATCH 1/4] exec: remove do_execve

2021-03-26 Thread Christoph Hellwig
Just call do_execveat instead. Signed-off-by: Christoph Hellwig --- fs/exec.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index 18594f11c31fe1..b63fb020909075 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1978,15 +1978,6 @@ int kernel_execve

[PATCH 2/4] exec: remove compat_do_execve

2021-03-26 Thread Christoph Hellwig
Just call compat_do_execve instead. Signed-off-by: Christoph Hellwig --- fs/exec.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index b63fb020909075..06e07278b456fa 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1990,21 +1990,6 @@ static

[PATCH 3/4] exec: simplify the compat syscall handling

2021-03-26 Thread Christoph Hellwig
The only differenence betweeen the compat exec* syscalls and their native versions is the compat_ptr sign extension, and the fact that the pointer arithmetics for the two dimensional arrays needs to use the compat pointer size. Instead of the compat wrappers and the struct user_arg_ptr machinery j

[PATCH 4/4] exec: move the call to getname_flags into do_execveat

2021-03-26 Thread Christoph Hellwig
Remove the duplicated copying of the pathname into the common helper. Signed-off-by: Christoph Hellwig --- fs/exec.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index b34c1eb9e7ad8e..5c0dd8f85fe7b5 100644 --- a/fs/exec.c +++ b/fs/exec.c

Re: [PATCH v2 0/8] Implement EBPF on powerpc32

2021-03-26 Thread Christophe Leroy
Le 22/03/2021 à 18:53, Andrii Nakryiko a écrit : On Mon, Mar 22, 2021 at 9:37 AM Christophe Leroy wrote: This series implements extended BPF on powerpc32. For the implementation details, see the patch before the last. The following operations are not implemented: case BPF

Re: [PATCH] powerpc: powernv: Remove unneeded variable: "rc"

2021-03-26 Thread Andrew Donnellan
On 26/3/21 10:53 pm, dingsen...@163.com wrote: From: dingsenjie Remove unneeded variable: "rc". Signed-off-by: dingsenjie This looks obviously correct and doesn't raise any checkpatch warnings. Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra a...@linux

Re: [PATCH 3/4] exec: simplify the compat syscall handling

2021-03-26 Thread Arnd Bergmann
On Fri, Mar 26, 2021 at 3:38 PM Christoph Hellwig wrote: > > The only differenence betweeen the compat exec* syscalls and their > native versions is the compat_ptr sign extension, and the fact that > the pointer arithmetics for the two dimensional arrays needs to use > the compat pointer size. In

Re: [PATCH v3 00/17] Implement GENERIC_CMDLINE

2021-03-26 Thread Rob Herring
On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: > > The purpose of this series is to improve and enhance the > handling of kernel boot arguments. > > It is first focussed on powerpc but also extends the capability > for other arches. > > This is based on suggestion from Daniel Walker > >

Re: [PATCH 1/4] exec: remove do_execve

2021-03-26 Thread Arnd Bergmann
On Fri, Mar 26, 2021 at 3:38 PM Christoph Hellwig wrote: > > Just call do_execveat instead. > > Signed-off-by: Christoph Hellwig Reviewed-by: Arnd Bergmann

Re: [PATCH 4/4] exec: move the call to getname_flags into do_execveat

2021-03-26 Thread Arnd Bergmann
On Fri, Mar 26, 2021 at 3:38 PM Christoph Hellwig wrote: > > Remove the duplicated copying of the pathname into the common helper. > > Signed-off-by: Christoph Hellwig Looks correct, but > -static int do_execveat(int fd, struct filename *filename, > +static int do_execveat(int fd, const char __

Re: VDSO ELF header

2021-03-26 Thread Dmitry Safonov
Hello, On 3/26/21 10:50 AM, Christophe Leroy wrote: > > > Le 26/03/2021 à 11:46, Michael Ellerman a écrit : >> Laurent Dufour writes: >>> Le 25/03/2021 à 17:56, Laurent Dufour a écrit : Le 25/03/2021 à 17:46, Christophe Leroy a écrit : > Le 25/03/2021 à 17:11, Laurent Dufour a écrit :

Re: [PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE

2021-03-26 Thread Rob Herring
On Fri, Mar 26, 2021 at 8:20 AM Christophe Leroy wrote: > > > > Le 26/03/2021 à 15:08, Andreas Schwab a écrit : > > On Mär 26 2021, Christophe Leroy wrote: > > > >> diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > >> index f8f15332caa2..e7c91ee478d1 100644 > >> --- a/arch/riscv

Re: [PATCH v3 1/1] hotplug-cpu.c: show 'last online CPU' error in dlpar_cpu_offline()

2021-03-26 Thread Andrew Donnellan
On 27/3/21 1:19 am, Daniel Henrique Barboza wrote: One of the reasons that dlpar_cpu_offline can fail is when attempting to offline the last online CPU of the kernel. This can be observed in a pseries QEMU guest that has hotplugged CPUs. If the user offlines all other CPUs of the guest, and a hot

Re: [PATCH 2/4] exec: remove compat_do_execve

2021-03-26 Thread Andreas Schwab
On Mär 26 2021, Christoph Hellwig wrote: > Just call compat_do_execve instead. ITYM compat_do_execveat here. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-03-26 Thread Rob Herring
On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: > > This code provides architectures with a way to build command line > based on what is built in the kernel and what is handed over by the > bootloader, based on selected compile-time options. Note that I have this patch pending: https://p

Re: [PATCH v3 05/17] arm: Convert to GENERIC_CMDLINE

2021-03-26 Thread Rob Herring
On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: > > This converts the architecture to GENERIC_CMDLINE. > > Signed-off-by: Christophe Leroy > --- > arch/arm/Kconfig | 38 +-- > arch/arm/kernel/atags_parse.c | 15 +- > 2 files change

Re: [PATCH v3 05/17] arm: Convert to GENERIC_CMDLINE

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 16:47, Rob Herring a écrit : On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- arch/arm/Kconfig | 38 +-- arch/arm/kernel/atags_pars

Re: [PATCH V2 3/5] tools/perf: Add powerpc support for PERF_SAMPLE_WEIGHT_STRUCT

2021-03-26 Thread Arnaldo
On March 26, 2021 12:23:04 PM GMT-03:00, Athira Rajeev wrote: > > >On 25-Mar-2021, at 1:13 AM, Jiri Olsa wrote: > >On Mon, Mar 22, 2021 at 10:57:25AM -0400, Athira Rajeev wrote: > >Add arch specific arch_evsel__set_sample_weight() to set the new >sample type for powerpc. > >Add arch specific

Re: [PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 16:42, Rob Herring a écrit : On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy wrote: This code provides architectures with a way to build command line based on what is built in the kernel and what is handed over by the bootloader, based on selected compile-time options. No

Re: VDSO ELF header

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 16:13, Dmitry Safonov a écrit : Hello, On 3/26/21 10:50 AM, Christophe Leroy wrote: Le 26/03/2021 à 11:46, Michael Ellerman a écrit : Laurent Dufour writes: Le 25/03/2021 à 17:56, Laurent Dufour a écrit : Le 25/03/2021 à 17:46, Christophe Leroy a écrit : Le 25/03/2021

Re: [PATCH 3/4] exec: simplify the compat syscall handling

2021-03-26 Thread Al Viro
On Fri, Mar 26, 2021 at 03:38:30PM +0100, Christoph Hellwig wrote: > -static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr) > +static const char __user * > +get_user_arg_ptr(const char __user *const __user *argv, int nr) > { > - const char __user *native; > - > -#ifdef

Re: VDSO ELF header

2021-03-26 Thread Dmitry Safonov
On 3/26/21 4:11 PM, Christophe Leroy wrote: [..] >>> >>> Dmitry proposed the same, see >>> https://github.com/0x7f454c46/linux/commit/783c7a2532d2219edbcf555cc540eab05f698d2a >>> >>> >>> >>> Discussion at https://github.com/checkpoint-restore/criu/issues/1417 >> >> Yeah, I didn't submit it official

RE: [PATCH 3/4] exec: simplify the compat syscall handling

2021-03-26 Thread David Laight
From: Al Viro > Sent: 26 March 2021 16:12 > > On Fri, Mar 26, 2021 at 03:38:30PM +0100, Christoph Hellwig wrote: > > > +static const char __user * > > +get_user_arg_ptr(const char __user *const __user *argv, int nr) > > { > > + if (in_compat_syscall()) { > > + const compat_uptr_t __u

Re: VDSO ELF header

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 17:32, Dmitry Safonov a écrit : On 3/26/21 4:11 PM, Christophe Leroy wrote: [..] Dmitry proposed the same, see https://github.com/0x7f454c46/linux/commit/783c7a2532d2219edbcf555cc540eab05f698d2a Discussion at https://github.com/checkpoint-restore/criu/issues/1417 Yeah, I

Re: VDSO ELF header

2021-03-26 Thread Dmitry Safonov
On 3/26/21 5:07 PM, Christophe Leroy wrote: > No, the problem is that user access has to be allowed for the flush() > > A hacky solution would be to call user_access_begin() , will test that > later Yeah, cool. Will it be fine if I send the vvar patch with your Tested-by? Thanks, Dm

Re: [PATCH v2 0/8] Implement EBPF on powerpc32

2021-03-26 Thread Andrii Nakryiko
On Fri, Mar 26, 2021 at 7:42 AM Christophe Leroy wrote: > > > > Le 22/03/2021 à 18:53, Andrii Nakryiko a écrit : > > On Mon, Mar 22, 2021 at 9:37 AM Christophe Leroy > > wrote: > >> > >> This series implements extended BPF on powerpc32. For the implementation > >> details, see the patch before th

Re: [PATCH v3 05/17] arm: Convert to GENERIC_CMDLINE

2021-03-26 Thread Rob Herring
+Nico who added the line in question. On Fri, Mar 26, 2021 at 9:50 AM Christophe Leroy wrote: > > > > Le 26/03/2021 à 16:47, Rob Herring a écrit : > > On Fri, Mar 26, 2021 at 7:44 AM Christophe Leroy > > wrote: > >> > >> This converts the architecture to GENERIC_CMDLINE. > >> > >> Signed-off-by:

Re: VDSO ELF header

2021-03-26 Thread Christophe Leroy
Le 26/03/2021 à 18:11, Dmitry Safonov a écrit : On 3/26/21 5:07 PM, Christophe Leroy wrote: No, the problem is that user access has to be allowed for the flush() A hacky solution would be to call user_access_begin() , will test that later Yeah, cool. Will it be fine if I send the vvar pat

Re: VDSO ELF header

2021-03-26 Thread Dmitry Safonov
On 3/26/21 6:40 PM, Christophe Leroy wrote: > > > Le 26/03/2021 à 18:11, Dmitry Safonov a écrit : >> On 3/26/21 5:07 PM, Christophe Leroy wrote: >>> No, the problem is that user access has to be allowed for the flush() >>> >>> A hacky solution would be to call user_access_begin() , will test that

Re: [PATCH] powerpc/mm/book3s64: Use the correct storage key value when calling H_PROTECT

2021-03-26 Thread Murilo Opsfelder Araújo
On Friday, March 26, 2021 4:07:55 AM -03 Aneesh Kumar K.V wrote: > H_PROTECT expect the flag value to include > flags: AVPN, pp0, pp1, pp2, key0-key4, Noexec, CMO Option flags > > This patch updates hpte_updatepp() to fetch the storage key value from the > linux page table and use the same in H_PRO

Re: [PATCH V2 3/5] tools/perf: Add powerpc support for PERF_SAMPLE_WEIGHT_STRUCT

2021-03-26 Thread Athira Rajeev
On 25-Mar-2021, at 1:13 AM, Jiri Olsa wrote:On Mon, Mar 22, 2021 at 10:57:25AM -0400, Athira Rajeev wrote:Add arch specific arch_evsel__set_sample_weight() to set the newsample type for powerpc.Add arch specific arch_perf_parse_sample_weight() to store thesample->weight values depending on the sam

Re: [PATCH 3/4] exec: simplify the compat syscall handling

2021-03-26 Thread Eric W. Biederman
Christoph Hellwig writes: > diff --git a/fs/exec.c b/fs/exec.c > index 06e07278b456fa..b34c1eb9e7ad8e 100644 > --- a/fs/exec.c > +++ b/fs/exec.c > @@ -391,47 +391,34 @@ static int bprm_mm_init(struct linux_binprm *bprm) > return err; > } > > -struct user_arg_ptr { > -#ifdef CONFIG_COMPA