From: sashiko-bot@kernel.org
To: "Tushar Vyavahare" <tushar.vyavahare@intel.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH 1/5] selftests/xsk: Introduce helpers for setting UMEM properties
Date: Wed, 29 Apr 2026 08:47:40 +0000 [thread overview]
Message-ID: <20260429084741.848E9C19425@smtp.kernel.org> (raw)
In-Reply-To: <20260428080317.702124-2-tushar.vyavahare@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Infinite recursion in test_spec_set_unaligned helper leading to stack overflow
--
commit 48ddf9c071b166e4cce598b12dfc3870867c0fe6
Author: Tushar Vyavahare <tushar.vyavahare@intel.com>
selftests/xsk: Introduce helpers for setting UMEM properties
This commit introduces helper functions to set UMEM properties in the xsk
selftests. This centralizes the setup logic across tests and prepares for
future refactoring.
> diff --git a/tools/testing/selftests/bpf/prog_tests/test_xsk.c b/tools/testing/selftests/bpf/prog_tests/test_xsk.c
> index 7950c504ed28..d5cd8f590b25 100644
> --- a/tools/testing/selftests/bpf/prog_tests/test_xsk.c
> +++ b/tools/testing/selftests/bpf/prog_tests/test_xsk.c
> @@ -303,6 +303,22 @@ static void test_spec_reset(struct test_spec *test)
> __test_spec_init(test, test->ifobj_tx, test->ifobj_rx);
> }
>
> +static void test_spec_set_unaligned(struct test_spec *test)
> +{
> + test_spec_set_unaligned(test);
Does this cause an infinite recursion leading to a stack overflow?
It looks like the helper calls itself instead of actually setting the
umem->unaligned_mode properties for the TX and RX interfaces. I see this
is fixed later in the patch series in commit 71e22f338d62 ("selftests/xsk:
Eliminate umem reference from ifobject"), but it seems it breaks the tests
at this commit.
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260428080317.702124-1-tushar.vyavahare@intel.com?part=1
next prev parent reply other threads:[~2026-04-29 8:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 8:03 [PATCH 0/5] selftests/xsk: foundational UMEM refactoring Tushar Vyavahare
2026-04-28 8:03 ` [PATCH 1/5] selftests/xsk: Introduce helpers for setting UMEM properties Tushar Vyavahare
2026-04-28 10:28 ` bot+bpf-ci
2026-04-28 12:39 ` Vyavahare, Tushar
2026-04-29 8:47 ` sashiko-bot [this message]
2026-04-28 8:03 ` [PATCH 2/5] selftests/xsk: Eliminate umem reference from ifobject Tushar Vyavahare
2026-04-29 8:47 ` sashiko-bot
2026-04-28 8:03 ` [PATCH 3/5] selftests/xsk: Remove umem from pkt_generate parameters Tushar Vyavahare
2026-04-28 8:03 ` [PATCH 4/5] selftests/xsk: Use umem_size() helper consistently Tushar Vyavahare
2026-04-29 8:47 ` sashiko-bot
2026-04-28 8:03 ` [PATCH 5/5] selftests/xsk: Introduce mmap_size in umem struct Tushar Vyavahare
2026-04-29 8:47 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260429084741.848E9C19425@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=sashiko@lists.linux.dev \
--cc=tushar.vyavahare@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox