]> git.baikalelectronics.ru Git - kernel.git/commit
wireless: wext: terminate ifr name coming from userspace
authorLevin, Alexander <alexander.levin@verizon.com>
Tue, 18 Jul 2017 04:23:16 +0000 (04:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 20:32:11 +0000 (13:32 -0700)
commitcf4c4e057899f9b4edebc313c2a8157bb34761f9
treeba5cff38d9d85c2d9e003c238707a4050dd8b683
parentee294d87a7995ebed49abca59ab8bfaeacb74b77
wireless: wext: terminate ifr name coming from userspace

ifr name is assumed to be a valid string by the kernel, but nothing
was forcing username to pass a valid string.

In turn, this would cause panics as we tried to access the string
past it's valid memory.

Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev_ioctl.c