[PATCH 2/2] tools/perf/tests: Fix object code reading to skip address that falls out of text section

2023-08-10 Thread Athira Rajeev
The testcase "Object code reading" fails in somecases for "fs_something" sub test as below: Reading object code for memory address: 0xc00807f0142c File is: /lib/modules/6.5.0-rc3+/kernel/fs/xfs/xfs.ko On file address is: 0x1114cc Objdump command is: objdump -z -d

[PATCH 1/2] tools/perf: Add text_end to "struct dso" to save .text section size

2023-08-10 Thread Athira Rajeev
Update "struct dso" to include new member "text_end". This new field will represent the offset for end of text section for a dso. This value is derived as: sh_size (Size of section in byes) + sh_offset (Section file offst) of the elf header for text. Signed-off-by: Athira Rajeev ---

[PATCH] tools/perf: Fix dso kernel load and symbol process to correctly map dso to its long_name, type and adjust_symbols

2023-08-10 Thread Athira Rajeev
Test "object cocde reading" fails sometimes for kernel address as below: Reading object code for memory address: 0xc0004c3c File is: [kernel.kallsyms] On file address is: 0x14c3c dso__data_read_offset failed test child finished with -1 end Object code

[PATCH v2] powerpc/rtas_flash: allow user copy to flash block cache objects

2023-08-10 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch With hardened usercopy enabled (CONFIG_HARDENED_USERCOPY=y), using the /proc/powerpc/rtas/firmware_update interface to prepare a system firmware update yields a BUG(): kernel BUG at mm/usercopy.c:102! Oops: Exception in kernel mode, sig: 5 [#1] LE PAGE_SIZE=64K MMU=Hash SMP

Re: [RFC PATCH v11 12/29] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory

2023-08-10 Thread Vishal Annapurve
On Tue, Aug 8, 2023 at 2:13 PM Sean Christopherson wrote: > ... > > + When binding a memslot to the file, if a kvm pointer exists, it must > > be the same kvm as the one in this binding > > + When the binding to the last memslot is removed from a file, NULL the > > kvm pointer. > >

Re: [PATCH v2 6/6] integrity: PowerVM support for loading third party code signing keys

2023-08-10 Thread Jarkko Sakkinen
On Wed Aug 9, 2023 at 10:53 PM EEST, Nayna Jain wrote: > On secure boot enabled PowerVM LPAR, third party code signing keys are > needed during early boot to verify signed third party modules. These > third party keys are stored in moduledb object in the Platform > KeyStore(PKS). ^ space

Re: [PATCH v2 5/6] integrity: PowerVM machine keyring enablement

2023-08-10 Thread Jarkko Sakkinen
On Wed Aug 9, 2023 at 10:53 PM EEST, Nayna Jain wrote: > Update Kconfig to enable machine keyring and limit to CA certificates > on PowerVM. Only key signing CA keys are allowed. > > Signed-off-by: Nayna Jain > Reviewed-and-tested-by: Mimi Zohar > > --- > security/integrity/Kconfig | 4 +++- >

Re: [PATCH v2 3/3] fork: lock VMAs of the parent process when forking

2023-08-10 Thread Suren Baghdasaryan
On Wed, Aug 9, 2023 at 2:07 PM Mateusz Guzik wrote: > > On 8/5/23, Suren Baghdasaryan wrote: > > On Fri, Aug 4, 2023 at 6:06 PM Mateusz Guzik wrote: > >> > >> On 8/5/23, Linus Torvalds wrote: > >> > On Fri, 4 Aug 2023 at 16:25, Mateusz Guzik wrote: > >> >> > >> >> I know of these guys, I

Re: [PATCH v14 00/15] phy: Add support for Lynx 10G SerDes

2023-08-10 Thread Sean Anderson
Hi Vladimir, On 8/10/23 06:26, Vladimir Oltean wrote: > Hi Sean, > > On Tue, Jun 13, 2023 at 05:27:54PM +0300, Vladimir Oltean wrote: >> The way things are supposed to work (*if* this works at all) is that the >> reset state machine starts with a supported PLL / refclk configuration >> that

Re: [PATCH 06/17] macintosh/ams: mark ams_init() static

2023-08-10 Thread Christophe Leroy
Le 10/08/2023 à 16:19, Arnd Bergmann a écrit : > From: Arnd Bergmann > > This is the module init function, which by definition is used only > locally, so mark it static to avoid a warning: > > drivers/macintosh/ams/ams-core.c:179:12: error: no previous prototype for > 'ams_init'

Re: [PATCH v3 00/28] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-08-10 Thread Jakub Kicinski
On Wed, 9 Aug 2023 15:27:27 +0200 Herve Codina wrote: > The series contains the full story and detailed modifications. > If needed, the series can be split and/or commmits can be squashed. > Let me know. Are there any dependencies in one of the -next trees? As it the series doesn't seem to build

Re: [PATCH v2 3/6] integrity: remove global variable from machine_keyring.c

2023-08-10 Thread Jarkko Sakkinen
On Wed Aug 9, 2023 at 10:53 PM EEST, Nayna Jain wrote: > trust_mok variable is accessed within a single function locally. > > Change trust_mok from global to local static variable. > > Signed-off-by: Nayna Jain > Reviewed-and-tested-by: Mimi Zohar > --- >

[PATCH 14/17] kprobes: unify kprobes_exceptions_nofify() prototypes

2023-08-10 Thread Arnd Bergmann
From: Arnd Bergmann Most architectures that support kprobes declare this function in their own asm/kprobes.h header and provide an override, but some are missing the prototype, which causes a warning for the __weak stub implementation: kernel/kprobes.c:1865:12: error: no previous prototype for

[PATCH 06/17] macintosh/ams: mark ams_init() static

2023-08-10 Thread Arnd Bergmann
From: Arnd Bergmann This is the module init function, which by definition is used only locally, so mark it static to avoid a warning: drivers/macintosh/ams/ams-core.c:179:12: error: no previous prototype for 'ams_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann ---

[PATCH 02/17] [RESEND] irq_work: consolidate arch_irq_work_raise prototypes

2023-08-10 Thread Arnd Bergmann
From: Arnd Bergmann The prototype was hidden on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Fix this by providing it in only one place that is always visible. Acked-by: Catalin Marinas Acked-by:

Re: [PATCH v3 21/28] net: wan: Add framer framework support

2023-08-10 Thread Linus Walleij
Hi Herve, On Wed, Aug 9, 2023 at 3:28 PM Herve Codina wrote: > A framer is a component in charge of an E1/T1 line interface. > Connected usually to a TDM bus, it converts TDM frames to/from E1/T1 > frames. It also provides information related to the E1/T1 line. > > The framer framework provides

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-10 Thread Bjorn Helgaas
On Thu, Aug 10, 2023 at 04:17:21PM +0800, Kai-Heng Feng wrote: > On Thu, Aug 10, 2023 at 2:52 AM Bjorn Helgaas wrote: > > On Fri, Jul 21, 2023 at 11:58:24AM +0800, Kai-Heng Feng wrote: > > > On Tue, Jul 18, 2023 at 7:17 PM Bjorn Helgaas wrote: > > > > On Fri, May 12, 2023 at 08:00:13AM +0800,

Re: [PATCH v14 00/15] phy: Add support for Lynx 10G SerDes

2023-08-10 Thread Vladimir Oltean
Hi Sean, On Tue, Jun 13, 2023 at 05:27:54PM +0300, Vladimir Oltean wrote: > The way things are supposed to work (*if* this works at all) is that the > reset state machine starts with a supported PLL / refclk configuration > that permits a certain subset of protocols, and the SERDES protocols can

[PATCH 32/36] tty: hvc: convert counts to size_t

2023-08-10 Thread Jiri Slaby (SUSE)
Unify the type of tty_operations::write() counters with the 'count' parameter. I.e. use size_t for them. Signed-off-by: Jiri Slaby (SUSE) Cc: linuxppc-dev@lists.ozlabs.org --- drivers/tty/hvc/hvc_console.c | 2 +- drivers/tty/hvc/hvcs.c| 6 +++--- drivers/tty/hvc/hvsi.c| 10

Re: [PATCH v4 00/10] Introduce SMT level and add PowerPC support

2023-08-10 Thread Laurent Dufour
Le 10/08/2023 à 08:23, Michael Ellerman a écrit : Thomas Gleixner writes: Laurent, Michael! On Wed, Jul 05 2023 at 16:51, Laurent Dufour wrote: I'm taking over the series Michael sent previously [1] which is smartly reviewing the initial series I sent [2]. This series is addressing the

Re: [PATCH v3 22/28] dt-bindings: net: Add the Lantiq PEF2256 E1/T1/J1 framer

2023-08-10 Thread Linus Walleij
Hi Herve, thanks for your patch! On Wed, Aug 9, 2023 at 3:28 PM Herve Codina wrote: > The Lantiq PEF2256 is a framer and line interface component designed to > fulfill all required interfacing between an analog E1/T1/J1 line and the > digital PCM system highway/H.100 bus. > > Signed-off-by:

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-10 Thread Kai-Heng Feng
On Thu, Aug 10, 2023 at 2:52 AM Bjorn Helgaas wrote: > > On Fri, Jul 21, 2023 at 11:58:24AM +0800, Kai-Heng Feng wrote: > > On Tue, Jul 18, 2023 at 7:17 PM Bjorn Helgaas wrote: > > > On Fri, May 12, 2023 at 08:00:13AM +0800, Kai-Heng Feng wrote: > > > > PCIe services that share an IRQ with PME,

Re: [PATCH v4 00/10] Introduce SMT level and add PowerPC support

2023-08-10 Thread Michael Ellerman
Thomas Gleixner writes: > Laurent, Michael! > > On Wed, Jul 05 2023 at 16:51, Laurent Dufour wrote: >> I'm taking over the series Michael sent previously [1] which is smartly >> reviewing the initial series I sent [2]. This series is addressing the >> comments sent by Thomas and me on the

Re: [PATCH] powerpc/ep8248e: Mark driver as non removable

2023-08-10 Thread Michael Ellerman
On Wed, 26 Jul 2023 10:14:42 +0200, Uwe Kleine-König wrote: > Instead of resorting to BUG() ensure that the driver isn't unbound by > suppressing its bind and unbind sysfs attributes. As the driver is > built-in there is no way to remove a device once bound. > > As a nice side effect this allows

Re: [PATCH v3] powerpc: Explicitly include correct DT includes

2023-08-10 Thread Michael Ellerman
On Mon, 24 Jul 2023 15:02:42 -0600, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other.

Re: [PATCH v3 0/9] Cleanup/Optimise KUAP (v3)

2023-08-10 Thread Michael Ellerman
On Tue, 11 Jul 2023 17:59:12 +0200, Christophe Leroy wrote: > This series is cleaning up a bit KUAP in preparation of using objtool > to validate UACCESS. > > There are two main changes in this series: > > 1/ Simplification of KUAP on book3s/32 > > [...] Applied to powerpc/next. [1/9]

Re: [PATCH 1/2] powerpc/crypto: fix missing skcipher dependency for aes-gcm-p10

2023-08-10 Thread Michael Ellerman
On Mon, 10 Jul 2023 09:46:46 -0700, Omar Sandoval wrote: > My stripped down configuration fails to build with: > > ERROR: modpost: "skcipher_walk_aead_encrypt" > [arch/powerpc/crypto/aes-gcm-p10-crypto.ko] undefined! > ERROR: modpost: "skcipher_walk_done" >

Re: [PATCH 0/4] powerpc: mm_cpumask cleanups and lazy tlb mm

2023-08-10 Thread Michael Ellerman
On Wed, 24 May 2023 16:08:17 +1000, Nicholas Piggin wrote: > In the process of doing patch 4, I found a few things we could improve > and tighten up with mm_cpumask handling, so added those first. They're > mostly just debugging, no real fixes or dependency on patch 4 there. > > Thanks, > Nick >

Re: [PATCH] powerpc/64: Enable accelerated crypto algorithms in defconfig

2023-08-10 Thread Michael Ellerman
On Mon, 17 Jul 2023 21:52:23 +1000, Michael Ellerman wrote: > Enable all the acclerated crypto algorithms as modules in the 64-bit > defconfig, to get more test coverage. > > Applied to powerpc/next. [1/1] powerpc/64: Enable accelerated crypto algorithms in defconfig

Re: [PATCH] powerpc/kexec: fix minor typo

2023-08-10 Thread Michael Ellerman
On Tue, 25 Jul 2023 15:27:59 +0200, Laurent Dufour wrote: > Function name in the descriptor was not correct. > > Applied to powerpc/next. [1/1] powerpc/kexec: fix minor typo https://git.kernel.org/powerpc/c/7f96539437eafec8fd062fb13f31cf53251ea18d cheers

Re: (subset) [PATCH v1 0/4] Improve ptrace selftest usability

2023-08-10 Thread Michael Ellerman
On Tue, 25 Jul 2023 10:58:37 +1000, Benjamin Gray wrote: > While trying to test changes to the breakpoint implementation in the kernel, I > tried to run the ptrace tests and met many unexplained skips and failures. > > This series addresses the pain points of trying to run these tests and learn >

Re: [PATCH] powerpc: address missing-prototypes warnings

2023-08-10 Thread Michael Ellerman
On Thu, 27 Jul 2023 14:26:50 +0200, Arnd Bergmann wrote: > There are a few warnings in powerpc64 defconfig builds after > -Wmissing-prototypes > gets promoted from W=1 to the default warning set: > > arch/powerpc/mm/book3s64/pgtable.c:422:6: error: no previous prototype for >