[PATCH 02/13] crypto: arm/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 11/13] crypto: x86/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 12/13] crypto: sha256 - remove sha256_base.h

2025-04-25 Thread Eric Biggers
From: Eric Biggers sha256_base.h is no longer used, so remove it. Signed-off-by: Eric Biggers --- include/crypto/sha256_base.h | 183 --- 1 file changed, 183 deletions(-) delete mode 100644 include/crypto/sha256_base.h diff --git a/include/crypto/sha256_base.h

[PATCH 09/13] crypto: sparc - move opcodes.h into asm directory

2025-04-25 Thread Eric Biggers
From: Eric Biggers Since arch/sparc/crypto/opcodes.h is now needed outside the arch/sparc/crypto/ directory, move it into arch/sparc/include/asm/ so that it can be included as . Signed-off-by: Eric Biggers --- arch/sparc/crypto/aes_asm.S | 3 +-- arch/sparc/crypto/aes_glue.c

[PATCH 13/13] crypto: lib/sha256 - improve function prototypes

2025-04-25 Thread Eric Biggers
From: Eric Biggers Follow best practices by changing the length parameters to size_t and explicitly specifying the length of the output digest arrays. Signed-off-by: Eric Biggers --- include/crypto/sha2.h | 8 lib/crypto/sha256.c | 8 2 files changed, 8 insertions(+), 8 del

[PATCH 08/13] crypto: s390/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 07/13] crypto: riscv/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 01/13] crypto: sha256 - support arch-optimized lib and expose through shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers As has been done for various other algorithms, rework the design of the SHA-256 library to support arch-optimized implementations, and make crypto/sha256.c expose both generic and arch-optimized shash algorithms that wrap the library functions. This allows users of the SHA-256

[PATCH 04/13] crypto: arm64/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 06/13] crypto: powerpc/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 05/13] crypto: mips/sha256 - implement library instead of shash

2025-04-25 Thread Eric Biggers
From: Eric Biggers Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was dis

[PATCH 03/13] crypto: arm64/sha256 - remove obsolete chunking logic

2025-04-25 Thread Eric Biggers
From: Eric Biggers Since kernel-mode NEON sections are now preemptible on arm64, there is no longer any need to limit the length of them. Signed-off-by: Eric Biggers --- arch/arm64/crypto/sha256-glue.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/arc

[PATCH 00/13] Architecture-optimized SHA-256 library API

2025-04-25 Thread Eric Biggers
This is based on cryptodev commit bf0b4f15267ca404 plus the series https://lore.kernel.org/linux-crypto/20250422152716.5923-1-ebigg...@kernel.org/. It can also be retrieved from: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git sha256-lib-v1 Following the example

[PATCH] soc: fsl: qbman: Remove const from portal->cgrs allocation type

2025-04-25 Thread Kees Cook
In preparation for making the kmalloc family of allocators type aware, we need to make sure that the returned type from the allocation matches the type of the variable being assigned. (Before, the allocator would always return "void *", which can be implicitly cast to any pointer type.) The assign

[PATCH 1/7] arch/powerpc/perf : Removing unused macros from power5+-pmu.c

2025-04-25 Thread Likhitha Korrapati
The following macros were introduced in power5+-pmu via commit aabbaa6036fd ("perfcounters/powerpc: add support for POWER5+ processors") MMCR1_TTM2SEL_SH, MMCR1_TTMSEL_MSK, MMCR1_TD_CP_DBG1SEL_SH, MMCR1_TD_CP_DBG2SEL_SH, MMCR1_TD_CP_DBG3SEL_SH, MMCR1_GRS_L2SEL_MSK, MMCR1_GRS_L3SEL_MSK, MMCR1_GRS_M

[PATCH 7/7] arch/powerpc/perf : Removing unused macros from power9-pmu.c

2025-04-25 Thread Likhitha Korrapati
The following macros were introduced in power9-pmu via commit 8c002dbd05ee ("powerpc/perf: Power9 PMU support") POWER9_MMCRA_IFM2, POWER9_MMCRA_IFM3 Removing the above macros as they are defined but never used. Co-developed-by: Anjali K Signed-off-by: Anjali K Signed-off-by: Likhitha Korrapati

[PATCH 6/7] arch/powerpc/perf : Removing unused macros from power8-pmu.c

2025-04-25 Thread Likhitha Korrapati
The following macros were introduced in power8-pmu via commit b1113557fb5f ("powerpc/perf: Define BHRB generic functions, data and flags for POWER8") POWER8_MMCRA_IFM2, POWER8_MMCRA_IFM3 Removing the above macros as they are defined but never used. Co-developed-by: Anjali K Signed-off-by: Anjal

[PATCH 4/7] arch/powerpc/perf : Removing unused macros from power7-pmu.c

2025-04-25 Thread Likhitha Korrapati
The following macros were introduced in power7-pmu via commit 4da52960fd1a ("perf_counters: powerpc: Add support for POWER7 processors") PM_PMC_MSKS, PM_COMBINE_MSKS, MMCR1_TTM1SEL_SH, MMCR1_TTM2SEL_SH, MMCR1_TTM3SEL_SH, MMCR1_TTMSEL_MSK, MMCR1_L2SEL_MSK, MMCR1_PMC2_COMBINE_SH, MMCR1_PMC3_COMBINE_

[PATCH 2/7] arch/powerpc/perf : Removing unused macros from power5-pmu.c

2025-04-25 Thread Likhitha Korrapati
The following macros were introduced in power5-pmu via commit 742bd95ba96e ("perfcounters/powerpc: Add support for POWER5 processors") MMCR1_TTM2SEL_SH, MMCR1_TTMSEL_MSK, MMCR1_TD_CP_DBG1SEL_SH MMCR1_TD_CP_DBG2SEL_SH, MMCR1_TD_CP_DBG3SEL_SH, MMCR1_GRS_L2SEL_MSK MMCR1_GRS_L3SEL_MSK, MMCR1_GRS_MCSEL

[PATCH 5/7] arch/powerpc/perf : Removing unused macros from power6-pmu.c

2025-04-25 Thread Likhitha Korrapati
The macro MMCR1_PMCSEL_MSK was introduced in power6-pmu via commit f78628374a13 ("powerpc/perf_counter: Add support for POWER6") but never used. The usage of macro PM_SUBUNIT_MSKS was removed in commit ab7ef2e50a55 ("perf_counter: powerpc: allow use of limited-function counters") and failed to rem

[PATCH 3/7] arch/powerpc/perf : Removing unused macros from ppc970-pmu.c

2025-04-25 Thread Likhitha Korrapati
The following macros were introduced in ppc970-pmu via commit 16b067993dee ("powerpc/perf_counter: Add support for PPC970 family") PM_NONE, PM_LSU1U, MMCR0_PMC2SEL_SH, MMCR_PMCSEL_MSK MMCR1_TTM0SEL_SH, MMCR1_TTMSEL_MSK, MMCR1_TD_CP_DBG1SEL_SH MMCR1_TD_CP_DBG2SEL_SH, MMCR1_TD_CP_DBG3SEL_SH, MMCR1_P

[PATCH 0/7] Removing unused macros in arch/powerpc/perf

2025-04-25 Thread Likhitha Korrapati
The patch set below is work done to list all macros defined in c files that are not in use anymore. Thereby categorising these macros as dead macros. Use scripts to identify these macros along with commit-ids. Patch set consists of patches targeting a file in arch/powerpc/perf which has unused macr

Re: [PATCH v4 00/14] Add support for suppressing warning backtraces

2025-04-25 Thread Andrew Morton
On Thu, 13 Mar 2025 11:43:15 + Alessandro Carminati wrote: > Some unit tests intentionally trigger warning backtraces by passing bad > parameters to kernel API functions. Such unit tests typically check the > return value from such calls, not the existence of the warning backtrace. I've had

[PATCH] KVM: PPC: Book3S HV: Fix IRQ map warnings with XICS on pSeries KVM Guest

2025-04-25 Thread Amit Machhiwal
The commit 9576730d0e6e ("KVM: PPC: select IRQ_BYPASS_MANAGER") enabled IRQ_BYPASS_MANAGER when CONFIG_KVM was set. Subsequently, commit c57875f5f9be ("KVM: PPC: Book3S HV: Enable IRQ bypass") enabled IRQ bypass and added the necessary callbacks to create/remove the mappings between host real IRQ a

Re: [PATCH v4 3/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-04-25 Thread Andrey Albershteyn
On 2025-04-22 17:14:10, Christian Brauner wrote: > On Tue, Apr 22, 2025 at 04:31:29PM +0200, Christian Brauner wrote: > > On Thu, Mar 27, 2025 at 12:39:28PM +0100, Amir Goldstein wrote: > > > On Thu, Mar 27, 2025 at 10:33 AM Andrey Albershteyn > > > wrote: > > > > > > > > On 2025-03-23 09:56:25,

Re: [PATCH] tools/lib/perf: Fix -Werror=alloc-size-larger-than in cpumap.c

2025-04-25 Thread Arnaldo Carvalho de Melo
On Fri, Apr 25, 2025 at 08:19:02PM +0530, Athira Rajeev wrote: > > On 14 Apr 2025, at 7:08 AM, Madhavan Srinivasan wrote: > > On 4/7/25 5:38 PM, Venkat Rao Bagalkote wrote: > >> On 07/04/25 12:10 am, Athira Rajeev wrote: > On 6 Apr 2025, at 10:04 PM, Likhitha Korrapati > wrote: >

Re: [PATCH 1/2] powerpc: kvm: use generic transfer to guest mode work

2025-04-25 Thread Shrikanth Hegde
On 4/25/25 19:01, Sebastian Andrzej Siewior wrote: On 2025-04-25 16:49:19 [+0530], Shrikanth Hegde wrote: On 4/25/25 00:08, Sebastian Andrzej Siewior wrote: On 2025-04-24 21:27:59 [+0530], Shrikanth Hegde wrote: diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index

Re: [PATCH 1/9] of: Add warpper function of_find_node_by_name_balanced()

2025-04-25 Thread Laurent Pinchart
On Fri, Apr 25, 2025 at 06:30:10PM +0300, Dan Carpenter wrote: > Whatever happened with this thread from Feb. > https://lore.kernel.org/all/20250207013117.104205-1-zhangzeku...@huawei.com/ > > The issue was that people weren't expecting of_find_node_by_name() to > drop the reference on the of_node

Re: [PATCH 1/2] powerpc: kvm: use generic transfer to guest mode work

2025-04-25 Thread Sebastian Andrzej Siewior
On 2025-04-25 19:54:56 [+0530], Shrikanth Hegde wrote: > > > But looking at the semantics of usage of xfer_to_guest_mode_work > > > I think using schedule is probably right over here. > > > Correct me if i got it all wrong. > > > > No, if you do xfer_to_guest_mode_work() then it will invoke schedu

[PATCH] powerpc/iommu: Memory leak in TCE table userspace view

2025-04-25 Thread Gaurav Batra
When a device is opened by a userspace driver, via VFIO interface, DMA window is created. This DMA window has TCE Table and a corresponding data for userview of TCE table. When the userspace driver closes the device, all the above infrastructure is free'ed and the device control given back to kern

Re: [PATCH v2 01/12] mm: Pass mm down to pagetable_{pte,pmd}_ctor

2025-04-25 Thread Alexander Gordeev
On Tue, Apr 08, 2025 at 10:52:11AM +0100, Kevin Brodsky wrote: > In preparation for calling constructors for all kernel page tables > while eliding unnecessary ptlock initialisation, let's pass down the > associated mm to the PTE/PMD level ctors. (These are the two levels > where ptlocks are used.)

Re: [PATCH v2 03/12] mm: Call ctor/dtor for kernel PTEs

2025-04-25 Thread Alexander Gordeev
On Tue, Apr 08, 2025 at 10:52:13AM +0100, Kevin Brodsky wrote: > Since [1], constructors/destructors are expected to be called for > all page table pages, at all levels and for both user and kernel > pgtables. There is however one glaring exception: kernel PTEs are > managed via separate helpers (p

Re: [PATCH 08/19] vdso/gettimeofday: Prepare do_hres_timens() for introduction of struct vdso_clock

2025-04-25 Thread Thomas Weißschuh
On Fri, Apr 25, 2025 at 04:37:47PM +0200, Jan Stancek wrote: > On Fri, Apr 25, 2025 at 03:40:55PM +0200, Thomas Weißschuh wrote: > > > > > > > Some more information: > > > > The crash comes from the address arithmetic in "vc = &vc[CS_RAW]" going > > wrong. > > That appears to be because it's

Re: [PATCH 1/9] of: Add warpper function of_find_node_by_name_balanced()

2025-04-25 Thread Dan Carpenter
Whatever happened with this thread from Feb. https://lore.kernel.org/all/20250207013117.104205-1-zhangzeku...@huawei.com/ The issue was that people weren't expecting of_find_node_by_name() to drop the reference on the of_node. The patchset introduced a wrapper which basically worked as expected e

Re: [PATCH] tools/lib/perf: Fix -Werror=alloc-size-larger-than in cpumap.c

2025-04-25 Thread Athira Rajeev
> On 14 Apr 2025, at 7:08 AM, Madhavan Srinivasan wrote: > > > > On 4/7/25 5:38 PM, Venkat Rao Bagalkote wrote: >> >> On 07/04/25 12:10 am, Athira Rajeev wrote: >>> On 6 Apr 2025, at 10:04 PM, Likhitha Korrapati wrote: perf build break observed when using gcc 13-3 (F

Re: [PATCH] tools headers: Update the include/vdso/unaligned.h to sync headers

2025-04-25 Thread Athira Rajeev
> On 22 Apr 2025, at 2:41 PM, James Clark wrote: > > > > On 21/04/2025 4:41 am, Athira Rajeev wrote: >> To pick up the changes in: >> commit acea9943271b ("vdso: Address variable shadowing in macros") >> Addressing this perf tools build warning: >> diff -u tools/include/vdso/unaligned.h incl

Re: [PATCH 08/19] vdso/gettimeofday: Prepare do_hres_timens() for introduction of struct vdso_clock

2025-04-25 Thread Jan Stancek
On Fri, Apr 25, 2025 at 03:40:55PM +0200, Thomas Weißschuh wrote: Some more information: The crash comes from the address arithmetic in "vc = &vc[CS_RAW]" going wrong. That appears to be because it's not doing any arithmetic, but using value from some linker-generated symbol (I'll refer to

Re: [PATCH 08/19] vdso/gettimeofday: Prepare do_hres_timens() for introduction of struct vdso_clock

2025-04-25 Thread Thomas Weißschuh
On Fri, Apr 25, 2025 at 12:03:14PM +0200, Jan Stancek wrote: > On Fri, Apr 25, 2025 at 10:58 AM Thomas Weißschuh > wrote: > > > > On Thu, Apr 24, 2025 at 11:57:02PM +0200, Jan Stancek wrote: > > > On Thu, Apr 24, 2025 at 5:49 PM Thomas Weißschuh > > > wrote: > > > > > > > > On Thu, Apr 24, 2025 a

[PATCH] bus: fsl_mc: Fix driver_managed_dma check

2025-04-25 Thread Robin Murphy
Since it's not currently safe to take device_lock() in the IOMMU probe path, that can race against really_probe() setting dev->driver before attempting to bind. The race itself isn't so bad, since we're only concerned with dereferencing dev->driver itself anyway, but sadly my attempt to implement t

Re: [PATCH 1/2] powerpc: kvm: use generic transfer to guest mode work

2025-04-25 Thread Sebastian Andrzej Siewior
On 2025-04-25 16:49:19 [+0530], Shrikanth Hegde wrote: > On 4/25/25 00:08, Sebastian Andrzej Siewior wrote: > > On 2025-04-24 21:27:59 [+0530], Shrikanth Hegde wrote: > > > > > diff --git a/arch/powerpc/kvm/book3s_hv.c > > > > > b/arch/powerpc/kvm/book3s_hv.c > > > > > index 19f4d298d..123539642 1

Re: [PATCH 1/2] powerpc: kvm: use generic transfer to guest mode work

2025-04-25 Thread Shrikanth Hegde
On 4/25/25 00:08, Sebastian Andrzej Siewior wrote: On 2025-04-24 21:27:59 [+0530], Shrikanth Hegde wrote: diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 19f4d298d..123539642 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -4901,

Re: [PATCH 08/19] vdso/gettimeofday: Prepare do_hres_timens() for introduction of struct vdso_clock

2025-04-25 Thread Jan Stancek
On Fri, Apr 25, 2025 at 10:58 AM Thomas Weißschuh wrote: > > On Thu, Apr 24, 2025 at 11:57:02PM +0200, Jan Stancek wrote: > > On Thu, Apr 24, 2025 at 5:49 PM Thomas Weißschuh > > wrote: > > > > > > On Thu, Apr 24, 2025 at 04:10:04PM +0200, Jan Stancek wrote: > > > > On Mon, Mar 03, 2025 at 12:11:

Re: [PATCH 5/7] s390/crc: drop "glue" from filenames

2025-04-25 Thread Heiko Carstens
On Wed, Apr 23, 2025 at 05:20:36PM -0700, Eric Biggers wrote: > From: Eric Biggers > > The use of the term "glue" in filenames is a Crypto API-ism that does > not show up elsewhere in lib/. I think adopting it there was a mistake. > The library just uses standard functions, so the amount of code

Re: [PATCH 08/19] vdso/gettimeofday: Prepare do_hres_timens() for introduction of struct vdso_clock

2025-04-25 Thread Thomas Weißschuh
On Thu, Apr 24, 2025 at 11:57:02PM +0200, Jan Stancek wrote: > On Thu, Apr 24, 2025 at 5:49 PM Thomas Weißschuh > wrote: > > > > On Thu, Apr 24, 2025 at 04:10:04PM +0200, Jan Stancek wrote: > > > On Mon, Mar 03, 2025 at 12:11:10PM +0100, Thomas Weißschuh wrote: > > > > From: Anna-Maria Behnsen >

[powerpc:fixes-test] BUILD SUCCESS e3f506b78d921e48a00d005bea5c45ec36a99240

2025-04-25 Thread kernel test robot
powerpcrandconfig-002-20250425gcc-9.3.0 powerpcrandconfig-003-20250424clang-21 powerpcrandconfig-003-20250425gcc-9.3.0 powerpc64 randconfig-001-20250424clang-21 powerpc64 randconfig-002-20250424clang-21 powerpc64 randconfig-003-20250424clang-21 -- 0-DAY CI