bpf: fix selftest/xsk single test selection#11078
bpf: fix selftest/xsk single test selection#11078kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf_basefrom
Conversation
|
Upstream branch: 886bf92 |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: AI-authorship-score: low |
|
Forwarding comment 3913055491 via email |
12c5b36 to
7365a86
Compare
|
Upstream branch: b0b1a85 |
c0f2243 to
ebeceef
Compare
7365a86 to
26293ad
Compare
|
Upstream branch: 593fffb |
ebeceef to
2b6c9f1
Compare
26293ad to
fe9bc92
Compare
|
Upstream branch: 3b39d73 |
This commit fixes the integer parsing of -t option. The cli parser only relies on errno to detect parsing errors. The manpage for strtol (https://man7.org/linux/man-pages/man3/strtol.3.html) states that the said function "MAY" set errno to EINVAL in case the conversion fails. Currently on some systems, this leads to a silent failure with return value not being exactly documented in the manpages (probably zero). The reliable way to validate the input is to check whether the endptr has been bumped all the way to the end of the string or not. Signd-off-by: Mahdi Faramarzpour <mahdifrmx@gmail.com> Fixes: 146e305 ("selftests/xsk: add option to run single test")
2b6c9f1 to
1b525a7
Compare
Pull request for series with
subject: bpf: fix selftest/xsk single test selection
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1054787