[PATCH 2/2] nvdimm/btt: Fix memleaks in btt_init()

2025-05-15 Thread Li Zhijian
Call free_arenas() to release the arena instances in btt->arena_list in the error paths. Signed-off-by: Li Zhijian --- drivers/nvdimm/btt.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c index a11e4e7e9a52..a85448273a9

[PATCH 1/2] nvdimm/btt: Fix memleaks in discover_arenas()

2025-05-15 Thread Li Zhijian
kmemleak reported a memleak after the ndctl_test unreferenced object 0x88800e6cf2c0 (size 32): comm "modprobe", pid 969, jiffies 4294698691 hex dump (first 32 bytes): 03 00 00 00 a0 0a 00 00 00 b0 b4 00 00 c9 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .

Re: [PATCH 0/9] tools/nolibc: split out more headers

2025-05-15 Thread Willy Tarreau
On Thu, May 15, 2025 at 09:57:46PM +0200, Thomas Weißschuh wrote: > Split out all headers which are used by nolibc-test.c. > This makes it easier to port existing applications to nolibc. Nice work, it's pleasant to no longer see #ifdef NOLIBC in the .c. I'll eventually try to do the same in my ini

[PATCH v3 0/6] arm64: dts: qcom: qcs615: enable remoteprocs - ADSP and CDSP

2025-05-15 Thread Lijuan Gao
mortem debug tools can collect ramdumps. Signed-off-by: Lijuan Gao --- Changes in v3: - Update base-commit to tag: next-20250515. - Collected Reviewed-by: tag. - Add a comment for SLPI 26 in the smp2p-adsp node. - Update the IMEM address to the starting address of the IMEM layout, and also update

[PATCH v3 1/6] dt-bindings: remoteproc: qcom,sm8150-pas: Document QCS615 remoteproc

2025-05-15 Thread Lijuan Gao
Document the components used to boot the ADSP and CDSP on the Qualcomm QCS615 SoC. Use fallback to indicate the compatibility of the remoteproc on the QCS615 with that on the SM8150. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Lijuan Gao --- .../bindings/remoteproc/qcom,sm8150-pas.yaml

[PATCH v3 6/6] arm64: dts: qcom: qcs615-ride: enable remoteprocs

2025-05-15 Thread Lijuan Gao
Enable all remoteproc nodes on the qcs615-ride board and point to the appropriate firmware files to allow proper functioning of the remote processors. Reviewed-by: Konrad Dybcio Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 12 1 file changed, 12 insertio

[PATCH v3 5/6] arm64: dts: qcom: qcs615: add ADSP and CDSP nodes

2025-05-15 Thread Lijuan Gao
Add nodes for remoteprocs: ADSP and CDSP for QCS615 SoC to enable proper remoteproc functionality. Reviewed-by: Konrad Dybcio Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 86 1 file changed, 86 insertions(+) diff --git a/arch/arm64/b

[PATCH v3 3/6] arm64: dts: qcom: qcs615: Add mproc node for SEMP2P

2025-05-15 Thread Lijuan Gao
From: Kyle Deng The Shared Memory Point to Point (SMP2P) protocol facilitates communication of a single 32-bit value between two processors. Add these two nodes for remoteproc enablement on QCS615 SoC. Signed-off-by: Kyle Deng Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/qcom/qcs615.dtsi

[PATCH v3 4/6] arm64: dts: qcom: qcs615: Add IMEM and PIL info region

2025-05-15 Thread Lijuan Gao
Add a simple-mfd representing IMEM on QCS615 and define the PIL relocation info region as its child. The PIL region in IMEM is used to communicate load addresses of remoteproc to post mortem debug tools, so that these tools can collect ramdumps. Signed-off-by: Lijuan Gao --- arch/arm64/boot/dts/

[PATCH v3 2/6] dt-bindings: soc: qcom: add qcom,qcs615-imem compatible

2025-05-15 Thread Lijuan Gao
Document qcom,qcs615-imem compatible. It has a child node for debugging purposes. Acked-by: Krzysztof Kozlowski Signed-off-by: Lijuan Gao --- Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sram/qcom,ime

Re: [PATCH v4 29/38] KVM: x86/pmu: Switch host/guest PMU context at vm-exit/vm-entry

2025-05-15 Thread Mi, Dapeng
On 5/16/2025 12:29 AM, Sean Christopherson wrote: > On Mon, Mar 24, 2025, Mingwei Zhang wrote: >> diff --git a/arch/x86/include/asm/kvm-x86-pmu-ops.h >> b/arch/x86/include/asm/kvm-x86-pmu-ops.h >> index 9159bf1a4730..35f27366c277 100644 >> --- a/arch/x86/include/asm/kvm-x86-pmu-ops.h >> +++ b/ar

Re: [PATCH 13/19] virtio_ring: introduce virtqueue ops

2025-05-15 Thread Jason Wang
On Wed, May 14, 2025 at 10:24 PM Michael S. Tsirkin wrote: > > On Wed, May 14, 2025 at 10:19:05AM -0400, Michael S. Tsirkin wrote: > > On Wed, Apr 09, 2025 at 12:06:03PM +0800, Jason Wang wrote: > > > On Tue, Apr 8, 2025 at 7:37 PM Michael S. Tsirkin wrote: > > > > > > > > On Tue, Apr 08, 2025 at

Fwd: [PATCH] selftests : timers : valid-adjtimex.c : Fixed style checks

2025-05-15 Thread rujra
fixed style checks according to Linux Kernel Coding Style standards. 1 : fixed alignment of parenthesis. LOG : CHECK: Alignment should match open parenthesis + printf("ERROR: out of range value %ld actually set!\n", + tx.freq); 2 : fixe

Re: [PATCH v9 4/4] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-05-15 Thread Jason Wang
On Thu, May 15, 2025 at 2:14 PM Michael S. Tsirkin wrote: > > On Wed, May 14, 2025 at 10:52:58AM +0800, Jason Wang wrote: > > On Tue, May 13, 2025 at 3:09 PM Michael S. Tsirkin wrote: > > > > > > On Tue, May 13, 2025 at 12:08:51PM +0800, Jason Wang wrote: > > > > On Wed, Apr 30, 2025 at 5:27 PM M

Re: [PATCH v4 27/38] KVM: x86/pmu: Handle PMU MSRs interception and event filtering

2025-05-15 Thread Mi, Dapeng
On 3/25/2025 1:31 AM, Mingwei Zhang wrote: > From: Dapeng Mi > > Mediated vPMU needs to intercept EVENTSELx and FIXED_CNTR_CTRL MSRs to > filter out guest malicious perf events. Either writing these MSRs or > updating event filters would call reprogram_counter() eventually. Thus > check if the g

Re: [PATCH v4 30/38] KVM: x86/pmu: Handle emulated instruction for mediated vPMU

2025-05-15 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > static void kvm_pmu_incr_counter(struct kvm_pmc *pmc) > { > - pmc->emulated_counter++; > - kvm_pmu_request_counter_reprogram(pmc); > + struct kvm_vcpu *vcpu = pmc->vcpu; > + > + /* > + * For perf-based PMUs, accumulate software-emu

Re: [PATCH v4 22/38] KVM: x86/pmu: Optimize intel/amd_pmu_refresh() helpers

2025-05-15 Thread Mi, Dapeng
On 5/16/2025 3:22 AM, Sean Christopherson wrote: > On Thu, May 15, 2025, Dapeng Mi wrote: >> On 5/15/2025 8:37 AM, Sean Christopherson wrote: diff --git a/arch/x86/kvm/svm/pmu.c b/arch/x86/kvm/svm/pmu.c index 153972e944eb..eba086ef5eca 100644 --- a/arch/x86/kvm/svm/pmu.c +++ b

[PATCH net] selftests: net: validate team flags propagation

2025-05-15 Thread Stanislav Fomichev
Cover three recent cases: 1. missing ops locking for the lowers during netdev_sync_lower_features 2. missing locking for dev_set_promiscuity (plus netdev_ops_assert_locked with a comment on why/when it's needed) 3. rcu lock during team_change_rx_flags Verified that each one triggers when the re

[PATCH net-next v7] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Bobby Eshleman
x exit code bug when ran is kselftest: use cnt_total instead of KSFT_NUM_TESTS - updated commit message with updated output - updated commit message with commands for installing/running as kselftest - Link to v6: https://lore.kernel.org/r/20250515-vsock-vmtest-v6-1-9af1cc023...@gmail.com Chang

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-15 Thread André Apitzsch
Hi Sakari, Hi Laurent, Am Freitag, dem 16.05.2025 um 00:02 +0300 schrieb Sakari Ailus: > Hi Laurent, > > On Thu, May 15, 2025 at 03:03:40PM +0200, Laurent Pinchart wrote: > > On Thu, May 15, 2025 at 02:54:54PM +0300, Sakari Ailus wrote: > > > On Thu, May 15, 2025 at 10:58:46AM +0200, Laurent Pinc

Re: [PATCH 1/2] selftests/mm: skip uffd tests in madv_guard if uffd is not present.

2025-05-15 Thread Lorenzo Stoakes
On Thu, May 15, 2025 at 02:46:41PM -0400, Zi Yan wrote: > On 15 May 2025, at 14:41, Lorenzo Stoakes wrote: > > > Ah you got to this first :) thanks! > > > > Could you do this with a cover letter though? It's really weird to have 2/2 > > reply to 1/2, I know sometimes people do that, but it's just o

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-15 Thread Sakari Ailus
Hi Laurent, On Thu, May 15, 2025 at 03:03:40PM +0200, Laurent Pinchart wrote: > On Thu, May 15, 2025 at 02:54:54PM +0300, Sakari Ailus wrote: > > On Thu, May 15, 2025 at 10:58:46AM +0200, Laurent Pinchart wrote: > > > On Tue, May 06, 2025 at 08:24:03AM +, Sakari Ailus wrote: > > > > On Mon, Ma

Re: [PATCH 5/6] x86/paravirt: Switch MSR access pv_ops functions to instruction interfaces

2025-05-15 Thread H. Peter Anvin
On 5/15/25 00:32, Xin Li wrote: Hi Juergen, I have some update on this thread while working on it. If we continue down the path of maintaining pvops MSR APIs as this patch series does, it seems we’ll need to duplicate the ALTERNATIVE code in three different places. 1) The MSR access primitive

Re: [PATCH v2 2/3] rpmsg: char: Implement eptdev based on anon inode

2025-05-15 Thread Mathieu Poirier
On Fri, May 09, 2025 at 11:59:26PM +0800, Dawei Li wrote: > Introduce new eptdev abstraction based on anon inode. The new API is > exactly same with legacy one except: > > - It's anonymous and devnode/path free. > - Its fops->open() is empty. > > Signed-off-by: Dawei Li > --- > drivers/rpmsg/rp

Re: [PATCH v2 1/3] rpmsg: char: Reuse eptdev logic for anon device

2025-05-15 Thread Mathieu Poirier
Hi, On Fri, May 09, 2025 at 11:59:25PM +0800, Dawei Li wrote: > Current uAPI implementation for rpmsg ctrl & char device manipulation is > abstracted in procedures below: > > Current uAPI implementation for rpmsg ctrl & char device manipulation is > abstracted in procedures below: > - fd = open("

Re: [PATCH v4 05/38] perf: Add generic exclude_guest support

2025-05-15 Thread Liang, Kan
On 2025-05-15 3:25 p.m., Sean Christopherson wrote: > On Thu, May 15, 2025, Kan Liang wrote: >> On 2025-05-14 7:19 p.m., Sean Christopherson wrote: This naming is confusing on purpose? Pick either guest/host and stick with it. >>> >>> +1. I also think the inner perf_host_{enter,exit}(

[PATCH 5/9] tools/nolibc: move getrlimit() and friends to sys/resource.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects these definitions. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile | 1 + tools/include/nolibc/nolibc.h | 1 + tools/include/nolibc/sys.h | 38 -- tools/include/nolibc/sys/resource.h |

[PATCH 7/9] tools/nolibc: move uname() and friends to sys/utsname.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects these definitions. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile | 1 + tools/include/nolibc/nolibc.h | 1 + tools/include/nolibc/sys.h | 27 tools/include/nolibc/sys/utsname.h | 42 ++

[PATCH 8/9] tools/nolibc: move NULL and offsetof() to sys/stddef.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects these definitions. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile | 1 + tools/include/nolibc/std.h| 6 +- tools/include/nolibc/stddef.h | 24 tools/include/nolibc/types.h | 4 4 files cha

[PATCH 6/9] tools/nolibc: move makedev() and friends to sys/sysmacros.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects these definitions. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys/sysmacros.h | 20 tools/include/nolibc/types.h |

[PATCH 9/9] selftests/nolibc: drop include guards around standard headers

2025-05-15 Thread Thomas Weißschuh
Nolibc now provides all the headers required by nolibc-test.c. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 5 - 1 file changed, 5 deletions(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c ind

[PATCH 3/9] tools/nolibc: move prctl() to sys/prctl.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects this definition. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys.h | 21 - tools/include/nolibc/sys/prctl.h | 36 +++

[PATCH 1/9] tools/nolibc: move ioctl() to sys/ioctl.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects this definition. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys.h | 12 tools/include/nolibc/sys/ioctl.h | 29

[PATCH 4/9] tools/nolibc: move reboot() to sys/reboot.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects this definition. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile | 1 + tools/include/nolibc/nolibc.h | 1 + tools/include/nolibc/sys.h| 18 -- tools/include/nolibc/sys/reboot.h | 34 ++

[PATCH 0/9] tools/nolibc: split out more headers

2025-05-15 Thread Thomas Weißschuh
/selftests/nolibc/nolibc-test.c | 5 - 14 files changed, 291 insertions(+), 157 deletions(-) --- base-commit: 6a25f787912a73613f12e7eefbebd72ee3d43f85 change-id: 20250515-nolibc-sys-31a4fd76d897 Best regards, -- Thomas Weißschuh

[PATCH 2/9] tools/nolibc: move mount() to sys/mount.h

2025-05-15 Thread Thomas Weißschuh
This is the location regular userspace expects this definition. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/Makefile| 1 + tools/include/nolibc/nolibc.h| 1 + tools/include/nolibc/sys.h | 20 tools/include/nolibc/sys/mount.h | 37

Re: [PATCH v4 05/38] perf: Add generic exclude_guest support

2025-05-15 Thread Sean Christopherson
On Thu, May 15, 2025, Kan Liang wrote: > On 2025-05-14 7:19 p.m., Sean Christopherson wrote: > >> This naming is confusing on purpose? Pick either guest/host and stick > >> with it. > > > > +1. I also think the inner perf_host_{enter,exit}() helpers are superflous. > > These flows > > > > After

Re: [PATCH v4 22/38] KVM: x86/pmu: Optimize intel/amd_pmu_refresh() helpers

2025-05-15 Thread Sean Christopherson
On Thu, May 15, 2025, Dapeng Mi wrote: > On 5/15/2025 8:37 AM, Sean Christopherson wrote: > >> diff --git a/arch/x86/kvm/svm/pmu.c b/arch/x86/kvm/svm/pmu.c > >> index 153972e944eb..eba086ef5eca 100644 > >> --- a/arch/x86/kvm/svm/pmu.c > >> +++ b/arch/x86/kvm/svm/pmu.c > >> @@ -198,12 +198,20 @@ sta

Re: [PATCH] Revert "remoteproc: core: Clear table_sz when rproc_shutdown"

2025-05-15 Thread Mathieu Poirier
On Tue, May 13, 2025 at 04:52:46PM +0100, Bjorn Andersson wrote: > Clearing the table_sz on cleanup seemed reasonable, but further > discussions concluded that this merely working around the issue > and that the fix is incomplete. > > As such, revert commit efdde3d73ab2 ("remoteproc: core: Clear t

Re: [PATCH 2/2] selftests/mm: skip hugevm test if kernel config file is not present.

2025-05-15 Thread Pedro Falcato
On Thu, May 15, 2025 at 07:43:40PM +0100, Lorenzo Stoakes wrote: > On Thu, May 15, 2025 at 02:23:33PM -0400, Zi Yan wrote: > > When running hugevm tests in a machine without kernel config present, e.g., > > a VM running a kernel without CONFIG_IKCONFIG_PROC nor /boot/config-*, > > skip hugevm tests

Re: [PATCH 1/2] selftests/mm: skip uffd tests in madv_guard if uffd is not present.

2025-05-15 Thread Pedro Falcato
On Thu, May 15, 2025 at 02:23:32PM -0400, Zi Yan wrote: > When userfaultfd is not compiled into kernel, userfaultfd() returns -1, > causing uffd tests in madv_guard fail. Skip the tests instead. > > Signed-off-by: Zi Yan Reviewed-by: Pedro Falcato Thanks! -- Pedro

Re: [PATCH v4 23/38] KVM: x86/pmu: Configure the interception of PMU MSRs

2025-05-15 Thread Sean Christopherson
On Thu, May 15, 2025, Dapeng Mi wrote: > On 5/15/2025 8:41 AM, Sean Christopherson wrote: > >> + if (kvm_mediated_pmu_enabled(vcpu) && kvm_pmu_has_perf_global_ctrl(pmu) > >> && > > Just require the guest to have PERF_GLOBAL_CTRL, I don't see any reason to > > support > > v1 PMUs. It adds comple

Re: [PATCH 1/2] selftests/mm: skip uffd tests in madv_guard if uffd is not present.

2025-05-15 Thread Zi Yan
On 15 May 2025, at 14:49, Lorenzo Stoakes wrote: > On Thu, May 15, 2025 at 02:46:41PM -0400, Zi Yan wrote: >> On 15 May 2025, at 14:41, Lorenzo Stoakes wrote: >> >>> Ah you got to this first :) thanks! >>> >>> Could you do this with a cover letter though? It's really weird to have 2/2 >>> reply to

Re: [PATCH 1/2] selftests/mm: skip uffd tests in madv_guard if uffd is not present.

2025-05-15 Thread Zi Yan
On 15 May 2025, at 14:41, Lorenzo Stoakes wrote: > Ah you got to this first :) thanks! > > Could you do this with a cover letter though? It's really weird to have 2/2 > reply to 1/2, I know sometimes people do that, but it's just odd, and it'd be > good to have an overview, thanks! > > On Thu, May

Re: [PATCH 2/2] selftests/mm: skip hugevm test if kernel config file is not present.

2025-05-15 Thread Lorenzo Stoakes
On Thu, May 15, 2025 at 02:23:33PM -0400, Zi Yan wrote: > When running hugevm tests in a machine without kernel config present, e.g., > a VM running a kernel without CONFIG_IKCONFIG_PROC nor /boot/config-*, > skip hugevm tests, which reads kernel config to get page table level > information. > > Si

Re: [PATCH 1/2] selftests/mm: skip uffd tests in madv_guard if uffd is not present.

2025-05-15 Thread Lorenzo Stoakes
Ah you got to this first :) thanks! Could you do this with a cover letter though? It's really weird to have 2/2 reply to 1/2, I know sometimes people do that, but it's just odd, and it'd be good to have an overview, thanks! On Thu, May 15, 2025 at 02:23:32PM -0400, Zi Yan wrote: > When userfaultf

Re: [PATCH v4 05/38] perf: Add generic exclude_guest support

2025-05-15 Thread Liang, Kan
On 2025-05-14 7:19 p.m., Sean Christopherson wrote: > On Fri, Apr 25, 2025, Peter Zijlstra wrote: >> On Mon, Mar 24, 2025 at 05:30:45PM +, Mingwei Zhang wrote: >> >>> @@ -6040,6 +6041,71 @@ void perf_put_mediated_pmu(void) >>> } >>> EXPORT_SYMBOL_GPL(perf_put_mediated_pmu); >>> >>> +stat

Re: [PATCH net-next v5] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Bobby Eshleman
On Thu, May 15, 2025 at 11:02:00AM +0200, Stefano Garzarella wrote: > On Tue, May 13, 2025 at 11:31:13PM -0700, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, > > H2G, and loopback. The

[PATCH 2/2] selftests/mm: skip hugevm test if kernel config file is not present.

2025-05-15 Thread Zi Yan
When running hugevm tests in a machine without kernel config present, e.g., a VM running a kernel without CONFIG_IKCONFIG_PROC nor /boot/config-*, skip hugevm tests, which reads kernel config to get page table level information. Signed-off-by: Zi Yan --- .../selftests/mm/va_high_addr_switch.sh

[PATCH 1/2] selftests/mm: skip uffd tests in madv_guard if uffd is not present.

2025-05-15 Thread Zi Yan
When userfaultfd is not compiled into kernel, userfaultfd() returns -1, causing uffd tests in madv_guard fail. Skip the tests instead. Signed-off-by: Zi Yan --- tools/testing/selftests/mm/guard-regions.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tools

Re: [PATCH] Revert "remoteproc: core: Clear table_sz when rproc_shutdown"

2025-05-15 Thread Mathieu Poirier
On Thu, May 15, 2025 at 12:21:14PM -0500, Andrew Davis wrote: > On 5/13/25 10:52 AM, Bjorn Andersson wrote: > > Clearing the table_sz on cleanup seemed reasonable, but further > > discussions concluded that this merely working around the issue > > and that the fix is incomplete. > > > > As such, r

[PATCH net-next v6] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Bobby Eshleman
This commit introduces a new vmtest.sh runner for vsock. It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, H2G, and loopback. The testing tools from tools/testing/vsock/ are reused. Currently, only vsock_test is used. VMCI and hyperv support is automatically built, though not u

[PATCH] selftests/futex: Fix usage() message to clarify timeout value unit

2025-05-15 Thread Jonathan Velez
futex_wait_timeout: Fix usage() message to clarify timeout value unit Signed-off-by: Jonathan Velez --- tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/futex_wait_timeout.c

Re: [PATCH] Revert "remoteproc: core: Clear table_sz when rproc_shutdown"

2025-05-15 Thread Andrew Davis
On 5/13/25 10:52 AM, Bjorn Andersson wrote: Clearing the table_sz on cleanup seemed reasonable, but further discussions concluded that this merely working around the issue and that the fix is incomplete. As such, revert commit efdde3d73ab2 ("remoteproc: core: Clear table_sz when rproc_shutdown")

[tip: x86/sgx] x86/sgx: Prevent attempts to reclaim poisoned pages

2025-05-15 Thread tip-bot2 for Andrew Zaborowski
The following commit has been merged into the x86/sgx branch of tip: Commit-ID: ed16618c380c32c68c06186d0ccbb0d5e0586e59 Gitweb: https://git.kernel.org/tip/ed16618c380c32c68c06186d0ccbb0d5e0586e59 Author:Andrew Zaborowski AuthorDate:Fri, 09 May 2025 01:04:29 +02:00 Committ

Re: [PATCH v2] x86/sgx: Prevent attempts to reclaim poisoned pages

2025-05-15 Thread Ingo Molnar
* Dave Hansen wrote: > Thanks for sending this, Andrew! > > I think I'll probably add a slightly shorter summary: > > tl;dr: SGX page reclaim touches the page to copy its contents to > secondary storage. SGX instructions do not gracefully handle machine > checks. Despite this, the existing SG

Re: [PATCH] selftests: Improve test output grammar, code style

2025-05-15 Thread Alexandre Belloni
Hello, On 15/05/2025 19:22:49+0300, Hanne-Lotta Mäenpää wrote: > Add small grammar fixes in perf events and Real Time Clock tests' > output messages. > > Include braces around a single if statement, when there are multiple > statements in the else branch, to align with the kernel coding style. >

Re: [PATCH 9/9] CodingStyle: flip the rule about curlies

2025-05-15 Thread Jeff Johnson
On 5/13/2025 12:06 PM, Alexey Dobriyan wrote: > On Mon, May 12, 2025 at 06:56:56PM +0200, Greg KH wrote: >> On Mon, May 12, 2025 at 09:43:10AM -0700, Jeff Johnson wrote: >>> On 5/9/2025 11:18 PM, Greg KH wrote: On Fri, May 09, 2025 at 11:34:30PM +0300, Alexey Dobriyan wrote: > Require set

Re: [PATCH v4 29/38] KVM: x86/pmu: Switch host/guest PMU context at vm-exit/vm-entry

2025-05-15 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > diff --git a/arch/x86/include/asm/kvm-x86-pmu-ops.h > b/arch/x86/include/asm/kvm-x86-pmu-ops.h > index 9159bf1a4730..35f27366c277 100644 > --- a/arch/x86/include/asm/kvm-x86-pmu-ops.h > +++ b/arch/x86/include/asm/kvm-x86-pmu-ops.h > @@ -22,6 +22,8 @@ KV

[PATCH] selftests: Improve test output grammar, code style

2025-05-15 Thread Hanne-Lotta Mäenpää
Add small grammar fixes in perf events and Real Time Clock tests' output messages. Include braces around a single if statement, when there are multiple statements in the else branch, to align with the kernel coding style. Signed-off-by: Hanne-Lotta Mäenpää --- tools/testing/selftests/perf_event

Re: [PATCH v2] x86/sgx: Prevent attempts to reclaim poisoned pages

2025-05-15 Thread Dave Hansen
Thanks for sending this, Andrew! I think I'll probably add a slightly shorter summary: tl;dr: SGX page reclaim touches the page to copy its contents to secondary storage. SGX instructions do not gracefully handle machine checks. Despite this, the existing SGX code will try to reclaim pages that i

Re: [PATCH v4 1/1] x86/sgx: Enable automatic SVN updates for SGX enclaves

2025-05-15 Thread Dave Hansen
On 5/14/25 00:32, Reshetova, Elena wrote: >> This was the recent discussion I am aware we had on this matter: >> https://lkml.org/lkml/2024/2/5/1595 >> The measurements were done for older platform (skylake), but I am not >> aware of any architectural changes since that time to improve this. > And

Re: [PATCH v4 2/9] slab: add sheaf support for batching kfree_rcu() operations

2025-05-15 Thread Suren Baghdasaryan
On Thu, May 15, 2025 at 1:45 AM Vlastimil Babka wrote: > > On 5/14/25 16:01, Vlastimil Babka wrote: > > On 5/6/25 23:34, Suren Baghdasaryan wrote: > >> On Fri, Apr 25, 2025 at 1:27 AM Vlastimil Babka wrote: > >>> @@ -2631,6 +2637,24 @@ static void sheaf_flush_unused(struct kmem_cache > >>> *s, s

Re: [PATCH v4 0/9] SLUB percpu sheaves

2025-05-15 Thread Suren Baghdasaryan
On Thu, May 15, 2025 at 5:46 AM Vlastimil Babka wrote: > > On 4/25/25 10:27, Vlastimil Babka wrote: > > Hi, > > > > This is the v4 and first non-RFC series to add an opt-in percpu > > array-based caching layer to SLUB, following the LSF/MM discussions. > > Since v3 I've also made changes to achiev

LFX Mentorship: Kselftest Patch Submission - Message Clarity Improvement in futex_requeue

2025-05-15 Thread Shivam Sharma
Hi maintainers, As part of the Kselftest task for the LFX Mentorship Program, I have reviewed the futex selftest and made minor improvements to the message clarity in `futex_requeue.c`. Attached is the patch with the changes. I’ve also uploaded it to the mentorship platform as instructed. Please

Re: [linux-next:master] [rcutorture] c27d0d38f2: WARNING:at_kernel/rcu/rcutorture.c:#rcutorture_one_extend_check[rcutorture]

2025-05-15 Thread Paul E. McKenney
On Thu, May 15, 2025 at 04:45:35PM +0800, Oliver Sang wrote: > hi, Paul, > > On Wed, May 14, 2025 at 09:18:10PM -0700, Paul E. McKenney wrote: > > On Thu, May 15, 2025 at 10:30:02AM +0800, Oliver Sang wrote: > > > hi, Paul, > > > > > > On Wed, May 14, 2025 at 11:26:34AM -0700, Paul E. McKenney wr

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-15 Thread Laurent Pinchart
On Thu, May 15, 2025 at 02:54:54PM +0300, Sakari Ailus wrote: > On Thu, May 15, 2025 at 10:58:46AM +0200, Laurent Pinchart wrote: > > On Tue, May 06, 2025 at 08:24:03AM +, Sakari Ailus wrote: > > > On Mon, May 05, 2025 at 11:05:56PM +0200, André Apitzsch via B4 Relay > > > wrote: > > > > From:

Re: [PATCH v4 0/9] SLUB percpu sheaves

2025-05-15 Thread Vlastimil Babka
On 4/25/25 10:27, Vlastimil Babka wrote: > Hi, > > This is the v4 and first non-RFC series to add an opt-in percpu > array-based caching layer to SLUB, following the LSF/MM discussions. > Since v3 I've also made changes to achieve full compatibility with > slub_debug, and IRC discussions led to th

Re: [PATCH 01/12] module: Move modprobe_path and modules_disabled ctl_tables into the module subsys

2025-05-15 Thread Petr Pavlu
On 5/15/25 12:04, Joel Granados wrote: > On Thu, May 15, 2025 at 10:04:53AM +0200, Petr Pavlu wrote: >> On 5/9/25 14:54, Joel Granados wrote: >>> Move module sysctl (modprobe_path and modules_disabled) out of sysctl.c >>> and into the modules subsystem. Make the modprobe_path variable static >>> as

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-15 Thread Sakari Ailus
Hi Laurent, On Thu, May 15, 2025 at 10:58:46AM +0200, Laurent Pinchart wrote: > Hi Sakari, > > On Tue, May 06, 2025 at 08:24:03AM +, Sakari Ailus wrote: > > On Mon, May 05, 2025 at 11:05:56PM +0200, André Apitzsch via B4 Relay wrote: > > > From: André Apitzsch > > > > > > Instead rely on th

Re: [PATCH v4] vdpa/octeon_ep: Control PCI dev enabling manually

2025-05-15 Thread Michael S. Tsirkin
On Thu, May 15, 2025 at 09:14:22AM +0200, Philipp Stanner wrote: > On Thu, 2025-05-08 at 10:51 +0200, Philipp Stanner wrote: > > PCI region request functions such as pci_request_region() currently > > have > > the problem of becoming sometimes managed functions, if > > pcim_enable_device() instead

Re: [PATCH bpf-next v3 4/8] selftests/bpf: Introduce verdict programs for sockmap_redir

2025-05-15 Thread Michal Luczaj
On 5/15/25 06:29, John Fastabend wrote: > On 2025-05-15 00:15:27, Michal Luczaj wrote: >> Instead of piggybacking on test_sockmap_listen, introduce >> test_sockmap_redir especially for sockmap redirection tests. >> >> Suggested-by: Jiayuan Chen >> Acked-by: John Fastabend >> Signed-off-by: Michal

Re: [PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-15 Thread Amir Goldstein
On Thu, May 15, 2025 at 9:35 AM Chen Linxuan wrote: > > This patch add a simple functional test for the "about" file > in fusectlfs (/sys/fs/fuse/connections/ID/about). > > A simple fuse daemon is added for testing. > > Related discussion can be found in the link below. > > Link: > https://lore.k

Re: [PATCH 01/12] module: Move modprobe_path and modules_disabled ctl_tables into the module subsys

2025-05-15 Thread Joel Granados
On Thu, May 15, 2025 at 10:04:53AM +0200, Petr Pavlu wrote: > On 5/9/25 14:54, Joel Granados wrote: > > Move module sysctl (modprobe_path and modules_disabled) out of sysctl.c > > and into the modules subsystem. Make the modprobe_path variable static > > as it no longer needs to be exported. Remove

Re: [PATCH] selftests: remove duplicated function definition

2025-05-15 Thread Christian Brauner
On Wed, May 14, 2025 at 10:02:02AM +0800, Chen Linxuan wrote: > I failed to build this test on Ubuntu 24.04. Compiler complains that > function sys_open_tree has already been defined in > "../filesystems/overlayfs/wrappers.h". > > Signed-off-by: Chen Linxuan > --- This is already fixed in the ne

Re: [PATCH] selftests/mm: Deduplicate default page size test results in thuge-gen

2025-05-15 Thread Dev Jain
On 15/05/25 3:06 pm, Mark Brown wrote: The thuge-gen test program runs mmap() and shmget() tests for both every available page size and the default page size, resulting in two tests for the default size. These tests are distinct since the flags in the default case do not specify an explicit si

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-15 Thread Dev Jain
On 15/05/25 3:11 pm, Mark Brown wrote: On Thu, May 15, 2025 at 03:05:07PM +0530, Dev Jain wrote: On 15/05/25 2:27 pm, Mark Brown wrote: @@ -189,7 +214,10 @@ static void do_test(int fd, size_t size, enum test_type type, bool shared) * some previously unsupported filesystem

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-15 Thread Mark Brown
On Thu, May 15, 2025 at 03:05:07PM +0530, Dev Jain wrote: > On 15/05/25 2:27 pm, Mark Brown wrote: > > @@ -189,7 +214,10 @@ static void do_test(int fd, size_t size, enum > > test_type type, bool shared) > > * some previously unsupported filesystems, we might want to > >

[PATCH] selftests/mm: Deduplicate default page size test results in thuge-gen

2025-05-15 Thread Mark Brown
The thuge-gen test program runs mmap() and shmget() tests for both every available page size and the default page size, resulting in two tests for the default size. These tests are distinct since the flags in the default case do not specify an explicit size, add the flags to the test name that is l

Re: [PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-15 Thread Dev Jain
On 15/05/25 2:27 pm, Mark Brown wrote: The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results between runs. The gup_longterm test completely fails to follow this pattern, it runs a single test function r

Re: [PATCH] selftests/mm: Deduplicate test logging in test_mlock_lock()

2025-05-15 Thread Dev Jain
On 15/05/25 2:57 pm, Mark Brown wrote: The mlock2-tests test_mlock_lock() test reports two test results with an identical string, one reporitng if it successfully locked a block of memory and another reporting if the lock is still present after doing an unlock (following a similar pattern to o

[PATCH] selftests/mm: Deduplicate test logging in test_mlock_lock()

2025-05-15 Thread Mark Brown
The mlock2-tests test_mlock_lock() test reports two test results with an identical string, one reporitng if it successfully locked a block of memory and another reporting if the lock is still present after doing an unlock (following a similar pattern to other tests in the same program). This confus

Re: [PATCH v4 9/9] mm, slub: skip percpu sheaves for remote object freeing

2025-05-15 Thread Vlastimil Babka
On 5/7/25 12:39, Harry Yoo wrote: > On Fri, Apr 25, 2025 at 10:27:29AM +0200, Vlastimil Babka wrote: >> Since we don't control the NUMA locality of objects in percpu sheaves, >> allocations with node restrictions bypass them. Allocations without >> restrictions may however still expect to get local

Re: [PATCH net-next v5] selftests/vsock: add initial vmtest.sh for vsock

2025-05-15 Thread Stefano Garzarella
On Tue, May 13, 2025 at 11:31:13PM -0700, Bobby Eshleman wrote: This commit introduces a new vmtest.sh runner for vsock. It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, H2G, and loopback. The testing tools from tools/testing/vsock/ are reused. Currently, only vsock_test is u

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-15 Thread Laurent Pinchart
Hi Sakari, On Tue, May 06, 2025 at 08:24:03AM +, Sakari Ailus wrote: > On Mon, May 05, 2025 at 11:05:56PM +0200, André Apitzsch via B4 Relay wrote: > > From: André Apitzsch > > > > Instead rely on the rate set on the clock (using assigned-clock-rates > > etc.) > > > > Signed-off-by: André A

[PATCH] selftests/mm: Fix test result reporting in gup_longterm

2025-05-15 Thread Mark Brown
The kselftest framework uses the string logged when a test result is reported as the unique identifier for a test, using it to track test results between runs. The gup_longterm test completely fails to follow this pattern, it runs a single test function repeatedly with various parameters but each r

Re: [linux-next:master] [rcutorture] c27d0d38f2: WARNING:at_kernel/rcu/rcutorture.c:#rcutorture_one_extend_check[rcutorture]

2025-05-15 Thread Oliver Sang
hi, Paul, On Wed, May 14, 2025 at 09:18:10PM -0700, Paul E. McKenney wrote: > On Thu, May 15, 2025 at 10:30:02AM +0800, Oliver Sang wrote: > > hi, Paul, > > > > On Wed, May 14, 2025 at 11:26:34AM -0700, Paul E. McKenney wrote: > > > On Wed, May 14, 2025 at 10:47:30AM +0800, kernel test robot wrot

Re: [PATCH v4 2/9] slab: add sheaf support for batching kfree_rcu() operations

2025-05-15 Thread Vlastimil Babka
On 5/14/25 16:01, Vlastimil Babka wrote: > On 5/6/25 23:34, Suren Baghdasaryan wrote: >> On Fri, Apr 25, 2025 at 1:27 AM Vlastimil Babka wrote: >>> @@ -2631,6 +2637,24 @@ static void sheaf_flush_unused(struct kmem_cache *s, >>> struct slab_sheaf *sheaf) >>> sheaf->size = 0; >>> } >>> >>>

Re: [PATCH v4 3/9] slab: sheaf prefilling for guaranteed allocations

2025-05-15 Thread Vlastimil Babka
On 5/7/25 11:15, Harry Yoo wrote: > On Fri, Apr 25, 2025 at 10:27:23AM +0200, Vlastimil Babka wrote: >> Add functions for efficient guaranteed allocations e.g. in a critical >> section that cannot sleep, when the exact number of allocations is not >> known beforehand, but an upper limit can be calc

[PATCH] selftests/memfd: clean Makefile

2025-05-15 Thread Chen Linxuan
When writing a test for fusectl, I referred to this Makefile as a reference for creating a FUSE daemon in the selftests. While doing so, I noticed that there is a minor issue in the Makefile. The fuse_mnt.c file is not actually compiled into fuse_mnt.o, and the code setting CFLAGS for it never tak

[PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-15 Thread Chen Linxuan
This patch add a simple functional test for the "about" file in fusectlfs (/sys/fs/fuse/connections/ID/about). A simple fuse daemon is added for testing. Related discussion can be found in the link below. Link: https://lore.kernel.org/all/CAOQ4uxjKFXOKQxPpxtS6G_nR0tpw95w0GiO68UcWg_OBhmSY=q...@m

Re: [PATCH 5/6] x86/paravirt: Switch MSR access pv_ops functions to instruction interfaces

2025-05-15 Thread Xin Li
On 5/13/2025 3:24 PM, H. Peter Anvin wrote: On May 12, 2025 11:06:02 PM PDT, "Jürgen Groß" wrote: On 13.05.25 07:55, Xin Li wrote: On 5/12/2025 4:24 AM, Juergen Gross wrote: Now with the mentioned patch really attached. :-) Does it allow patching with an instruction more than 6 bytes long?

Re: [PATCH 01/12] module: Move modprobe_path and modules_disabled ctl_tables into the module subsys

2025-05-15 Thread Petr Pavlu
On 5/9/25 14:54, Joel Granados wrote: > Move module sysctl (modprobe_path and modules_disabled) out of sysctl.c > and into the modules subsystem. Make the modprobe_path variable static > as it no longer needs to be exported. Remove module.h from the includes > in sysctl as it no longer uses any mod

Re: [PATCH] vhost/net: remove zerocopy support

2025-05-15 Thread Eugenio Perez Martin
On Mon, May 12, 2025 at 5:21 PM Jon Kohler wrote: > > > > > On Apr 30, 2025, at 9:21 PM, Jon Kohler wrote: > > > > > > > >> On Apr 16, 2025, at 6:15 AM, Eugenio Perez Martin > >> wrote: > >> > >> !---| > >> CAUTION: External Email

Re: [PATCH bpf-next v4 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-15 Thread Alan Maguire
> I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. > With some upcoming changes the library is sitting at 5MiB for a parse. > Most of that memory is simply copying the BTF blob into user space. > By allowing vmlinux BTF to be mmapped read-only into user space I can > cut mem

Re: [PATCH] selftests: Add functional test for the abort file in fusectl

2025-05-15 Thread Chen Linxuan
On Thu, May 15, 2025 at 3:35 PM Chen Linxuan wrote: > This patch add a simple functional test for the "about" file Sorry for the typo, it should be "abort".

Re: [PATCH v4] vdpa/octeon_ep: Control PCI dev enabling manually

2025-05-15 Thread Philipp Stanner
On Thu, 2025-05-08 at 10:51 +0200, Philipp Stanner wrote: > PCI region request functions such as pci_request_region() currently > have > the problem of becoming sometimes managed functions, if > pcim_enable_device() instead of pci_enable_device() was called. The > PCI > subsystem wants to remove th