Re: [PATCH bpf-next v3 11/11] bpf: Fall back to nospec for sanitization-failures

2025-05-13 Thread Kumar Kartikeya Dwivedi
On Thu, 1 May 2025 at 04:10, Luis Gerhorst wrote: > > ALU sanitization was introduced to ensure that a subsequent ptr access > can never go OOB, even under speculation. This is required because we > currently allow speculative scalar confusion. Spec. scalar confusion is > possible because Spectre

Re: [PATCH v3] virtio: reject shm region if length is zero

2025-05-13 Thread Jason Wang
On Mon, May 12, 2025 at 6:22 AM Sami Uddin wrote: > > From: Sami Uddin > > Prevent usage of shared memory regions where the length is zero, > as such configurations are not valid and may lead to unexpected behavior. > > Signed-off-by: Sami Uddin > --- > v3: > - Use idiomatic 'if (!region->len)'

Re: [PATCH v4 3/5] ASoC: qcom: sm8250: add DisplayPort Jack support

2025-05-13 Thread Srinivas Kandagatla
On 5/7/25 09:01, Luca Weiss wrote: > Add support for DisplayPort Jack events, so that user space can > configure the audio routing correctly. > > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Luca Weiss Reviewed-by: Srinivas Kandagatla > --- > sound/soc/qcom/sm8250.c | 17 ++--

Re: [PATCH v4 2/5] ASoC: qcom: sm8250: set card driver name from match data

2025-05-13 Thread Srinivas Kandagatla
On 5/7/25 09:01, Luca Weiss wrote: > Sound machine drivers for Qualcomm SoCs can be reused across multiple > SoCs. But user space ALSA UCM files depend on the card driver name which > should be set per board/SoC. > > Allow such customization by using driver match data as sound card driver > nam

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

2025-05-13 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

Re: [PATCH bpf-next v3 10/11] bpf: Allow nospec-protected var-offset stack access

2025-05-13 Thread Kumar Kartikeya Dwivedi
On Thu, 1 May 2025 at 04:17, Luis Gerhorst wrote: > > Insert a nospec before the access to prevent it from ever using an index > that is subject to speculative scalar-confusion. > > The access itself can either happen directly in the BPF program (reads > only, check_stack_read_var_off()) or in a h

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

2025-05-13 Thread Jason Wang
On Thu, May 1, 2025 at 9:21 AM Jon Kohler wrote: > > > > > On Apr 16, 2025, at 6:15 AM, Eugenio Perez Martin > > wrote: > > > > !---| > > CAUTION: External Email > > > > |

Re: [PATCH bpf-next v3 09/11] selftests/bpf: Add test for Spectre v1 mitigation

2025-05-13 Thread Kumar Kartikeya Dwivedi
On Thu, 1 May 2025 at 04:03, Luis Gerhorst wrote: > > This is based on the gadget from the description of commit 9183671af6db > ("bpf: Fix leakage under speculation on mispredicted branches"). > > Signed-off-by: Luis Gerhorst > --- Acked-by: Kumar Kartikeya Dwivedi

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

2025-05-13 Thread Bobby Eshleman
On Tue, May 13, 2025 at 12:08:48PM +0200, Paolo Abeni wrote: > On 5/8/25 3:23 AM, 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/test

Re: [PATCH] lib/crc32: add SPDX license identifier

2025-05-13 Thread Eric Biggers
On Wed, May 14, 2025 at 08:11:40AM +0200, Thomas Gleixner wrote: > On Tue, May 13 2025 at 22:24, Eric Biggers wrote: > > > From: Eric Biggers > > > > lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX > > conversion because of the nonstandard explanation of the license. > > However

Re: [PATCH] lib/crc32: add SPDX license identifier

2025-05-13 Thread Thomas Gleixner
On Tue, May 13 2025 at 22:24, Eric Biggers wrote: > From: Eric Biggers > > lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX > conversion because of the nonstandard explanation of the license. > However, crc32.c clearly states that it's licensed under the GNU General > Public Lice

Re: [PATCH bpf-next v3 08/11] bpf: Fall back to nospec for Spectre v1

2025-05-13 Thread Kumar Kartikeya Dwivedi
On Thu, 1 May 2025 at 04:00, Luis Gerhorst wrote: > > This implements the core of the series and causes the verifier to fall > back to mitigating Spectre v1 using speculation barriers. The approach > was presented at LPC'24 [1] and RAID'24 [2]. > > If we find any forbidden behavior on a speculativ

[PATCH] lib/crc32: add SPDX license identifier

2025-05-13 Thread Eric Biggers
From: Eric Biggers lib/crc32.c and include/linux/crc32.h got missed by the bulk SPDX conversion because of the nonstandard explanation of the license. However, crc32.c clearly states that it's licensed under the GNU General Public License, Version 2. And the comment in crc32.h clearly indicates

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Tue, May 13, 2025 at 08:38:57PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 08:44:49PM -0400, Kent Overstreet wrote: > > On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > > > On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > > > > On Tue, May 13, 2025

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 08:44:49PM -0400, Kent Overstreet wrote: > On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > > On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > > > On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > > > > > +++ b/include/linux

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

2025-05-13 Thread Jason Wang
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 Michael S. Tsirkin wrote: > > > > > > On Wed, Apr 30, 2025 at 11:34:49AM +0800, Jason Wang wrote: > > > > On Tue, Apr 29, 2025 at 6:56 PM M

[PATCH] selftests: remove duplicated function definition

2025-05-13 Thread Chen Linxuan
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 --- tools/testing/selftests/mount_setattr/mount_setattr_test.c | 5 - 1 file changed, 5 deletions(-) dif

[PATCH] selftests: add missing include

2025-05-13 Thread Chen Linxuan
I failed to build this test on Ubuntu 24.04. Compiler complained about undefined functions mount, umount and some mount related flags. Signed-off-by: Chen Linxuan --- tools/testing/selftests/pid_namespace/pid_max.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/pid_n

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Tue, May 13, 2025 at 05:37:11PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > > On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > > > > +++ b/include/linux/moduleparam.h > > > > @@ -122,6 +122,7 @@ struct kparam_array > > > >

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 07:34:59PM -0400, Kent Overstreet wrote: > On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > > > +++ b/include/linux/moduleparam.h > > > @@ -122,6 +122,7 @@ struct kparam_array > > > * charp: a character pointer > > > * bool: a bool, values 0/

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Tue, May 13, 2025 at 02:24:46PM -0700, Josh Poimboeuf wrote: > On Tue, May 13, 2025 at 09:07:32AM -0400, Kent Overstreet wrote: > > Static keys can now be a module parameter, e.g. > > > > module_param_named(foo, foo.key, static_key_t, 0644) > > > > bcachefs is now using this. > > > > Cc: Luis

[PATCH] selftests: ir_decoder: Convert header comment to proper multi-line block

2025-05-13 Thread Abdelrahman Fekry
The test file for the IR decoder used single-line comments at the top to document its purpose and licensing, which is inconsistent with the style used throughout the Linux kernel. in this patch i converted the file header to a proper multi-line comment block (/*) that aligns with standard kernel

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

2025-05-13 Thread H. Peter Anvin
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? >> >> The immediate form MSR i

[PATCH] selftests: acct: fix grammar and clarify output messages

2025-05-13 Thread Abdelrahman Fekry
This patch improves the clarity and grammar of output messages in the acct() selftest. Minor changes were made to user-facing strings and comments to make them easier to understand and more consistent with the kselftest style. Changes include: - Fixing grammar in printed messages and comments. - R

Re: [PATCH net v2] vsock/test: Fix occasional failure in SIOCOUTQ tests

2025-05-13 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 7 May 2025 10:14:56 -0500 you wrote: > These tests: > "SOCK_STREAM ioctl(SIOCOUTQ) 0 unsent bytes" > "SOCK_SEQPACKET ioctl(SIOCOUTQ) 0 unsent bytes" > output: "Unexpected 'SIOCOUTQ' value, expected 0, got

[PATCH] selftests: size: fix grammar and align output formatting

2025-05-13 Thread Abdelrahman Fekry
Improve the grammar in the test name by changing "get runtime memory use" to "get runtime memory usage". Also adjust spacing in output lines ("Total:", "Free:", etc.) to ensure consistent alignment and readability. Signed-off-by: Abdelrahman Fekry --- tools/testing/selftests/size/get_size.c | 6

[PATCH] selftests: size: fix grammar and align output formatting

2025-05-13 Thread Abdelrahman Fekry
Improve the grammar in the test name by changing "get runtime memory use" to "get runtime memory usage". Also adjust spacing in output lines ("Total:", "Free:", etc.) to ensure consistent alignment and readability. Signed-off-by: Abdelrahman Fekry --- tools/testing/selftests/size/get_size.c | 6

Re: [PATCH v2] sched,livepatch: Untangle cond_resched() and live-patching

2025-05-13 Thread Josh Poimboeuf
On Fri, May 09, 2025 at 01:36:59PM +0200, Sebastian Andrzej Siewior wrote: > From: Peter Zijlstra > > With the goal of deprecating / removing VOLUNTARY preempt, live-patch > needs to stop relying on cond_resched() to make forward progress. > > Instead, rely on schedule() with TASK_FREEZABLE set.

Re: [PATCH v2] params: Add support for static keys

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 09:07:32AM -0400, Kent Overstreet wrote: > Static keys can now be a module parameter, e.g. > > module_param_named(foo, foo.key, static_key_t, 0644) > > bcachefs is now using this. > > Cc: Luis Chamberlain > Cc: Petr Pavlu > Cc: Sami Tolvanen > Cc: Daniel Gomez > Cc: l

Re: [PATCH v2 1/3] firmware: imx: move get power mode function from scu-pd.c to misc.c

2025-05-13 Thread Hiago De Franco
Hi Peng, On Tue, May 13, 2025 at 03:43:37PM +0800, Peng Fan wrote: > Hi Hiago, > > On Wed, May 07, 2025 at 01:00:54PM -0300, Hiago De Franco wrote: > >From: Hiago De Franco > > > >Move imx_sc_get_pd_power() from pmdomain/imx/scu-pd.c to > >firmware/imx/misc.c and rename it to imx_sc_pm_get_resou

Re: (subset) [PATCH v4 0/5] Add DisplayPort sound support for Fairphone 5 smartphone

2025-05-13 Thread Bjorn Andersson
On Wed, 07 May 2025 10:01:36 +0200, Luca Weiss wrote: > Add the necessary sound card bits and some dts additions to enable sound > over DisplayPort-over-USB-C, e.g. to a connected TV or monitor. > > The UCM files can be found here: > https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/m

Re: [PATCH v2 52/62] objtool/klp: Introduce klp diff subcommand for diffing object files

2025-05-13 Thread Josh Poimboeuf
On Tue, May 13, 2025 at 10:49:59PM +0800, laokz wrote: > On 5/10/2025 4:17 AM, Josh Poimboeuf wrote: > > + > > +#define sym_for_each_reloc(elf, sym, reloc) > > \ > > + for (reloc = find_reloc_by_dest_range(elf, sym->sec,\ > > +

Re: (subset) [PATCH 1/1] remoteproc: qcom_wcnss: Fix on platforms without fallback regulators

2025-05-13 Thread Bjorn Andersson
On Mon, 12 May 2025 02:40:15 +0300, Matti Lehtimäki wrote: > Recent change to handle platforms with only single power domain broke > pronto-v3 which requires power domains and doesn't have fallback voltage > regulators in case power domains are missing. Add a check to verify > the number of fallb

Re: [PATCH v3] rpmsg: qcom_smd: Improve error handling for qcom_smd_parse_edge

2025-05-13 Thread Bjorn Andersson
On Wed, 26 Mar 2025 19:09:29 +0100, Luca Weiss wrote: > When the mailbox driver has not probed yet, the error message "failed to > parse smd edge" is just going to confuse users, so improve the error > prints a bit. > > Cover the last remaining exits from qcom_smd_parse_edge with proper > error

Re: [PATCH] dt-bindings: remoteproc: qcom,sm8150-pas: Add missing SC8180X compatible

2025-05-13 Thread Bjorn Andersson
On Mon, 28 Apr 2025 09:52:44 +0200, Krzysztof Kozlowski wrote: > Commit 4b4ab93ddc5f ("dt-bindings: remoteproc: Consolidate SC8180X and > SM8150 PAS files") moved SC8180X bindings from separate file into this > one, but it forgot to add actual compatibles in top-level properties > section making

Re: (subset) [PATCH 0/3] SC8280XP SLPI

2025-05-13 Thread Bjorn Andersson
On Sat, 03 May 2025 00:37:58 +0200, Konrad Dybcio wrote: > SC8280XP features a SLPI, much like its distant relative, SM8350. > > This series adds the bindings and dt node for it (also cleaning up the > DTSI in meantime) > > Applied, thanks! [1/3] dt-bindings: remoteproc: qcom,sm8350-pas: Add

Re: [PATCH] remoteproc: qcom_wcnss_iris: Add missing put_device() on error in probe

2025-05-13 Thread Bjorn Andersson
On Wed, 02 Apr 2025 13:59:51 +0300, Dan Carpenter wrote: > The device_del() call matches with the device_add() but we also need > to call put_device() to trigger the qcom_iris_release(). > > Applied, thanks! [1/1] remoteproc: qcom_wcnss_iris: Add missing put_device() on error in probe c

Re: [PATCH 1/9] CodingStyle: make Documentation/CodingStyle into symlink

2025-05-13 Thread Al Viro
On Tue, May 13, 2025 at 10:26:12PM +0300, Alexey Dobriyan wrote: > Right now it is clear that Greg objects but I personally think > his counter-argument is weak. > > He is basically saying that LOC count is too much so Linux should stick > to how things were always have been even if "old style" i

Re: [PATCH 5/9] CodingStyle: institute better inline assembly formatting

2025-05-13 Thread David Laight
On Fri, 9 May 2025 23:34:26 +0300 Alexey Dobriyan wrote: > Signed-off-by: Alexey Dobriyan > --- > Documentation/process/coding-style.rst | 40 +- > 1 file changed, 33 insertions(+), 7 deletions(-) > > diff --git a/Documentation/process/coding-style.rst > b/Documentati

Re: [PATCH 6/9] CodingStyle: recommend static_assert/_Static_assert

2025-05-13 Thread David Laight
On Fri, 9 May 2025 23:34:27 +0300 Alexey Dobriyan wrote: > Linux's BUG_ON is done backwards (condition is inverted). > But it is a long story. > > However C11/C23 allow to partially transition to what all normal > programmers are used to, namely assert(). > > Deprecate BUILD_BUG_ON, recommend

Re: [PATCH 1/9] CodingStyle: make Documentation/CodingStyle into symlink

2025-05-13 Thread Alexey Dobriyan
On Tue, May 13, 2025 at 08:04:29PM +0100, Al Viro wrote: > On Tue, May 13, 2025 at 09:33:34PM +0300, Alexey Dobriyan wrote: > > On Tue, May 13, 2025 at 05:12:49AM +0100, Al Viro wrote: > > > On Mon, May 12, 2025 at 07:08:53PM +0300, Alexey Dobriyan wrote: > > > > > > > I split them like referendum

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

2025-05-13 Thread Alexey Dobriyan
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 of curlies {} in all if/else branches and all l

Re: [PATCH 1/9] CodingStyle: make Documentation/CodingStyle into symlink

2025-05-13 Thread Al Viro
On Tue, May 13, 2025 at 09:33:34PM +0300, Alexey Dobriyan wrote: > On Tue, May 13, 2025 at 05:12:49AM +0100, Al Viro wrote: > > On Mon, May 12, 2025 at 07:08:53PM +0300, Alexey Dobriyan wrote: > > > > > I split them like referendum ballots to see where the consensus at and > > > not have big singl

Re: [PATCH v9 00/19] DCD: Add support for Dynamic Capacity Devices (DCD)

2025-05-13 Thread Fan Ni
On Mon, Apr 14, 2025 at 09:37:02PM -0500, Ira Weiny wrote: > Fan Ni wrote: > > On Sun, Apr 13, 2025 at 05:52:08PM -0500, Ira Weiny wrote: > > > A git tree of this series can be found here: > > > > > > https://github.com/weiny2/linux-kernel/tree/dcd-v6-2025-04-13 > > > > > > This is now based on

Re: [PATCH 6/9] CodingStyle: recommend static_assert/_Static_assert

2025-05-13 Thread Alexey Dobriyan
On Sat, May 10, 2025 at 08:21:01AM +0200, Greg KH wrote: > On Fri, May 09, 2025 at 11:34:27PM +0300, Alexey Dobriyan wrote: > > Linux's BUG_ON is done backwards (condition is inverted). > > But it is a long story. > > > > However C11/C23 allow to partially transition to what all normal > > program

Re: [PATCH 4/9] CodingStyle: mention "typedef struct S {} S;" if typedef is used

2025-05-13 Thread Alexey Dobriyan
On Sat, May 10, 2025 at 12:47:19PM +0200, Mauro Carvalho Chehab wrote: > Em Fri, 9 May 2025 23:34:25 +0300 > Alexey Dobriyan escreveu: > > > Signed-off-by: Alexey Dobriyan > > --- > > Documentation/process/coding-style.rst | 14 ++ > > 1 file changed, 14 insertions(+) > > > > diff

Re: [PATCH 4/9] CodingStyle: mention "typedef struct S {} S;" if typedef is used

2025-05-13 Thread Alexey Dobriyan
On Sat, May 10, 2025 at 08:18:53AM +0200, Greg KH wrote: > On Fri, May 09, 2025 at 11:34:25PM +0300, Alexey Dobriyan wrote: > > Signed-off-by: Alexey Dobriyan > > --- > > Documentation/process/coding-style.rst | 14 ++ > > 1 file changed, 14 insertions(+) > > We can't take patches wi

Re: [PATCH 1/9] CodingStyle: make Documentation/CodingStyle into symlink

2025-05-13 Thread Alexey Dobriyan
On Tue, May 13, 2025 at 05:12:49AM +0100, Al Viro wrote: > On Mon, May 12, 2025 at 07:08:53PM +0300, Alexey Dobriyan wrote: > > > I split them like referendum ballots to see where the consensus at and > > not have big single discussion thread. > > Just in case - consensus would look like a lot of

Re: [PATCH 1/9] CodingStyle: make Documentation/CodingStyle into symlink

2025-05-13 Thread Alexey Dobriyan
On Mon, May 12, 2025 at 06:57:49PM +0200, Greg KH wrote: > On Mon, May 12, 2025 at 07:08:53PM +0300, Alexey Dobriyan wrote: > > On Sat, May 10, 2025 at 04:05:29AM -0600, Jonathan Corbet wrote: > > > Alexey Dobriyan writes: > > > > > > > Every time I open Documentation/CodingStyle it says the part

Re: [PATCH] params: Add support for static keys

2025-05-13 Thread Christophe Leroy
Le 10/05/2025 à 23:01, Kent Overstreet a écrit : Static keys can now be a module parameter, e.g. module_param_named(foo, foo.key, static_key_t, 0644) bcachefs is now using this. Cc: Luis Chamberlain Cc: Petr Pavlu Cc: Sami Tolvanen Cc: Daniel Gomez Cc: linux-modu...@vger.kernel.org Sign

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-05-13 Thread Ackerley Tng
Yan Zhao writes: > On Tue, May 06, 2025 at 12:22:47PM -0700, Ackerley Tng wrote: >> Yan Zhao writes: >> >> >> > >> >> > >> >> > What options does userspace have in this scenario? >> >> > It can't reduce the flag to KVM_GUEST_MEMFD_HUGE_2MB. Adjusting the >> >> > gmem.pgoff >> >> > isn't ideal

Re: [PATCH v4 1/9] slab: add opt-in caching layer of percpu sheaves

2025-05-13 Thread Vlastimil Babka
On 4/29/25 03:08, Harry Yoo wrote: > On Fri, Apr 25, 2025 at 10:27:21AM +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. >> >>

Last week to submit your sessions to the Automated Testing Summit!

2025-05-13 Thread Gustavo Padovan
Hello, It is the last week to submit your proposal! The Automated Testing Summit (ATS) 2025 will be held as a co-located event at the Open Source Summit North America! https://events.linuxfoundation.org/open-source-summit-north-america/features/co-located-events/#automated-testing-summit-2025

Re: [PATCH] selftests/eventfd: correct test name and improve messages

2025-05-13 Thread Wen Yang
Thanks. Reviewed-by: Wen Yang -- Best wishes, Wen On 2025/5/13 15:44, Ryan Chung wrote: - Rename test from to - Make the RDWR‐flag comment declarative: “The kernel automatically adds the O_RDWR flag.” - Update semaphore‐flag failure message to: “eventfd semaphore flag check failed:

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

2025-05-13 Thread Bjorn Andersson
: mutex_unlock(&rproc->lock); return ret; --- base-commit: aa94665adc28f3fdc3de2979ac1e98bae961d6ca change-id: 20250513-revert-rproc-table-sz-53ecf24726ae Best regards, -- Bjorn Andersson

Re: [PATCH v2] sched,livepatch: Untangle cond_resched() and live-patching

2025-05-13 Thread Peter Zijlstra
On Tue, May 13, 2025 at 03:34:50PM +0200, Miroslav Benes wrote: > Hi, > > thanks for the updated version. > > On Fri, 9 May 2025, Sebastian Andrzej Siewior wrote: > > > From: Peter Zijlstra > > > > With the goal of deprecating / removing VOLUNTARY preempt, live-patch > > needs to stop relying

Re: [PATCH v2 52/62] objtool/klp: Introduce klp diff subcommand for diffing object files

2025-05-13 Thread laokz
On 5/10/2025 4:17 AM, Josh Poimboeuf wrote: + +#define sym_for_each_reloc(elf, sym, reloc)\ + for (reloc = find_reloc_by_dest_range(elf, sym->sec, \ + sym->offset, sym->len); \ +reloc && reloc_of

Re: [PATCH] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
On Mon, May 12, 2025 at 03:51:00PM +0200, Petr Pavlu wrote: > On 5/10/25 23:01, Kent Overstreet wrote: > > Static keys can now be a module parameter, e.g. > > > > module_param_named(foo, foo.key, static_key_t, 0644) > > > > bcachefs is now using this. > > > > Cc: Luis Chamberlain > > Cc: Petr P

Re: [PATCH v2] sched,livepatch: Untangle cond_resched() and live-patching

2025-05-13 Thread Miroslav Benes
On Tue, 13 May 2025, Peter Zijlstra wrote: > On Tue, May 13, 2025 at 03:34:50PM +0200, Miroslav Benes wrote: > > Hi, > > > > thanks for the updated version. > > > > On Fri, 9 May 2025, Sebastian Andrzej Siewior wrote: > > > > > From: Peter Zijlstra > > > > > > With the goal of deprecating / r

Re: [PATCH net-next 2/2] vsock/test: check also expected errno on sigpipe test

2025-05-13 Thread Stefano Garzarella
On Tue, May 13, 2025 at 12:41:17PM +0200, Paolo Abeni wrote: On 5/8/25 4:20 PM, Stefano Garzarella wrote: diff --git a/tools/testing/vsock/vsock_test.c b/tools/testing/vsock/vsock_test.c index 7de870dee1cf..533d9463a297 100644 --- a/tools/testing/vsock/vsock_test.c +++ b/tools/testing/vsock/vsoc

Re: [PATCH net-next 1/2] vsock/test: retry send() to avoid occasional failure in sigpipe test

2025-05-13 Thread Stefano Garzarella
On Tue, May 13, 2025 at 12:37:36PM +0200, Paolo Abeni wrote: On 5/8/25 4:20 PM, Stefano Garzarella wrote: From: Stefano Garzarella When the other peer calls shutdown(SHUT_RD), there is a chance that the send() call could occur before the message carrying the close information arrives over the

Re: [PATCH net v2] vsock/test: Fix occasional failure in SIOCOUTQ tests

2025-05-13 Thread Stefano Garzarella
On Tue, May 13, 2025 at 10:46:35AM +0200, Paolo Abeni wrote: On 5/7/25 5:14 PM, Konstantin Shkolnyy wrote: These tests: "SOCK_STREAM ioctl(SIOCOUTQ) 0 unsent bytes" "SOCK_SEQPACKET ioctl(SIOCOUTQ) 0 unsent bytes" output: "Unexpected 'SIOCOUTQ' value, expected 0, got 64 (CLIENT)". They t

Re: [PATCH v2] sched,livepatch: Untangle cond_resched() and live-patching

2025-05-13 Thread Miroslav Benes
Hi, thanks for the updated version. On Fri, 9 May 2025, Sebastian Andrzej Siewior wrote: > From: Peter Zijlstra > > With the goal of deprecating / removing VOLUNTARY preempt, live-patch > needs to stop relying on cond_resched() to make forward progress. > > Instead, rely on schedule() with TA

[PATCH v2] params: Add support for static keys

2025-05-13 Thread Kent Overstreet
Static keys can now be a module parameter, e.g. module_param_named(foo, foo.key, static_key_t, 0644) bcachefs is now using this. Cc: Luis Chamberlain Cc: Petr Pavlu Cc: Sami Tolvanen Cc: Daniel Gomez Cc: linux-modu...@vger.kernel.org Cc: Peter Zijlstra Cc: Josh Poimboeuf Cc: Jason Baron C

[syzbot] Monthly wpan report (May 2025)

2025-05-13 Thread syzbot
Hello wpan maintainers/developers, This is a 31-day syzbot report for the wpan subsystem. All related reports/information can be found at: https://syzkaller.appspot.com/upstream/s/wpan During the period, 0 new issues were detected and 0 were fixed. In total, 5 issues are still open and 26 have al

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

2025-05-13 Thread Brendan Jackman
On Sat May 10, 2025 at 4:03 PM UTC, 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 Tested-by: Brendan Jackman https

[PATCH] LICENSES: add CC0-1.0 license text

2025-05-13 Thread Lukas Bulwahn
From: Lukas Bulwahn Commit cbbd847d107f ("tools/x86/kcpuid: Introduce a complete cpuid bitfields CSV file") turns the tools/arch/x86/kcpuid/cpuid.csv to be an auto-generated file from an input file maintained at x86-cpuid.org project. The x86-cpuid.org project clearly states that the auto-generat

Re: [PATCH] selftests: riscv: add misaligned access testing

2025-05-13 Thread Alexandre Ghiti
Hi Clément, On 12/05/2025 10:46, Clément Léger wrote: This selftest tests all the currently emulated instruction (except for the RV32 compressed ones which are left as a future exercise for a RV32 user). For the FPU instructions, all the FPU registers are tested. This commit can be tested using

Re: [PATCH net-next 1/2] vsock/test: retry send() to avoid occasional failure in sigpipe test

2025-05-13 Thread Paolo Abeni
On 5/8/25 4:20 PM, Stefano Garzarella wrote: > From: Stefano Garzarella > > When the other peer calls shutdown(SHUT_RD), there is a chance that > the send() call could occur before the message carrying the close > information arrives over the transport. In such cases, the send() > might still suc

Re: [PATCH net-next 2/2] vsock/test: check also expected errno on sigpipe test

2025-05-13 Thread Paolo Abeni
On 5/8/25 4:20 PM, Stefano Garzarella wrote: > diff --git a/tools/testing/vsock/vsock_test.c > b/tools/testing/vsock/vsock_test.c > index 7de870dee1cf..533d9463a297 100644 > --- a/tools/testing/vsock/vsock_test.c > +++ b/tools/testing/vsock/vsock_test.c > @@ -1074,9 +1074,13 @@ static void test_st

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

2025-05-13 Thread Paolo Abeni
On 5/8/25 3:23 AM, 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 used. > > VMCI

[PATCH] selftests: Suppress unused variable warning

2025-05-13 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir(

Re: [PATCH net v2] vsock/test: Fix occasional failure in SIOCOUTQ tests

2025-05-13 Thread Paolo Abeni
On 5/7/25 5:14 PM, Konstantin Shkolnyy wrote: > These tests: > "SOCK_STREAM ioctl(SIOCOUTQ) 0 unsent bytes" > "SOCK_SEQPACKET ioctl(SIOCOUTQ) 0 unsent bytes" > output: "Unexpected 'SIOCOUTQ' value, expected 0, got 64 (CLIENT)". > > They test that the SIOCOUTQ ioctl reports 0 unsent bytes a

Re: [PATCH 07/12] Input: sysrq: mv sysrq into drivers/tty/sysrq.c

2025-05-13 Thread Joel Granados
On Fri, May 09, 2025 at 10:10:28AM -0700, Kees Cook wrote: > On Fri, May 09, 2025 at 02:54:11PM +0200, Joel Granados wrote: > > Move both sysrq ctl_table and supported sysrq_sysctl_handler helper > > function into drivers/tty/sysrq.c. Replaced the __do_proc_dointvec in > > helper function with do_p

[PATCH] selftests/eventfd: correct test name and improve messages

2025-05-13 Thread Ryan Chung
- Rename test from to - Make the RDWR‐flag comment declarative: “The kernel automatically adds the O_RDWR flag.” - Update semaphore‐flag failure message to: “eventfd semaphore flag check failed: …” Signed-off-by: Ryan Chung --- tools/testing/selftests/filesystems/eventfd/eventfd_test.c | 7

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

2025-05-13 Thread Xin Li
On 5/12/2025 4:20 AM, Jürgen Groß wrote: On 09.05.25 10:18, Xin Li wrote: On 5/6/2025 2:20 AM, Juergen Gross wrote: I'm trying to evaluate how to add the immediate form MSR instructions on top of this patch set.  And I'm close to get it done. There is something to consider when running as a Xe

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

2025-05-13 Thread Joel Granados
On Fri, May 09, 2025 at 09:09:44AM -0700, Luis Chamberlain wrote: > On Fri, May 09, 2025 at 02:54:05PM +0200, Joel Granados wrote: > > diff --git a/kernel/module/kmod.c b/kernel/module/kmod.c > > index > > 25f25381251281a390b273cd8a734c92b960113a..5701629adc27b4bb5080db75f0e69f9f55e9d2ad > > 1006

Re: [PATCH 09/12] sysctl: move cad_pid into kernel/pid.c

2025-05-13 Thread Joel Granados
On Fri, May 09, 2025 at 12:01:24PM -0700, Kees Cook wrote: > On Fri, May 09, 2025 at 02:54:13PM +0200, Joel Granados wrote: > > Move cad_pid as well as supporting function proc_do_cad_pid into > > kernel/pic.c. Replaced call to __do_proc_dointvec with proc_dointvec > > inside proc_do_cad_pid which

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

2025-05-13 Thread Michael S. Tsirkin
On Tue, May 13, 2025 at 12:08:51PM +0800, Jason Wang wrote: > On Wed, Apr 30, 2025 at 5:27 PM Michael S. Tsirkin wrote: > > > > On Wed, Apr 30, 2025 at 11:34:49AM +0800, Jason Wang wrote: > > > On Tue, Apr 29, 2025 at 6:56 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Tue, Apr 29, 2025 a