Skip to contentSkip to conversation

Add pty06 test for use-after-free in con_shutdown()

PATCH In review xiaoshoukui 2 participants 2 messages Mar 1, 2022

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index a43b18f2d..9e5754fab 100644
@@ -4,6 +4,7 @@ pty02 pty02
 pty03 pty03
 pty04 pty04
 pty05 pty05
+pty06 pty06
 ptem01 ptem01
 hangup01 hangup01
 
testcases/kernel/pty/.gitignore +1 -0
index 7f1048483..9b6058cf9 100644
@@ -5,3 +5,4 @@
 /pty03
 /pty04
 /pty05
+/pty06
testcases/kernel/pty/Makefile +2 -2
index d4c6c87f0..51b7356c2 100644
@@ -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
#1 lore raw

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