]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 229414,229476,229477:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2012 19:20:33 +0000 (19:20 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 13 Jan 2012 19:20:33 +0000 (19:20 +0000)
commit9a6346e8455d237b69028ff892e3ab133eb4de5d
tree6526ccde0556da3d8a163b9f6856d05b7ecaf109
parentdb96e3f3c89625e30e1243ffb757dcdbe441c052
MFC 229414,229476,229477:
Various fixes to the SIOC[DG]LIFADDR ioctl handlers:
- Grab a reference on any matching interface address (ifa) before dropping
  the IF_ADDR_LOCK() and release the reference after using it to prevent a
  potential use-after-free.
- Fix the IPv4 ioctl handlers in in_lifaddr_ioctl() to work with IPv4
  interface addresses rather than IPv6.
- Add missing interface address list locking in the IPv4 handlers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@230075 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/in.c
sys/netinet6/in6.c