aboutsummaryrefslogtreecommitdiff
path: root/include/linux/bootprof.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-03-10 01:15:45 +0100
committerMoyster <oysterized@gmail.com>2019-05-03 19:24:42 +0200
commitde1398c58dd585181e85197d2f03b213a81963b7 (patch)
tree57fbbb9e1b5729f97292631c011a7510108ce538 /include/linux/bootprof.h
parentea415b28db6dcd52aa76a010a8d1659e26fe4eed (diff)
netfilter: x_tables: add and use xt_check_proc_name
commit b1d0a5d0cba4597c0394997b2d5fced3e3841b4e upstream. recent and hashlimit both create /proc files, but only check that name is 0 terminated. This can trigger WARN() from procfs when name is "" or "/". Add helper for this and then use it for both. Change-Id: I6772510c4de2697a546204cb0d11df406a17e2a1 Cc: Eric Dumazet <eric.dumazet@gmail.com> Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Reported-by: <syzbot+0502b00edac2a0680b61@syzkaller.appspotmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> [bwh: Backported to 3.16: - xt_hashlimit has only one check function - Adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/bootprof.h')
0 files changed, 0 insertions, 0 deletions