]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rt_cpu_seq_next should increase position index
authorVasily Averin <vvs@virtuozzo.com>
Thu, 23 Jan 2020 07:11:35 +0000 (10:11 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:26 +0000 (14:47 +0100)
commit272cff38d0ef6ac9e7e0a59acdf6db9db6c601eb
tree8e48f00247c53982cd928ac838eb53388fdab0ef
parenta3bdcb08a3684d6f8b9d2e0bed81f22f5c4d5c82
rt_cpu_seq_next should increase position index

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit a3ea86739f1bc7e121d921842f0f4a8ab1af94d9 ]

if seq_file .next fuction does not change position index,
read after some lseek can generate unexpected output.

https://bugzilla.kernel.org/show_bug.cgi?id=206283
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
net/ipv4/route.c