Re: [PATCH 2/2] kselftests: mm: Fail the test if userfaultfd syscall isn't found

2024-09-12 Thread Shuah Khan
On 9/12/24 04:31, Muhammad Usama Anjum wrote: The userfaultfd is enabled in the config fragment of mm selftest suite. It must always be present. If it isn't present, we should throw error and not just skip. This would have helped us catch the test breakage. Please elaborate on this to

Re: [PATCH 13/13] media: i2c: imx214: Add test pattern control

2024-09-12 Thread Ricardo Ribalda Delgado
+181,23 @@ > > #define IMX214_REG_ATR_FAST_MOVE CCI_REG8(0x9300) > > +/* Test Pattern Control */ > +#define IMX214_REG_TEST_PATTERNCCI_REG16(0x0600) > +#define IMX214_TEST_PATTERN_DISABLE0 > +#define IMX214_TEST_PATTERN_SOLID_

[PATCH 2/2] kselftests: mm: Fail the test if userfaultfd syscall isn't found

2024-09-12 Thread Muhammad Usama Anjum
The userfaultfd is enabled in the config fragment of mm selftest suite. It must always be present. If it isn't present, we should throw error and not just skip. This would have helped us catch the test breakage. Adding this now to catch the future breakages. Signed-off-by: Muhammad Usama

Re: [PATCH net-next] page_pool: add a test module for page_pool

2024-09-11 Thread Yunsheng Lin
gt;>> My preference here (for the performance part) is to upstream the >>> out-of-tree tests that Jesper (and probably others) are using, rather >>> than adding a new performance test that is not as battle-hardened. >> >> I looked through the out-of-tree tests agai

[RFC PATCH 35/39] KVM: selftests: Test that pinned pages block KVM from setting memory attributes to PRIVATE

2024-09-10 Thread Ackerley Tng
CONFIG_GUP_TEST provides userspace with an ioctl to invoke pin_user_pages(), and this test uses the ioctl to pin pages, to check that memory attributes cannot be set to private if shared pages are pinned. Signed-off-by: Ackerley Tng --- tools/testing/selftests/kvm/Makefile | 1

[RFC PATCH 33/39] KVM: selftests: Test guest_memfd memory sharing between guest and host

2024-09-10 Thread Ackerley Tng
Minimal test for guest_memfd to test that when memory is marked shared in a VM, the host can read and write to it via an mmap()ed address, and the guest can also read and write to it. Signed-off-by: Ackerley Tng --- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm

[RFC PATCH 32/39] KVM: selftests: Test using guest_memfd memory from userspace

2024-09-10 Thread Ackerley Tng
Test using guest_memfd from userspace, since guest_memfd now has mmap() support. Tests: 1. mmap() should now always return a valid address 2. Test that madvise() doesn't give any issues when pages are not faulted in. 3. Test that pages should not be faultable before association w

[RFC PATCH 21/39] KVM: selftests: Test that guest_memfd usage is reported via hugetlb

2024-09-10 Thread Ackerley Tng
Using HugeTLB as the huge page allocator for guest_memfd allows reuse of HugeTLB's reporting mechanism. Signed-off-by: Ackerley Tng --- tools/testing/selftests/kvm/Makefile | 1 + .../kvm/guest_memfd_hugetlb_reporting_test.c | 222 ++ 2 files changed, 223 insertions(+

[RFC PATCH 19/39] KVM: selftests: Update test for various private memory backing source types

2024-09-10 Thread Ackerley Tng
Update private_mem_conversions_test for various private memory backing source types. Signed-off-by: Ackerley Tng --- .../kvm/x86_64/private_mem_conversions_test.c | 28 ++- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/kvm/x86_64/private_m

[PATCH HID v2 11/11] selftests/hid: add test to disable hid-input

2024-09-10 Thread Benjamin Tissoires
Add a test for the newly enabled feature to control the connect_mask of hid-generic. Signed-off-by: Benjamin Tissoires --- changes in v2: - amended for the new API --- tools/testing/selftests/hid/hid_bpf.c | 60 +- tools/testing/selftests/hid/progs/hid.c

[PATCH HID v2 09/11] selftests/hid: add test for assigning a given device to hid-generic

2024-09-10 Thread Benjamin Tissoires
We use a well known VID/PID on a driver that doesn't need to talk to the device, ensures we created the device against the target driver, then load our program and ensure we have unbound to this driver and use hid-generic instead. Signed-off-by: Benjamin Tissoires --- changes in v2: - amended f

[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

Re: [PATCH net-next] page_pool: add a test module for page_pool

2024-09-10 Thread Jesper Dangaard Brouer
cpu, and a kthread/napi binded to a specified cpu will pop the page from the ptr_ring and free it back to the page_pool. Signed-off-by: Yunsheng Lin It seems this test is has a correctness part and a performance part. For the performance test, Jesper has out of tree tests for the page_pool

Re: [PATCH net-next] page_pool: add a test module for page_pool

2024-09-10 Thread Yunsheng Lin
nd a kthread/napi >> binded to a specified cpu will pop the page from the ptr_ring >> and free it back to the page_pool. >> >> Signed-off-by: Yunsheng Lin > > It seems this test is has a correctness part and a performance part. > For the performance test, Jesper has

[RESEND PATCH v2] list: test: Mending tests for list_cut_position()

2024-09-09 Thread I Hsin Cheng
Mending test for list_cut_position*() for the missing check of integer "i" after the second loop. The variable should be checked for second time to make sure both lists after the cut operation are formed as expected. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 6 ++ 1 file

[PATCH] list: test: Mending tests for list_cut_position()

2024-09-09 Thread I Hsin Cheng
Mending test for list_cut_position*() for the missing check of integer "i" after the second loop. The variable should be checked for second time to make sure both lists after the cut operation are formed as expected. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 6 ++ 1 file

[PATCH] list: test: Increasing coverage of list_test_list_replace*()

2024-09-09 Thread I Hsin Cheng
Increase the test coverage of list_test_list_replace*() by adding the checks to compare the pointer of "a_new.next" and "a_new.prev" to make sure a perfect circular doubly linked list is formed after the replacement. Signed-off-by: I Hsin Cheng --- lib/list-test.c | 4 +++

[PATCH RFC 3/3] selftest: gpio: Add a new set-get config test

2024-09-09 Thread Nícolas F . R . A . Prado
retrieved from userspace. The test reads the test plan from a YAML file, which includes the chips and pin settings to set and validate. Signed-off-by: Nícolas F. R. A. Prado --- tools/testing/selftests/gpio/Makefile | 2 +- .../gpio-set-get-config-example-test-plan.yaml | 15

[PATCH RFC 0/3] Verify bias functionality for pinctrl_paris driver through new gpio test

2024-09-09 Thread Nícolas F . R . A . Prado
This series was motivated by the regression fixed by 166bf8af9122 ("pinctrl: mediatek: common-v2: Fix broken bias-disable for PULL_PU_PD_RSEL_TYPE"). A bug was introduced in the pinctrl_paris driver which prevented certain pins from having their bias configured. Running this test on

Re: [PATCH net-next] page_pool: add a test module for page_pool

2024-09-09 Thread Mina Almasry
e page from the ptr_ring > and free it back to the page_pool. > > Signed-off-by: Yunsheng Lin It seems this test is has a correctness part and a performance part. For the performance test, Jesper has out of tree tests for the page_pool: https://github.com/netoptimizer/prototype-kerne

[PATCH net-next] page_pool: add a test module for page_pool

2024-09-09 Thread Yunsheng Lin
/testing/selftests/net/page_pool/page_pool_test.c new file mode 100644 index ..475b64f21b78 --- /dev/null +++ b/tools/testing/selftests/net/page_pool/page_pool_test.c @@ -0,0 +1,433 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * Test module for page_pool + * + * Copyright (C) 2024

Re: [PATCH v2] selftests/futex: Create test for robust list

2024-09-07 Thread kernel test robot
Hi André, kernel test robot noticed the following build warnings: [auto build test WARNING on tip/locking/core] [also build test WARNING on linus/master v6.11-rc6 next-20240906] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH 2/3] list: test: Add a test for hlist_cut_number()

2024-09-06 Thread David Gow
On Wed, 4 Sept 2024 at 21:43, 'Zhen Lei' via KUnit Development wrote: > > Test cases cover all possible situations: > 1. The cut number is invalid: zero or negative > 2. Partially cut. > 3. Cut all. > 4. The cut number is greater than the number of nodes in the ol

[PATCH net-next v2 3/5] selftests: mptcp: reset the last TS before the first test

2024-09-06 Thread Matthieu Baerts (NGI0)
Just to slightly improve the precision of the duration of the first test. In mptcp_join.sh, the last append_prev_results is now done as soon as the last test is over: this will add the last result in the list, and get a more precise time for this last test. Reviewed-by: Mat Martineau Signed-off

[PATCH 3/3] KVM: selftests: Add guest Intel PT test

2024-09-06 Thread Adrian Hunter
Add a test that starts Intel PT traces on host and guest. The test requires support for Intel PT and having Host/Guest mode enabled i.e. kvm_intel module parameter pt_mode=1. Signed-off-by: Adrian Hunter --- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/include/x86_64

[PATCH net-next v18 01/14] mm: page_frag: add a test module for page_frag

2024-09-06 Thread Yunsheng Lin
/testing/selftests/mm/page_frag/page_frag_test.c new file mode 100644 index ..6d6f31936b10 --- /dev/null +++ b/tools/testing/selftests/mm/page_frag/page_frag_test.c @@ -0,0 +1,170 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* + * Test module for page_frag cache + * + * Copyright (C) 2024

[PATCH v3 8/9] KVM: selftests: Add a CoCo-specific test for KVM_PRE_FAULT_MEMORY

2024-09-05 Thread Pratik R. Sampat
KVM_PRE_FAULT_MEMORY requests are issued while setting up the guests. Since these CoCo-specific events are likely to be architecture-specific KST helpers, take the existing generic test in pre_fault_memory_test.c as a starting template, and then introduce an x86-specific version of it with expanded coverage for

[PATCH v3 6/9] KVM: selftests: SEV-SNP test for KVM_SEV_INIT2

2024-09-05 Thread Pratik R. Sampat
Add SEV-SNP VM type to exercise the KVM_SEV_INIT2 call. Also ensure that SNP case is skipped for scenarios where CPUID supports it but KVM does not so that a failure is not reported for such cases. Signed-off-by: Pratik R. Sampat Tested-by: Peter Gonda Tested-by: Srikanth Aithal --- .../testi

[PATCH v3 5/9] KVM: selftests: SNP IOCTL test

2024-09-05 Thread Pratik R. Sampat
Introduce testing of SNP ioctl calls. Tests attributes such as flags, page types, and policies in various combinations along the SNP launch path. Signed-off-by: Pratik R. Sampat Tested-by: Peter Gonda Tested-by: Srikanth Aithal --- .../testing/selftests/kvm/include/kvm_util.h | 11 ++ .../se

[PATCH v3 4/9] KVM: selftests: SEV IOCTL test

2024-09-05 Thread Pratik R. Sampat
policy: 0x%lx", + type, policy); + sev_guest_neg_status_assert(vm, type); +} + +/* + * Test for SEV ioctl launch path + * VMs of the type SEV and SEV-ES are created, however they are launched with + * an empty policy to observe the effect on the control flow of launching a

[PATCH v3 2/9] KVM: selftests: Add a basic SNP smoke test

2024-09-05 Thread Pratik R. Sampat
Extend sev_smoke_test to also run a minimal SEV-SNP smoke test that initializes and sets up private memory regions required to run a simple SEV-SNP guest. Similar to its SEV-ES smoke test counterpart, this also does not support GHCB and ucall yet and uses the GHCB MSR protocol to trigger an exit

[PATCH 10/18] kunit: string-stream-test: Include instead of

2024-09-05 Thread Uros Bizjak
Usage of pseudo-random functions requires inclusion of header instead of . Signed-off-by: Uros Bizjak Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar Cc: linux-kselft...@vger.kernel.org Cc: kunit-...@googlegroups.com --- lib/kunit/string-stream-test.c | 1 + 1 file changed, 1 insertion(+) di

Re: [PATCH v2] selftests/futex: Create test for robust list

2024-09-04 Thread Shuah Khan
On 9/3/24 07:40, André Almeida wrote: Create a test for the robust list mechanism. What does this test - can you elaborate on the testing details? It will help reviewers catch if any tests are missed or not - be able to review the patch. Include output from the test in the chane log

Re: [PATCH net-next v17 01/14] mm: page_frag: add a test module for page_frag

2024-09-04 Thread Alexander Duyck
On Mon, Sep 2, 2024 at 5:09 AM Yunsheng Lin wrote: > > The testing is done by ensuring that the fragment allocated > from a frag_frag_cache instance is pushed into a ptr_ring > instance in a kthread binded to a specified cpu, and a kthread > binded to a specified cpu will pop the fragment from the

[PATCH 2/3] list: test: Add a test for hlist_cut_number()

2024-09-04 Thread Zhen Lei
Test cases cover all possible situations: 1. The cut number is invalid: zero or negative 2. Partially cut. 3. Cut all. 4. The cut number is greater than the number of nodes in the old list. 5. The old list is empty. Signed-off-by: Zhen Lei --- lib/list-test.c | 51

[PATCH v2] selftests/futex: Create test for robust list

2024-09-03 Thread André Almeida
Create a test for the robust list mechanism. Signed-off-by: André Almeida --- Changes from v1: - Change futex type from int to _Atomic(unsigned int) - Use old futex(FUTEX_WAIT) instead of the new sys_futex_wait() --- .../selftests/futex/functional/.gitignore | 1 + .../selftests/futex

[PATCH] utimer-test: remove unused variables

2024-09-02 Thread bajing
..9d2683c83ef3 100644 --- a/tools/testing/selftests/alsa/utimer-test.c +++ b/tools/testing/selftests/alsa/utimer-test.c @@ -140,7 +140,6 @@ TEST_F(timer_f, utimer) { TEST(wrong_timers_test) { int timer_dev_fd; int utimer_fd; - size_t i; struct snd_timer_uinfo wrong_timer

[PATCH 13/13] media: i2c: imx214: Add test pattern control

2024-09-02 Thread André Apitzsch via B4 Relay
/imx214.c index 6493a9b9ea88..6d67c7b307bd 100644 --- a/drivers/media/i2c/imx214.c +++ b/drivers/media/i2c/imx214.c @@ -181,6 +181,23 @@ #define IMX214_REG_ATR_FAST_MOVE CCI_REG8(0x9300) +/* Test Pattern Control */ +#define IMX214_REG_TEST_PATTERNCCI_REG16(0x0600) +#define

Re: [PATCH bpf-next 2/2] selftests/bpf: Add uprobe pid filter test for multiple processes

2024-08-30 Thread Andrii Nakryiko
> --- > .../bpf/prog_tests/uprobe_multi_test.c| 103 ++ > .../bpf/progs/uprobe_multi_pid_filter.c | 61 +++ > 2 files changed, 164 insertions(+) > create mode 100644 > tools/testing/selftests/bpf/progs/uprobe_multi_pid_filter.c > It&#

Re: [PATCH bpf-next 0/2] selftests/bpf: Add uprobe pid filter test

2024-08-30 Thread Stanislav Fomichev
On 08/29, Jiri Olsa wrote: > hi, > in response to [1] patch, I'm adding bpf selftest that confirms the > change fixes problem for bpf programs trigered by return uprobe created > over perf event. > > Oleg pointed out other issues with uprobe_multi pid filter, > I plan to send another patchset for

[PATCH bpf-next 2/2] selftests/bpf: Add uprobe pid filter test for multiple processes

2024-08-29 Thread Jiri Olsa
e_link_t create_link, bool retprobe) +{ + struct bpf_link *link[TASKS] = {}; + struct child child[TASKS] = {}; + int i; + + printf("%s retprobe %d\n", create_link == create_link_uprobe ? "uprobe" : "uprobe_multi", + retprobe); + +

[PATCH bpf-next 0/2] selftests/bpf: Add uprobe pid filter test

2024-08-29 Thread Jiri Olsa
https://lore.kernel.org/linux-trace-kernel/me0p300mb0416034322b9915ecd3888649d...@me0p300mb0416.ausp300.prod.outlook.com/ --- Jiri Olsa (2): selftests/bpf: Add child argument to spawn_child function selftests/bpf: Add uprobe pid filter test for multiple processes tools/testing/selftest

[PATCH v3 7/6 DONT_MERGE] selftests: livepatch: Test failing IBT checks crashing the module

2024-08-27 Thread Lukas Hruska
This patch is only an example of how to generate #GP by IBT. It serves only as an example for those wondering how the Linux behaves in this case. Don't merge this patch, because it causes a refcount underflow of the test module, so it's not possible to unload it. Signed-off-by: Lu

[PATCH v3 6/6] selftests: livepatch: Test livepatching function using an external symbol

2024-08-27 Thread Lukas Hruska
The test proves that klp-convert works as intended and it is possible to livepatch a function that use an external symbol. Signed-off-by: Lukas Hruska Reviewed-by: Petr Mladek Tested-by: Petr Mladek --- tools/testing/selftests/livepatch/Makefile| 3 +- .../testing/selftests/livepatch

[PATCH v13 18/20] selftests/ftrace: Add a test case for repeating register/unregister fprobe

2024-08-18 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) This test case repeats define and undefine the fprobe dynamic event to ensure that the fprobe does not cause any issue with such operations. Signed-off-by: Masami Hiramatsu (Google) --- .../test.d/dynevent/add_remove_fprobe_repeat.tc| 19

[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

Re: [PATCH v4 0/4] Add SBAF test to IFS

2024-08-12 Thread Hans de Goede
Hi, On 8/1/24 7:18 AM, Kuppuswamy Sathyanarayanan wrote: > This patch series adds support for Structural Based Functional Test at > Field (SBAF) in the IFS driver. SBAF is a new type of testing that > provides comprehensive core test coverage, complementing existing IFS > tests like S

[PATCH v2] LoongArch: Revert qspinlock to test-and-set simple lock on VM

2024-08-05 Thread Bibo Mao
Similar with x86, when VM is detected, revert to a simple test-and-set lock to avoid the horrors of queue preemption. Tested on 3C5000 Dual-way machine with 32 cores and 2 numa nodes, test case is kcbench on kernel mainline 6.10, the detailed command is "kcbench --src /root/src/

Re: [syzbot] [trace?] linux-next test error: WARNING in rcu_core

2024-08-02 Thread Marco Elver
On Fri, 2 Aug 2024 at 09:58, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:f524a5e4dfb7 Add linux-next specific files for 20240802 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=174c896d98 > kernel config: https

[syzbot] [trace?] linux-next test error: WARNING in rcu_core

2024-08-02 Thread syzbot
41 f7 c7 00 02 00 00test $0x200,%r15d 1e: 74 01 je 0x21 20: fb sti 21: 48 c7 44 24 40 0e 36movq $0x45e0360e,0x40(%rsp) 28: e0 45 * 2a: 4b c7 44 25 00 00 00movq $0x0,0x0(%r13,%r12,1) <-- trapping instruction 31: 0

[PATCH v4 3/4] platform/x86/intel/ifs: Add SBAF test support

2024-07-31 Thread Kuppuswamy Sathyanarayanan
From: Jithu Joseph In a core, the SBAF test engine is shared between sibling CPUs. An SBAF test image contains multiple bundles. Each bundle is further composed of subunits called programs. When a SBAF test (for a particular core) is triggered by the user, each SBAF bundle from the loaded test

[PATCH v4 2/4] platform/x86/intel/ifs: Add SBAF test image loading support

2024-07-31 Thread Kuppuswamy Sathyanarayanan
From: Jithu Joseph Structural Based Functional Test at Field (SBAF) is a new type of testing that provides comprehensive core test coverage complementing existing IFS tests like Scan at Field (SAF) or ArrayBist. SBAF device will appear as a new device instance (intel_ifs_2) under /sys/devices

[PATCH v4 1/4] platform/x86/intel/ifs: Refactor MSR usage in IFS test code

2024-07-31 Thread Kuppuswamy Sathyanarayanan
IFS tests such as Scan at Field (SAF) or Structural Based Functional Test at Field (SBAF), require the user to load a test image. The image loading process is similar across these tests, with the only difference being MSR addresses used. To reuse the code between these tests, remove the hard

[PATCH v4 0/4] Add SBAF test to IFS

2024-07-31 Thread Kuppuswamy Sathyanarayanan
This patch series adds support for Structural Based Functional Test at Field (SBAF) in the IFS driver. SBAF is a new type of testing that provides comprehensive core test coverage, complementing existing IFS tests like Scan at Field (SAF) and ArrayBist. Granite Rapids (GNR) is the first platform

[PATCH] LoongArch: Revert qspinlock to test-and-set on VMs

2024-07-31 Thread Bibo Mao
Similar with x86, when VM is detected, revert to a simple test-and-set lock to avoid the horrors of queue preemption. Tested on 3C5000 Dual-way machine with 32 cores and 2 numa nodes, test case is kcbench on kernel mainline 6.10, the detailed command is "kcbench --src /root/src/

Re: [PATCH net-next v4 3/3] test/vsock: add ioctl unsent bytes test

2024-07-31 Thread Stefano Garzarella
for (int i = 0; i < sizeof(buf); i++) + buf[i] = rand() & 0xFF; + + send_buf(fd, buf, sizeof(buf), 0, sizeof(buf)); + control_expectln("RECEIVED"); + + ret = ioctl(fd, SIOCOUTQ, &sock_bytes_unsent); + if (ret < 0) { +

[PATCH net-next v4 3/3] test/vsock: add ioctl unsent bytes test

2024-07-30 Thread Luigi Leonardi via B4 Relay
ot;); + + ret = ioctl(fd, SIOCOUTQ, &sock_bytes_unsent); + if (ret < 0) { + if (errno == EOPNOTSUPP) { + fprintf(stderr, "Test skipped, SIOCOUTQ not supported.\n"); + } else { + perror("ioctl"); +

[PATCH bpf-next 2/2] selftests/bpf: Augment send_signal test with remote signaling

2024-07-24 Thread Puranjay Mohan
Add testcases to test bpf_send_signal_pid/tgid(). In these new test cases, the main process triggers the BPF program and the forked process receives the signals. Signed-off-by: Puranjay Mohan --- .../selftests/bpf/prog_tests/send_signal.c| 110 +- .../bpf/progs

Re: [PATCH net-next v3 3/3] test/vsock: add ioctl unsent bytes test

2024-07-15 Thread Stefano Garzarella
n the commit description that you need these functions to be more generic. Maybe in the future we can re-use them where we share the same test for both SEQPACKET and STREAM. The rest LGTM. Thanks, Stefano int vsock_stream_connect(unsigned int cid, unsigned int port); int vsock_bind_connect(uns

Re: [PATCH 2/2] selftests/bpf: Change uretprobe syscall number in uprobe_syscall test

2024-07-15 Thread Jiri Olsa
Fixes: 9e7f74e64ae5 ("selftests/bpf: Add uretprobe syscall call from user > > > space test") > > > Signed-off-by: Jiri Olsa > > > --- > > > tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c | 2 +- > > > 1 file changed, 1 insertion(+), 1

Re: [PATCH 2/2] selftests/bpf: Change uretprobe syscall number in uprobe_syscall test

2024-07-14 Thread Google
On Fri, 12 Jul 2024 11:27:30 -0700 Andrii Nakryiko wrote: > On Fri, Jul 12, 2024 at 6:53 AM Jiri Olsa wrote: > > > > Fixing the syscall number value. > > > > Fixes: 9e7f74e64ae5 ("selftests/bpf: Add uretprobe syscall call from user > > spa

Re: [PATCH V2] test/vsock: add install target

2024-07-13 Thread patchwork-bot+netdevbpf
Here is the summary with links: - [V2] test/vsock: add install target https://git.kernel.org/netdev/net-next/c/42ffe242860c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html

[PATCH v3 3/4] platform/x86/intel/ifs: Add SBAF test support

2024-07-12 Thread Kuppuswamy Sathyanarayanan
From: Jithu Joseph In a core, the SBAF test engine is shared between sibling CPUs. An SBAF test image contains multiple bundles. Each bundle is further composed of subunits called programs. When a SBAF test (for a particular core) is triggered by the user, each SBAF bundle from the loaded test

[PATCH v3 2/4] platform/x86/intel/ifs: Add SBAF test image loading support

2024-07-12 Thread Kuppuswamy Sathyanarayanan
From: Jithu Joseph Structural Based Functional Test at Field (SBAF) is a new type of testing that provides comprehensive core test coverage complementing existing IFS tests like Scan at Field (SAF) or ArrayBist. SBAF device will appear as a new device instance (intel_ifs_2) under /sys/devices

[PATCH v3 1/4] platform/x86/intel/ifs: Refactor MSR usage in IFS test code

2024-07-12 Thread Kuppuswamy Sathyanarayanan
IFS tests such as Scan at Field (SAF) or Structural Based Functional Test at Field (SBAF), require the user to load a test image. The image loading process is similar across these tests, with the only difference being MSR addresses used. To reuse the code between these tests, remove the hard

[PATCH v3 0/4] Add SBAF test to IFS

2024-07-12 Thread Kuppuswamy Sathyanarayanan
This patch series adds support for Structural Based Functional Test at Field (SBAF) in the IFS driver. SBAF is a new type of testing that provides comprehensive core test coverage, complementing existing IFS tests like Scan at Field (SAF) and ArrayBist. Granite Rapids (GNR) is the first platform

Re: [PATCH 2/2] selftests/bpf: Change uretprobe syscall number in uprobe_syscall test

2024-07-12 Thread Andrii Nakryiko
On Fri, Jul 12, 2024 at 6:53 AM Jiri Olsa wrote: > > Fixing the syscall number value. > > Fixes: 9e7f74e64ae5 ("selftests/bpf: Add uretprobe syscall call from user > space test") > Signed-off-by: Jiri Olsa > --- > tools/testing/selftests/bpf/prog_tests/uprobe_

[PATCH 2/2] selftests/bpf: Change uretprobe syscall number in uprobe_syscall test

2024-07-12 Thread Jiri Olsa
Fixing the syscall number value. Fixes: 9e7f74e64ae5 ("selftests/bpf: Add uretprobe syscall call from user space test") Signed-off-by: Jiri Olsa --- tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/too

Re: [PATCH] test/vsock: add install target

2024-07-12 Thread Stefano Garzarella
On Thu, Jul 11, 2024 at 07:14:55AM GMT, Jakub Kicinski wrote: On Thu, 11 Jul 2024 15:38:01 +0200 Stefan Hajnoczi wrote: > Usually vsock tests test both the driver (virtio-vsock) in the guest and the > device in the host kernel (vhost-vsock). So I usually run the tests in 2 > nested VM

Re: [PATCH] test/vsock: add install target

2024-07-11 Thread Jakub Kicinski
On Thu, 11 Jul 2024 15:38:01 +0200 Stefan Hajnoczi wrote: > > Usually vsock tests test both the driver (virtio-vsock) in the guest and the > > device in the host kernel (vhost-vsock). So I usually run the tests in 2 > > nested VMs to test the latest changes for both the

Re: [PATCH] test/vsock: add install target

2024-07-11 Thread Stefan Hajnoczi
testing/selftests/lib.mk > > > > > > So, IMHO we should not care about it and only use VSOCK_INSTALL_PATH if > > > you don't want to conflict with INSTALL_PATH. > > > > Any reason why vsock isn't part of selftests in the first place? > > > > Usu

Re: [PATCH] test/vsock: add install target

2024-07-11 Thread Stefano Garzarella
irst place? Usually vsock tests test both the driver (virtio-vsock) in the guest and the device in the host kernel (vhost-vsock). So I usually run the tests in 2 nested VMs to test the latest changes for both the guest and the host. I don't know enough selftests, but do you think it is possibl

Re: [PATCH] test/vsock: add install target

2024-07-10 Thread Jakub Kicinski
On Wed, 10 Jul 2024 13:58:39 +0200 Stefano Garzarella wrote: > There is a comment there: > > # Avoid changing the rest of the logic here and lib.mk. > > Added by commit 17eac6c2db8b2cdfe33d40229bdda2acd86b304a. > > IIUC they re-used INSTALL_PATH, just to avoid too many changes in that > fi

Re: [PATCH V2] test/vsock: add install target

2024-07-10 Thread Stefano Garzarella
On Wed, Jul 10, 2024 at 08:27:28PM GMT, Peng Fan (OSS) wrote: From: Peng Fan Add install target for vsock to make Yocto easy to install the images. Signed-off-by: Peng Fan --- LGTM! This is a net-next material, so next time better to specify it (e.g. [PATCH net-next]). If not queued with

[PATCH V2] test/vsock: add install target

2024-07-10 Thread Peng Fan (OSS)
From: Peng Fan Add install target for vsock to make Yocto easy to install the images. Signed-off-by: Peng Fan --- V2: Use VSOCK_INSTALL_PATH, drop INSTALL_PATH tools/testing/vsock/Makefile | 13 + 1 file changed, 13 insertions(+) diff --git a/tools/testing/vsock/Makefile b/tool

Re: [PATCH] test/vsock: add install target

2024-07-10 Thread Stefano Garzarella
On Wed, Jul 10, 2024 at 11:34:05AM GMT, Peng Fan wrote: Subject: Re: [PATCH] test/vsock: add install target On Wed, Jul 10, 2024 at 08:11:32AM GMT, Peng Fan wrote: >> Subject: Re: [PATCH] test/vsock: add install target >> >> On Tue, Jul 09, 2024 at 09:50:51PM GMT, Peng Fan (OS

RE: [PATCH] test/vsock: add install target

2024-07-10 Thread Peng Fan
> Subject: Re: [PATCH] test/vsock: add install target > > On Wed, Jul 10, 2024 at 08:11:32AM GMT, Peng Fan wrote: > >> Subject: Re: [PATCH] test/vsock: add install target > >> > >> On Tue, Jul 09, 2024 at 09:50:51PM GMT, Peng Fan (OSS) wrote: > >> >

Re: [PATCH] test/vsock: add install target

2024-07-10 Thread Stefano Garzarella
On Wed, Jul 10, 2024 at 08:11:32AM GMT, Peng Fan wrote: Subject: Re: [PATCH] test/vsock: add install target On Tue, Jul 09, 2024 at 09:50:51PM GMT, Peng Fan (OSS) wrote: >From: Peng Fan > >Add install target for vsock to make Yocto easy to install the images. > >Signed-o

RE: [PATCH] test/vsock: add install target

2024-07-10 Thread Peng Fan
> Subject: Re: [PATCH] test/vsock: add install target > > On Tue, Jul 09, 2024 at 09:50:51PM GMT, Peng Fan (OSS) wrote: > >From: Peng Fan > > > >Add install target for vsock to make Yocto easy to install the images. > > > >Signed-off-by: Peng Fan >

Re: [PATCH] test/vsock: add install target

2024-07-10 Thread Stefano Garzarella
-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -D_GNU_SOURCE .PHONY: all test clean clean: ${RM} *.o *.d vsock_test vsock_diag_test vsock_perf vsock_uring_test -include *.d + +install: all + @# Ask all targets to install their files + mkdir -p $(INSTALL_PATH)/vsock why using the

[PATCH] test/vsock: add install target

2024-07-09 Thread Peng Fan (OSS)
.PHONY: all test clean clean: ${RM} *.o *.d vsock_test vsock_diag_test vsock_perf vsock_uring_test -include *.d + +install: all + @# Ask all targets to install their files + mkdir -p $(INSTALL_PATH)/vsock + install -m 744 vsock_test $(INSTALL_PATH)/vsock/ + install -m

Re: [PATCHv2 bpf-next 9/9] selftests/bpf: Add uprobe session consumers test

2024-07-03 Thread Jiri Olsa
On Tue, Jul 02, 2024 at 03:10:55PM -0700, Andrii Nakryiko wrote: > On Mon, Jul 1, 2024 at 9:44 AM Jiri Olsa wrote: > > > > Adding test that attached/detaches multiple consumers on > > single uprobe and verifies all were hit as expected. > > > > Signed-off-by

Re: [PATCHv2 bpf-next 8/9] selftests/bpf: Add uprobe session recursive test

2024-07-03 Thread Jiri Olsa
On Tue, Jul 02, 2024 at 03:01:35PM -0700, Andrii Nakryiko wrote: > On Mon, Jul 1, 2024 at 9:43 AM Jiri Olsa wrote: > > > > Adding uprobe session test that verifies the cookie value is stored > > properly when single uprobe-ed function is executed recursively. > > &

[PATCH v12 16/19] selftests/ftrace: Add a test case for repeating register/unregister fprobe

2024-07-03 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) This test case repeats define and undefine the fprobe dynamic event to ensure that the fprobe does not cause any issue with such operations. Signed-off-by: Masami Hiramatsu (Google) --- .../test.d/dynevent/add_remove_fprobe_repeat.tc| 19

Re: [PATCHv2 bpf-next 9/9] selftests/bpf: Add uprobe session consumers test

2024-07-02 Thread Andrii Nakryiko
On Mon, Jul 1, 2024 at 9:44 AM Jiri Olsa wrote: > > Adding test that attached/detaches multiple consumers on > single uprobe and verifies all were hit as expected. > > Signed-off-by: Jiri Olsa > --- > .../bpf/prog_tests/uprobe_multi_test.c| 203 ++

Re: [PATCHv2 bpf-next 8/9] selftests/bpf: Add uprobe session recursive test

2024-07-02 Thread Andrii Nakryiko
On Mon, Jul 1, 2024 at 9:43 AM Jiri Olsa wrote: > > Adding uprobe session test that verifies the cookie value is stored > properly when single uprobe-ed function is executed recursively. > > Signed-off-by: Jiri Olsa > --- > .../bpf/prog_tests/uprobe_mul

Re: [PATCHv2 bpf-next 7/9] selftests/bpf: Add uprobe session cookie test

2024-07-02 Thread Andrii Nakryiko
On Mon, Jul 1, 2024 at 9:43 AM Jiri Olsa wrote: > > Adding uprobe session test that verifies the cookie value > get properly propagated from entry to return program. > > Signed-off-by: Jiri Olsa > --- > .../bpf/prog_tests/uprobe_multi_test.c| 31

Re: [PATCHv2 bpf-next 6/9] selftests/bpf: Add uprobe session test

2024-07-02 Thread Andrii Nakryiko
On Mon, Jul 1, 2024 at 9:43 AM Jiri Olsa wrote: > > Adding uprobe session test and testing that the entry program > return value controls execution of the return probe program. > > Signed-off-by: Jiri Olsa > --- > .../bpf/prog_tests/uprobe_multi_test.c| 42 +

[PATCHv2 bpf-next 9/9] selftests/bpf: Add uprobe session consumers test

2024-07-01 Thread Jiri Olsa
Adding test that attached/detaches multiple consumers on single uprobe and verifies all were hit as expected. Signed-off-by: Jiri Olsa --- .../bpf/prog_tests/uprobe_multi_test.c| 203 ++ .../progs/uprobe_multi_session_consumers.c| 53 + 2 files changed, 256

[PATCHv2 bpf-next 8/9] selftests/bpf: Add uprobe session recursive test

2024-07-01 Thread Jiri Olsa
Adding uprobe session test that verifies the cookie value is stored properly when single uprobe-ed function is executed recursively. Signed-off-by: Jiri Olsa --- .../bpf/prog_tests/uprobe_multi_test.c| 57 +++ .../progs/uprobe_multi_session_recursive.c| 44

[PATCHv2 bpf-next 7/9] selftests/bpf: Add uprobe session cookie test

2024-07-01 Thread Jiri Olsa
Adding uprobe session test that verifies the cookie value get properly propagated from entry to return program. Signed-off-by: Jiri Olsa --- .../bpf/prog_tests/uprobe_multi_test.c| 31 .../bpf/progs/uprobe_multi_session_cookie.c | 48 +++ 2 files changed

[PATCHv2 bpf-next 6/9] selftests/bpf: Add uprobe session test

2024-07-01 Thread Jiri Olsa
Adding uprobe session test and testing that the entry program return value controls execution of the return probe program. Signed-off-by: Jiri Olsa --- .../bpf/prog_tests/uprobe_multi_test.c| 42 +++ .../bpf/progs/uprobe_multi_session.c | 53 +++ 2

[syzbot] [virt?] [net?] upstream test error: KMSAN: uninit-value in virtnet_poll

2024-06-28 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:626737a5791b Merge tag 'pinctrl-v6.10-2' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1373f72e98 kernel config: https://syzkaller.appspot.com/x/.config?x=12ff58d525e7b8f9 das

Re: [PATCH] tools/testing/radix-tree/idr-test: add missing MODULE_DESCRIPTION define

2024-06-26 Thread Liam R. Howlett
Thanks. These (this one and two previous patches for xarray and maple) are needed for our testing to compile. * Sidhartha Kumar [240626 19:21]: > Userspace builds of the radix-tree testing suite fails because of patch > KUnit: add missing MODULE_DESCRIPTION() macros for lib/test_*.ko. Add the >

[PATCH] tools/testing/radix-tree/idr-test: add missing MODULE_DESCRIPTION define

2024-06-26 Thread Sidhartha Kumar
Userspace builds of the radix-tree testing suite fails because of patch KUnit: add missing MODULE_DESCRIPTION() macros for lib/test_*.ko. Add the proper defines to tools/testing/radix-tree/idr-test.c so MODULE_DESCRIPTION has a definition. This allows the build to succeed. Fixes: 303474913271("KU

[PATCH net-next v3 3/3] test/vsock: add ioctl unsent bytes test

2024-06-26 Thread Luigi Leonardi via B4 Relay
i] = rand() & 0xFF; + + send_buf(fd, buf, sizeof(buf), 0, sizeof(buf)); + control_expectln("RECEIVED"); + + ret = ioctl(fd, SIOCOUTQ, &sock_bytes_unsent); + if (ret < 0) { + if (errno == EOPNOTSUPP) { + fprintf(stderr

[RFC PATCH v1 2/2] vsock/test: add test for deferred credit update

2024-06-21 Thread Arseniy Krasnov
This test checks, that we send exactly expected number of credit update packets during deferred credit update optimization. Test work in client/server modes: 1) Client just connects to server and send 256Kb of data. 256Kb is chosen because it is default space for vsock peer. After

Re: [PATCH] bpf/selftests: Fix __NR_uretprobe in uprobe_syscall test

2024-06-18 Thread Jiri Olsa
Jiri Olsa wrote: > > > > > > > Fixing the __NR_uretprobe number in uprobe_syscall test, > > > > because it changed due to merge conflict. > > > > > > > > > > Ah, it is not enough, since Stephen's change is just a temporary fix

Re: [syzbot] [net?] [virt?] upstream test error: KMSAN: uninit-value in receive_buf

2024-06-17 Thread Tetsuo Handa
On 2024/06/18 10:27, Xuan Zhuo wrote: > Maybe this patch can fix this issue: > > > http://lore.kernel.org/all/20240606111345.93600-1-xuanz...@linux.alibaba.com Yes, thank you. #syz fix: virtio_ring: fix KMSAN error for premapped mode

Re: [syzbot] [net?] [virt?] upstream test error: KMSAN: uninit-value in receive_buf

2024-06-17 Thread Xuan Zhuo
On Mon, 17 Jun 2024 16:15:54 +0900, Tetsuo Handa wrote: > Bisection reached commit f9dac92ba908 ("virtio_ring: enable premapped mode > whatever use_dma_api"). > > On 2024/05/26 1:12, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:56fb6f92854f Merge t

<    1   2   3   4   5   6   7   8   9   10   >