From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] Add CVE-2017-18075, pcrypt mishandles freeing instances
Date: Thu, 15 Mar 2018 12:44:56 +0100 [thread overview]
Message-ID: <20180315114456.GA17877@rei> (raw)
In-Reply-To: <20180314225849.GD183724@gmail.com>
Hi!
> > runtest/cve | 1 +
> > testcases/cve/.gitignore | 1 +
> > testcases/cve/cve-2017-18075.c | 201 +++++++++++++++++++++++++++++++++++++++++
>
> Thanks for writing an LTP test for this!
>
> Just my 2 cents, but I think it is insane to be naming tests after CVE numbers
> instead of putting them in an appropriate place, like a crypto/ directory for
> this one. People aren't going to remember what "CVE-2017-18075" is. I'm even
> the person who fixed this bug and requested this CVE, and I still didn't
> recognize the CVE number; this patch only drew my attention because the subject
> line mentioned pcrypt. (And now I see that I missed the recent test for the
> modify_ldt() use-after-free bug because the patch subject line and description
> only mentioned "CVE-2017-17053".)
Agreed, the numbers suck, I have to read everything twice to avoid
typos.
Maybe we should name the test files after the kernel subsystem with an
increasing counter as a last resort.
> I suggest putting this NETLINK_CRYPTO stuff in a common location that can be
> used by other tests too. This will not be the last crypto API bug. The
> definitions for AF_ALG probably should be there too; though AF_ALG isn't used by
> this test, many crypto bugs I've fixed or seen fixed recently are accessible
> through it. (E.g. see commit ecaaab564978, "crypto: salsa20 - fix
> blkcipher_walk API usage" or commit e57121d08c38, "crypto: chacha20poly1305 -
> validate the digest size". Sorry, I was a bit lazy by just putting reproducers
> in the commit messages and not writing "real" tests.) It would be great to have
> helper functions in LTP for testing the crypto API, so that they don't have to
> be repeated in every test.
We do have include/lapi/ headers for that purpose, we may as well put it
there.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2018-03-15 11:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-14 14:54 [LTP] [PATCH 1/2] lib: Add safe_recvmsg Richard Palethorpe
2018-03-14 14:54 ` [LTP] [PATCH 2/2] Add CVE-2017-18075, pcrypt mishandles freeing instances Richard Palethorpe
2018-03-14 15:15 ` Nicolai Stange
2018-03-14 15:48 ` Richard Palethorpe
2018-03-14 22:58 ` Eric Biggers
2018-03-15 8:50 ` Richard Palethorpe
2018-03-15 11:44 ` Cyril Hrubis [this message]
2018-03-15 11:22 ` [LTP] [PATCH 1/2] lib: Add safe_recvmsg Petr Vorel
2018-03-15 11:52 ` Petr Vorel
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=20180315114456.GA17877@rei \
--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