]> sourceware.org Git - systemtap.git/commitdiff
update CVE-2016-5195 workaround with -EIO rc for /proc/self/mem write
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sat, 22 Oct 2016 23:23:22 +0000 (19:23 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Sat, 22 Oct 2016 23:23:22 +0000 (19:23 -0400)
testsuite/systemtap.examples/security-band-aids/cve-2016-5195.stp

index 857c5c0fa00ca8bd174061acea9c9d511684bc9c..29917f600b4bad82b7263c3a476653f1c2816072 100644 (file)
@@ -1,6 +1,6 @@
 
 probe kernel.function("mem_write").call ? {
-        $count = 0
+        $count = %{ -EIO %}
 }
 
 probe syscall.ptrace {  // includes compat ptrace as well
This page took 0.030431 seconds and 5 git commands to generate.