Re: [PATCH AUTOSEL 5.0 010/262] apparmor: fix double free when unpack of secmark rules fails

Pavel Machek
2019-03-28T10:08:59Z

> From: John Johansen <john.johansen@canonical.com>
>
> [ Upstream commit d8dbb581d4f86a2ac669c056fc71a28ebeb367f4 ]
>
> if secmark rules fail to unpack a double free happens resulting in
> the following oops

>
> Fixes: 9caafbe2b4cf ("apparmor: Parse secmark policy")
> Reported-by: Alex Murray <alex.murray@canonical.com>
> Signed-off-by: John Johansen <john.johansen@canonical.com>
> Signed-off-by: Sasha Levin <sashal@kernel.org>

Acked-for-stable: Pavel Machek <pavel@ucw.cz>

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html