Home | History | Annotate | Download | only in cve
      1 # Copyright (c) 2017 Linux Test Project
      2 #
      3 # This program is free software; you can redistribute it and/or
      4 # modify it under the terms of the GNU General Public License as
      5 # published by the Free Software Foundation; either version 2 of
      6 # the License, or (at your option) any later version.
      7 #
      8 # This program is distributed in the hope that it would be useful,
      9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11 # GNU General Public License for more details.
     12 #
     13 # You should have received a copy of the GNU General Public License
     14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
     15 
     16 top_srcdir		?= ../..
     17 
     18 include $(top_srcdir)/include/mk/testcases.mk
     19 
     20 CFLAGS			+= -D_GNU_SOURCE
     21 
     22 stack_clash:	CFLAGS += -fno-optimize-sibling-calls
     23 
     24 cve-2016-7042:	LDLIBS += $(KEYUTILS_LIBS)
     25 
     26 cve-2016-7117:	CFLAGS += -pthread
     27 cve-2016-7117:	LDLIBS += -lrt
     28 
     29 cve-2014-0196:  CFLAGS += -pthread
     30 cve-2014-0196:  LDLIBS += -lrt -lutil
     31 
     32 cve-2017-2671:	CFLAGS += -pthread
     33 cve-2017-2671:	LDLIBS += -lrt
     34 
     35 meltdown: CFLAGS += -I$(abs_srcdir)/../realtime/include
     36 
     37 ifneq (,$(filter $(HOST_CPU),x86 x86_64))
     38 meltdown: CFLAGS += -msse2
     39 endif
     40 
     41 cve-2017-17052:	CFLAGS += -pthread
     42 cve-2017-17053:	CFLAGS += -pthread
     43 
     44 cve-2015-3290:	CFLAGS += -pthread
     45 
     46 include $(top_srcdir)/include/mk/generic_leaf_target.mk
     47