linux-f10-flashplugin

Michael Butler imb at protected-networks.net
Fri Sep 30 01:05:40 UTC 2011


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);




More information about the freebsd-stable mailing list