diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2020-01-25 10:10:02 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-01-27 10:54:32 +0100 |
commit | 90435a7891a2259b0f74c5a1bc5600d0d64cba8f (patch) | |
tree | dcaf37c1d2dd0a92827364fd29a3c1f783fe7ba0 /kernel/bpf/devmap.c | |
parent | tools/bpf: Allow overriding llvm tools for runqslower (diff) | |
download | linux-90435a7891a2259b0f74c5a1bc5600d0d64cba8f.tar.xz linux-90435a7891a2259b0f74c5a1bc5600d0d64cba8f.zip |
bpf: map_seq_next should always increase position index
If seq_file .next fuction does not change position index,
read after some lseek can generate an unexpected output.
See also: https://bugzilla.kernel.org/show_bug.cgi?id=206283
v1 -> v2: removed missed increment in end of function
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/eca84fdd-c374-a154-d874-6c7b55fc3bc4@virtuozzo.com
Diffstat (limited to 'kernel/bpf/devmap.c')
0 files changed, 0 insertions, 0 deletions