git: DragonFly_RELEASE_5_6 kernel - merge m_pulldown() bug fix

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 20 18:55:51 PDT 2019


commit c24e3890e671f6034b05eae5dd9bde472d210931
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/c24e3890e671f6034b05eae5dd9bde472d210931


-- 
DragonFly BSD source repository



More information about the Commits mailing list