[PATCH 2/2] selftests/mm: fix deadlock for fork after pthread_create on ARM

2024-10-03 Thread Edward Liaw
On Android with arm, there is some synchronization needed to avoid a deadlock when forking after pthread_create. Fixes: cff294582798 ("selftests/mm: extend and rename uffd pagemap test") Signed-off-by: Edward Liaw --- tools/testing/selftests/mm/uffd-unit-tests.c | 7 +++ 1 file

Re: [PATCH 3/3] rcu: Report callbacks enqueued on offline CPU blind spot

2024-10-02 Thread Frederic Weisbecker
head, > rcu_callback_t func, bool lazy_in) > head->func = func; > head->next = NULL; > kasan_record_aux_stack_noalloc(head); > + > local_irq_save(flags); > rdp = this_cpu_ptr(&rcu_data); > + RCU_LOCKDEP_WARN(rcu_rdp_cpu_online(rdp), "Call

[PATCH 3/3] rcu: Report callbacks enqueued on offline CPU blind spot

2024-10-02 Thread Frederic Weisbecker
c(head); + local_irq_save(flags); rdp = this_cpu_ptr(&rcu_data); + RCU_LOCKDEP_WARN(rcu_rdp_cpu_online(rdp), "Callback enqueued on offline CPU!"); + lazy = lazy_in && !rcu_async_should_hurry(); /* Add the callback to our list. */ -- 2.46.0

[PATCH 1/3] rcu/nocb: Use switch/case on NOCB timer state machine

2024-10-02 Thread Frederic Weisbecker
It's more convenient to benefit from the fallthrough feature of switch / case to handle the timer state machine. Also a new state is about to be added that will take advantage of it. No intended functional change. Signed-off-by: Frederic Weisbecker --- kernel/rcu/tree_nocb.h | 33 ++

[PATCH] arm64: dts: qcom: sm6350: Fix GPU frequencies missing on some speedbins

2024-10-02 Thread Luca Weiss
Make sure the GPU frequencies are marked as supported for the respective speedbins according to downstream msm-4.19 kernel: * 850 MHz: Speedbins 0 + 180 * 800 MHz: Speedbins 0 + 180 + 169 * 650 MHz: Speedbins 0 + 180 + 169 + 138 * 565 MHz: Speedbins 0 + 180 + 169 + 138 + 120 * 430 MHz: Speedbins 0

[PATCH net-next v8 06/24] ovpn: keep carrier always on

2024-10-02 Thread Antonio Quartulli
An ovpn interface will keep carrier always on and let the user decide when an interface should be considered disconnected. This way, even if an ovpn interface is not connected to any peer, it can still retain all IPs and routes and thus prevent any data leak. Signed-off-by: Antonio Quartulli

Re: [PATCH] KVM: selftests: Fix build on architectures other than x86_64

2024-10-01 Thread Paolo Bonzini
On Mon, Sep 30, 2024 at 8:10 PM Mark Brown wrote: > > The recent addition of support for testing with the x86 specific quirk > KVM_X86_QUIRK_SLOT_ZAP_ALL disabled in the generic memslot tests broke the > build of the KVM selftests for all other architectures: > > In file inc

[PATCH HID v3 7/9] selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device

2024-10-01 Thread Benjamin Tissoires
This will be useful to introduce variants in tests to test the interactions between HID-BPF and some kernel modules. Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/selftests/hid/hid_bpf.c| 2 +- tools/testing/selftes

[PATCH HID v3 5/9] selftests/hid: add dependency on hid_common.h

2024-10-01 Thread Benjamin Tissoires
Allows to recompile the C tests when that file changes Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/selftests/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/hid/

[PATCH HID v3 3/9] HID: core: remove one more kmemdup on .probe()

2024-10-01 Thread Benjamin Tissoires
That last kmemdup while opening the report descriptor was required to have a common kfree() on it. Move that kmemdup in the only special case it's required (if there is a .report_fixup()), and add a more elaborated check before freeing hdev->rdesc, to avoid a double free. Reviewed-b

Re: ARM64 Livepatch based on SFrame

2024-10-01 Thread Praveen Kumar
On 27-09-2024 13:11, Weinan Liu wrote: > We from Google are working on implementing SFrame unwinder for the Linux > kernel, > And we will be happy to collaborate with others for adding arm64 livepatch > support > Good to know Weinan! Happy to collaborate, please let me know w

[PATCH] KVM: selftests: Fix build on architectures other than x86_64

2024-09-30 Thread Mark Brown
| KVM_X86_QUIRK_SLOT_ZAP_ALL); | ^~ Add __x86_64__ guard defines to avoid building the relevant code on other architectures. Fixes: 61de4c34b51c ("KVM: selftests: Test memslot move in memslot_perf_test with quirk disabled") Fixes: 218f6415

[PATCH 0/3] Handle MMIO during event delivery error on SVM

2024-09-27 Thread Ivan Orlov
Currently, the situation when guest accesses MMIO during event delivery is handled differently in VMX and SVM: on VMX KVM returns internal error with suberror = KVM_INTERNAL_ERROR_DELIVERY_EV, when SVM simply goes into infinite loop trying to deliver an event again and again. This patch series

Re: ARM64 Livepatch based on SFrame

2024-09-27 Thread Weinan Liu
We from Google are working on implementing SFrame unwinder for the Linux kernel, And we will be happy to collaborate with others for adding arm64 livepatch support Weinan

Re: [PATCH 11/20] sched: Handle CPU isolation on last resort fallback rq selection

2024-09-27 Thread Michal Hocko
On Fri 27-09-24 00:48:59, Frederic Weisbecker wrote: > When a kthread or any other task has an affinity mask that is fully > offline or unallowed, the scheduler reaffines the task to all possible > CPUs as a last resort. > > This default decision doesn't mix up very well with

[PATCH 11/20] sched: Handle CPU isolation on last resort fallback rq selection

2024-09-26 Thread Frederic Weisbecker
When a kthread or any other task has an affinity mask that is fully offline or unallowed, the scheduler reaffines the task to all possible CPUs as a last resort. This default decision doesn't mix up very well with nohz_full CPUs that are part of the possible cpumask but don't want to be disturbed

ARM64 Livepatch based on SFrame

2024-09-26 Thread Praveen Kumar
Hi Mark, Hope you are doing great. I am interested to work on ARM64 livepatching using SFrame, and thus, reinitiating the old thread (Link: https://lore.kernel.org/all/ZXxO43Xwn5GHsrO8@FVFF77S0Q05N/). Please do let me know if there anything which I can help with, in developing this feature

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-24 Thread Martin KaFai Lau
On 9/17/24 6:15 PM, Tiago Lam wrote: On Fri, Sep 13, 2024 at 11:24:09AM -0700, Martin KaFai Lau wrote: On 9/13/24 2:39 AM, Tiago Lam wrote: This follows the same rationale provided for the ipv4 counterpart, where it now runs a reverse socket lookup when source addresses and/or ports are

Re: [RFC PATCH 1/3] ipv4: Run a reverse sk_lookup on sendmsg.

2024-09-20 Thread Tiago Lam
On Wed, Sep 18, 2024 at 08:45:23AM -0400, Willem de Bruijn wrote: > Tiago Lam wrote: > > In order to check if egress traffic should be allowed through, we run a > > reverse socket lookup (i.e. normal socket lookup with the src/dst > > addresses and ports reversed) to check

Re: [RFC PATCH 1/3] ipv4: Run a reverse sk_lookup on sendmsg.

2024-09-18 Thread Willem de Bruijn
ion makes it sound that the change always runs a reverse sk_lookup on sendmsg. It also focuses on the mechanism, rather than the purpose. The feature here adds IP_ORIGDSTADDR as a way to respond from a user configured address. With the sk_lookup limited to this new special case, as a safety to all

Re: [PATCH] selftests: riscv: Allow mmap test to compile on 32-bit

2024-09-17 Thread patchwork-bot+linux-riscv
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Thu, 08 Aug 2024 11:41:40 -0700 you wrote: > Macros needed for 32-bit compilations were hidden behind 64-bit riscv > ifdefs. Fix the 32-bit compilations by moving macros to allow the > memory_layout test

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-17 Thread Tiago Lam
On Fri, Sep 13, 2024 at 11:24:09AM -0700, Martin KaFai Lau wrote: > On 9/13/24 2:39 AM, Tiago Lam wrote: > > This follows the same rationale provided for the ipv4 counterpart, where > > it now runs a reverse socket lookup when source addresses and/or ports > > are changed,

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-17 Thread Tiago Lam
On Sat, Sep 14, 2024 at 09:59:50AM +0100, Simon Horman wrote: > On Fri, Sep 13, 2024 at 10:39:20AM +0100, Tiago Lam wrote: > > This follows the same rationale provided for the ipv4 counterpart, where > > it now runs a reverse socket lookup when source addresses and/or ports >

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-17 Thread Tiago Lam
On Sat, Sep 14, 2024 at 01:40:25PM +0200, Eric Dumazet wrote: > On Fri, Sep 13, 2024 at 11:39 AM Tiago Lam wrote: > > > > This follows the same rationale provided for the ipv4 counterpart, where > > it now runs a reverse socket lookup when source addresses and/or ports > &

Re: [PATCH] selftests: mm: Fix build errors on armhf

2024-09-15 Thread Muhammad Usama Anjum
On 9/14/24 3:33 AM, Jeff Xu wrote: > On Mon, Aug 19, 2024 at 3:05 AM Muhammad Usama Anjum > wrote: >> >> On 8/14/24 3:29 AM, Jeff Xu wrote: >>> Hi Muhammad >>> >>> On Fri, Aug 9, 2024 at 1:25 AM Muhammad Usama Anjum >>> wrote: >>>&g

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-14 Thread Eric Dumazet
On Fri, Sep 13, 2024 at 11:39 AM Tiago Lam wrote: > > This follows the same rationale provided for the ipv4 counterpart, where > it now runs a reverse socket lookup when source addresses and/or ports > are changed, on sendmsg, to check whether egress traffic should be > allowed t

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-14 Thread Simon Horman
On Fri, Sep 13, 2024 at 10:39:20AM +0100, Tiago Lam wrote: > This follows the same rationale provided for the ipv4 counterpart, where > it now runs a reverse socket lookup when source addresses and/or ports > are changed, on sendmsg, to check whether egress traffic should be > a

Re: [PATCH] selftests: mm: Fix build errors on armhf

2024-09-13 Thread Jeff Xu
On Mon, Aug 19, 2024 at 3:05 AM Muhammad Usama Anjum wrote: > > On 8/14/24 3:29 AM, Jeff Xu wrote: > > Hi Muhammad > > > > On Fri, Aug 9, 2024 at 1:25 AM Muhammad Usama Anjum > > wrote: > >> > >> The __NR_mmap isn't found on armhf. The mmap()

[PATCH 2/3] rcu/nocb: Conditionally wake up rcuo if not already waiting on GP

2024-09-13 Thread Frederic Weisbecker
A callback enqueuer currently wakes up the rcuo kthread if it is adding the first non-done callback of a CPU, whether the kthread is waiting on a grace period or not (unless the CPU is offline). This looks like a desired behaviour because then the rcuo kthread doesn't wait for the end o

Re: [RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-13 Thread Martin KaFai Lau
On 9/13/24 2:39 AM, Tiago Lam wrote: This follows the same rationale provided for the ipv4 counterpart, where it now runs a reverse socket lookup when source addresses and/or ports are changed, on sendmsg, to check whether egress traffic should be allowed to go through or not. As with ipv4, the

[RFC PATCH 2/3] ipv6: Run a reverse sk_lookup on sendmsg.

2024-09-13 Thread Tiago Lam
This follows the same rationale provided for the ipv4 counterpart, where it now runs a reverse socket lookup when source addresses and/or ports are changed, on sendmsg, to check whether egress traffic should be allowed to go through or not. As with ipv4, the ipv6 sendmsg path is also extended

[RFC PATCH 1/3] ipv4: Run a reverse sk_lookup on sendmsg.

2024-09-13 Thread Tiago Lam
In order to check if egress traffic should be allowed through, we run a reverse socket lookup (i.e. normal socket lookup with the src/dst addresses and ports reversed) to check if the corresponding ingress traffic is allowed in. Thus, if there's a sk_lookup reverse call returns a socket that match

Re: [PATCH 2/2] selftests/mm: skip virtual_address_range tests on riscv

2024-09-12 Thread Chunyan Zhang
Hi Charlie, On Fri, 13 Sept 2024 at 11:22, Charlie Jenkins wrote: > > On Fri, Sep 13, 2024 at 10:26:35AM +0800, Chunyan Zhang wrote: > > RISC-V doesn't currently have the behavior of restricting the virtual > > address space which virtual_address_range tests check, this w

Re: [PATCH 2/2] selftests/mm: skip virtual_address_range tests on riscv

2024-09-12 Thread Charlie Jenkins
On Fri, Sep 13, 2024 at 10:26:35AM +0800, Chunyan Zhang wrote: > RISC-V doesn't currently have the behavior of restricting the virtual > address space which virtual_address_range tests check, this will > cause the tests fail. So lets disable the whole test suite for riscv64 > for

[PATCH 2/2] selftests/mm: skip virtual_address_range tests on riscv

2024-09-12 Thread Chunyan Zhang
RISC-V doesn't currently have the behavior of restricting the virtual address space which virtual_address_range tests check, this will cause the tests fail. So lets disable the whole test suite for riscv64 for now, not build it and run_vmtests.sh will skip it if it is not present. Signed-off-by: C

Re: [PATCH] selftests: kselftest: Use strerror() on nolibc

2024-09-11 Thread Shuah Khan
On 9/11/24 09:44, Thomas Weißschuh wrote: Hi Shuah, On 2024-09-11 09:36:50+, Shuah Khan wrote: On 9/10/24 22:42, zhangjiao2 wrote: From: zhang jiao Nolibc gained an implementation of strerror() recently. Use it and drop the ifndef. Signed-off-by: zhang jiao --- tools/testing

Re: [PATCH] selftests: kselftest: Use strerror() on nolibc

2024-09-11 Thread Thomas Weißschuh
Hi Shuah, On 2024-09-11 09:36:50+, Shuah Khan wrote: > On 9/10/24 22:42, zhangjiao2 wrote: > > From: zhang jiao > > > > Nolibc gained an implementation of strerror() recently. > > Use it and drop the ifndef. > > > > Signed-off-by: zhang jiao

Re: [PATCH] selftests: kselftest: Use strerror() on nolibc

2024-09-11 Thread Shuah Khan
On 9/10/24 22:42, zhangjiao2 wrote: From: zhang jiao Nolibc gained an implementation of strerror() recently. Use it and drop the ifndef. Signed-off-by: zhang jiao --- tools/testing/selftests/kselftest.h | 8 1 file changed, 8 deletions(-) diff --git a/tools/testing/selftests

[PATCH] selftests: kselftest: Use strerror() on nolibc

2024-09-10 Thread zhangjiao2
From: zhang jiao Nolibc gained an implementation of strerror() recently. Use it and drop the ifndef. Signed-off-by: zhang jiao --- tools/testing/selftests/kselftest.h | 8 1 file changed, 8 deletions(-) diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kself

[PATCH v1 4/5] lib/Kconfig.debug: default STRICT_DEVMEM to "y" on s390x

2024-09-10 Thread David Hildenbrand
virtio-mem currently depends on !DEVMEM | STRICT_DEVMEM. Let's default STRICT_DEVMEM to "y" just like we do for arm64 and x86. There could be ways in the future to filter access to virtio-mem device memory even without STRICT_DEVMEM, but for now let's just keep it simple.

[PATCH net 1/3] selftests: mptcp: join: restrict fullmesh endp on 1st sf

2024-09-10 Thread Matthieu Baerts (NGI0)
A new endpoint using the IP of the initial subflow has been recently added to increase the code coverage. But it breaks the test when using old kernels not having commit 86e39e04482b ("mptcp: keep track of local endpoint still available for each msk"), e.g. on v5.15. Similar

Re: [PATCH] selftests: mm: Fix build errors on armhf

2024-09-10 Thread Liam R. Howlett
* Jeff Xu [240910 10:15]: > Hi Muhammad > > On Mon, Aug 19, 2024 at 3:05 AM Muhammad Usama Anjum > wrote: > > > > On 8/14/24 3:29 AM, Jeff Xu wrote: > > > Hi Muhammad > > > > > > On Fri, Aug 9, 2024 at 1:25 AM Muhammad Usama Anjum > > &

[PATCH HID v2 07/11] selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device

2024-09-10 Thread Benjamin Tissoires
This will be useful to introduce variants in tests to test the interactions between HID-BPF and some kernel modules. Signed-off-by: Benjamin Tissoires --- no changes in v2 --- tools/testing/selftests/hid/hid_bpf.c| 2 +- tools/testing/selftests/hid/hid_common.h | 46 --

[PATCH HID v2 05/11] selftests/hid: add dependency on hid_common.h

2024-09-10 Thread Benjamin Tissoires
Allows to recompile the C tests when that file changes Signed-off-by: Benjamin Tissoires --- no changes in v2 --- tools/testing/selftests/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefil

[PATCH HID v2 03/11] HID: core: remove one more kmemdup on .probe()

2024-09-10 Thread Benjamin Tissoires
That last kmemdup while opening the report descriptor was required to have a common kfree() on it. Move that kmemdup in the only special case it's required (if there is a .report_fixup()), and add a more elaborated check before freeing hdev->rdesc, to avoid a double free. Signed-off-by:

Re: [PATCH] selftests: mm: Fix build errors on armhf

2024-09-10 Thread Jeff Xu
Hi Muhammad On Mon, Aug 19, 2024 at 3:05 AM Muhammad Usama Anjum wrote: > > On 8/14/24 3:29 AM, Jeff Xu wrote: > > Hi Muhammad > > > > On Fri, Aug 9, 2024 at 1:25 AM Muhammad Usama Anjum > > wrote: > >> > >> The __NR_mmap isn't found on arm

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-09 Thread Yan Zhao
On Mon, Sep 09, 2024 at 03:24:40PM +0200, Paolo Bonzini wrote: > While this is a fix for future kernels, it doesn't change the result for VMs > already in existence. Though this is the truth, I have concerns that there may be other guest drivers with improper PAT configuration

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-09 Thread Sean Christopherson
On Mon, Sep 09, 2024, Paolo Bonzini wrote: > On 9/9/24 07:30, Yan Zhao wrote: > > On Thu, Sep 05, 2024 at 05:43:17PM +0800, Yan Zhao wrote: > > > On Wed, Sep 04, 2024 at 05:41:06PM -0700, Sean Christopherson wrote: > > > > On Wed, Sep 04, 2024, Yan Zhao wrote: > &

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-09 Thread Paolo Bonzini
On 9/9/24 07:30, Yan Zhao wrote: On Thu, Sep 05, 2024 at 05:43:17PM +0800, Yan Zhao wrote: On Wed, Sep 04, 2024 at 05:41:06PM -0700, Sean Christopherson wrote: On Wed, Sep 04, 2024, Yan Zhao wrote: On Wed, Sep 04, 2024 at 10:28:02AM +0800, Yan Zhao wrote: On Tue, Sep 03, 2024 at 06:20:27PM

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-08 Thread Yan Zhao
On Thu, Sep 05, 2024 at 05:43:17PM +0800, Yan Zhao wrote: > On Wed, Sep 04, 2024 at 05:41:06PM -0700, Sean Christopherson wrote: > > On Wed, Sep 04, 2024, Yan Zhao wrote: > > > On Wed, Sep 04, 2024 at 10:28:02AM +0800, Yan Zhao wrote: > > > > On Tue, Sep 03, 20

Re: [PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-06 Thread Shuah Khan
On 9/6/24 01:35, Muhammad Usama Anjum wrote: Hi Shuah, Thank you for fixing it. On 9/5/24 11:02 PM, Shuah Khan wrote: When resctrl is built on architectures without __cpuid_count() support, build fails. resctrl uses __cpuid_count() defined in kselftest.h. Even though the problem is seen

Re: [PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-06 Thread Shuah Khan
On 9/6/24 04:12, Ilpo Järvinen wrote: On Thu, 5 Sep 2024, Shuah Khan wrote: When resctrl is built on architectures without __cpuid_count() support, build fails. resctrl uses __cpuid_count() defined in kselftest.h. Even though the problem is seen while building resctrl on aarch64, this error

Re: [PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-06 Thread Ilpo Järvinen
On Thu, 5 Sep 2024, Shuah Khan wrote: > When resctrl is built on architectures without __cpuid_count() > support, build fails. resctrl uses __cpuid_count() defined in > kselftest.h. > > Even though the problem is seen while building resctrl on aarch64, > this error can be se

Re: [PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-06 Thread Muhammad Usama Anjum
Hi Shuah, Thank you for fixing it. On 9/5/24 11:02 PM, Shuah Khan wrote: > When resctrl is built on architectures without __cpuid_count() > support, build fails. resctrl uses __cpuid_count() defined in > kselftest.h. > > Even though the problem is seen while building resctrl on

Re: [PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-05 Thread Shuah Khan
On 9/5/24 14:45, Reinette Chatre wrote: Hi Shuah, Thank you very much for looking into this. On 9/5/24 11:02 AM, Shuah Khan wrote: When resctrl is built on architectures without __cpuid_count() support, build fails. resctrl uses __cpuid_count() defined in kselftest.h. Even though the problem

Re: [PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-05 Thread Reinette Chatre
Hi Shuah, Thank you very much for looking into this. On 9/5/24 11:02 AM, Shuah Khan wrote: When resctrl is built on architectures without __cpuid_count() support, build fails. resctrl uses __cpuid_count() defined in kselftest.h. Even though the problem is seen while building resctrl on

Re: [PATCH bpf-next v2 0/2] selftests/bpf: Enable vmtest for cross-compile arm64 on x86_64 host, and fix some issues.

2024-09-05 Thread Andrii Nakryiko
On Wed, Aug 28, 2024 at 5:17 AM Lin Yikai wrote: > > These two patch enable the use of "vmtest.sh" for cross-compile arm64 on > x86_64 host. > This is essential for utilizing BPF on Android (arm64), > as the compilation server is running on Ubuntu (x86). > > Foll

[PATCH] selftests:resctrl: Fix build failure on archs without __cpuid_count()

2024-09-05 Thread Shuah Khan
When resctrl is built on architectures without __cpuid_count() support, build fails. resctrl uses __cpuid_count() defined in kselftest.h. Even though the problem is seen while building resctrl on aarch64, this error can be seen on any platform that doesn't support CPUID. CPUID is a x86/x

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-05 Thread Yan Zhao
On Wed, Sep 04, 2024 at 05:41:06PM -0700, Sean Christopherson wrote: > On Wed, Sep 04, 2024, Yan Zhao wrote: > > On Wed, Sep 04, 2024 at 10:28:02AM +0800, Yan Zhao wrote: > > > On Tue, Sep 03, 2024 at 06:20:27PM +0200, Vitaly Kuznetsov wrote: > > > &g

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-04 Thread Sean Christopherson
On Wed, Sep 04, 2024, Yan Zhao wrote: > On Wed, Sep 04, 2024 at 10:28:02AM +0800, Yan Zhao wrote: > > On Tue, Sep 03, 2024 at 06:20:27PM +0200, Vitaly Kuznetsov wrote: > > > Sean Christopherson writes: > > > > > > > On Mon, Sep 02, 2024, Vitaly Kuznetsov wr

Re: next: rcu_preempt self-detected stall on CPU - queued_spin_lock_slowpath

2024-09-04 Thread Paul E. McKenney
On Wed, Sep 04, 2024 at 04:19:39PM +0200, Miklos Szeredi wrote: > On Wed, Sep 4, 2024 at 2:06 PM Naresh Kamboju > wrote: > > > > The following kernel rcu info generated while running the test case > > selftests: memfd: run_fuse_test.sh on qemu-arm64 running Linux >

Re: next: rcu_preempt self-detected stall on CPU - queued_spin_lock_slowpath

2024-09-04 Thread Miklos Szeredi
On Wed, Sep 4, 2024 at 2:06 PM Naresh Kamboju wrote: > > The following kernel rcu info generated while running the test case > selftests: memfd: run_fuse_test.sh on qemu-arm64 running Linux > next-20240902. The qemu-arm64 did not recover. > > This build was created with kself

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-04 Thread Yan Zhao
On Wed, Sep 04, 2024 at 10:28:02AM +0800, Yan Zhao wrote: > On Tue, Sep 03, 2024 at 06:20:27PM +0200, Vitaly Kuznetsov wrote: > > Sean Christopherson writes: > > > > > On Mon, Sep 02, 2024, Vitaly Kuznetsov wrote: > > >> FWIW, I use QEMU-9.0 from the sam

next: rcu_preempt self-detected stall on CPU - queued_spin_lock_slowpath

2024-09-04 Thread Naresh Kamboju
The following kernel rcu info generated while running the test case selftests: memfd: run_fuse_test.sh on qemu-arm64 running Linux next-20240902. The qemu-arm64 did not recover. This build was created with kselftest merge configs. Anders bisected this to, # first bad commit

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-04 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Sean Christopherson writes: > >> On Mon, Sep 02, 2024, Vitaly Kuznetsov wrote: >>> FWIW, I use QEMU-9.0 from the same C10S (qemu-kvm-9.0.0-7.el10.x86_64) >>> but I don't think it matters in this case. My CPU is "Intel(R) Xeon(R

[PATCH 10/19] dt-bindings: firmware: qcom,scm: document SCM on QCS8300 SoCs

2024-09-04 Thread Jingyi Wang
From: Zhenhua Huang Document scm compatible for QCS8300 SoCs. It is an interface to communicate to the secure firmware. Signed-off-by: Zhenhua Huang Signed-off-by: Jingyi Wang --- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Docu

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-03 Thread Yan Zhao
On Tue, Sep 03, 2024 at 06:20:27PM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > On Mon, Sep 02, 2024, Vitaly Kuznetsov wrote: > >> FWIW, I use QEMU-9.0 from the same C10S (qemu-kvm-9.0.0-7.el10.x86_64) > >> but I don't think it matters in

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-03 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Mon, Sep 02, 2024, Vitaly Kuznetsov wrote: >> FWIW, I use QEMU-9.0 from the same C10S (qemu-kvm-9.0.0-7.el10.x86_64) >> but I don't think it matters in this case. My CPU is "Intel(R) Xeon(R) >> Silver 4410Y". > > Has

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-03 Thread Sean Christopherson
On Mon, Sep 02, 2024, Vitaly Kuznetsov wrote: > FWIW, I use QEMU-9.0 from the same C10S (qemu-kvm-9.0.0-7.el10.x86_64) > but I don't think it matters in this case. My CPU is "Intel(R) Xeon(R) > Silver 4410Y". Has this been reproduced on any other hardware besides SPR?

[PATCH v4 4/4] kselftest: Provide __cpuid_count() stub on non-x86 archs

2024-09-03 Thread Ilpo Järvinen
Building resctrl selftest fails on ARM because it uses __cpuid_count() that fails the build with error: CC resctrl_tests In file included from resctrl.h:24, from cat_test.c:11: In function 'arch_supports_noncont_cat', inlined from 'noncont_cat_run_test

Re: [PATCH v3 3/3] kselftest: Provide __cpuid_count() stub on non-x86 archs

2024-09-03 Thread Ilpo Järvinen
On Thu, 29 Aug 2024, Ilpo Järvinen wrote: > Building resctrl selftest fails on ARM because it uses __cpuid_count() > that fails the build with error: > > CC resctrl_tests > In file included from resctrl.h:24, > from cat_test.c:11: > In function '

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-02 Thread Vitaly Kuznetsov
Yan Zhao writes: > On Fri, Aug 30, 2024 at 03:47:11PM +0200, Vitaly Kuznetsov wrote: >> Gerd Hoffmann writes: >> >> >> Necroposting! >> >> >> >> Turns out that this change broke "bochs-display" driver in QEMU even >> >

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-02 Thread Gerd Hoffmann
and ignore guest PAT if the VM does NOT have a > > non-coherent > > -* device attached and the CPU doesn't support self-snoop. Letting > > the > > -* guest control memory types on Intel CPUs without self-snoop may > > -* result in unexpe

Re: [PATCH 5/5] KVM: VMX: Always honor guest PAT on CPUs that support self-snoop

2024-09-01 Thread Yan Zhao
On Fri, Aug 30, 2024 at 03:47:11PM +0200, Vitaly Kuznetsov wrote: > Gerd Hoffmann writes: > > >> Necroposting! > >> > >> Turns out that this change broke "bochs-display" driver in QEMU even > >> when the guest is modern (don't ask me

[PATCH v17 14/16] x86/sgx: Turn on per-cgroup EPC reclamation

2024-08-30 Thread Haitao Huang
From: Kristen Carlson Accardi Previous patches have implemented all infrastructure needed for per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC pages are still tracked in the global LRU as sgx_epc_page_lru() always returns reference to the global LRU. Change sgx_epc_page_lru()

Re: [PATCH net-next v4 0/2] vsock: avoid queuing on intermediate queue if possible

2024-08-29 Thread Michael S. Tsirkin
On Thu, Aug 29, 2024 at 02:33:11PM +0200, Stefano Garzarella wrote: > On Thu, Aug 29, 2024 at 08:19:31AM GMT, Michael S. Tsirkin wrote: > > On Thu, Aug 29, 2024 at 01:00:37PM +0200, Luigi Leonardi wrote: > > > Hi All, > > > > > > It has been a while since t

Re: [PATCH net-next v4 0/2] vsock: avoid queuing on intermediate queue if possible

2024-08-29 Thread Stefano Garzarella
On Thu, Aug 29, 2024 at 08:19:31AM GMT, Michael S. Tsirkin wrote: On Thu, Aug 29, 2024 at 01:00:37PM +0200, Luigi Leonardi wrote: Hi All, It has been a while since the last email and this patch has not been merged yet. This is just a gentle ping :) Thanks, Luigi ok I can queue it for next

Re: [PATCH net-next v4 0/2] vsock: avoid queuing on intermediate queue if possible

2024-08-29 Thread Michael S. Tsirkin
On Thu, Aug 29, 2024 at 01:00:37PM +0200, Luigi Leonardi wrote: > Hi All, > > It has been a while since the last email and this patch has not been merged > yet. > This is just a gentle ping :) > > Thanks, > Luigi ok I can queue it for next. Next time pls remember to CC

Re: [PATCH net-next v4 0/2] vsock: avoid queuing on intermediate queue if possible

2024-08-29 Thread Luigi Leonardi
inna-v4-2-5c9179164...@outlook.com/ >Actually this is more about the virtio-vsock driver, so can you queue >this on your tree? >Thanks, >Stefano

Re: [PATCH v16 14/16] x86/sgx: Turn on per-cgroup EPC reclamation

2024-08-27 Thread Huang, Kai
On 21/08/2024 1:54 pm, Haitao Huang wrote: From: Kristen Carlson Accardi Previous patches have implemented all infrastructure needed for per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC pages are still tracked in the global LRU as sgx_epc_page_lru() always returns

[PATCH v3 5/6] documentation: Update on livepatch elf format

2024-08-27 Thread Lukas Hruska
Add a section to Documentation/livepatch/module-elf-format.rst describing how klp-convert works for fixing relocations. Signed-off-by: Lukas Hruska Reviewed-by: Petr Mladek Reviewed-by: Marcos Paulo de Souza --- Documentation/livepatch/module-elf-format.rst | 67 +++ 1 file cha

Re: NOHZ tick-stop error: local softirq work is pending, handler #08!!! on Dell XPS 13 9360

2024-08-21 Thread Paul Menzel
-Maria Behnsen: Paul Menzel writes: On Dell XPS 13 9360/0596KF, BIOS 2.21.0 06/02/2022, with Linux 6.9- rc2+ built from commit b1e6ec0a0fd0 (Merge tag 'docs-6.9-fixes' of git://git.lwn.net/linux) the external USB-C adapter Dell DA300 stopped working (only the Ethernet port was used). Li

Re: NOHZ tick-stop error: local softirq work is pending, handler #08!!! on Dell XPS 13 9360

2024-08-21 Thread Paul Menzel
Dear Anna-Maria, Thank you very much for the support. I was finally able to collect the data you asked for. Am 09.04.24 um 09:57 schrieb Anna-Maria Behnsen: Paul Menzel writes: […] Am 08.04.24 um 12:10 schrieb Anna-Maria Behnsen: Paul Menzel writes: On Dell XPS 13 9360/0596KF, BIOS

[PATCH v16 14/16] x86/sgx: Turn on per-cgroup EPC reclamation

2024-08-20 Thread Haitao Huang
From: Kristen Carlson Accardi Previous patches have implemented all infrastructure needed for per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC pages are still tracked in the global LRU as sgx_epc_page_lru() always returns reference to the global LRU. Change sgx_epc_page_lru()

Re: [PATCH v11 0/9] TI K3 M4F support on AM62 and AM64 SoCs

2024-08-19 Thread Wadim Egorov
eries adding M4 support. Anyway, details on our M4F subsystem can be found the the AM62 TRM in the section on the same: AM62x Technical Reference Manual (SPRUIV7A – MAY 2022) https://www.ti.com/lit/pdf/SPRUIV7A Thanks, Andrew [0] https://lore.kernel.org/linux-arm-kernel/20240202175538.1705-5-hn

[PATCH v13 19/20] Documentation: probes: Update fprobe on function-graph tracer

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Update fprobe documentation for the new fprobe on function-graph tracer. This includes some bahvior changes and pt_regs to ftrace_regs interface change. Signed-off-by: Masami Hiramatsu (Google) --- Changes in v2: - Update @fregs parameter explanation

[PATCH v13 14/20] fprobe: Rewrite fprobe on function-graph tracer

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Rewrite fprobe implementation on function-graph tracer. Major API changes are: - 'nr_maxactive' field is deprecated. - This depends on CONFIG_DYNAMIC_FTRACE_WITH_ARGS or !CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS, and CONFIG_HAVE_FUNCTION_GRAPH

[PATCH v13 00/20] tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph

2024-08-18 Thread Masami Hiramatsu (Google)
Hi, Here is the 13th version of the series to re-implement the fprobe on function-graph tracer. The previous version is; https://lore.kernel.org/all/172000134410.63468.1374887213469474.stgit@devnote2/ This version is based on v6.11-rc3. In this version, I added a bugfix as [1/20], which

[PATCH v3 5/5] sefltests/tracing: Add a test for tracepoint events on modules

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Add a test case for tracepoint events on modules. This checks if it can add and remove the events correctly. Signed-off-by: Masami Hiramatsu (Google) --- Changes in v3: - Add not-loaded module test. --- tools/testing/selftests/ftrace/config

[PATCH v3 4/5] tracing/fprobe: Support raw tracepoints on future loaded modules

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Support raw tracepoint events on future loaded (unloaded) modules. This allows user to create raw tracepoint events which can be used from module's __init functions. Note: since the kernel does not have any information about the tracepoints in the unl

[PATCH v3 3/5] tracing/fprobe: Support raw tracepoint events on modules

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Support raw tracepoint event on module by fprobe events. Since it only uses for_each_kernel_tracepoint() to find a tracepoint, the tracepoints on modules are not handled. Thus if user specified a tracepoint on a module, it shows an error. This adds new

[PATCH v3 1/5] tracepoint: Support iterating over tracepoints on modules

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Add for_each_module_tracepoint() for iterating over tracepoints on modules. This is similar to the for_each_kernel_tracepoint() but only for the tracepoints on modules (not including kernel built-in tracepoints). Signed-off-by: Masami Hiramatsu (Google

[PATCH v3 0/5] tracing/probes: Support tracepoint events on modules

2024-08-18 Thread Masami Hiramatsu (Google)
Hi, This is the 3rd version of the raw tracepoint events on modules. The previous version is here; https://lore.kernel.org/all/fbfec8d9-d0ed-4384-bbd2-dd5c1e568...@efficios.com/ This version supports tracepoint event on unloaded modules according to Mathies' suggestion ([2/5],[4/5] and pa

[PATCH v3 2/6] rtla: Add optional dependency on libcpupower

2024-08-15 Thread tglozar
From: Tomas Glozar If libcpupower is present, set HAVE_LIBCPUPOWER_SUPPORT macro to allow features depending on libcpupower in rtla. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/Makefile| 2 ++ tools/tracing/rtla/Makefile.config | 10 ++ 2 files changed, 12 insertions

[PATCH v3 0/2] uprobes: Improve scalability by reducing the contention on siglock

2024-08-14 Thread Liao Chang
The profiling result of BPF selftest on ARM64 platform reveals the significant contention on the current->sighand->siglock is the scalability bottleneck. The reason is also very straightforward that all producer threads of benchmark have to contend the spinlock mentioned to resu

[PATCH 1/2] x86/vmware: Log kmsg dump on panic

2024-08-14 Thread Alexey Makhalov
ATUS_SUCCESS) == 0) { + if (info & MESSAGE_STATUS_CPT) + /* A checkpoint occurred. Retry. */ + goto retry; + return 1; + } + return 0; +} +STACK_FRAME_NON_STANDARD(vmware_log_send); + +/** + * kmsg_dumper_vmware_log - dumps kms

[PATCH net-next v7 3/4] virtio-net: synchronize operstate with admin state on up/down

2024-08-13 Thread Jason Wang
This patch synchronizes operstate with admin state per RFC2863. This is done by trying to toggle the carrier upon open/close and synchronize with the config change work. This allows to propagate status correctly to stacked devices like: ip link add link enp0s3 macvlan0 type macvlan ip link set li

Re: [PATCH v2 2/3] tracing/fprobe: Support raw tracepoint events on modules

2024-08-13 Thread Google
Hi, Sorry I missed this thread. Thanks for your comments. On Tue, 4 Jun 2024 14:03:05 -0400 Mathieu Desnoyers wrote: > On 2024-06-04 12:34, Steven Rostedt wrote: > > On Tue, 4 Jun 2024 11:02:16 -0400 > > Mathieu Desnoyers wrote: > > > >> I see. > >> &g

Re: [PATCH] dt-bindings: remoteproc: xlnx,zynqmp-r5fss: add missing "additionalProperties" on child nodes

2024-08-13 Thread Mathieu Poirier
On Sun, Aug 11, 2024 at 05:34:38PM +0200, Krzysztof Kozlowski wrote: > All nodes need an explicit additionalProperties or unevaluatedProperties > unless a $ref has one that's false. Add missing additionalProperties > to fix dt_binding_check warning: > > xlnx,zynqmp-r5fss.

Re: [PATCH] dt-bindings: remoteproc: xlnx,zynqmp-r5fss: add missing "additionalProperties" on child nodes

2024-08-12 Thread Tanmay Shah
Reviewed-by: Tanmay Shah On 8/11/24 10:34 AM, Krzysztof Kozlowski wrote: > All nodes need an explicit additionalProperties or unevaluatedProperties > unless a $ref has one that's false. Add missing additionalProperties > to fix dt_binding_check warning: > > xlnx,zynqmp-r

  1   2   3   4   5   6   7   8   9   10   >