[Bug 230274] linuxulator and cloudabi don't handle multiple mbufs in a control message chain

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 1 23:21:56 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230274

            Bug ID: 230274
           Summary: linuxulator and cloudabi don't handle multiple mbufs
                    in a control message chain
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: markj at FreeBSD.org

cloudabi_sock_recv() and linux_recvmsg_common() use kern_recvit(), which may
return control messages in addition to data.  Suppose one uses sendmsg() to
transmit multiple SCM_RIGHTS messages in a single call.  When these messages
are externalized, the unix socket code will place them in separate mbufs which
get returned as a chain from kern_recvit().  From code inspection, some
consumers only handle the first mbuf in the chain, so control messages will be
dropped in some cases.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list