[GIT PULL] virtio, vhost: fixes

2025-04-22 Thread Michael S. Tsirkin
The following changes since commit 8ffd015db85fea3e15a77027fda6c02ced4d2444: Linux 6.15-rc2 (2025-04-13 11:54:49 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to 58465d86071b61415e25fb0

Re: [PATCH v5] remoteproc: Add device awake calls in rproc boot and shutdown path

2025-04-22 Thread Souradeep Chowdhury
Gentle Reminder On 4/8/2025 4:13 PM, Souradeep Chowdhury wrote: Add device awake calls in case of rproc boot and rproc shutdown path. Currently, device awake call is only present in the recovery path of remoteproc. If an user stops and starts rproc by using the sysfs interface, then on pm suspen

[syzbot] [kernel?] BUG: soft lockup in sys_bpf

2025-04-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:82303a059aab selftests/bpf: Mitigate sockmap_ktls disconne.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=17564c7058 kernel config: https://syzkaller.appspot.com/x/.config?x=2a31f7155996562 dashboard

Re: [PATCH bpf-next v1 1/2] bpf: Create cgroup storage if needed when updating link

2025-04-22 Thread Jiayuan Chen
April 23, 2025 at 08:13, "Martin KaFai Lau" wrote: > > On 4/16/25 9:40 PM, Jiayuan Chen wrote: > > > > > when we attach a prog without cgroup_storage map being used, > > > > cgroup_storage in struct bpf_prog_array_item is empty. Then, if we use > > > > BPF_LINK_UPDATE to replace old prog w

Re: [PATCH 1/3] ARM: dts: qcom: msm8974-oneplus-bacon: Add alias for mmc0

2025-04-22 Thread Bjorn Andersson
On Sun, Apr 20, 2025 at 07:14:12PM +0200, Luca Weiss wrote: > Hi Bjorn, > > On 20-04-2025 7:05 p.m., Bjorn Andersson wrote: > > On Sat, Apr 19, 2025 at 11:03:57AM +0200, Luca Weiss wrote: > > > Add an alias for the internal storage so it always becomes mmcblk0. > > > > > > > https://docs.kernel.

Re: [PATCH v4 0/4] virtio-net: disable delayed refill when pausing rx

2025-04-22 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Thu, 17 Apr 2025 14:28:02 +0700 you wrote: > Hi everyone, > > This series tries to fix a deadlock in virtio-net when binding/unbinding > XDP program, XDP socket or resizing the rx queue. > > When pausing rx (e.g. set

Re: [PATCH v4 4/4] selftests: net: add a virtio_net deadlock selftest

2025-04-22 Thread Jakub Kicinski
On Thu, 17 Apr 2025 14:28:06 +0700 Bui Quang Minh wrote: > The selftest reproduces the deadlock scenario when binding/unbinding XDP > program, XDP socket, rx ring resize on virtio_net interface. > > Signed-off-by: Bui Quang Minh > --- > .../testing/selftests/drivers/net/hw/Makefile | 1 + > ...

Re: [PATCH v4 3/4] selftests: net: add flag to force zerocopy mode in xdp_helper

2025-04-22 Thread Jakub Kicinski
On Thu, 17 Apr 2025 14:28:05 +0700 Bui Quang Minh wrote: > + if (argc == 4 && strcmp(argv[3], "-z")) { > + fprintf(stderr, "Usage: %s ifindex queue_id [-z]\n\n" > + "where:\n\t-z: force zerocopy mode\n", argv[0]); > + return 1; > + } else if (argc

Re: [PATCH v6 2/5] userfaultfd: UFFDIO_MOVE uABI

2025-04-22 Thread Suren Baghdasaryan
On Tue, Apr 22, 2025 at 12:20 AM Alejandro Colomar wrote: > > Hi Suren, > > On Mon, Apr 21, 2025 at 08:58:22PM -0700, Suren Baghdasaryan wrote: > > > > Please re-send including linux-man@ in CC, as specified in > > > >

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

2025-04-22 Thread Cindy Lu
On Tue, Apr 22, 2025 at 9:50 PM Stefano Garzarella wrote: > > On Mon, Apr 21, 2025 at 10:44:10AM +0800, Cindy Lu wrote: > >Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, > >to control the availability of the `VHOST_FORK_FROM_OWNER` ioctl. > >When CONFIG_VHOST_ENABLE_FORK_OWNER

Re: [PATCH bpf-next v1 1/2] bpf: Create cgroup storage if needed when updating link

2025-04-22 Thread Martin KaFai Lau
On 4/16/25 9:40 PM, Jiayuan Chen wrote: when we attach a prog without cgroup_storage map being used, cgroup_storage in struct bpf_prog_array_item is empty. Then, if we use BPF_LINK_UPDATE to replace old prog with a new one that uses the cgroup_storage map, we miss cgroup_storage being initiated.

Re: [PATCH 0/4] Add support for Sony Xperia Z Ultra (togari)

2025-04-22 Thread Konrad Dybcio
On 4/19/25 11:00 AM, Luca Weiss wrote: > Do some tweaks to the common file for the devices in the 'rhine' family > of Sony devices, and add a dts for togari. > > Signed-off-by: Luca Weiss > --- I don't really know for sure, but maybe this driver could be suitable for its touchscreen drivers/inp

Re: [PATCH] tools/memory-model/Documentation: Fix SRCU section in explanation.txt

2025-04-22 Thread Paul E. McKenney
On Tue, Apr 22, 2025 at 06:56:17PM -0400, Joel Fernandes wrote: > > > On 4/22/2025 6:55 PM, Joel Fernandes wrote: > > > > > > On 4/22/2025 1:56 PM, Paul E. McKenney wrote: > >> On Tue, Apr 22, 2025 at 07:38:30PM +0200, Uladzislau Rezki (Sony) wrote: > >>> The SRCU read-side critical sections de

Re: [PATCH] tools/memory-model/Documentation: Fix SRCU section in explanation.txt

2025-04-22 Thread Joel Fernandes
On 4/22/2025 6:55 PM, Joel Fernandes wrote: > > > On 4/22/2025 1:56 PM, Paul E. McKenney wrote: >> On Tue, Apr 22, 2025 at 07:38:30PM +0200, Uladzislau Rezki (Sony) wrote: >>> The SRCU read-side critical sections describes the difference between >>> srcu_down_read()/srcu_up_read() and srcu_rea

Re: [PATCH] tools/memory-model/Documentation: Fix SRCU section in explanation.txt

2025-04-22 Thread Joel Fernandes
On 4/22/2025 1:56 PM, Paul E. McKenney wrote: > On Tue, Apr 22, 2025 at 07:38:30PM +0200, Uladzislau Rezki (Sony) wrote: >> The SRCU read-side critical sections describes the difference between >> srcu_down_read()/srcu_up_read() and srcu_read_lock()/srcu_read_unlock() >> in a way that a last pai

Re: [PATCH v3 8/8] mm/maps: execute PROCMAP_QUERY ioctl under RCU

2025-04-22 Thread Andrii Nakryiko
On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdasaryan wrote: > > Utilize speculative vma lookup to find and snapshot a vma without > taking mmap_lock during PROCMAP_QUERY ioctl execution. Concurrent > address space modifications are detected and the lookup is retried. > While we take the mmap_lock f

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-22 Thread Andrii Nakryiko
On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdasaryan wrote: > > With maple_tree supporting vma tree traversal under RCU and vma and > its important members being RCU-safe, /proc/pid/maps can be read under > RCU and without the need to read-lock mmap_lock. However vma content > can change from under

Re: [PATCH] selftests/bpf: Fix null pointer check in skb_pkt_end.c

2025-04-22 Thread Martin KaFai Lau
On 4/22/25 11:23 AM, Prabhav Kumar Vaish wrote: Ensure that 'tcp' is checked for NULL before dereferencing. This resolves a potential null pointer dereference warning reported by static analysis. Signed-off-by: Prabhav Kumar Vaish --- tools/testing/selftests/bpf/progs/skb_pkt_end.c | 4 ++--

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-22 Thread Huang, Kai
On Tue, 2025-04-22 at 06:54 -0700, Sean Christopherson wrote: > On Tue, Apr 22, 2025, Kai Huang wrote: > > On Fri, 2025-04-18 at 07:55 -0700, Sean Christopherson wrote: > > > On Tue, Apr 15, 2025, Elena Reshetova wrote: > > > That said, handling this deep in the bowels of EPC page allocation seems

Re: [PATCH bpf-next v3 1/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-22 Thread Alexei Starovoitov
On Thu, Apr 17, 2025 at 8:16 AM KaFai Wan wrote: > > Adding support to access arguments with const void pointer arguments > in tracing programs. > > Currently we allow tracing programs to access void pointers. If we try to > access argument which is pointer to const void like 2nd argument in kfree

Re: [PATCH] ARM: dts: qcom: msm8974-samsung-hlte: Add touchkey support

2025-04-22 Thread Konrad Dybcio
On 4/19/25 11:08 AM, Luca Weiss wrote: > From: Adam Honse > > Add support for the touchkeys on the Samsung Galaxy Note 3 (hlte). > > Signed-off-by: Adam Honse > --- > Signed-off-by: Luca Weiss > --- > .../boot/dts/qcom/qcom-msm8974-samsung-hlte.dts| 45 > ++ > 1 file

Re: [PATCH] remoteproc: xlnx: avoid RPU force power down

2025-04-22 Thread Tanmay Shah
On 4/22/25 2:10 PM, Mathieu Poirier wrote: On Tue, 22 Apr 2025 at 12:30, Tanmay Shah wrote: On 4/22/25 12:49 PM, Mathieu Poirier wrote: On Tue, 22 Apr 2025 at 10:10, Tanmay Shah wrote: On 4/22/25 10:59 AM, Mathieu Poirier wrote: Good morning, On Mon, Apr 14, 2025 at 11:46:01AM -07

Re: [PATCH] remoteproc: xlnx: avoid RPU force power down

2025-04-22 Thread Mathieu Poirier
On Tue, 22 Apr 2025 at 12:30, Tanmay Shah wrote: > > > > On 4/22/25 12:49 PM, Mathieu Poirier wrote: > > On Tue, 22 Apr 2025 at 10:10, Tanmay Shah wrote: > >> > >> > >> > >> On 4/22/25 10:59 AM, Mathieu Poirier wrote: > >>> Good morning, > >>> > >>> On Mon, Apr 14, 2025 at 11:46:01AM -0700, Tanma

Re: [PATCH] remoteproc: xlnx: avoid RPU force power down

2025-04-22 Thread Tanmay Shah
On 4/22/25 12:49 PM, Mathieu Poirier wrote: On Tue, 22 Apr 2025 at 10:10, Tanmay Shah wrote: On 4/22/25 10:59 AM, Mathieu Poirier wrote: Good morning, On Mon, Apr 14, 2025 at 11:46:01AM -0700, Tanmay Shah wrote: Powering off RPU using force_pwrdwn call results in system failure if ther

[PATCH] selftests/bpf: Fix null pointer check in skb_pkt_end.c

2025-04-22 Thread Prabhav Kumar Vaish
Ensure that 'tcp' is checked for NULL before dereferencing. This resolves a potential null pointer dereference warning reported by static analysis. Signed-off-by: Prabhav Kumar Vaish --- tools/testing/selftests/bpf/progs/skb_pkt_end.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

Re: [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs

2025-04-22 Thread Geert Uytterhoeven
Hi Mark, Thanks for your patch! On Tue, 22 Apr 2025 at 17:43, Mark Brown wrote: > When the select of PRIME_MUMBERS was removed from it's KUnit test > Kconfig nothing was added to the KUnit configs, meaning that when run > via the KUnit runner the tests are neither built nor run. Add > PRIME_NUM

Re: [PATCH] tools/memory-model/Documentation: Fix SRCU section in explanation.txt

2025-04-22 Thread Paul E. McKenney
On Tue, Apr 22, 2025 at 07:38:30PM +0200, Uladzislau Rezki (Sony) wrote: > The SRCU read-side critical sections describes the difference between > srcu_down_read()/srcu_up_read() and srcu_read_lock()/srcu_read_unlock() > in a way that a last pair must occur on the same CPU. > > This is not true, t

Re: [PATCH] remoteproc: xlnx: avoid RPU force power down

2025-04-22 Thread Mathieu Poirier
On Tue, 22 Apr 2025 at 10:10, Tanmay Shah wrote: > > > > On 4/22/25 10:59 AM, Mathieu Poirier wrote: > > Good morning, > > > > On Mon, Apr 14, 2025 at 11:46:01AM -0700, Tanmay Shah wrote: > >> Powering off RPU using force_pwrdwn call results in system failure > >> if there are multiple users of th

[PATCH] tools/memory-model/Documentation: Fix SRCU section in explanation.txt

2025-04-22 Thread Uladzislau Rezki (Sony)
The SRCU read-side critical sections describes the difference between srcu_down_read()/srcu_up_read() and srcu_read_lock()/srcu_read_unlock() in a way that a last pair must occur on the same CPU. This is not true, the srcu_read_unlock() can happen on any CPU, but it must be performed by the same t

Re: [PATCH RFC v7 3/8] security: Export security_inode_init_security_anon for KVM guest_memfd

2025-04-22 Thread David Hildenbrand
On 10.04.25 10:41, Christoph Hellwig wrote: On Tue, Apr 08, 2025 at 11:23:57AM +, Shivank Garg wrote: KVM guest_memfd is implementing its own inodes to store metadata for backing memory using a custom filesystem. This requires the ability to initialize anonymous inode using security_inode_in

Re: [PATCH RFC v7 3/8] security: Export security_inode_init_security_anon for KVM guest_memfd

2025-04-22 Thread David Hildenbrand
On 11.04.25 08:07, Shivank Garg wrote: Hi Paul, On 4/10/2025 1:49 AM, Paul Moore wrote: On Tue, Apr 8, 2025 at 7:25 AM Shivank Garg wrote: KVM guest_memfd is implementing its own inodes to store metadata for backing memory using a custom filesystem. This requires the ability to initialize an

[PATCH v2 5/5] KVM: selftests: x86: Add a test for KVM_CAP_X86_VMWARE_HYPERCALL

2025-04-22 Thread Zack Rusin
Add a testcase to exercise KVM_CAP_X86_VMWARE_HYPERCALL and validate that KVM exits to userspace on hypercalls and registers are correctly preserved. Signed-off-by: Zack Rusin Cc: Doug Covelli Cc: Paolo Bonzini Cc: Shuah Khan Cc: Sean Christopherson Cc: Namhyung Kim Cc: Joel Stanley Cc: Zac

Re: [PATCH] remoteproc: xlnx: avoid RPU force power down

2025-04-22 Thread Tanmay Shah
On 4/22/25 10:59 AM, Mathieu Poirier wrote: Good morning, On Mon, Apr 14, 2025 at 11:46:01AM -0700, Tanmay Shah wrote: Powering off RPU using force_pwrdwn call results in system failure if there are multiple users of that RPU node. Better mechanism is to use request_node and release_node EEM

Re: [PATCH] remoteproc: xlnx: avoid RPU force power down

2025-04-22 Thread Mathieu Poirier
Good morning, On Mon, Apr 14, 2025 at 11:46:01AM -0700, Tanmay Shah wrote: > Powering off RPU using force_pwrdwn call results in system failure > if there are multiple users of that RPU node. Better mechanism is to use > request_node and release_node EEMI calls. With use of these EEMI calls, > pla

Re: [PATCH] lib: Ensure prime numbers tests are included in KUnit test runs

2025-04-22 Thread Kees Cook
On Tue, 22 Apr 2025 16:43:29 +0100, Mark Brown wrote: > When the select of PRIME_MUMBERS was removed from it's KUnit test > Kconfig nothing was added to the KUnit configs, meaning that when run > via the KUnit runner the tests are neither built nor run. Add > PRIME_NUMBERS to all_tests.config so t

[PATCH] lib: Ensure prime numbers tests are included in KUnit test runs

2025-04-22 Thread Mark Brown
RITY_APPARMOR=y CONFIG_SECURITY_LANDLOCK=y --- base-commit: 9c32cda43eb78f78c73aee4aa344b14e259b change-id: 20250422-lib-fix-prime-numbers-kunit-323659c2cfe2 Best regards, -- Mark Brown

Re: [PATCH v5] remoteproc: imx_dsp_rproc: Add support for DSP-specific features

2025-04-22 Thread Mathieu Poirier
On Wed, Apr 16, 2025 at 10:56:13AM +0300, Iuliana Prodan (OSS) wrote: > From: Iuliana Prodan > > Some DSP firmware requires a FW_READY signal before proceeding, while > others do not. > Therefore, add support to handle i.MX DSP-specific features. > > Implement handle_rsc callback to handle resou

Re: [PATCH RFC v3 3/8] slab: add sheaf support for batching kfree_rcu() operations

2025-04-22 Thread Vlastimil Babka
On 4/10/25 22:24, Suren Baghdasaryan wrote: > On Mon, Mar 17, 2025 at 7:33 AM Vlastimil Babka wrote: >> +do_free: >> + >> + rcu_sheaf = pcs->rcu_free; >> + >> + rcu_sheaf->objects[rcu_sheaf->size++] = obj; >> + >> + if (likely(rcu_sheaf->size < s->sheaf_capacity)) { >> +

Re: [PATCH v2] lib: PRIME_NUMBERS_KUNIT_TEST should not select PRIME_NUMBERS

2025-04-22 Thread Mark Brown
On Tue, Apr 22, 2025 at 08:03:09AM -0700, Kees Cook wrote: > On Tue, Apr 22, 2025 at 01:10:47PM +0100, Mark Brown wrote: > > This commit, which is now in mainline, causes the prime numbers test to > > vanish from my CI which is a regression - the selftests config fragment > > is obviously not pick

Re: [PATCH v2] lib: PRIME_NUMBERS_KUNIT_TEST should not select PRIME_NUMBERS

2025-04-22 Thread Kees Cook
On Tue, Apr 22, 2025 at 01:10:47PM +0100, Mark Brown wrote: > On Mon, Apr 14, 2025 at 04:35:00PM +0200, Geert Uytterhoeven wrote: > > Enabling a (modular) test should not silently enable additional kernel > > functionality, as that may increase the attack vector of a product. > > > > Fix this by m

Re: [PATCH RFC v3 2/8] slab: add opt-in caching layer of percpu sheaves

2025-04-22 Thread Vlastimil Babka
On 4/10/25 21:51, Suren Baghdasaryan wrote: >> +static void __pcs_flush_all_cpu(struct kmem_cache *s, unsigned int cpu) >> +{ >> + struct slub_percpu_sheaves *pcs; >> + >> + pcs = per_cpu_ptr(s->cpu_sheaves, cpu); >> + >> + /* The cpu is not executing anymore so we don't need pcs-

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

2025-04-22 Thread Stefano Garzarella
On Thu, Apr 17, 2025 at 10:05:53PM -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 v10 15/33] remoteproc: k3: Refactor rproc_reset() implementation into common driver

2025-04-22 Thread Andrew Davis
On 4/22/25 12:53 AM, Beleswar Prasad Padhi wrote: Hi Andrew, On 21/04/25 20:12, Andrew Davis wrote: On 4/17/25 1:19 PM, Beleswar Padhi wrote: The rproc_reset() implementations in TI K3 DSP and M4 remoteproc drivers assert reset in the same way. Refactor the above function into the ti_k3_common

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-22 Thread Sean Christopherson
On Tue, Apr 22, 2025, Kai Huang wrote: > On Fri, 2025-04-18 at 07:55 -0700, Sean Christopherson wrote: > > On Tue, Apr 15, 2025, Elena Reshetova wrote: > > That said, handling this deep in the bowels of EPC page allocation seems > > unnecessary. The only way for there to be no active EPC pages is

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

2025-04-22 Thread Stefano Garzarella
On Mon, Apr 21, 2025 at 10:44:10AM +0800, Cindy Lu wrote: Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, to control the availability of the `VHOST_FORK_FROM_OWNER` ioctl. When CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL is set to n, the ioctl is disabled, and any attempt to use it w

Re: (subset) [PATCH v2 0/5] Describe MT8188's SCP as dual-core

2025-04-22 Thread AngeloGioacchino Del Regno
On Mon, 21 Apr 2025 16:49:03 -0400, Nícolas F. R. A. Prado wrote: > This series updates the MT8188 SCP description to dual-core and prepares > its usage. Patch 4 updates the MT8188 DT to describe the SCP as a dual > core cluster and patch 5 adds the firmware-name property so the firmware > can be l

Re: [PATCH v9 3/4] vhost: add VHOST_FORK_FROM_OWNER ioctl and validate inherit_owner

2025-04-22 Thread Stefano Garzarella
On Mon, Apr 21, 2025 at 10:44:09AM +0800, Cindy Lu wrote: Add a new UAPI to configure the vhost device to use the kthread mode. The userspace application can use IOCTL VHOST_FORK_FROM_OWNER to choose between owner and kthread mode if necessary. This setting must be applied before VHOST_SET_OWNER,

Re: [PATCH v2 1/5] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-04-22 Thread AngeloGioacchino Del Regno
Il 21/04/25 22:49, Nícolas F. R. A. Prado ha scritto: Both MT8192 and MT8195 have an L1TCM memory, so it should be described in reg, and therefore reg's minItems should be 3, as is already implicit by reg-names being three entries long. However minItems is currently unset for mt8192/mt8195, resul

Re: [PATCH v9 1/4] vhost: Add a new parameter in vhost_dev to allow user select kthread

2025-04-22 Thread Stefano Garzarella
On Mon, Apr 21, 2025 at 10:44:07AM +0800, Cindy Lu wrote: The vhost now uses vhost_task and workers as a child of the owner thread. While this aligns with containerization principles, it confuses some legacy userspace applications, therefore, we are reintroducing kthread API support. Introduce a

Re: [PATCH v9 0/3] rust: extend `module!` macro with integer parameter support

2025-04-22 Thread Petr Pavlu
On 3/21/25 10:17, Andreas Hindborg wrote: > Extend the `module!` macro with support module parameters. Also add some > string > to integer parsing functions and updates `BStr` with a method to strip a > string > prefix. > > Based on code by Adam Bratschi-Kaye lifted from the original `rust` bran

Re: [PATCH] ASoC: wm8998: Add Kconfig prompt

2025-04-22 Thread Mark Brown
On Fri, 18 Apr 2025 22:22:04 +0200, André Apitzsch wrote: > Add tristate prompt to allow codec selection. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: wm8998: Add Kconfig prompt commit: 9ef24511d29f0300fc7e9d4a5ea38d78e

Re: [PATCH v7 1/2] selftests: memcg: Allow low event with no memory.low and memory_recursiveprot on

2025-04-22 Thread Michal Koutný
On Sun, Apr 20, 2025 at 05:48:15PM -0400, Waiman Long wrote: > I was referring to the suggestion that the setting of memory_recursiveprot > mount option has a material impact of the child 2 test result. Roman > probably didn't have memory_recursiveprot set when developing this selftest. The patch

Re: [PATCH v2] lib: PRIME_NUMBERS_KUNIT_TEST should not select PRIME_NUMBERS

2025-04-22 Thread Mark Brown
On Mon, Apr 14, 2025 at 04:35:00PM +0200, Geert Uytterhoeven wrote: > Enabling a (modular) test should not silently enable additional kernel > functionality, as that may increase the attack vector of a product. > > Fix this by making PRIME_NUMBERS_KUNIT_TEST depend on PRIME_NUMBERS > instead of se

Re: [PATCH 3/4] tools/selftests: expand all guard region tests to file-backed

2025-04-22 Thread Ryan Roberts
On 22/04/2025 12:07, Lorenzo Stoakes wrote: > On Tue, Apr 22, 2025 at 12:03:08PM +0100, Ryan Roberts wrote: >> On 22/04/2025 11:47, Lorenzo Stoakes wrote: >>> On Tue, Apr 22, 2025 at 11:37:57AM +0100, Ryan Roberts wrote: > > [snip] > Hi Lorenzo, I'm getting a test failure in v

Re: [PATCH 3/4] tools/selftests: expand all guard region tests to file-backed

2025-04-22 Thread Lorenzo Stoakes
On Tue, Apr 22, 2025 at 12:03:08PM +0100, Ryan Roberts wrote: > On 22/04/2025 11:47, Lorenzo Stoakes wrote: > > On Tue, Apr 22, 2025 at 11:37:57AM +0100, Ryan Roberts wrote: [snip] > >> > >> Hi Lorenzo, > >> > >> I'm getting a test failure in v6.15-rc3 on arm64: > >> > >> 8< > >> # RUN

Re: [PATCH 3/4] tools/selftests: expand all guard region tests to file-backed

2025-04-22 Thread Ryan Roberts
On 22/04/2025 11:47, Lorenzo Stoakes wrote: > On Tue, Apr 22, 2025 at 11:37:57AM +0100, Ryan Roberts wrote: >> On 13/02/2025 18:17, Lorenzo Stoakes wrote: >>> Extend the guard region tests to allow for test fixture variants for anon, >>> shmem, and local file files. >>> >>> This allows us to assert

Re: [PATCH 3/4] tools/selftests: expand all guard region tests to file-backed

2025-04-22 Thread Lorenzo Stoakes
On Tue, Apr 22, 2025 at 11:37:57AM +0100, Ryan Roberts wrote: > On 13/02/2025 18:17, Lorenzo Stoakes wrote: > > Extend the guard region tests to allow for test fixture variants for anon, > > shmem, and local file files. > > > > This allows us to assert that each of the expected behaviours of anonym

Re: [PATCH 1/1] virtio_console: fix missing byte order handling for cols and rows

2025-04-22 Thread Halil Pasic
On Wed, 16 Apr 2025 15:49:40 +0200 Amit Shah wrote: > On Sat, 2025-03-22 at 01:29 +0100, Halil Pasic wrote: > > As per virtio spec the fields cols and rows are specified as little > > endian. Although there is no legacy interface requirement that would > > state that cols and rows need to be hand

Re: [PATCH 3/4] tools/selftests: expand all guard region tests to file-backed

2025-04-22 Thread Ryan Roberts
On 13/02/2025 18:17, Lorenzo Stoakes wrote: > Extend the guard region tests to allow for test fixture variants for anon, > shmem, and local file files. > > This allows us to assert that each of the expected behaviours of anonymous > memory also applies correctly to file-backed (both shmem and an a

Re: [PATCH bpf-next v3 0/2] bpf: Allow access to const void pointer arguments in tracing programs

2025-04-22 Thread Jiri Olsa
On Thu, Apr 17, 2025 at 11:15:46PM +0800, KaFai Wan wrote: > If we try to access argument which is pointer to const void, it's an > UNKNOWN type, verifier will fail to load. > > Use is_void_or_int_ptr to check if type is void or int pointer. > Add a selftest to check it. > > --- > KaFai Wan (2)

Re: [PATCH v3 00/32] kselftest harness and nolibc compatibility

2025-04-22 Thread Willy Tarreau
Hi Thomas, On Tue, Apr 22, 2025 at 10:48:28AM +0200, Thomas Weißschuh wrote: > Hi, > > On Fri, Apr 11, 2025 at 11:00:24AM +0200, Thomas Weißschuh wrote: > > Nolibc is useful for selftests as the test programs can be very small, > > and compiled with just a kernel crosscompiler, without userspace

Re: [PATCH v3 00/32] kselftest harness and nolibc compatibility

2025-04-22 Thread Thomas Weißschuh
Hi, On Fri, Apr 11, 2025 at 11:00:24AM +0200, Thomas Weißschuh wrote: > Nolibc is useful for selftests as the test programs can be very small, > and compiled with just a kernel crosscompiler, without userspace support. > Currently nolibc is only usable with kselftest.h, not the more > convenient t

Re: [PATCH 0/2] Fix fallback qcom,ipc parse

2025-04-22 Thread Stephan Gerhold
On Mon, Apr 21, 2025 at 04:04:15AM +0200, Barnabás Czémán wrote: > mbox_request_channel() returning value was changed in case of error. > It uses returning value of of_parse_phandle_with_args(). > It is returning with -ENOENT instead of -ENODEV when no mboxes property > exists. > > ENODEV was chec

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-22 Thread Huang, Kai
On Fri, 2025-04-18 at 07:55 -0700, Sean Christopherson wrote: > On Tue, Apr 15, 2025, Elena Reshetova wrote: > > +/* This lock is held to prevent new EPC pages from being created > > + * during the execution of ENCLS[EUPDATESVN]. > > + */ > > +static DEFINE_SPINLOCK(sgx_epc_eupdatesvn_lock); > > +

Re: [PATCH v6 2/5] userfaultfd: UFFDIO_MOVE uABI

2025-04-22 Thread Alejandro Colomar
Hi Suren, On Mon, Apr 21, 2025 at 08:58:22PM -0700, Suren Baghdasaryan wrote: > > > Please re-send including linux-man@ in CC, as specified in > > > > > > > Thanks for the reference. Will post the documentation update