CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2017/06/19 11:58:49
Modified files: share/man/man9 : mbuf.9 sys/sys : mbuf.h sys/net : bsd-comp.c if_gif.c pf_norm.c ppp-deflate.c sys/netinet : igmp.c ip_carp.c ip_ether.c ip_icmp.c ip_input.c ip_ipip.c ipsec_input.c sys/netinet6 : ip6_input.c sys/nfs : nfs_socket.c Log message: When dealing with mbuf pointers passed down as function parameters, bugs could easily result in use-after-free or double free. Introduce m_freemp() which automatically resets the pointer before freeing it. So we have less dangling pointers in the kernel. OK krw@ mpi@ claudio@