Blame SOURCES/rhbz1643997.0028-testcase-for-PR23875.patch

132810
From c3023bef537648b282f266878ea8de7a350b3a45 Mon Sep 17 00:00:00 2001
132810
From: Serhei Makarov <smakarov@redhat.com>
132810
Date: Fri, 9 Nov 2018 16:42:21 -0500
132810
Subject: [PATCH 28/32] testcase for PR23875
132810
132810
This triggers a 'stack smashing' error in the userspace interpreter.
132810
132810
* testsuite/systemtap.bpf/bpf_tests/pr23875.stp: New testcase.
132810
---
132810
 testsuite/systemtap.bpf/bpf_tests/pr23875.stp | 18 ++++++++++++++++++
132810
 1 file changed, 18 insertions(+)
132810
 create mode 100644 testsuite/systemtap.bpf/bpf_tests/pr23875.stp
132810
132810
diff --git a/testsuite/systemtap.bpf/bpf_tests/pr23875.stp b/testsuite/systemtap.bpf/bpf_tests/pr23875.stp
132810
new file mode 100644
132810
index 000000000..a31f1d087
132810
--- /dev/null
132810
+++ b/testsuite/systemtap.bpf/bpf_tests/pr23875.stp
132810
@@ -0,0 +1,18 @@
132810
+global t
132810
+
132810
+probe begin {
132810
+  printf("BEGIN\n")
132810
+}
132810
+
132810
+probe kernel.function("vfs_read") {
132810
+  t["key"] = 6
132810
+  exit()
132810
+}
132810
+
132810
+probe end {
132810
+  c = 0
132810
+  foreach (k in t)
132810
+    c++
132810
+  printf("%d\n", c)
132810
+  printf("END PASS\n")
132810
+}
132810
-- 
132810
2.14.5
132810