From: Paul Moore <paul@paul-moore.com>
To: Gen Zhang <blackgod016574@gmail.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
Eric Paris <eparis@parisplace.org>,
selinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5] selinux: fix a missing-check bug in selinux_sb_eat_lsm_opts()
Date: Wed, 12 Jun 2019 12:32:27 -0400 [thread overview]
Message-ID: <CAHC9VhR2Hyr+SXnO2ss4L-jcOJUVmYPPQ20N8-CQFPbsK5T6eQ@mail.gmail.com> (raw)
In-Reply-To: <20190612135538.GA4257@zhanggen-UX430UQ>
On Wed, Jun 12, 2019 at 9:55 AM Gen Zhang <blackgod016574@gmail.com> wrote:
>
> In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It
> returns NULL when fails. So 'arg' should be checked. And 'mnt_opts'
> should be freed when error.
>
> Signed-off-by: Gen Zhang <blackgod016574@gmail.com>
> Fixes: 99dbbb593fe6 ("selinux: rewrite selinux_sb_eat_lsm_opts()")
Merged into selinux/stable-5.2, thanks.
--
paul moore
www.paul-moore.com
prev parent reply other threads:[~2019-06-12 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-12 13:51 Gen Zhang
2019-06-12 13:55 ` Gen Zhang
2019-06-12 16:32 ` Paul Moore [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=CAHC9VhR2Hyr+SXnO2ss4L-jcOJUVmYPPQ20N8-CQFPbsK5T6eQ@mail.gmail.com \
--to=paul@paul-moore.com \
--cc=blackgod016574@gmail.com \
--cc=eparis@parisplace.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@vger.kernel.org \
/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
all inboxes | Powered by JetHome®