[PATCH v5 2/4] objtool/powerpc: Add support for decoding all types of uncond branches

2025-02-25 Thread Christophe Leroy
Add support for 'bla' instruction. This is done by 'flagging' the address as an absolute address so that arch_jump_destination() can calculate it as expected. Because code is _always_ 4 bytes aligned, use bit 30 as flag. Also add support for 'b' and 'ba' instructions. Objtool call them jumps. An

Re: [PATCH] powerpc: Don't use %pK through printk

2025-02-25 Thread Thomas Weißschuh
On Mon, Feb 24, 2025 at 06:54:47PM +, Maciej W. Rozycki wrote: > On Mon, 24 Feb 2025, Christophe Leroy wrote: > > > > Restricted pointers ("%pK") are not meant to be used through printk(). > > > It can unintentionally expose security sensitive, raw pointer values. > > > > > > Use regular poin

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Arnd Bergmann
On Mon, Feb 24, 2025, at 12:32, Christian Brauner wrote: > On Fri, Feb 21, 2025 at 08:15:24PM +0100, Amir Goldstein wrote: >> On Fri, Feb 21, 2025 at 7:13 PM Darrick J. Wong wrote: >> > > @@ -23,6 +23,9 @@ >> > > #include >> > > #include >> > > #include >> > > +#include >> > > +#include >

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Arnd Bergmann
On Tue, Feb 25, 2025, at 11:22, Christian Brauner wrote: > On Tue, Feb 25, 2025 at 09:02:04AM +0100, Arnd Bergmann wrote: >> On Mon, Feb 24, 2025, at 12:32, Christian Brauner wrote: >> >> The ioctl interface relies on the existing behavior, see >> 0a6eab8bd4e0 ("vfs: support FS_XFLAG_COWEXTSIZE an

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Christian Brauner
On Tue, Feb 25, 2025 at 09:02:04AM +0100, Arnd Bergmann wrote: > On Mon, Feb 24, 2025, at 12:32, Christian Brauner wrote: > > On Fri, Feb 21, 2025 at 08:15:24PM +0100, Amir Goldstein wrote: > >> On Fri, Feb 21, 2025 at 7:13 PM Darrick J. Wong wrote: > > >> > > @@ -23,6 +23,9 @@ > >> > > #include

Re: [RFC PATCH v2 0/3] sched/fair: introduce new scheduler group type group_parked

2025-02-25 Thread Shrikanth Hegde
On 2/20/25 16:25, Tobias Huschle wrote: On 18/02/2025 06:58, Shrikanth Hegde wrote: [...] There are a couple of issues and corner cases which need further considerations: - rt & dl:  Realtime and deadline scheduling require some additional attention. I think we need

Re: [PATCH 1/7] KVM: x86: Free vCPUs before freeing VM state

2025-02-25 Thread Paolo Bonzini
On 2/25/25 00:55, Sean Christopherson wrote: Free vCPUs before freeing any VM state, as both SVM and VMX may access VM state when "freeing" a vCPU that is currently "in" L2, i.e. that needs to be kicked out of nested guest mode. Commit 6fcee03df6a1 ("KVM: x86: avoid loading a vCPU after .vm_dest

[GIT PULL] Please pull powerpc/linux.git powerpc-6.14-4 tag

2025-02-25 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fix for 6.14: The following changes since commit d262a192d38e527faa5984629aabda2e0d1c4f54: powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC (2025-02-12 14:38:13 +0530) are availa

[PATCH] book3s64/radix : Align section vmemmap start address to PAGE_SIZE

2025-02-25 Thread Donet Tom
A vmemmap altmap is a device-provided region used to provide backing storage for struct pages. For each namespace, the altmap should belong to that same namespace. If the namespaces are created unaligned, there is a chance that the section vmemmap start address could also be unaligned. If the secti

Re: [PATCH] powerpc/32: Stop printing Kernel virtual memory layout

2025-02-25 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 19:40:38 +0100, Christophe Leroy wrote: > Printing of Kernel virtual memory layout was added for debug purpose > by commit f637a49e507c ("powerpc: Minor cleanups of kernel virt > address space definitions") > > For security reasons, don't display the kernel's virtual memory lay

Re: [PATCH] powerpc/44x: Declare primary_uic static in uic.c

2025-02-25 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 11:24:54 +0100, Christophe Leroy wrote: > primary_uic is not used outside uic.c, declare it static. > > Applied to powerpc/next. [1/1] powerpc/44x: Declare primary_uic static in uic.c https://git.kernel.org/powerpc/c/779c501cab14ba0b441a3c802c56be46a24f5c3b Thanks

Re: [PATCH] powerpc/ipic: Stop printing address of registers

2025-02-25 Thread Madhavan Srinivasan
On Thu, 09 Jan 2025 07:48:36 +0100, Christophe Leroy wrote: > The following line appears at boot: > > IPIC (128 IRQ sources) at (ptrval) > > This is pointless so remove the printing of the virtual address and > replace it by matching physical address. > > [...] Applied to powerpc/next. [

Re: [PATCH] powerpc/time: Define div128_by_32() static and __init

2025-02-25 Thread Madhavan Srinivasan
On Wed, 05 Feb 2025 10:54:26 +0100, Christophe Leroy wrote: > div128_by_32() used to be called from outside time.c in the old days > but since v2.6.15 it hasn't been used outside time.c > > $ git grep div128_by_32 v2.6.14 > v2.6.14:arch/ppc64/kernel/iSeries_setup.c:div128_by_32(1024 * 1024, 0,

Re: [PATCH] powerpc/vmlinux: Remove etext, edata and end

2025-02-25 Thread Madhavan Srinivasan
On Wed, 08 Jan 2025 11:33:44 +0100, Christophe Leroy wrote: > etext is not used anymore since commit 843a1ffaf6f2 ("powerpc/mm: use > core_kernel_text() helper") > > edata and end have not been used since the merge of arch/ppc/ and > arch/ppc64/ > > Remove the three and remove macro PROVIDE32. >

Re: [PATCH] arch/powerpc: Remove unused function icp_native_cause_ipi_rm()

2025-02-25 Thread Madhavan Srinivasan
On Wed, 01 Jan 2025 19:12:49 +0530, Gautam Menghani wrote: > Remove icp_native_cause_ipi_rm() as it has no callers since > commit 53af3ba2e819("KVM: PPC: Book3S HV: Allow guest exit path to have > MMU on") > > Applied to powerpc/next. [1/1] arch/powerpc: Remove unused function icp_native_cause_

Re: [PATCH 1/7] KVM: x86: Free vCPUs before freeing VM state

2025-02-25 Thread Yan Zhao
On Tue, Feb 25, 2025 at 07:04:55AM -0800, Sean Christopherson wrote: > On Tue, Feb 25, 2025, Yan Zhao wrote: > > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > > index 58b82d6fd77c..045c61cc7e54 100644 > > > --- a/arch/x86/kvm/x86.c > > > +++ b/arch/x86/kvm/x86.c > > > @@ -12890,11 +128

Re: [PATCH 1/7] KVM: x86: Free vCPUs before freeing VM state

2025-02-25 Thread Sean Christopherson
On Wed, Feb 26, 2025, Paolo Bonzini wrote: > On 2/25/25 00:55, Sean Christopherson wrote: > > Free vCPUs before freeing any VM state, as both SVM and VMX may access > > VM state when "freeing" a vCPU that is currently "in" L2, i.e. that needs > > to be kicked out of nested guest mode. > > > > Comm

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Pali Rohár
On Tuesday 25 February 2025 07:59:26 Darrick J. Wong wrote: > On Tue, Feb 25, 2025 at 12:24:08PM +0100, Christian Brauner wrote: > > On Tue, Feb 25, 2025 at 11:40:51AM +0100, Arnd Bergmann wrote: > > > On Tue, Feb 25, 2025, at 11:22, Christian Brauner wrote: > > > > On Tue, Feb 25, 2025 at 09:02:04

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Christian Brauner
On Tue, Feb 25, 2025 at 11:40:51AM +0100, Arnd Bergmann wrote: > On Tue, Feb 25, 2025, at 11:22, Christian Brauner wrote: > > On Tue, Feb 25, 2025 at 09:02:04AM +0100, Arnd Bergmann wrote: > >> On Mon, Feb 24, 2025, at 12:32, Christian Brauner wrote: > >> > >> The ioctl interface relies on the exi

Re: [PATCH] powerpc: Don't use %pK through printk

2025-02-25 Thread Maciej W. Rozycki
On Tue, 25 Feb 2025, Christophe Leroy wrote: > > was suddenly lost from the kernel log, the access to which unprivileged > > users can be denied if so desired according to the site policy. Whereas > > running the kernel such as to have all output from plain `%p' exposed just > > to cope with this

Re: [PATCH] powerpc: Don't use %pK through printk

2025-02-25 Thread Maciej W. Rozycki
On Tue, 25 Feb 2025, Thomas Weißschuh wrote: > > was suddenly lost from the kernel log, the access to which unprivileged > > users can be denied if so desired according to the site policy. Whereas > > running the kernel such as to have all output from plain `%p' exposed just > > to cope with t

Re: [PATCH 0/2] ASoC: imx-card: support playback or capture only

2025-02-25 Thread Mark Brown
On Tue, 11 Feb 2025 11:57:35 +0800, Shengjiu Wang wrote: > Be similar to audio graph card, support playback or capture only > for imx-audio-card. > > Shengjiu Wang (2): > ASoC: dt-bindings: imx-card: Add playback-only and capture-only > property > ASoC: imx-card: Add playback_only or captu

Re: [PATCH v3 0/2] ASoC: imx-card: support playback or capture only

2025-02-25 Thread Mark Brown
On Mon, 17 Feb 2025 10:17:13 +0800, Shengjiu Wang wrote: > Be similar to audio graph card, support playback or capture only for > imx-audio-card. > > imx-card can't directly refer to audio-graph-port.yaml, because it is > not based on 'ports'. Add playback-only and capture-only property > directly

[PATCH V2] tools/perf: Pick the correct dwarf die while adding probe point for a function

2025-02-25 Thread Athira Rajeev
Perf probe on vfs_fstatat fails as below on a powerpc system ./perf probe -nf --max-probes=512 -a 'vfs_fstatat $params' Segmentation fault (core dumped) This is observed while running perftool-testsuite_probe testcase. While running with verbose, its observed that segfault happens at: synthe

Re: [PATCH 1/7] KVM: x86: Free vCPUs before freeing VM state

2025-02-25 Thread Sean Christopherson
On Tue, Feb 25, 2025, Yan Zhao wrote: > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index 58b82d6fd77c..045c61cc7e54 100644 > > --- a/arch/x86/kvm/x86.c > > +++ b/arch/x86/kvm/x86.c > > @@ -12890,11 +12890,11 @@ void kvm_arch_destroy_vm(struct kvm *kvm) > > mutex_unlock(&

Re: [PATCH v2 05/12] dt-bindings: dma: Convert fsl,elo*-dma to YAML

2025-02-25 Thread J . Neuschäfer
On Fri, Feb 14, 2025 at 12:35:41PM +, J. Neuschäfer wrote: > On Mon, Feb 10, 2025 at 02:39:13PM -0500, Frank Li wrote: > > On Fri, Feb 07, 2025 at 10:30:22PM +0100, J. Neuschäfer via B4 Relay wrote: > > > From: "J. Neuschäfer" > > > > > > The devicetree bindings for Freescale DMA engines have

Re: [PATCH 3/7] KVM: Assert that a destroyed/freed vCPU is no longer visible

2025-02-25 Thread Sean Christopherson
On Tue, Feb 25, 2025, Yan Zhao wrote: > On Mon, Feb 24, 2025 at 03:55:38PM -0800, Sean Christopherson wrote: > > After freeing a vCPU, assert that it is no longer reachable, and that > > kvm_get_vcpu() doesn't return garbage or a pointer to some other vCPU. > > While KVM obviously shouldn't be atte

Re: [PATCH 4/7] KVM: x86: Don't load/put vCPU when unloading its MMU during teardown

2025-02-25 Thread Sean Christopherson
On Tue, Feb 25, 2025, Yan Zhao wrote: > On Mon, Feb 24, 2025 at 03:55:39PM -0800, Sean Christopherson wrote: > > Don't load (and then put) a vCPU when unloading its MMU during VM > > destruction, as nothing in kvm_mmu_unload() accesses vCPU state beyond the > > root page/address of each MMU, i.e. c

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Darrick J. Wong
On Tue, Feb 25, 2025 at 12:24:08PM +0100, Christian Brauner wrote: > On Tue, Feb 25, 2025 at 11:40:51AM +0100, Arnd Bergmann wrote: > > On Tue, Feb 25, 2025, at 11:22, Christian Brauner wrote: > > > On Tue, Feb 25, 2025 at 09:02:04AM +0100, Arnd Bergmann wrote: > > >> On Mon, Feb 24, 2025, at 12:32

Re: [PATCH 7/7] KVM: Drop kvm_arch_sync_events() now that all implementations are nops

2025-02-25 Thread bibo mao
Reviewed-by: Bibo Mao On 2025/2/25 上午7:55, Sean Christopherson wrote: Remove kvm_arch_sync_events() now that x86 no longer uses it (no other arch has ever used it). No functional change intended. Signed-off-by: Sean Christopherson --- arch/arm64/include/asm/kvm_host.h | 2 -- arch/loo

Re: [RFC kvm-unit-tests PATCH] lib: Use __ASSEMBLER__ instead of __ASSEMBLY__

2025-02-25 Thread Andrew Jones
On Fri, Feb 21, 2025 at 05:45:26PM -0800, Sean Christopherson wrote: > Convert all non-x86 #ifdefs from __ASSEMBLY__ to __ASSEMBLER__, and remove > all manual __ASSEMBLY__ #defines. __ASSEMBLY_ was inherited blindly from > the Linux kernel, and must be manually defined, e.g. through build rules >

[PATCH] tools/perf: Use perf_tool__init() to initialize default values in builtin trace

2025-02-25 Thread Athira Rajeev
Perf trace on perf.data fails as below: ./perf trace record -- sleep 1 ./perf trace -i perf.data perf: Segmentation fault Segmentation fault (core dumped) Backtrace pointed to : ?? () perf_session.process_user_event () reader.read_event ()

Re: [PATCH v3] ASoC: fsl: Rename stream name of SAI DAI driver

2025-02-25 Thread Mark Brown
On Mon, 17 Feb 2025 10:04:37 +0900, Chancel Liu wrote: > If stream names of DAI driver are duplicated there'll be warnings when > machine driver tries to add widgets on a route: > > [8.831335] fsl-asoc-card sound-wm8960: ASoC: sink widget CPU-Playback > overwritten > [8.839917] fsl-asoc-c

Re: [PATCH] ASoC: fsl: fsl_qmc_audio: Remove unnecessary bool conversions

2025-02-25 Thread Mark Brown
On Sun, 23 Feb 2025 21:27:41 +0100, Thorsten Blum wrote: > Remove unnecessary bool conversions and simplify the code. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl: fsl_qmc_audio: Remove unnecessary bool conversions

Re: [PATCH 7/7] KVM: Drop kvm_arch_sync_events() now that all implementations are nops

2025-02-25 Thread Claudio Imbrenda
On Mon, 24 Feb 2025 15:55:42 -0800 Sean Christopherson wrote: > Remove kvm_arch_sync_events() now that x86 no longer uses it (no other > arch has ever used it). > > No functional change intended. > > Signed-off-by: Sean Christopherson Acked-by: Claudio Imbrenda > --- > arch/arm64/include/a