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

2025-03-22 Thread Jarkko Sakkinen
On Fri, Mar 21, 2025 at 02:34:43PM +0200, Elena Reshetova wrote: > SGX architecture introduced a new instruction called EUPDATESVN [1] > to Ice Lake. It allows updating security SVN version, given that EPC > is completely empty. The latter is required for security reasons > in order to reason that

Re: [PATCH 2/4] x86/sgx: Change counter sgx_nr_free_pages -> sgx_nr_used_pages

2025-03-22 Thread Jarkko Sakkinen
On Fri, Mar 21, 2025 at 02:34:41PM +0200, Elena Reshetova wrote: > sgx_nr_free_pages is an atomic that is used to keep track of > free EPC pages and detect whenever page reclaiming should start. > Since successful execution of ENCLS[EUPDATESVN] requires empty > EPC and a fast way of checking for th

Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it

2025-03-22 Thread Richard Fitzgerald
On 21/3/25 15:01, Nico Pache wrote: I'm a little confused how the FW_CS_DSP config which was added in v5.16 is reliant (library code that is only used by KUNIT) on a config that was added in v6.14. Presumably the library is not just for the KUNIT test. What was the purpose of this config before t

Re: [PATCH 1/2] rcu: Comment on the extraneous delta test on rcu_seq_done_exact()

2025-03-22 Thread Frederic Weisbecker
Le Sat, Mar 22, 2025 at 03:06:08AM +0100, Joel Fernandes a écrit : > Insomnia kicked in, so 3 am reply here (Zurich local time) ;-): > > On 3/20/2025 3:15 PM, Frederic Weisbecker wrote: > > Le Wed, Mar 19, 2025 at 03:38:31PM -0400, Joel Fernandes a écrit : > >> On Tue, Mar 18, 2025 at 11:37:38AM -

Re: [PATCH v2] openrisc: Add cacheinfo support

2025-03-22 Thread Sahil Siddiq
Hi Stafford, On 3/18/25 1:13 PM, Stafford Horne wrote: On Tue, Mar 18, 2025 at 12:06:30AM +0530, Sahil Siddiq wrote: On 3/17/25 1:55 PM, Geert Uytterhoeven wrote: On Sun, 16 Mar 2025 at 07:59, Stafford Horne wrote: [...] @@ -176,8 +177,11 @@ void __init paging_init(void) barrier();

Re: [PATCH v2] openrisc: Add cacheinfo support

2025-03-22 Thread Markus Elfring
… > This patch provides a mechanism … > The patch also moves … See also: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14-rc7#n94 Regards, Markus

Re: [PATCH 2/2] rcu: Robustify rcu_is_cpu_rrupt_from_idle()

2025-03-22 Thread Joel Fernandes
On 3/18/2025 2:56 PM, Frederic Weisbecker wrote: > RCU relies on the context tracking nesting counter in order to determine > if it is running in extended quiescent state. > > However the context tracking nesting counter is not completely > synchronized with the actual context tracking state: >

Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it

2025-03-22 Thread Richard Fitzgerald
On 22/3/25 10:11, Richard Fitzgerald wrote: On 20/3/25 17:35, Nico Pache wrote: Sorry links got mangled Thanks. I'm on vacation right now but I'll take a look through all those when I have time. The unterminated string bugfix is this: https://lore.kernel.org/all/20250211-cs_dsp-kunit-strings-

Re: [PATCH v2] openrisc: Add cacheinfo support

2025-03-22 Thread Sahil Siddiq
Hi, On 3/22/25 9:59 PM, Stafford Horne wrote: On Sat, Mar 22, 2025 at 07:21:18PM +0530, Sahil Siddiq wrote: On 3/18/25 1:13 PM, Stafford Horne wrote: On Tue, Mar 18, 2025 at 12:06:30AM +0530, Sahil Siddiq wrote: On 3/17/25 1:55 PM, Geert Uytterhoeven wrote: On Sun, 16 Mar 2025 at 07:59, Staf

Re: [PATCH v2] openrisc: Add cacheinfo support

2025-03-22 Thread Sahil Siddiq
Hi, On 3/22/25 9:10 PM, Markus Elfring wrote: … This patch provides a mechanism … The patch also moves … See also: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14-rc7#n94 Thank you. I'll change the wording

[PATCH v2] tools/nolibc: Add support for SPARC

2025-03-22 Thread Thomas Weißschuh
Add support for 32bit and 64bit SPARC to nolibc. Signed-off-by: Thomas Weißschuh Acked-by: Willy Tarreau Tested-by: Sebastian Andrzej Siewior # UltraSparc T4 (Niagara4) --- This is only tested on QEMU. Any tests on real hardware would be very welcome. --- Changes in v2: - Pick up tags - Fix co

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-22 Thread Hangbin Liu
On Fri, Mar 21, 2025 at 03:40:20PM +0100, Phil Sutter wrote: > On Fri, Mar 21, 2025 at 12:45:17PM +, Hangbin Liu wrote: > > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > > > Hi Hangbin, > > > > > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > > > Hi Jason,

[PATCHv5 net-next 2/2] wireguard: selftests: update to using nft for qemu test

2025-03-22 Thread Hangbin Liu
Since we will replace iptables with nft for wireguard netns testing, let's also convert the qemu test to use nft at the same time. Co-developed-by: Phil Sutter Signed-off-by: Phil Sutter Signed-off-by: Hangbin Liu --- .../testing/selftests/wireguard/qemu/Makefile | 36 ++- .../

[PATCHv5 net-next 0/2] wireguard: selftests: use nftables for testing

2025-03-22 Thread Hangbin Liu
This patch set convert iptables to nftables for wireguard testing, as iptables is deparated and nftables is the default framework of most releases. v5: remove the counter in nft rules and link nft statically (Jason A. Donenfeld) v4: no update, just re-send v3: drop iptables directly (Jason A. Done

[PATCHv5 net-next 1/2] wireguard: selftests: convert iptables to nft

2025-03-22 Thread Hangbin Liu
Convert iptabels to nft as it is the replacement for iptables, which is used by default in most releases. Signed-off-by: Hangbin Liu --- tools/testing/selftests/wireguard/netns.sh | 29 ++ 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/tools/testing/selftests

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-22 Thread Jens Axboe
On 3/20/25 11:56 PM, Christoph Hellwig wrote: >> I don't know the entire historical context, but I presume sendmsg >> did that because there was no other mechanism at the time. > > At least aio had been around for about 15 years at the point, but > networking folks tend to be pretty insular and re

Re: [PATCH v2] tools/nolibc: Add support for SPARC

2025-03-22 Thread Sebastian Andrzej Siewior
On 2025-03-22 09:10:51 [+0100], Thomas Weißschuh wrote: > Tested-by: Sebastian Andrzej Siewior # UltraSparc > T4 (Niagara4) > --- > This is only tested on QEMU. > Any tests on real hardware would be very welcome. I did test on real hardware. Sebastian

Re: [PATCH 1/2] rcu: Comment on the extraneous delta test on rcu_seq_done_exact()

2025-03-22 Thread Joel Fernandes
On 3/22/2025 3:20 PM, Joel Fernandes wrote: > > On 3/22/2025 11:25 AM, Frederic Weisbecker wrote: >> Le Sat, Mar 22, 2025 at 03:06:08AM +0100, Joel Fernandes a écrit : >>> Insomnia kicked in, so 3 am reply here (Zurich local time) ;-): >>> >>> On 3/20/2025 3:15 PM, Frederic Weisbecker wrote: >>

Re: [PATCH 1/2] rcu: Comment on the extraneous delta test on rcu_seq_done_exact()

2025-03-22 Thread Joel Fernandes
On 3/22/2025 11:25 AM, Frederic Weisbecker wrote: > Le Sat, Mar 22, 2025 at 03:06:08AM +0100, Joel Fernandes a écrit : >> Insomnia kicked in, so 3 am reply here (Zurich local time) ;-): >> >> On 3/20/2025 3:15 PM, Frederic Weisbecker wrote: >>> Le Wed, Mar 19, 2025 at 03:38:31PM -0400, Joel Fern

Re: [PATCH 1/4] x86/sgx: Add total number of EPC pages

2025-03-22 Thread Jarkko Sakkinen
On Fri, Mar 21, 2025 at 02:34:40PM +0200, Elena Reshetova wrote: > In order to successfully execute ENCLS[EUPDATESVN], EPC must be empty. > SGX already has a variable sgx_nr_free_pages that tracks free > EPC pages. Add a new variable, sgx_nr_total_pages, that will keep > track of total number of EP

Re: [PATCH 3/4] x86/sgx: Define error codes for ENCLS[EUPDATESVN]

2025-03-22 Thread Jarkko Sakkinen
On Fri, Mar 21, 2025 at 02:34:42PM +0200, Elena Reshetova wrote: > Add error codes for ENCLS[EUPDATESVN], then SGX CPUSVN update > process can know the execution state of EUPDATESVN. > Enumerate the error codes. Do we need all of the three added? > Code is from previous submission in > https://

[PATCH 0/4] sysctl: Move the u8 range check test to lib/test_sysctl.c

2025-03-22 Thread Joel Granados
Originally introduced to sysctl-test.c by commit b5ffbd139688 ("sysctl: move the extra1/2 boundary check of u8 to sysctl_check_table_array"), it has been shown to lead to a panic under certain conditions related to a dangling registration. This series moves the u8 test to lib/test_sysctl.c where t

[GIT PULL] RCU changes for v6.15

2025-03-22 Thread Boqun Feng
Hi Linus, When the merge window opens, please pull the RCU update: The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b: Linux 6.14-rc1 (2025-02-02 15:39:26 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux.git ta

Re: [Linux-stm32] [PATCH 3/3] remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

2025-03-22 Thread Rob Herring
On Thu, Mar 20, 2025 at 4:23 AM Arnaud POULIQUEN wrote: > > > > On 3/20/25 00:04, Rob Herring wrote: > > On Wed, Mar 19, 2025 at 10:26 AM Arnaud POULIQUEN > > wrote: > >> > >> Hello Rob, > >> > >> On 3/18/25 00:24, Rob Herring (Arm) wrote: > >>> Use the newly added of_reserved_mem_region_to_resou

[PATCH net-next v2 0/4] virtio_net: Fixes and improvements

2025-03-22 Thread Akihiko Odaki
Jason Wang recently proposed an improvement to struct virtio_net_rss_config: https://lore.kernel.org/r/CACGkMEud0Ki8p=z299q7b4qedonpydzbvqhhxcnvk_vo-kd...@mail.gmail.com This patch series implements it and also fixes a few minor bugs I found when writing patches. Signed-off-by: Akihiko Odaki ---