public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v5 3/3] Test for CVE-2016-10044 mark AIO pseudo-fs noexec
Date: Wed, 13 Sep 2017 15:42:42 +0200	[thread overview]
Message-ID: <20170913134241.GA29584@rei.lan> (raw)
In-Reply-To: <20170911115054.19982-3-rpalethorpe@suse.com>

Hi!
Pushed whole patchset, thanks.

And this test was pushed with a diff:

diff --git a/testcases/cve/cve-2016-10044.c b/testcases/cve/cve-2016-10044.c
index 4861647a0..7928d2765 100644
--- a/testcases/cve/cve-2016-10044.c
+++ b/testcases/cve/cve-2016-10044.c
@@ -62,6 +62,9 @@ found_mapping:
                tst_res(TFAIL, "AIO mapping is executable: %s!", perms);
        else
                tst_res(TPASS, "AIO mapping is not executable: %s", perms);
+
+       SAFE_FCLOSE(f);
+       f = NULL;
 }

That closes the file in a case that someone will run the test with -i, which
does not make much sense but I've added that for the sake of completness.

-- 
Cyril Hrubis
chrubis@suse.cz

      reply	other threads:[~2017-09-13 13:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 11:50 [LTP] [PATCH v5 1/3] lib: Add personality fallback and SAFE macro Richard Palethorpe
2017-09-11 11:50 ` [LTP] [PATCH v5 2/3] CVE-2012-0957: Use SAFE_PERSONALITY Richard Palethorpe
2017-09-11 11:50 ` [LTP] [PATCH v5 3/3] Test for CVE-2016-10044 mark AIO pseudo-fs noexec Richard Palethorpe
2017-09-13 13:42   ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170913134241.GA29584@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox