Add pty06 test for use-after-free in con_shutdown()
PATCH v2 1/1 Add pty06 test for use-after-free in con_shutdown()
adjust coding style and convert comment into assciidoc format. test on both bug and bug-fix kernels, thanks.
Signed-off-by xiaoshoukui <[email protected]>
--- runtest/pty | 1 + testcases/kernel/pty/.gitignore | 1 + testcases/kernel/pty/Makefile | 4 +- testcases/kernel/pty/pty06.c | 96 +++++++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 testcases/kernel/pty/pty06.c
runtest/pty +1 -0
@@ -4,6 +4,7 @@ pty02 pty02 pty03 pty03 pty04 pty04 pty05 pty05 +pty06 pty06 ptem01 ptem01 hangup01 hangup01
testcases/kernel/pty/.gitignore +1 -0
@@ -5,3 +5,4 @@ /pty03 /pty04 /pty05 +/pty06
testcases/kernel/pty/Makefile +2 -2
@@ -6,7 +6,7 @@ top_srcdir ?= ../../.. include $(top_srcdir)/include/mk/testcases.mk -pty03 pty05: CFLAGS += -pthread -pty03 pty05: LDLIBS += -lrt +pty03 pty05 pty06: CFLAGS += -pthread +pty03 pty05 pty06: LDLIBS += -lrt include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/pty/pty06.c new file +96 -0
96 lines not on this page · raw message
Signature · 5 lines
2.20.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Pushed with minor adjustenments in the documentation comment, thanks.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp