Go to file
ozaki-r b760398bd2 Fix that a fresh in_ifaddr is unexpectedly freed before activating it
An in_ifaddr object is initialized with refcnt=0 and the refcnt
is incremented when being enqueued to the lists. However before
enqueuing it, in_ifinit can hold and refelease a reference to
it, i.e., call ifaref and ifafree, resulting in that the object
is freed in ifafree because its refcnt is decremented to 0.

It can be reproduced by doing:
  ifconfig tun0 create
  ifconfig tun1 create
  ifconfig tun0 10.1 10.2
  ifconfig tun1 10.2 10.1
  ifconfig  # Cause a kernel panic (may depend on environmemts)

We need to initialize a created in_ifaddr object with refcnt=1
to make the object survive over in_ifinit.

The issue is found by ryo@
2017-05-25 02:43:43 +00:00
bin Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
common Comment alignment. No functional change. 2017-04-13 07:49:52 +00:00
compat Don't mix abis in any CRUNCHEDPROG 2017-01-05 21:28:42 +00:00
crypto Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
dist/pf
distrib Fix MKCATPAGES=yes build 2017-05-21 22:48:25 +00:00
doc add file 2017-05-25 00:12:34 +00:00
etc Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
external merge 5.31 2017-05-25 00:11:26 +00:00
extsrc
games Permit Prof. Steven Falcon [sic] to play hals_end(6) (or, more 2017-05-21 16:47:26 +00:00
include Add the new signalname/signalnext/signalnumber interface to libc. 2017-05-09 11:14:16 +00:00
lib Add __clear_cache implementatin for SPARC/SPARC64. 2017-05-24 21:45:40 +00:00
libexec Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
regress Remove regress lseek tests, obsoleted by ATF 2017-05-14 04:26:40 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin We need to provide a size for getattr for the cp example to work, so cheat 2017-05-10 16:35:18 +00:00
share New sentence, new line. Bump date for previous. 2017-05-23 13:55:32 +00:00
sys Fix that a fresh in_ifaddr is unexpectedly freed before activating it 2017-05-25 02:43:43 +00:00
tests give it more time. 2017-05-24 15:29:51 +00:00
tools Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
usr.bin Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
usr.sbin Make the name comparison case insensitive. 2017-05-23 15:27:54 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00
build.sh - Allow all other targets (like kernel=) to obey mkrepro (-P) 2017-04-08 18:22:35 +00:00