Re: [PATCH] ppp: fix out-of-bounds access in bpf_prog_create()

From: David Miller
Date: Thu Dec 05 2019 - 17:45:44 EST


From: Eric Biggers <ebiggers@xxxxxxxxxx>
Date: Wed, 4 Dec 2019 21:54:19 -0800

> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> sock_fprog_kern::len is in units of struct sock_filter, not bytes.
>
> Fixes: 3e859adf3643 ("compat_ioctl: unify copy-in of ppp filters")
> Reported-by: syzbot+eb853b51b10f1befa0b7@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>

Applied, thank you.