APPLIED: [PATCH] UBUNTU: SAUCE: LSM stacking: check for invalid zero sized writes
Seth Forshee
seth.forshee at canonical.com
Tue Oct 3 18:07:26 UTC 2017
On Tue, Oct 03, 2017 at 01:12:54PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> BugLink: http://bugs.launchpad.net/bugs/1720779
>
> Writing zero bytes to /proc/$pid/task/$pid/attr/context via
> security_setprocattr cause an oops in memcpy_erms. Fix this by
> checking for zero size and returning -EINVAL for this invalid
> write size.
>
> Detected by running stress-ng --procfs 0
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
Applied to artful/master-next, thanks!
More information about the kernel-team
mailing list