diff options
author | Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru> | 2023-10-16 16:08:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-18 11:12:30 +0200 |
commit | 1d30162f35c7a73fc2f8cdcdcdbd690bedb99d1a (patch) | |
tree | b14e96c13e116afbf528e85fc0297cf44ce686bc /include/trace/events/neigh.h | |
parent | Merge tag 'ipsec-2023-10-17' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-1d30162f35c7a73fc2f8cdcdcdbd690bedb99d1a.tar.xz linux-1d30162f35c7a73fc2f8cdcdcdbd690bedb99d1a.zip |
net: pktgen: Fix interface flags printing
Device flags are displayed incorrectly:
1) The comparison (i == F_FLOW_SEQ) is always false, because F_FLOW_SEQ
is equal to (1 << FLOW_SEQ_SHIFT) == 2048, and the maximum value
of the 'i' variable is (NR_PKT_FLAG - 1) == 17. It should be compared
with FLOW_SEQ_SHIFT.
2) Similarly to the F_IPSEC flag.
3) Also add spaces to the print end of the string literal "spi:%u"
to prevent the output from merging with the flag that follows.
Found by InfoTeCS on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.
Fixes: 99c6d3d20d62 ("pktgen: Remove brute-force printing of flags")
Signed-off-by: Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace/events/neigh.h')
0 files changed, 0 insertions, 0 deletions