OpenBSD cvs log

created 2019-01-12T15:56:45Z
begin 2018-12-28T00:00:00Z
end 2018-12-29T00:00:00Z
path src/sys
commits 2

date 2018-12-28T14:32:47Z
author bluhm
files src/sys/net/if_switch.c log diff annotate
src/sys/net/switchctl.c log diff annotate
src/sys/net/switchofp.c log diff annotate
message Fix mbuf releated crashes in switch(4). They have been found by
syzkaller as pool corruption panic. It is unclear which bug caused
what, but it should be better now.
- Check M_PKTHDR with assertion before accessing m_pkthdr.
- Do not access oh_length without m_pullup().
- After checking if there is space at the end of the mbuf, don't
overwrite the data at the beginning. Append the new content.
- Do not set m_len and m_pkthdr.len when it is unclear whether
the ofp_error header fits at all. Use m_makespace() to adjust
the mbuf.
test akoshibe@; OK claudio@

date 2018-12-28T20:35:59Z
author kettenis
files src/sys/arch/hppa/conf/RAMDISK log diff annotate
message Fix dino at uturn attachment. From miod@