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

From: Pavel Machek
Date: Thu Mar 28 2019 - 06:09:00 EST


> From: John Johansen <john.johansen@xxxxxxxxxxxxx>
>
> [ 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@xxxxxxxxxxxxx>
> Signed-off-by: John Johansen <john.johansen@xxxxxxxxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

Acked-for-stable: Pavel Machek <pavel@xxxxxx>

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