git: kernel - merge m_pulldown() bug fix

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 20 18:38:27 PDT 2019


commit 15ce538f8de886623fb5c3600de5fa6de7db518d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Aug 20 18:36:46 2019 -0700

    kernel - merge m_pulldown() bug fix
    
    In m_pulldown(), before trying to prepend bytes to the subsequent mbuf,
    ensure that the subsequent mbuf contains the remainder of the bytes
    the caller sought. If this is not the case, fall through to the code
    which gathers the bytes in a new mbuf.
    
    This fixes a bug where m_pulldown() could fail to gather all the desired
    bytes into consecutive memory.
    
    Patch-by:	sephe
    FreeBSD-PR:	238787
    Reported by:	A reddit user
    Discussed with: emaste
    Obtained from:	NetBSD
    Obtained from:	FreeBSD

Summary of changes:
 sys/kern/uipc_mbuf2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/15ce538f8de886623fb5c3600de5fa6de7db518d


-- 
DragonFly BSD source repository


More information about the Commits mailing list