On 09/29/11 18:30, Jeremy Chadwick wrote:
On Thu, Sep 29, 2011 at 11:56:48PM +0200, Norbert Augenstein wrote:

 [ .. snip .. ]

it seems that
http://security.freebsd.org/advisories/FreeBSD-SA-11:05.unix.asc
is the culprit.

Just for clarification:

Said fix might explain the "ERROR: failed to initialize plugin-side RPC
client connection" problem, but would not explain the getpwuid_r()
problem.

I reverted this piece of r225827 below against 10-CURRENT (at r225881) and flash works once again.

Index: uipc_usrreq.c
===================================================================
--- uipc_usrreq.c       (revision 225826)
+++ uipc_usrreq.c       (revision 225827)
@@ -462,6 +462,8 @@
        unp = sotounpcb(so);
        KASSERT(unp != NULL, ("uipc_bind: unp == NULL"));

+       if (soun->sun_len > sizeof(struct sockaddr_un))
+               return (EINVAL);
        namelen = soun->sun_len - offsetof(struct sockaddr_un, sun_path);
        if (namelen <= 0)
                return (EINVAL);
@@ -1252,6 +1254,8 @@
        unp = sotounpcb(so);
        KASSERT(unp != NULL, ("unp_connect: unp == NULL"));

+       if (nam->sa_len > sizeof(struct sockaddr_un))
+               return (EINVAL);
        len = nam->sa_len - offsetof(struct sockaddr_un, sun_path);
        if (len <= 0)
                return (EINVAL);


_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to