Re: [PATCH v5] selinux: fix a missing-check bug in selinux_sb_eat_lsm_opts()
From: Paul Moore
Date: Wed Jun 12 2019 - 12:37:20 EST
On Wed, Jun 12, 2019 at 9:55 AM Gen Zhang <blackgod016574@xxxxxxxxx> 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@xxxxxxxxx>
> Fixes: 99dbbb593fe6 ("selinux: rewrite selinux_sb_eat_lsm_opts()")
Merged into selinux/stable-5.2, thanks.
--
paul moore
www.paul-moore.com