diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-04-23 16:38:27 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-29 11:32:01 +0200 |
commit | ecaae08d72bd353c548545e521b68b00749f479a (patch) | |
tree | d7be55772fad04a2c9038c3eea814cad7ff16b03 /drivers/oprofile/oprofilefs.c | |
parent | 0b6693b49e4d36846ab0d638ff062920d0ec10e7 (diff) |
pppoe: check sockaddr length in pppoe_connect()
[ Upstream commit a49e2f5d5fb141884452ddb428f551b123d436b5 ]
We must validate sockaddr_len, otherwise userspace can pass fewer data
than we expect and we end up accessing invalid data.
Fixes: 224cf5ad14c0 ("ppp: Move the PPP drivers")
Reported-by: syzbot+4f03bdf92fdf9ef5ddab@syzkaller.appspotmail.com
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/oprofile/oprofilefs.c')
0 files changed, 0 insertions, 0 deletions