Files
twx-linux/kernel
Vasily Averin ca2b459365 bpf: map_seq_next should always increase position index
[ Upstream commit 90435a7891 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-24 08:34:51 +01:00
..
…
…
2019-12-13 08:51:11 +01:00
…
…
2019-05-31 06:46:17 -07:00
2019-12-01 09:17:17 +01:00
…
…
…
…
…
…
…
2019-12-01 09:17:38 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-01-09 10:18:59 +01:00
…
…
…
…
…
…
…
…
…