From mrl@teleport.com (Mostyn R. Lewis)
authorDavid Greenman <davidg@Root.COM>
Tue, 22 Mar 1994 02:02:25 +0000 (02:02 +0000)
committerDavid Greenman <davidg@Root.COM>
Tue, 22 Mar 1994 02:02:25 +0000 (02:02 +0000)
commitc53f31f6f31e4de50a0624fb4b753cfae7dcadbe
tree4bd63a7748443440c062480f03b510d0c3d1cfa7
parent39dc5c4175a7d513eca47f4f69e1aa892566d0a4
From mrl@teleport.com (Mostyn R. Lewis)
>PPP and SLIP users - deleting a route can be deadly!
>
>Yes this can cause a kernel page fault or random hang.
...
>you stand a good chance of a kernel page fault or a random hang because
>the routing table for default still has a pointer to the deleted kernel
>ifaddr structure. Depending on the re-use state of that memory you live
>or die. Death is caused by a function pointer dereference.
>
>A fix for this, in route.c (/usr/src/sys/net) is to scan the linked list
>of ifaddr entries for the interface to see if the pointer is still valid.
>The diffs for the fix are appended. There are two versions; mute and
>verbose. The verbose fix prints information the the system log to verify
>states.
sys/net/route.c