[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHC9VhR2Hyr+SXnO2ss4L-jcOJUVmYPPQ20N8-CQFPbsK5T6eQ@mail.gmail.com>
Date: Wed, 12 Jun 2019 12:32:27 -0400
From: Paul Moore <paul@...l-moore.com>
To: Gen Zhang <blackgod016574@...il.com>
Cc: Stephen Smalley <sds@...ho.nsa.gov>,
Eric Paris <eparis@...isplace.org>, selinux@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5] selinux: fix a missing-check bug in selinux_sb_eat_lsm_opts()
On Wed, Jun 12, 2019 at 9:55 AM Gen Zhang <blackgod016574@...il.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@...il.com>
> Fixes: 99dbbb593fe6 ("selinux: rewrite selinux_sb_eat_lsm_opts()")
Merged into selinux/stable-5.2, thanks.
--
paul moore
www.paul-moore.com
Powered by blists - more mailing lists