All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jonathan Bastari Thamrin" <thamrinjonathan@gmail.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next 2/2] selftests/bpf: Test local storage max value size
Date: Wed, 04 Nov 2026 11:42:56 +0000	[thread overview]
Message-ID: <sashiko-outbox-197204@kernel.org> (raw)
In-Reply-To: <20261104-local-storage-max-v1-2-c836731bd184@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] selftests/bpf: non-standard multi-line comment above find_max_value_size()
--

commit 1da8998ccd74b6171959f2da642b888d3db302bd
Author: Jonathan Bastari Thamrin <thamrinjonathan@gmail.com>

selftests/bpf: Test local storage max value size

This commit adds a selftest in task_local_storage.c that uses binary search
to find the largest value size accepted for a task storage map, verifies the
size is at least 4096 bytes, and checks that an element of that size can be
stored.

> diff --git a/tools/testing/selftests/bpf/prog_tests/task_local_storage.c b/tools/testing/selftests/bpf/prog_tests/task_local_storage.c
> index 5b2b56cc3a4f3..c7e9fa6743b93 100644
> --- a/tools/testing/selftests/bpf/prog_tests/task_local_storage.c
> +++ b/tools/testing/selftests/bpf/prog_tests/task_local_storage.c
> @@ -495,6 +495,91 @@ static void test_uptr_map_failure(const char *map_name, int expected_errno)

[ ... ]

> +/* Return the largest value_size the kernel accepts for a local storage
> + * map, or -1 on an unexpected error.
> + */
> +static int find_max_value_size(void)

[Severity: Low]
This isn't a bug, but in BPF selftests, should the multi-line comment above
find_max_value_size() in tools/testing/selftests/bpf/prog_tests/task_local_storage.c
place the opening /* on its own line with the comment text starting on the
next line?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-local-storage-max-v1-0-c836731bd184@gmail.com?part=2

      reply	other threads:[~2026-11-04 11:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04 11:37 [PATCH bpf-next 0/2] Limit local storage value size to max kmalloc_nolock() allocation Jonathan Bastari Thamrin
2026-11-04 11:37 ` Jonathan Bastari Thamrin via B4 Relay
2026-11-04 11:37 ` [PATCH bpf-next 1/2] bpf: " Jonathan Bastari Thamrin
2026-11-04 11:37   ` Jonathan Bastari Thamrin via B4 Relay
2026-11-04 11:44   ` sashiko-bot
2026-11-04 11:37 ` [PATCH bpf-next 2/2] selftests/bpf: Test local storage max value size Jonathan Bastari Thamrin
2026-11-04 11:37   ` Jonathan Bastari Thamrin via B4 Relay
2026-11-04 11:42   ` sashiko-bot [this message]

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=sashiko-outbox-197204@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=thamrinjonathan@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.