svn commit: r303263 - in head/sys: compat/svr4 net
Gleb Smirnoff
glebius at FreeBSD.org
Sun Jul 24 10:15:10 UTC 2016
On Sun, Jul 24, 2016 at 10:10:09AM +0000, Gleb Smirnoff wrote:
T> Author: glebius
T> Date: Sun Jul 24 10:10:09 2016
T> New Revision: 303263
T> URL: https://svnweb.freebsd.org/changeset/base/303263
T>
T> Log:
T> Partially revert r257696/r257713, which have an issue with writing to user
T> controlled address. Restore the old code that emulated OSIOCGIFCONF in if.c.
T>
T> Noticed by: C Turt
I believe no one on the planet uses compat_svr4, but better fix it for
11.0-RELEASE, since too late to remove it.
Note that SVR4_SIOCGIFCONF actually won't work for FreeBSD 10.x, if
you load in compat_svr4.ko, since it depends on COMPAT_43 functionality
compiled in kernel, which isn't case for i386 GENERIC.
Of course the change wasn't tested, since I don't know how to produce
or where to take an SVR4 binary that does something useful with
SVR4_SIOCGIFCONF.
--
Totus tuus, Glebius.
More information about the svn-src-all
mailing list