On Thu, Jul 25, 2019 at 6:52 AM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote: > Since roles_init() adds some entries to the role hash table, we need to > destroy also its keys/values on error, otherwise we get a memory leak in > the error path. > > Reported-by: syzbot+fee3a14d4cdf92646287@xxxxxxxxxxxxxxxxxxxxxxxxx > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx> > --- > security/selinux/ss/policydb.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) As discussed in the v2 thread, I've gone ahead and merge this patch into selinux/stable-5.3. Assuming all is well I'll send this to Linus later this week. -- paul moore www.paul-moore.com