diff options
| author | Fushuai Wang <wangfushuai@baidu.com> | 2025-06-12 16:42:08 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-06-12 16:52:43 -0700 |
| commit | 6a4bd31f680a1d1cf06492fe6dc4f08da09769e6 (patch) | |
| tree | 8fdd79a8688f55b2f7fad42abf6c4d5f3b8c725e /scripts/lib/kdoc/kdoc_files.py | |
| parent | 3d71b8b9abae68f6dfc434f779e1139370fbe891 (diff) | |
selftests/bpf: fix signedness bug in redir_partial()
When xsend() returns -1 (error), the check 'n < sizeof(buf)' incorrectly
treats it as success due to unsigned promotion. Explicitly check for -1
first.
Fixes: a4b7193d8efd ("selftests/bpf: Add sockmap test for redirecting partial skb data")
Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Link: https://lore.kernel.org/r/20250612084208.27722-1-wangfushuai@baidu.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions
