aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2020-02-25 10:07:12 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2020-03-04 02:27:18 +0100
commitee84f19cbbe9cf7cba2958acb03163fed3ecbb0f (patch)
tree0498f55f7aae737dccf56cfc1cff31d3951c1dfa /ipc/shm.c
parentnetfilter: xt_recent: recent_seq_next should increase position index (diff)
downloadlinux-dev-ee84f19cbbe9cf7cba2958acb03163fed3ecbb0f.tar.xz
linux-dev-ee84f19cbbe9cf7cba2958acb03163fed3ecbb0f.zip
netfilter: x_tables: xt_mttg_seq_next should increase position index
If .next function does not change position index, following .show function will repeat output related to current position index. Without patch: # dd if=/proc/net/ip_tables_matches # original file output conntrack conntrack conntrack recent recent icmp udplite udp tcp 0+1 records in 0+1 records out 65 bytes copied, 5.4074e-05 s, 1.2 MB/s # dd if=/proc/net/ip_tables_matches bs=62 skip=1 dd: /proc/net/ip_tables_matches: cannot skip to specified offset cp <<< end of last line tcp <<< and then unexpected whole last line once again 0+1 records in 0+1 records out 7 bytes copied, 0.000102447 s, 68.3 kB/s Cc: stable@vger.kernel.org Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code ...") Link: https://bugzilla.kernel.org/show_bug.cgi?id=206283 Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions