Skip to contentSkip to conversation

Add fanout01 CVE-2017-15649

PATCH New Richard Palethorpe 2 participants 3 messages Sep 10, 2018 – Nov 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add fanout01 CVE-2017-15649

---

Note that this requires the new Fuzzy Sync library which has not been merged at the time of writting. Hence why I have marked it with [WIP].

 runtest/cve                         |   1 +
 runtest/net.features                |   2 +
 testcases/network/packet/.gitignore |   1 +
 testcases/network/packet/Makefile   |  25 ++++++
 testcases/network/packet/fanout01.c | 121 ++++++++++++++++++++++++++++
 5 files changed, 150 insertions(+)
 create mode 100644 testcases/network/packet/.gitignore
 create mode 100644 testcases/network/packet/Makefile
 create mode 100644 testcases/network/packet/fanout01.c
runtest/cve +1 -0
index b38fb3503..1b27477f0 100644
@@ -25,6 +25,7 @@ cve-2017-12193 add_key04
 cve-2017-15274 add_key02
 cve-2017-15299 request_key03 -b cve-2017-15299
 cve-2017-15537 ptrace07
+cve-2017-15649 fanout01
 cve-2017-15951 request_key03 -b cve-2017-15951
 cve-2017-17807 request_key04
 cve-2017-1000364 stack_clash
runtest/net.features +2 -0
index eac1b2bf2..154d74900 100644
@@ -58,3 +58,5 @@ dctcp_ipv6_01 dctcp01.sh -6
 
 geneve01 geneve01.sh
 geneve01_ipv6 geneve01.sh -6
+
+fanout01 fanout01
testcases/network/packet/.gitignore new file +1 -0
new file mode 100644
index 000000000..48f13bf9f
@@ -0,0 +1 @@
+fanout01
testcases/network/packet/Makefile new file +25 -0
new file mode 100644
index 000000000..76f3fd23f
@@ -0,0 +1,25 @@
+# Copyright (c) 2018 Linux Test Project
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it would be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+top_srcdir		?= ../../..
+
+include $(top_srcdir)/include/mk/testcases.mk
+
+CFLAGS			+= -D_GNU_SOURCE
+
+fanout01:	CFLAGS += -pthread
+fanout01:	LDLIBS += -lrt
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/packet/fanout01.c new file +121 -0

121 lines not on this page · raw message

Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 Add fanout01 CVE-2017-15649

Hi Richard,

Quoted 1 line

testcases/network/packet/fanout01.c line 36

Quoted 11 lines

---

testcases/network/packet/fanout01.c new file +9 -0
+#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sched.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/ioctl.h>
+#include <net/if.h>
+#include <linux/if_packet.h>

These headers can be omitted:
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/ioctl.h>

Kind regards,
Petr

#2 lore raw

PATCH 1/1 Add fanout01 CVE-2017-15649

In reply to Richard Palethorpe

Hi Richard,

thanks for your patch, pushed, with tiny changes (removed unused imports, add leading slash in .gitignore, changing license to GPLv2+ in SPDX license identifier and remove verbose GPL related text).

Kind regards,
Petr