[Bug 194577] mbuf packet header leakage when closing TUN devices

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 29 21:02:41 UTC 2014


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

--- Comment #10 from Andrey V. Elsukov <ae at FreeBSD.org> ---
Created attachment 148778
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148778&action=edit
Proposed patch

Hi, Hans,

can you try this patch?
My investigations led me to the following conclusions.
The leak isn't specific to tun(4) device, it could be reproduced with any
device where MLD works.

The backtrace to the allocation that will not be freed is

uma_zalloc_arg
mld_v2_enqueue_group_record+0x678
mld_change_state+0x3b9
in6_mc_join_locked+0x346
in6_mc_join+0x94
in6_joingroup+0x58
in6_update_ifa+0xd2c
in6_ifattach+0x506
ifioctl+0x8e0
kern_ioctl+0x3cd
sys_ioctl+0x13c

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


More information about the freebsd-bugs mailing list