[PATCH] vhost: Fix ioctl # for VHOST_[GS]ET_FORK_FROM_OWNER

2025-08-18 Thread Namhyung Kim
The VHOST_[GS]ET_FEATURES_ARRAY ioctl already took 0x83 and it would result in a build error when the vhost uapi header is used for perf tool build like below. In file included from trace/beauty/ioctl.c:93: tools/perf/trace/beauty/generated/ioctl/vhost_virtio_ioctl_array.c: In function ‘ioctl

Re: [PATCH 0/6] ONE_REG interface for SBI FWFT extension

2025-08-18 Thread Anup Patel
On Mon, Aug 18, 2025 at 3:59 PM Radim Krčmář wrote: > > 2025-08-14T21:25:42+05:30, Anup Patel : > > This series adds ONE_REG interface for SBI FWFT extension implemented > > by KVM RISC-V. > > I think it would be better to ONE_REG the CSRs (medeleg/menvcfg), or at > least expose their CSR fields (

Re: [PATCH v16] exec: Fix dead-lock in de_thread with ptrace_attach

2025-08-18 Thread Kees Cook
On Mon, Aug 18, 2025 at 10:53:43PM +0200, Bernd Edlinger wrote: > This introduces signal->exec_bprm, which is used to > fix the case when at least one of the sibling threads > is traced, and therefore the trace process may dead-lock > in ptrace_attach, but de_thread will need to wait for the > trac

Re: [PATCH v5 01/14] slab: add opt-in caching layer of percpu sheaves

2025-08-18 Thread Suren Baghdasaryan
On Wed, Jul 23, 2025 at 6:35 AM Vlastimil Babka wrote: > > Specifying a non-zero value for a new struct kmem_cache_args field > sheaf_capacity will setup a caching layer of percpu arrays called > sheaves of given capacity for the created cache. > > Allocations from the cache will allocate via the

[Fixup PATCH] mm/selftests: Fix formattig in split_huge_page_test

2025-08-18 Thread Aboorva Devarajan
Removed an extra space in split_huge_page_test that was introduced by commit 4b76e221794b ("mm/selftests: fix split_huge_page_test failure on systems with 64KB page size"). Signed-off-by: Aboorva Devarajan --- tools/testing/selftests/mm/split_huge_page_test.c | 2 +- 1 file changed, 1 insertion(

[PATCH bpf-next 2/3] selftests/bpf: skip recursive functions for kprobe_multi

2025-08-18 Thread Menglong Dong
Some functions is recursive for the kprobe_multi and impact the benchmark results. So just skip them. Signed-off-by: Menglong Dong --- tools/testing/selftests/bpf/trace_helpers.c | 16 1 file changed, 16 insertions(+) diff --git a/tools/testing/selftests/bpf/trace_helpers.c b/

[PATCH bpf-next 1/3] selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c

2025-08-18 Thread Menglong Dong
We need to get all the kernel function that can be traced sometimes, so we move the get_syms() and get_addrs() in kprobe_multi_test.c to trace_helpers.c and rename it to bpf_get_ksyms() and bpf_get_addrs(). Signed-off-by: Menglong Dong --- .../bpf/prog_tests/kprobe_multi_test.c| 220 +---

Re: [PATCH 2/3] selftests/nolibc: don't pass CC to toplevel Makefile

2025-08-18 Thread Willy Tarreau
On Mon, Aug 18, 2025 at 04:07:21PM +0200, Thomas Weißschuh wrote: > On 2025-08-17 11:39:05+0200, Willy Tarreau wrote: > > On Sun, Aug 17, 2025 at 10:30:52AM +0200, Thomas Weißschuh wrote: > > > On 2025-07-21 04:56:27+0200, Willy Tarreau wrote: > > > > On Sat, Jul 19, 2025 at 05:38:28PM +0200, Thoma

[PATCH bpf-next 3/3] selftests/bpf: add benchmark testing for kprobe-multi-all

2025-08-18 Thread Menglong Dong
For now, the benchmark for kprobe-multi is single, which means there is only 1 function is hooked during testing. Add the testing "kprobe-multi-all", which will hook all the kernel functions during the benchmark. And the "kretprobe-multi-all" is added too. Signed-off-by: Menglong Dong --- tools/

[PATCH bpf-next 0/3] selftests/bpf: benchmark all symbols for kprobe-multi

2025-08-18 Thread Menglong Dong
Add the benchmark testcase "kprobe-multi-all", which will hook all the kernel functions during the testing. This series is separated out from [1]. Link: https://lore.kernel.org/bpf/20250817024607.296117-1-dong...@chinatelecom.cn/ [1] Menglong Dong (3): selftests/bpf: move get_ksyms and get_add

Re: [PATCH net] virtio_net: adjust the execution order of function `virtnet_close` during freeze

2025-08-18 Thread Junnan Wu
On Tue, 19 Aug 2025 10:48:37 +0800 Jason Wang wrote: > On Mon, Aug 18, 2025 at 11:39 PM Jakub Kicinski wrote: > > > > On Mon, 18 Aug 2025 09:15:22 +0800 Junnan Wu wrote: > > > > > Yes, you are right. The commit of this fix tag is the first commit I > > > > > found which add function `virtnet_poll_

[PATCH v2] selftests/net/socket.c: removed warnings from unused returns

2025-08-18 Thread Alex Tran
socket.c: In function ‘run_tests’: socket.c:59:25: warning: ignoring return value of ‘strerror_r’ \ declared with attribute ‘warn_unused_result’ [-Wunused-result] 59 | strerror_r(-s->expect, err_string1, ERR_STRING_SZ); | ^~ socket.c:60:25: warning:

Re: [BUG] vhost: perf tools build error after syncing vhost.h

2025-08-18 Thread Jason Wang
On Tue, Aug 19, 2025 at 4:23 AM Namhyung Kim wrote: > > Hello, > > I was sync'ing perf tools copy of kernel sources to apply recent > changes. But there's a build error when it converts vhost ioctl > commands due to a conflicting slot like below. > > In file included from trace/beauty/ioctl.c:9

Re: [PATCH net] virtio_net: adjust the execution order of function `virtnet_close` during freeze

2025-08-18 Thread Jason Wang
On Mon, Aug 18, 2025 at 11:39 PM Jakub Kicinski wrote: > > On Mon, 18 Aug 2025 09:15:22 +0800 Junnan Wu wrote: > > > > Yes, you are right. The commit of this fix tag is the first commit I > > > > found which add function `virtnet_poll_cleantx`. Actually, we are not > > > > sure whether this issue

[PATCH] selftests: net: fix memory leak in tls.c

2025-08-18 Thread Cryolitia PukNgae via B4 Relay
From: Cryolitia PukNgae To free memory and close fd after use Suggested-by: Jun Zhan Signed-off-by: Cryolitia PukNgae --- tools/testing/selftests/net/tls.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/net/tls.c b/tools/testing/selftests/net/tls.c index d8

Re: [PATCH] selftests net/socket.c: removed warnings from unused returns

2025-08-18 Thread Alex Tran
Thanks for the review! I'll send the patch v2 with the adjustments shortly. On Mon, Aug 18, 2025 at 5:35 PM Jakub Kicinski wrote: > > On Thu, 14 Aug 2025 23:06:31 -0700 Alex Tran wrote: > > + char *err_message1; > > + char *err_message2; > > nit, how about: > > const char *msg1, *

Re: [PATCH v6 4/9] scsi: Always define blogic_pci_tbl structure

2025-08-18 Thread Martin K. Petersen
Alexey, > The blogic_pci_tbl structure is used by the MODULE_DEVICE_TABLE macro. > There is no longer a need to protect it with the MODULE condition, > since this no longer causes the compiler to warn about an unused > variable. > > To avoid warnings when -Wunused-const-variable option is used,

Re: [PATCH v4 5/7] selftests/mm: fix child process exit codes in ksm_functional_tests

2025-08-18 Thread Aboorva Devarajan
On Sat, 2025-08-16 at 14:43 +, Wei Yang wrote: Hi Wei, > On Sat, Aug 16, 2025 at 09:31:11AM +0530, Aboorva Devarajan wrote: > > In ksm_functional_tests, test_child_ksm() returned negative values to > > indicate errors.  However, when passed to exit(), these were interpreted > > as large unsig

Re: [PATCH] KVM: loongarch: selftests: Remove common tests built by TEST_GEN_PROGS_COMMON

2025-08-18 Thread Bibo Mao
On 2025/8/19 上午8:30, Andrew Jones wrote: On Mon, Aug 11, 2025 at 06:49:07PM +0800, Bibo Mao wrote: Hi Dong, Thanks for you patch. On 2025/8/11 下午4:24, Dong Yang wrote: Remove the common KVM test cases already added to TEST_GEN_PROGS_COMMON as following: demand_paging_test

Re: [PATCH] selftests net/socket.c: removed warnings from unused returns

2025-08-18 Thread Jakub Kicinski
On Thu, 14 Aug 2025 23:06:31 -0700 Alex Tran wrote: > + char *err_message1; > + char *err_message2; nit, how about: const char *msg1, *msg2; ? And then please wrap the lines at 80 chars. > int i, err; > > err = 0; > @@ -56,13 +58,13 @@ static int run_tests(void) >

Re: [PATCH] KVM: loongarch: selftests: Remove common tests built by TEST_GEN_PROGS_COMMON

2025-08-18 Thread Andrew Jones
On Mon, Aug 11, 2025 at 06:49:07PM +0800, Bibo Mao wrote: > Hi Dong, > > Thanks for you patch. > > On 2025/8/11 下午4:24, Dong Yang wrote: > > Remove the common KVM test cases already added to TEST_GEN_PROGS_COMMON > > as following: > > > > demand_paging_test > > dirty_log_test > > g

Re: [PATCH v2 0/3] KVM: riscv: selftests: Enable supported test cases

2025-08-18 Thread Andrew Jones
On Thu, Aug 07, 2025 at 10:59:27PM +0800, dayss1...@gmail.com wrote: > From: Dong Yang > > Add supported KVM test cases and fix the compilation dependencies. > --- > Changes in v2: > - Delete some repeat KVM test cases on riscv > - Add missing headers to fix the build for new RISC-V KVM selftests

Re: [PATCH v2 1/3] KVM: riscv: selftests: Add common supported test cases

2025-08-18 Thread Andrew Jones
On Thu, Aug 07, 2025 at 10:59:28PM +0800, dayss1...@gmail.com wrote: > From: Quan Zhou > > Some common KVM test cases are supported on riscv now as following: > > access_tracking_perf_test > dirty_log_perf_test > memslot_modification_stress_test > memslot_perf_test > mmu_stre

Re: [PATCH V2 02/20] nvdimm/label: Prep patch to accommodate cxl lsa 2.1 support

2025-08-18 Thread Dave Jiang
On 7/30/25 5:11 AM, Neeraj Kumar wrote: > LSA 2.1 format introduces region label, which can also reside > into LSA along with only namespace label as per v1.1 and v1.2 > > As both namespace and region labels are of same size of 256 bytes. > Thus renamed "struct nd_namespace_label" to "struct nd

Re: [PATCH v2 3/3] KVM: riscv: selftests: Add missing headers for new testcases

2025-08-18 Thread Andrew Jones
On Thu, Aug 07, 2025 at 10:59:30PM +0800, dayss1...@gmail.com wrote: > From: Dong Yang > > Add missing headers to fix the build for new RISC-V KVM selftests. > > Signed-off-by: Quan Zhou > Signed-off-by: Dong Yang > --- > tools/testing/selftests/kvm/include/riscv/processor.h | 2 ++ > 1 file

[PATCH 1/4] dt-bindings: remoteproc: imx_rproc: Add "rpmsg" subnode support

2025-08-18 Thread Shenwei Wang
Remote processors may announce multiple devices (e.g., I2C, GPIO) over an RPMSG channel. These devices may require corresponding device tree nodes, especially when acting as providers, to supply phandles for their consumers. Define an RPMSG node to work as a container for a group of RPMSG channels

[PATCH v16] exec: Fix dead-lock in de_thread with ptrace_attach

2025-08-18 Thread Bernd Edlinger
This introduces signal->exec_bprm, which is used to fix the case when at least one of the sibling threads is traced, and therefore the trace process may dead-lock in ptrace_attach, but de_thread will need to wait for the tracer to continue execution. The problem happens when a tracer tries to ptra

Re: [PATCH v2 2/3] KVM: riscv: selftests: Use the existing RISCV_FENCE macro in `rseq-riscv.h`

2025-08-18 Thread Andrew Jones
On Thu, Aug 07, 2025 at 10:59:29PM +0800, dayss1...@gmail.com wrote: > From: Quan Zhou > > To avoid redefinition issues with RISCV_FENCE, > directly reference the existing macro in `rseq-riscv.h`. > > Signed-off-by: Quan Zhou > Signed-off-by: Dong Yang > --- > tools/testing/selftests/rseq/rs

[PATCH 2/4] remoteproc: imx_rproc: Populate devices under "rpmsg" subnode

2025-08-18 Thread Shenwei Wang
Register the RPMsg channel driver and populate remote devices defined under the "rpmsg" subnode upon receiving their notification messages. The following illustrates the expected DTS layout structure: cm33: remoteproc-cm33 { compatible = "fsl,imx8ulp-cm33";

[PATCH 4/4] arm64: dts: imx8ulp: Add rpmsg node under imx_rproc

2025-08-18 Thread Shenwei Wang
Add the RPMSG bus node along with its GPIO subnodes to the device tree. Enable remote device communication and GPIO control via RPMSG on the i.MX platform. Signed-off-by: Shenwei Wang --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 27 ++ 1 file changed, 27 insertions(+) d

[PATCH 3/4] gpio: imx-rpmsg: add imx-rpmsg GPIO driver

2025-08-18 Thread Shenwei Wang
On i.MX SoCs, the system may include two processors: - An MCU running an RTOS - An MPU running Linux These processors communicate via the RPMSG protocol. The driver implements the standard GPIO interface, allowing the Linux side to control GPIO controllers which reside in the remot

[PATCH 0/4] Enable Remote GPIO over RPMSG on i.MX Platform

2025-08-18 Thread Shenwei Wang
Support the remote devices on the remote processor via the RPMSG bus on i.MX platform. The expected DTS layout structure is following: cm33: remoteproc-cm33 { compatible = "fsl,imx8ulp-cm33"; rpmsg { rpmsg-io-channel {

Re: [BUG] vhost: perf tools build error after syncing vhost.h

2025-08-18 Thread Arnaldo Carvalho de Melo
On Mon, Aug 18, 2025 at 01:23:10PM -0700, Namhyung Kim wrote: > Hello, > > I was sync'ing perf tools copy of kernel sources to apply recent > changes. But there's a build error when it converts vhost ioctl > commands due to a conflicting slot like below. I haven't looked at this specific case in

[BUG] vhost: perf tools build error after syncing vhost.h

2025-08-18 Thread Namhyung Kim
Hello, I was sync'ing perf tools copy of kernel sources to apply recent changes. But there's a build error when it converts vhost ioctl commands due to a conflicting slot like below. In file included from trace/beauty/ioctl.c:93: tools/perf/trace/beauty/generated/ioctl/vhost_virtio_ioctl_arr

[PATCH 3/3] kselftest/filelock: Add a .gitignore file

2025-08-18 Thread Mark Brown
Tell git to ignore the generated binary for the test. Signed-off-by: Mark Brown --- tools/testing/selftests/filelock/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/filelock/.gitignore b/tools/testing/selftests/filelock/.gitignore new file mode 100644 inde

[PATCH 0/3] selftests/filelock: Make output more kselftestish

2025-08-18 Thread Mark Brown
This series makes the output from the ofdlocks test a bit easier for tooling to work with, and also ignores the generated file while we're here. Signed-off-by: Mark Brown --- Mark Brown (3): kselftest/filelock: Use ksft_perror() kselftest/filelock: Report each test in oftlocks separat

[PATCH 2/3] kselftest/filelock: Report each test in oftlocks separately

2025-08-18 Thread Mark Brown
The filelock test checks four different things but only reports an overall status, convert to use ksft_test_result() for these individual tests. Each test depends on the previous ones so we still bail out if any of them fail but we get a bit more information from UIs parsing the results. Signed-of

[PATCH 1/3] kselftest/filelock: Use ksft_perror()

2025-08-18 Thread Mark Brown
The ofdlocks test reports some errors via perror() which does not produce KTAP output, convert to ksft_perror() which does. Signed-off-by: Mark Brown --- tools/testing/selftests/filelock/ofdlocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/fi

[PATCH v5 5/5] selftests/mm: check after-split folio orders in split_huge_page_test.

2025-08-18 Thread Zi Yan
Instead of just checking the existence of PMD folios before and after folio split tests, use check_folio_orders() to check after-split folio orders. The split ranges in split_thp_in_pagecache_to_order_at() are changed to [addr, addr + pagesize) for every pmd_pagesize. It prevents folios within the

[PATCH v5 4/5] selftests/mm: add check_after_split_folio_orders() helper.

2025-08-18 Thread Zi Yan
The helper gathers a folio order statistics of folios within a virtual address range and checks it against a given order list. It aims to provide a more precise folio order check instead of just checking the existence of PMD folios. The helper will be used the upcoming commit. Signed-off-by: Zi Y

[PATCH v5 3/5] selftests/mm: reimplement is_backed_by_thp() with more precise check

2025-08-18 Thread Zi Yan
and rename it to is_backed_by_folio(). is_backed_by_folio() checks if the given vaddr is backed a folio with a given order. It does so by: 1. getting the pfn of the vaddr; 2. checking kpageflags of the pfn; if order is greater than 0: 3. checking kpageflags of the head pfn; 4. checking kpageflags

[PATCH v5 2/5] selftests/mm: mark all functions static in split_huge_page_test.c

2025-08-18 Thread Zi Yan
All functions are only used within the file. Signed-off-by: Zi Yan Reviewed-by: Wei Yang Reviewed-by: wang lian Acked-by: David Hildenbrand --- .../selftests/mm/split_huge_page_test.c | 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/testing

[PATCH v5 1/5] mm/huge_memory: add new_order and offset to split_huge_pages*() pr_debug.

2025-08-18 Thread Zi Yan
They are useful information for debugging split huge page tests. Signed-off-by: Zi Yan Reviewed-by: Wei Yang Reviewed-by: Donet Tom Reviewed-by: wang lian Reviewed-by: Baolin Wang Reviewed-by: Barry Song Acked-by: David Hildenbrand --- mm/huge_memory.c | 8 1 file changed, 4 inser

[PATCH v5 0/5] Better split_huge_page_test result check

2025-08-18 Thread Zi Yan
This patchset uses kpageflags to get after-split folio orders for a better split_huge_page_test result check[1]. The added gather_after_split_folio_orders() scans through a VPN range and collects the numbers of folios at different orders. check_after_split_folio_orders() compares the result of gath

[PATCH 2/2] vsock/virtio: Fix message iterator handling on transmit path

2025-08-18 Thread Will Deacon
Commit 6693731487a8 ("vsock/virtio: Allocate nonlinear SKBs for handling large transmit buffers") converted the virtio vsock transmit path to utilise nonlinear SKBs when handling large buffers. As part of this change, virtio_transport_fill_skb() was updated to call skb_copy_datagram_from_iter() ins

[PATCH 1/2] net: Introduce skb_copy_datagram_from_iter_full()

2025-08-18 Thread Will Deacon
In a similar manner to copy_from_iter()/copy_from_iter_full(), introduce skb_copy_datagram_from_iter_full() which reverts the iterator to its initial state when returning an error. A subsequent fix for a vsock regression will make use of this new function. Cc: Paolo Abeni Cc: Christian Brauner

[PATCH 0/2] Fix vsock error-handling regression introduced in v6.17-rc1

2025-08-18 Thread Will Deacon
Hi all, Here are a couple of patches fixing the vsock error-handling regression found by syzbot [1] that I introduced during the recent merge window. Cheers, Will [1] https://lore.kernel.org/all/689a3d92.050a0220.7f033.00ff@google.com/ Cc: Alexander Viro Cc: Christian Brauner Cc: "David

Re: [PATCH 1/7] dt-bindings: i2c: qcom-cci: Document msm8953 compatible

2025-08-18 Thread Luca Weiss
On 18-08-2025 5:37 p.m., Rob Herring wrote: On Sun, Aug 10, 2025 at 05:37:52PM +0200, Luca Weiss wrote: Add the msm8953 CCI device string compatible. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/D

Re: [PATCH 3/7] dt-bindings: eeprom: at24: Add compatible for Belling BL24S64

2025-08-18 Thread Luca Weiss
Hi Rob, On 18-08-2025 5:51 p.m., Rob Herring wrote: On Sun, Aug 10, 2025 at 05:37:54PM +0200, Luca Weiss wrote: Add the compatible for an 64Kb EEPROM from Belling. It is generally not required to add a compatible here assuming "atmel,24c64" is enough to identify the specific device (i.e. read

Re: [PATCH v7 2/2] selftests/bpf: Force -O2 for USDT selftests to cover SIB handling logic

2025-08-18 Thread Yonghong Song
On 8/17/25 6:43 AM, 赵佳炜 wrote: Hi, Yonghong. I've already filed an issue[1] in GCC community. Accroding to the discussion, it's not a gcc bug but may be a systemtap bug. I don't know how to report this bug to systemtap, but I found that the libbpf/usdt have the same problem. I've filed

[PATCH] KVM: arm64: selftests: Sync ID_AA64MMFR3_EL1 in set_id_regs

2025-08-18 Thread Mark Brown
When we added coverage for ID_AA64MMFR3_EL1 we didn't add it to the list of registers we read in the guest, do so. Fixes: 0b593ef12afc ("KVM: arm64: selftests: Catch up set_id_regs with the kernel") Signed-off-by: Mark Brown --- tools/testing/selftests/kvm/arm64/set_id_regs.c | 1 + 1 file chan

[PATCH v7 8/8] kbuild: vmlinux.unstripped should always depend on .vmlinux.export.o

2025-08-18 Thread Alexey Gladkov
Since .vmlinux.export.c is used to add generated by modpost modaliases for builtin modules the .vmlinux.export.o is no longer optional and should always be created. The generation of this file is not dependent on CONFIG_MODULES. Signed-off-by: Alexey Gladkov --- scripts/Makefile.vmlinux | 9 ++--

[PATCH v7 6/8] modpost: Add modname to mod_device_table alias

2025-08-18 Thread Alexey Gladkov
At this point, if a symbol is compiled as part of the kernel, information about which module the symbol belongs to is lost. To save this it is possible to add the module name to the alias name. It's not very pretty, but it's possible for now. Cc: Miguel Ojeda Cc: Andreas Hindborg Cc: Danilo Kru

[PATCH v7 7/8] modpost: Create modalias for builtin modules

2025-08-18 Thread Alexey Gladkov
For some modules, modalias is generated using the modpost utility and the section is added to the module file. When a module is added inside vmlinux, modpost does not generate modalias for such modules and the information is lost. As a result kmod (which uses modules.builtin.modinfo in userspace)

[PATCH v7 5/8] scsi: Always define blogic_pci_tbl structure

2025-08-18 Thread Alexey Gladkov
The blogic_pci_tbl structure is used by the MODULE_DEVICE_TABLE macro. There is no longer a need to protect it with the MODULE condition, since this no longer causes the compiler to warn about an unused variable. To avoid warnings when -Wunused-const-variable option is used, mark it as __maybe_unu

[PATCH v7 4/8] kbuild: extract modules.builtin.modinfo from vmlinux.unstripped

2025-08-18 Thread Alexey Gladkov
From: Masahiro Yamada Currently, we assume all the data for modules.builtin.modinfo are available in vmlinux.o. This makes it impossible for modpost, which is invoked after vmlinux.o, to add additional module info. This commit moves the modules.builtin.modinfo rule after modpost. Signed-off-by

[PATCH v7 3/8] kbuild: keep .modinfo section in vmlinux.unstripped

2025-08-18 Thread Alexey Gladkov
From: Masahiro Yamada Keep the .modinfo section during linking, but strip it from the final vmlinux. Adjust scripts/mksysmap to exclude modinfo symbols from kallsyms. This change will allow the next commit to extract the .modinfo section from the vmlinux.unstripped intermediate. Signed-off-by:

[PATCH v7 1/8] s390: vmlinux.lds.S: Reorder sections

2025-08-18 Thread Alexey Gladkov
In the upcoming changes, the ELF_DETAILS macro will be extended with the ".modinfo" section, which will cause an error: >> s390x-linux-ld: .tmp_vmlinux1: warning: allocated section `.modinfo' not in >> segment >> s390x-linux-ld: .tmp_vmlinux2: warning: allocated section `.modinfo' not in >> segm

[PATCH v7 2/8] kbuild: always create intermediate vmlinux.unstripped

2025-08-18 Thread Alexey Gladkov
From: Masahiro Yamada Generate the intermediate vmlinux.unstripped regardless of CONFIG_ARCH_VMLINUX_NEEDS_RELOCS. If CONFIG_ARCH_VMLINUX_NEEDS_RELOCS is unset, vmlinux.unstripped and vmlinux are identiacal. This simplifies the build rule, and allows to strip more sections by adding them to rem

[PATCH v7 0/8] Add generated modalias to modules.builtin.modinfo

2025-08-18 Thread Alexey Gladkov
The modules.builtin.modinfo file is used by userspace (kmod to be specific) to get information about builtin modules. Among other information about the module, information about module aliases is stored. This is very important to determine that a particular modalias will be handled by a module that

Re: [PATCH] selftests/futex: Fix some futex_numa_mpol subtests

2025-08-18 Thread Waiman Long
On 8/10/25 6:27 PM, Waiman Long wrote: The "Memory out of range" subtest of futex_numa_mpol assumes that memory access outside of the mmap'ed area is invalid. That may not be the case depending on the actual memory layout of the test application. When that subtest was run on an x86-64 system with

Re: [PATCH 3/7] dt-bindings: eeprom: at24: Add compatible for Belling BL24S64

2025-08-18 Thread Rob Herring
On Sun, Aug 10, 2025 at 05:37:54PM +0200, Luca Weiss wrote: > Add the compatible for an 64Kb EEPROM from Belling. It is generally not required to add a compatible here assuming "atmel,24c64" is enough to identify the specific device (i.e. read the device's ID registers). If it is not sufficient,

Re: [PATCH net] virtio_net: adjust the execution order of function `virtnet_close` during freeze

2025-08-18 Thread Jakub Kicinski
On Mon, 18 Aug 2025 09:15:22 +0800 Junnan Wu wrote: > > > Yes, you are right. The commit of this fix tag is the first commit I > > > found which add function `virtnet_poll_cleantx`. Actually, we are not > > > sure whether this issue appears after this commit. > > > > > > In our side, this issue is

Re: [PATCH 1/7] dt-bindings: i2c: qcom-cci: Document msm8953 compatible

2025-08-18 Thread Rob Herring
On Sun, Aug 10, 2025 at 05:37:52PM +0200, Luca Weiss wrote: > Add the msm8953 CCI device string compatible. > > Signed-off-by: Luca Weiss > --- > Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/

Re: [PATCH] KVM: loongarch: selftests: Remove common tests built by TEST_GEN_PROGS_COMMON

2025-08-18 Thread Dong Yang
Hi Bibo, Thanks for your review and for catching this mistake. On Mon, Aug 11, 2025 at 06:49:07PM +0800, Bibo Mao wrote: > Hi Dong, > > Thanks for you patch. > > On 2025/8/11 下午4:24, Dong Yang wrote: > > Remove the common KVM test cases already added to TEST_GEN_PROGS_COMMON > > as following:

Re: [PATCH v4 3/5] selftests/mm: reimplement is_backed_by_thp() with more precise check

2025-08-18 Thread Zi Yan
On 18 Aug 2025, at 4:33, David Hildenbrand wrote: > On 15.08.25 04:39, Zi Yan wrote: >> and rename it to is_backed_by_folio(). >> >> is_backed_by_folio() checks if the given vaddr is backed a folio with >> a given order. It does so by: >> 1. getting the pfn of the vaddr; >> 2. checking kpageflags

Re: [syzbot] [kvm?] [net?] [virt?] WARNING in virtio_transport_send_pkt_info

2025-08-18 Thread Will Deacon
On Sat, Aug 16, 2025 at 06:34:29AM -0400, Michael S. Tsirkin wrote: > On Fri, Aug 15, 2025 at 04:48:00PM +0100, Will Deacon wrote: > > On Fri, Aug 15, 2025 at 01:00:59PM +0100, Will Deacon wrote: > > > On Fri, Aug 15, 2025 at 06:44:47AM -0400, Michael S. Tsirkin wrote: > > > > On Fri, Aug 15, 2025

Re: [PATCH 2/3] selftests/nolibc: don't pass CC to toplevel Makefile

2025-08-18 Thread Thomas Weißschuh
On 2025-08-17 11:39:05+0200, Willy Tarreau wrote: > On Sun, Aug 17, 2025 at 10:30:52AM +0200, Thomas Weißschuh wrote: > > On 2025-07-21 04:56:27+0200, Willy Tarreau wrote: > > > On Sat, Jul 19, 2025 at 05:38:28PM +0200, Thomas Weißschuh wrote: (...) > > > I think I'd be fine with this, but then w

Re: [PATCH] virtio_fs: fix the hash table using in virtio_fs_enqueue_req()

2025-08-18 Thread Miklos Szeredi
On Thu, 3 Jul 2025 at 08:48, lirongqing wrote: > > From: Li RongQing > > The original commit be2ff42c5d6e ("fuse: Use hash table to link > processing request") converted fuse_pqueue->processing to a hash table, > but virtio_fs_enqueue_req() was not updated to use it correctly. > So use fuse_pqueu

Re: [PATCH V5 4/9] virtio: introduce vring_mapping_token

2025-08-18 Thread Michael S. Tsirkin
On Mon, Aug 18, 2025 at 11:09:44AM +0200, Eugenio Perez Martin wrote: > On Thu, Aug 14, 2025 at 12:42 PM Michael S. Tsirkin wrote: > > > > On Thu, Aug 14, 2025 at 11:36:22AM +0800, Jason Wang wrote: > > > > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > > > > > index addbc209275a

[PATCH] sud_test.c: Spelling correction 'usigned' changed to 'unsigned'

2025-08-18 Thread Sidharth Seela
Signed-off-by: Sidharth Seela diff --git a/tools/testing/selftests/syscall_user_dispatch/sud_test.c b/tools/testing/selftests/syscall_user_dispatch/sud_test.c index 2eb2c06303f2..6b846f5c1fa6 100644 --- a/tools/testing/selftests/syscall_user_dispatch/sud_test.c +++ b/tools/testing/selftests/sysca

[PATCH v3] virtio-vdpa: Drop redundant conversion to bool

2025-08-18 Thread Xichao Zhao
The result of integer comparison already evaluates to bool. No need for explicit conversion. Signed-off-by: Xichao Zhao --- v2: Correct the errors in version v1 and modified the commit message and subject. v3: Change !(max_num == min_num) to (max_num != min_num). --- drivers/virtio/virtio_v

Re: [PATCH 0/6] ONE_REG interface for SBI FWFT extension

2025-08-18 Thread Radim Krčmář
2025-08-14T21:25:42+05:30, Anup Patel : > This series adds ONE_REG interface for SBI FWFT extension implemented > by KVM RISC-V. I think it would be better to ONE_REG the CSRs (medeleg/menvcfg), or at least expose their CSR fields (each sensible medeleg bit, PMM, ...) through kvm_riscv_config, tha

Re: [PATCH v2] virtio-vdpa: Drop redundant conversion to bool

2025-08-18 Thread 赵西超
> On Mon, Aug 18, 2025 at 12:01 PM Xichao Zhao wrote: >> The result of integer comparison already evaluates to bool. No need for >> explicit conversion. >> >> Signed-off-by: Xichao Zhao >> --- >> drivers/virtio/virtio_vdpa.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff

Re: [PATCH v2] virtio-vdpa: Drop redundant conversion to bool

2025-08-18 Thread Eugenio Perez Martin
On Mon, Aug 18, 2025 at 12:01 PM Xichao Zhao wrote: > > The result of integer comparison already evaluates to bool. No need for > explicit conversion. > > Signed-off-by: Xichao Zhao > --- > drivers/virtio/virtio_vdpa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driv

Re: [PATCH v5 01/14] slab: add opt-in caching layer of percpu sheaves

2025-08-18 Thread Harry Yoo
On Wed, Jul 23, 2025 at 03:34:34PM +0200, Vlastimil Babka wrote: > Specifying a non-zero value for a new struct kmem_cache_args field > sheaf_capacity will setup a caching layer of percpu arrays called > sheaves of given capacity for the created cache. > > Allocations from the cache will allocate

[PATCH v2] virtio-vdpa: Drop redundant conversion to bool

2025-08-18 Thread Xichao Zhao
The result of integer comparison already evaluates to bool. No need for explicit conversion. Signed-off-by: Xichao Zhao --- drivers/virtio/virtio_vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_vdpa.c b/drivers/virtio/virtio_vdpa.c index 657b07a60

Re: [PATCH 5/6] selftests: kvm: s390: fixed spelling mistake in output

2025-08-18 Thread David Hildenbrand
On 15.08.25 02:18, Soham Metha wrote: found/fixed the following typo - avaialable -> available in `tools/testing/selftests/kvm/s390/cpumodel_subfuncs_test.c` Signed-off-by: Soham Metha --- Reviewed-by: David Hildenbrand -- Cheers David / dhildenb

Re: [PATCH] virtio-vdpa: simplify the code by removing unnecessary variables

2025-08-18 Thread 赵西超
> Hi all, > > Apologies for the oversight; this patch contains issues. I will send a > v2 version of the patch to correct them. > > Best regards, > > Xichao Zhao > >> The may_reduce_num is used only once and has a redundant conversion to bool. >> Therefore, remove it. >> >> Signed-off-by: Xichao Z

Re: [PATCH v2 13/20] x86/mm: enable page table sharing

2025-08-18 Thread Yongting Lin
Thank you! Anthony. Yep, I checked the comments in arch/mm/x86/fault.c file which says as your advices in previous email. I changed my code in kernel 5.5 as below: if (unlikely(is_shared_vma) && ((fault & VM_FAULT_RETRY) && (flags & FAULT_FLAG_ALLOW_RETRY) || fault_signal_pend

[PATCH] virtio-vdpa: simplify the code by removing unnecessary variables

2025-08-18 Thread Xichao Zhao
The may_reduce_num is used only once and has a redundant conversion to bool. Therefore, remove it. Signed-off-by: Xichao Zhao --- drivers/virtio/virtio_vdpa.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/virtio/virtio_vdpa.c b/drivers/virtio/virtio_vdpa.c index

Re: [PATCH V5 4/9] virtio: introduce vring_mapping_token

2025-08-18 Thread Eugenio Perez Martin
On Thu, Aug 14, 2025 at 12:42 PM Michael S. Tsirkin wrote: > > On Thu, Aug 14, 2025 at 11:36:22AM +0800, Jason Wang wrote: > > > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > > > > index addbc209275a..37029df94aaf 100644 > > > > --- a/include/linux/virtio.h > > > > +++ b/include

Re: [PATCH v6 5/9] pinctrl: meson: Fix typo in device table macro

2025-08-18 Thread Linus Walleij
On Thu, Aug 14, 2025 at 3:08 PM Alexey Gladkov wrote: > The typo when using the MODULE_DEVICE_TABLE macro was not noticeable > because the macro was defined only if the module was built as a separate > module. > > Cc: Xianwei Zhao > Cc: Linus Walleij > Cc: Neil Armstrong > Cc: Kevin Hilman >

[RFC v3 7/7] vduse: bump version number

2025-08-18 Thread Eugenio Pérez
Finalize the series by advertising VDUSE API v1 support to userspace. Now that all required infrastructure for v1 (ASIDs, VQ groups, update_iotlb_v2) is in place, VDUSE devices can opt in to the new features. Signed-off-by: Eugenio Pérez --- drivers/vdpa/vdpa_user/vduse_dev.c | 4 ++-- 1 file c

[RFC v3 6/7] vduse: add vq group asid support

2025-08-18 Thread Eugenio Pérez
Add support for assigning Address Space Identifiers (ASIDs) to each VQ group. This enables mapping each group into a distinct memory space. Now that the driver can change ASID in the middle of operation, the domain that each vq address point is also protected by domain_lock. Signed-off-by: Eugen

[RFC v3 5/7] vduse: create vduse_as to make it an array

2025-08-18 Thread Eugenio Pérez
This is a first step so we can make more than one different address spaces. No change on the colde flow intended. Signed-off-by: Eugenio Pérez --- drivers/vdpa/vdpa_user/vduse_dev.c | 115 +++-- 1 file changed, 59 insertions(+), 56 deletions(-) diff --git a/drivers/vdpa

[RFC v3 1/7] vduse: add v1 API definition

2025-08-18 Thread Eugenio Pérez
This allows the kernel to detect whether the userspace VDUSE device supports the VQ group and ASID features. VDUSE devices that don't set the V1 API will not receive the new messages, and vdpa device will be created with only one vq group and asid. The next patches implement the new feature incre

[RFC v3 4/7] vduse: return internal vq group struct as map token

2025-08-18 Thread Eugenio Pérez
Return the internal struct that represents the vq group as virtqueue map token, instead of the device. This allows the map functions to access the information per group. At this moment all the virtqueues share the same vq group, that only can point to ASID 0. This change prepares the infrastruct

[RFC v3 3/7] vdpa: change map_token from void * to an empty struct

2025-08-18 Thread Eugenio Pérez
Proposal to make it type safe, never casting to void, but allow the backend to use whatever struct it needs. Next patches will move the token from a domain to a custom struct. Signed-off-by: Eugenio Pérez --- drivers/vdpa/vdpa_user/iova_domain.h | 1 + drivers/vdpa/vdpa_user/vduse_dev.c | 60

[RFC v3 0/7] Add multiple address spaces support to VDUSE

2025-08-18 Thread Eugenio Pérez
When used by vhost-vDPA bus driver for VM, the control virtqueue should be shadowed via userspace VMM (QEMU) instead of being assigned directly to Guest. This is because QEMU needs to know the device state in order to start and stop device correctly (e.g for Live Migration). This requies to isolat

[RFC v3 2/7] vduse: add vq group support

2025-08-18 Thread Eugenio Pérez
This allows sepparate the different virtqueues in groups that shares the same address space. Asking the VDUSE device for the groups of the vq at the beginning as they're needed for the DMA API. Allocating 3 vq groups as net is the device that need the most groups: * Dataplane (guest passthrough)

Re: [PATCH v4 3/5] selftests/mm: reimplement is_backed_by_thp() with more precise check

2025-08-18 Thread David Hildenbrand
On 15.08.25 04:39, Zi Yan wrote: and rename it to is_backed_by_folio(). is_backed_by_folio() checks if the given vaddr is backed a folio with a given order. It does so by: 1. getting the pfn of the vaddr; 2. checking kpageflags of the pfn; if order is greater than 0: 3. checking kpageflags of t

Re: [PATCH v2 4/8] selftests/mm: Add -Wunused family of flags

2025-08-18 Thread Kevin Brodsky
On 31/07/2025 18:01, Muhammad Usama Anjum wrote: > [...] > > diff --git a/tools/testing/selftests/mm/Makefile > b/tools/testing/selftests/mm/Makefile > index 23d4bf6215465..d75f1effcb791 100644 > --- a/tools/testing/selftests/mm/Makefile > +++ b/tools/testing/selftests/mm/Makefile > @@ -20,7 +20,6

Re: [PATCH v2 2/8] selftests/mm: protection_keys: Fix dead code

2025-08-18 Thread Kevin Brodsky
+Dave Hansen On 31/07/2025 18:01, Muhammad Usama Anjum wrote: > The while loop doesn't execute and following warning gets generated: > > protection_keys.c:561:15: warning: code will never be executed > [-Wunreachable-code] > int rpkey = alloc_random_pkey(); > > Let's enable the whi

Re: [PATCH v2 1/8] selftests/mm: Add -Wunreachable-code and fix warnings

2025-08-18 Thread Kevin Brodsky
On 31/07/2025 18:01, Muhammad Usama Anjum wrote: > [...] > > diff --git a/tools/testing/selftests/mm/pkey_sighandler_tests.c > b/tools/testing/selftests/mm/pkey_sighandler_tests.c > index b5e076a564c95..302fef54049c8 100644 > --- a/tools/testing/selftests/mm/pkey_sighandler_tests.c > +++ b/tools/t

[syzbot] [x86?] BUG: soft lockup in xfrm_timer_handler

2025-08-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:8742b2d8935f Merge tag 'pull-fixes' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=109d2af058 kernel config: https://syzkaller.appspot.com/x/.config?x=412ee2f8b704a5e6 das

Re: [PATCH v7 1/1] selftests/mm/uffd: Refactor non-composite global vars into struct

2025-08-18 Thread David Hildenbrand
On 17.08.25 08:52, Ujwal Kundur wrote: Refactor macros and non-composite global variable definitions into a struct that is defined at the start of a test and is passed around instead of relying on global vars. Signed-off-by: Ujwal Kundur Acked-by: Peter Xu --- Previous versions and discussion

Re: [PATCH v4 2/5] selftests/mm: mark all functions static in split_huge_page_test.c

2025-08-18 Thread David Hildenbrand
On 15.08.25 04:39, Zi Yan wrote: All functions are only used within the file. Signed-off-by: Zi Yan --- Acked-by: David Hildenbrand -- Cheers David / dhildenb

[PATCH bpf-next v11 0/3] libbpf: fix USDT SIB argument handling causing unrecognized register error

2025-08-18 Thread Jiawei Zhao
When using GCC on x86-64 to compile an usdt prog with -O1 or higher optimization, the compiler will generate SIB addressing mode for global array and PC-relative addressing mode for global variable, e.g. "1@-96(%rbp,%rax,8)" and "-1@4+t1(%rip)". The current USDT implementation in libbpf cannot par

[PATCH bpf-next v11 3/3] selftests/bpf: make usdt_o1 reliably generate SIB USDT arg spec

2025-08-18 Thread Jiawei Zhao
usdt_o1 is intended to exercise the SIB (Scale-Index-Base) argument handling in libbpf's USDT path. With GCC 13 this reliably produced a SIB-form argument (e.g. 8@(%rdx,%rax,8)), but with newer GCC (e.g. 15) the compiler frequently optimizes the probe argument into a plain register (e.g. 8@%rax) or

  1   2   >