[PATCH v2 11/16] ASoC: imx-hdmi: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-hdmi driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-hdmi.c

coherency issue observed after hotplug on POWER8

2021-09-21 Thread Thadeu Lima de Souza Cascardo
Hi, there. We have been investigating an issue we have observed on POWER8 POWERNV systems. When running the kernel selftests reuseport_bpf_cpu after a CPU hotplug, we see crashes, in different forms. [1] I managed to get xmon on that trap, and did some debugging. [2] I tried to dump the BPF JIT

[PATCH 04/16] ASoC: fsl-esai: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-esai driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_esai.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH 03/16] ASoC: fsl-audmix: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-audmix driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_audmix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 03/16] ASoC: fsl-audmix: Update to modern clocking terminology

2021-09-21 Thread Fabio Estevam
On Tue, Sep 21, 2021 at 6:11 PM Mark Brown wrote: > > As part of moving to remove the old style defines for the bus clocks update > the fsl-audmix driver to use more modern terminology for clocking. > > Signed-off-by: Mark Brown > --- > sound/soc/fsl/fsl_audmix.c | 8 > 1 file changed,

[PATCH v2 06/16] ASoC: fsl_sai: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl_sai driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_sai.c | 34 +- sound/soc/fsl/fsl_sai.h | 2 +- 2 files changed, 18

[PATCH v2 05/16] ASoC: fsl-mqs: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-mqs driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_mqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_mqs.c

Re: [PATCH 0/4] crypto: nintendo-aes - add a new AES driver

2021-09-21 Thread Eric Biggers
On Tue, Sep 21, 2021 at 11:39:26PM +0200, Emmanuel Gil Peyrot wrote: > This engine implements AES in CBC mode, using 128-bit keys only. It is > present on both the Wii and the Wii U, and is apparently identical in > both consoles. > > The hardware is capable of firing an interrupt when the

[PATCH 12/16] ASoC: imx-rpmsg: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-rpmsg driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-rpmsg.c

[PATCH 13/16] ASoC: imx-sgtl5000: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-sgtl5000 driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-sgtl5000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 04/16] ASoC: fsl-esai: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-esai driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_esai.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH v2 03/16] ASoC: fsl-audmix: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-audmix driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_audmix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Kirill A. Shutemov
On Tue, Sep 21, 2021 at 04:43:59PM -0500, Tom Lendacky wrote: > On 9/21/21 4:34 PM, Kirill A. Shutemov wrote: > > On Tue, Sep 21, 2021 at 11:27:17PM +0200, Borislav Petkov wrote: > > > On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: > > > > I still believe calling

[PATCH 5/7] PCI: Add pci_find_dvsec_capability to find designated VSEC

2021-09-21 Thread Ben Widawsky
Add pci_find_dvsec_capability to locate a Designated Vendor-Specific Extended Capability with the specified DVSEC ID. The Designated Vendor-Specific Extended Capability (DVSEC) allows one or more vendor specific capabilities that aren't tied to the vendor ID of the PCI component. DVSEC is

[PATCH 7/7] ocxl: Use pci core's DVSEC functionality

2021-09-21 Thread Ben Widawsky
Reduce maintenance burden of DVSEC query implementation by using the centralized PCI core implementation. Cc: linuxppc-dev@lists.ozlabs.org Cc: Frederic Barrat Cc: Andrew Donnellan Signed-off-by: Ben Widawsky --- drivers/misc/ocxl/config.c | 13 + 1 file changed, 1 insertion(+),

[PATCH 07/16] ASoC: fsl_ssi: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl_ssi driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_ssi.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff

[PATCH 06/16] ASoC: fsl_sai: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl_sai driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_sai.c | 34 +- sound/soc/fsl/fsl_sai.h | 2 +- 2 files changed, 18

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Borislav Petkov
On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: > I still believe calling cc_platform_has() from __startup_64() is totally > broken as it lacks proper wrapping while accessing global variables. Well, one of the issues on the AMD side was using boot_cpu_data too early and the

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Kirill A. Shutemov
On Tue, Sep 21, 2021 at 11:27:17PM +0200, Borislav Petkov wrote: > On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: > > I still believe calling cc_platform_has() from __startup_64() is totally > > broken as it lacks proper wrapping while accessing global variables. > > Well,

[PATCH 1/4] crypto: nintendo-aes - add a new AES driver

2021-09-21 Thread Emmanuel Gil Peyrot
This engine implements AES in CBC mode, using 128-bit keys only. It is present on both the Wii and the Wii U, and is apparently identical in both consoles. The hardware is capable of firing an interrupt when the operation is done, but this driver currently uses a busy loop, I’m not too sure

[PATCH 0/4] crypto: nintendo-aes - add a new AES driver

2021-09-21 Thread Emmanuel Gil Peyrot
This engine implements AES in CBC mode, using 128-bit keys only. It is present on both the Wii and the Wii U, and is apparently identical in both consoles. The hardware is capable of firing an interrupt when the operation is done, but this driver currently uses a busy loop, I’m not too sure

Re: [PATCH] mm: Remove HARDENED_USERCOPY_FALLBACK

2021-09-21 Thread Joel Stanley
On Tue, 21 Sept 2021 at 09:50, Stephen Kitt wrote: > > This has served its purpose and is no longer used. All usercopy > violations appear to have been handled by now, any remaining > instances (or new bugs) will cause copies to be rejected. > > This isn't a direct revert of commit 2d891fbc3bb6

[PATCH 11/16] ASoC: imx-hdmi: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-hdmi driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-hdmi.c

[PATCH 10/16] ASoC: imx-es8328: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-es8328 driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-es8328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-es8328.c

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Kirill A. Shutemov
On Tue, Sep 21, 2021 at 07:47:15PM +0200, Borislav Petkov wrote: > On Tue, Sep 21, 2021 at 12:04:58PM -0500, Tom Lendacky wrote: > > Looks like instrumentation during early boot. I worked with Boris offline to > > exclude arch/x86/kernel/cc_platform.c from some of the instrumentation and > > that

[PATCH v2 02/16] ASoC: fsl-asoc-card: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-asoc-card driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl-asoc-card.c | 54 +-- 1 file changed, 27 insertions(+), 27

[PATCH v2 01/16] ASoC: eureka-tlv320: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the eureka-tlv320 driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/eukrea-tlv320.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 16/16] ASoC: pl1022_rdk: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the pl1022_rdk driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/p1022_rdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/p1022_rdk.c

[PATCH v2 15/16] ASoC: pl1022_ds: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the pl1022_ds driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/p1022_ds.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 16/16] ASoC: pl1022_rdk: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the pl1022_rdk driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/p1022_rdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/p1022_rdk.c

[PATCH 15/16] ASoC: pl1022_ds: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the pl1022_ds driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/p1022_ds.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 14/16] ASoC: mpc8610_hpcd: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the mpc8610_hpcd driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/mpc8610_hpcd.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v2 10/16] ASoC: imx-es8328: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-es8328 driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-es8328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-es8328.c

[PATCH v2 09/16] ASoC: imx-card: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-card driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-card.c

[PATCH 05/16] ASoC: fsl-mqs: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-mqs driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_mqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_mqs.c

Re: [PATCH 03/16] ASoC: fsl-audmix: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
On Tue, Sep 21, 2021 at 06:22:51PM -0300, Fabio Estevam wrote: > On Tue, Sep 21, 2021 at 6:11 PM Mark Brown wrote: > > - /* For playback the AUDMIX is slave, and for record is master */ > > + /* For playback the AUDMIX is provider, and for record is consumer > > */ > I think the

[PATCH 02/16] ASoC: fsl-asoc-card: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl-asoc-card driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl-asoc-card.c | 54 +-- 1 file changed, 27 insertions(+), 27

[PATCH 01/16] ASoC: eureka-tlv320: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the eureka-tlv320 driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/eukrea-tlv320.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 08/16] ASoC: imx-audmix: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-audmix driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-audmix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v2 07/16] ASoC: fsl_ssi: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the fsl_ssi driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_ssi.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff

[PATCH 4/4] powerpc: wii_defconfig: Enable AES by default

2021-09-21 Thread Emmanuel Gil Peyrot
This selects the nintendo-aes module when building for this platform. Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/configs/wii_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig index

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Tom Lendacky
On 9/21/21 4:34 PM, Kirill A. Shutemov wrote: On Tue, Sep 21, 2021 at 11:27:17PM +0200, Borislav Petkov wrote: On Wed, Sep 22, 2021 at 12:20:59AM +0300, Kirill A. Shutemov wrote: I still believe calling cc_platform_has() from __startup_64() is totally broken as it lacks proper wrapping while

[PATCH 2/4] dt-bindings: nintendo-aes: Document the Wii and Wii U AES support

2021-09-21 Thread Emmanuel Gil Peyrot
Both of these consoles use the exact same AES engine, which only supports CBC mode with 128-bit keys. Signed-off-by: Emmanuel Gil Peyrot --- .../bindings/crypto/nintendo-aes.yaml | 34 +++ 1 file changed, 34 insertions(+) create mode 100644

[PATCH 3/4] powerpc: wii.dts: Expose the AES engine on this platform

2021-09-21 Thread Emmanuel Gil Peyrot
This can be used by the newly-added nintendo-aes crypto module. Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/dts/wii.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts index aaa381da1906..c5720fdd0686 100644

Re: [PATCH] mm: Remove HARDENED_USERCOPY_FALLBACK

2021-09-21 Thread Kees Cook
On Tue, Sep 21, 2021 at 08:11:49AM +0200, Stephen Kitt wrote: > This has served its purpose and is no longer used. All usercopy > violations appear to have been handled by now, any remaining > instances (or new bugs) will cause copies to be rejected. > > This isn't a direct revert of commit

[PATCH 08/16] ASoC: imx-audmix: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-audmix driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-audmix.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 09/16] ASoC: imx-card: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-card driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-card.c

[PATCH v2 12/16] ASoC: imx-rpmsg: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-rpmsg driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-rpmsg.c

[PATCH v2 14/16] ASoC: mpc8610_hpcd: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the mpc8610_hpcd driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/mpc8610_hpcd.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v2 13/16] ASoC: imx-sgtl5000: Update to modern clocking terminology

2021-09-21 Thread Mark Brown
As part of moving to remove the old style defines for the bus clocks update the imx-sgtl5000 driver to use more modern terminology for clocking. Signed-off-by: Mark Brown --- sound/soc/fsl/imx-sgtl5000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/4] crypto: nintendo-aes - add a new AES driver

2021-09-21 Thread Emmanuel Gil Peyrot
On Tue, Sep 21, 2021 at 02:59:37PM -0700, Eric Biggers wrote: > On Tue, Sep 21, 2021 at 11:39:26PM +0200, Emmanuel Gil Peyrot wrote: > > This engine implements AES in CBC mode, using 128-bit keys only. It is > > present on both the Wii and the Wii U, and is apparently identical in > > both

Re: [PATCH 7/7] ocxl: Use pci core's DVSEC functionality

2021-09-21 Thread Dan Williams
On Tue, Sep 21, 2021 at 3:05 PM Ben Widawsky wrote: > > Reduce maintenance burden of DVSEC query implementation by using the > centralized PCI core implementation. > > Cc: linuxppc-dev@lists.ozlabs.org > Cc: Frederic Barrat > Cc: Andrew Donnellan > Signed-off-by: Ben Widawsky > --- >

Re: [PATCH 3/3] powerpc/pseries/cpuhp: delete add/remove_by_count code

2021-09-21 Thread kernel test robot
Hi Nathan, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on linus/master v5.15-rc2 next-20210920] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

Re: [PATCH 1/4] crypto: nintendo-aes - add a new AES driver

2021-09-21 Thread Joel Stanley
On Tue, 21 Sept 2021 at 21:47, Emmanuel Gil Peyrot wrote: > > This engine implements AES in CBC mode, using 128-bit keys only. It is > present on both the Wii and the Wii U, and is apparently identical in > both consoles. > > The hardware is capable of firing an interrupt when the operation is >

[PATCH v1] powerpc/64s: Fix unrecoverable MCE crash

2021-09-21 Thread Nicholas Piggin
The machine check handler is not considered NMI on 64s. The early handler is the true NMI handler, and then it schedules the machine_check_exception handler to run when interrupts are enabled. This works fine except the case of an unrecoverable MCE, where the true NMI is taken when MSR[RI] is

Re: [PATCH v2 01/16] ASoC: eureka-tlv320: Update to modern clocking terminology

2021-09-21 Thread Fabio Estevam
On Tue, Sep 21, 2021 at 6:36 PM Mark Brown wrote: > > As part of moving to remove the old style defines for the bus clocks update > the eureka-tlv320 driver to use more modern terminology for clocking. > > Signed-off-by: Mark Brown For the whole series: Reviewed-by: Fabio Estevam

Re: [PATCH v3] lib/zlib_inflate/inffast: Check config in C to avoid unused function warning

2021-09-21 Thread Paul Menzel
Dear Linux folks, Am 20.09.21 um 17:45 schrieb Nathan Chancellor: On Mon, Sep 20, 2021 at 10:43:33AM +0200, Paul Menzel wrote: Building Linux for ppc64le with Ubuntu clang version 12.0.0-3ubuntu1~21.04.1 shows the warning below. arch/powerpc/boot/inffast.c:20:1: warning: unused function

Re: [RFC PATCH 0/8] Move task_struct::cpu back into thread_info

2021-09-21 Thread Ard Biesheuvel
On Tue, 14 Sept 2021 at 15:55, Mark Rutland wrote: > > On Tue, Sep 14, 2021 at 02:10:28PM +0200, Ard Biesheuvel wrote: > > Commit c65eacbe290b ("sched/core: Allow putting thread_info into > > task_struct") mentions that, along with moving thread_info into > > task_struct, the cpu field is moved

[PATCH] mm: Remove HARDENED_USERCOPY_FALLBACK

2021-09-21 Thread Stephen Kitt
This has served its purpose and is no longer used. All usercopy violations appear to have been handled by now, any remaining instances (or new bugs) will cause copies to be rejected. This isn't a direct revert of commit 2d891fbc3bb6 ("usercopy: Allow strict enforcement of whitelists"); since

Re: [RFC PATCH 1/8] arm64: add CPU field to struct thread_info

2021-09-21 Thread Ard Biesheuvel
On Thu, 16 Sept 2021 at 16:41, Catalin Marinas wrote: > > On Tue, Sep 14, 2021 at 02:10:29PM +0200, Ard Biesheuvel wrote: > > The CPU field will be moved back into thread_info even when > > THREAD_INFO_IN_TASK is enabled, so add it back to arm64's definition of > > struct thread_info. > > > >

Re: [PATCH v3 5/8] bpf ppc64: Add BPF_PROBE_MEM support for JIT

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : From: Ravi Bangoria BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Unlike other archs which uses extable 'fixup' field to pass dest_reg and nip, BPF

Re: [PATCH v3 7/8] bpf ppc32: Add BPF_PROBE_MEM support for JIT

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Unlike other archs which uses extable 'fixup' field to pass dest_reg and nip, BPF exception table on

Re: [PATCH v3 6/8] bpf ppc64: Access only if addr is kernel address

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : From: Ravi Bangoria On PPC64 with KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. So, when BPF program tries to access

Re: [PATCH v3 8/8] bpf ppc32: Access only if addr is kernel address

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : With KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. Though PPC32 does not support read protection, considering the fact

Re: [PATCH v4 1/3] powerpc/bitops: Use immediate operand when possible

2021-09-21 Thread Christophe Leroy
Le 20/09/2021 à 23:23, Segher Boessenkool a écrit : Hi! On Mon, Sep 20, 2021 at 10:31:17AM +0200, Christophe Leroy wrote: Today we get the following code generation for bitops like set or clear bit: c0009fe0: 39 40 08 00 li r10,2048 c0009fe4: 7c e0 40

[PATCH v5 3/3] powerpc/atomics: Remove atomic_inc()/atomic_dec() and friends

2021-09-21 Thread Christophe Leroy
Now that atomic_add() and atomic_sub() handle immediate operands, atomic_inc() and atomic_dec() have no added value compared to the generic fallback which calls atomic_add(1) and atomic_sub(1). Also remove atomic_inc_not_zero() which fallsback to atomic_add_unless() which itself fallsback to

[PATCH v5 1/3] powerpc/bitops: Use immediate operand when possible

2021-09-21 Thread Christophe Leroy
Today we get the following code generation for bitops like set or clear bit: c0009fe0: 39 40 08 00 li r10,2048 c0009fe4: 7c e0 40 28 lwarx r7,0,r8 c0009fe8: 7c e7 53 78 or r7,r7,r10 c0009fec: 7c e0 41 2d stwcx.

[PATCH v5 2/3] powerpc/atomics: Use immediate operand when possible

2021-09-21 Thread Christophe Leroy
Today we get the following code generation for atomic operations: c001bb2c: 39 20 00 01 li r9,1 c001bb30: 7d 40 18 28 lwarx r10,0,r3 c001bb34: 7d 09 50 50 subfr8,r9,r10 c001bb38: 7d 00 19 2d stwcx. r8,0,r3

Re: [PATCH] swiotlb: set IO TLB segment size via cmdline

2021-09-21 Thread Roman Skakun
Hi Robin, >> I use Xen PV display. In my case, PV display backend(Dom0) allocates >> contiguous buffer via DMA-API to >> to implement zero-copy between Dom0 and DomU. >> > Well, something's gone badly wrong there - if you have to shadow the > entire thing in a bounce buffer to import it then it's

Re: [PATCH] ASoC: fsl: Constify static snd_soc_ops

2021-09-21 Thread Mark Brown
On Mon, 20 Sep 2021 21:39:47 +0200, Rikard Falkeborn wrote: > These are only assigned to the ops field in the snd_soc_dai_link struct > which is a pointer to const struct snd_soc_ops. Make them const to allow > the compiler to put them in read-only memory. > > Applied to

[PATCH v3 0/8] bpf powerpc: Add BPF_PROBE_MEM support in powerpc JIT compiler

2021-09-21 Thread Hari Bathini
Patch #1 & #2 are simple cleanup patches. Patch #3 refactors JIT compiler code with the aim to simplify adding BPF_PROBE_MEM support. Patch #4 introduces PPC_RAW_BRANCH() macro instead of open coding branch instruction. Patch #5 & #7 add BPF_PROBE_MEM support for PPC64 & PPC32 JIT compilers

[PATCH v3 5/8] bpf ppc64: Add BPF_PROBE_MEM support for JIT

2021-09-21 Thread Hari Bathini
From: Ravi Bangoria BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Unlike other archs which uses extable 'fixup' field to pass dest_reg and nip, BPF exception table on PowerPC follows the generic

[PATCH v3 8/8] bpf ppc32: Access only if addr is kernel address

2021-09-21 Thread Hari Bathini
With KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. Though PPC32 does not support read protection, considering the fact that PTR_TO_BTF_ID (which uses BPF_PROBE_MEM mode)

Re: [RFC PATCH 2/8] x86: add CPU field to struct thread_info

2021-09-21 Thread Borislav Petkov
On Tue, Sep 14, 2021 at 02:10:30PM +0200, Ard Biesheuvel wrote: > The CPU field will be moved back into thread_info even when > THREAD_INFO_IN_TASK is enabled, so add it back to x86's definition of > struct thread_info. > > Signed-off-by: Ard Biesheuvel > --- >

[PATCH v3 1/8] bpf powerpc: Remove unused SEEN_STACK

2021-09-21 Thread Hari Bathini
From: Ravi Bangoria SEEN_STACK is unused on PowerPC. Remove it. Also, have SEEN_TAILCALL use 0x4000. Signed-off-by: Ravi Bangoria Reviewed-by: Christophe Leroy --- Changes in v3: * Added Reviewed-by tag from Chris. arch/powerpc/net/bpf_jit.h | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v3 2/8] bpf powerpc: Remove extra_pass from bpf_jit_build_body()

2021-09-21 Thread Hari Bathini
From: Ravi Bangoria In case of extra_pass, usual JIT passes are always skipped. So, extra_pass is always false while calling bpf_jit_build_body() and can be removed. Signed-off-by: Ravi Bangoria --- Changes in v3: * Updated the changelog wording a bit. arch/powerpc/net/bpf_jit.h| 2

Re: [PATCH v3 3/8] bpf powerpc: refactor JIT compiler code

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : Refactor powerpc LDX JITing code to simplify adding BPF_PROBE_MEM support. Signed-off-by: Hari Bathini --- Changes in v3: * Dropped ST(X) JITing coderefactoring and ensured the changes are minimal and relevant to BPF_PROBE_MEM support. *

Re: [RFC PATCH 5/8] sched: move CPU field back into thread_info if THREAD_INFO_IN_TASK=y

2021-09-21 Thread Catalin Marinas
On Tue, Sep 14, 2021 at 02:10:33PM +0200, Ard Biesheuvel wrote: > THREAD_INFO_IN_TASK moved the CPU field out of thread_info, but this > causes some issues on architectures that define raw_smp_processor_id() > in terms of this field, due to the fact that #include'ing linux/sched.h > to get at

[PATCH v3 3/8] bpf powerpc: refactor JIT compiler code

2021-09-21 Thread Hari Bathini
Refactor powerpc LDX JITing code to simplify adding BPF_PROBE_MEM support. Signed-off-by: Hari Bathini --- Changes in v3: * Dropped ST(X) JITing coderefactoring and ensured the changes are minimal and relevant to BPF_PROBE_MEM support. * Added a default for size switch case to ensure compiler

[PATCH v3 4/8] powerpc/ppc-opcode: introduce PPC_RAW_BRANCH() macro

2021-09-21 Thread Hari Bathini
Define and use PPC_RAW_BRANCH() macro instead of open coding it. This macro is used while adding BPF_PROBE_MEM support. Signed-off-by: Hari Bathini Reviewed-by: Christophe Leroy --- Changes in v3: * Added Reviewed-by tag from Chris. arch/powerpc/include/asm/ppc-opcode.h | 2 ++

[PATCH v3 6/8] bpf ppc64: Access only if addr is kernel address

2021-09-21 Thread Hari Bathini
From: Ravi Bangoria On PPC64 with KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. So, when BPF program tries to access invalid userspace address, page-fault handler

[PATCH v3 7/8] bpf ppc32: Add BPF_PROBE_MEM support for JIT

2021-09-21 Thread Hari Bathini
BPF load instruction with BPF_PROBE_MEM mode can cause a fault inside kernel. Append exception table for such instructions within BPF program. Unlike other archs which uses extable 'fixup' field to pass dest_reg and nip, BPF exception table on PowerPC follows the generic PowerPC exception table

Re: [PATCH v3 3/8] bpf powerpc: refactor JIT compiler code

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : Refactor powerpc LDX JITing code to simplify adding BPF_PROBE_MEM support. Signed-off-by: Hari Bathini --- Changes in v3: * Dropped ST(X) JITing coderefactoring and ensured the changes are minimal and relevant to BPF_PROBE_MEM support. *

Re: [PATCH v3 5/8] x86/sme: Replace occurrences of sme_active() with cc_platform_has()

2021-09-21 Thread Borislav Petkov
On Tue, Sep 21, 2021 at 12:04:58PM -0500, Tom Lendacky wrote: > Looks like instrumentation during early boot. I worked with Boris offline to > exclude arch/x86/kernel/cc_platform.c from some of the instrumentation and > that allowed an allyesconfig to boot. And here's the lineup I have so far,