]> git.baikalelectronics.ru Git - kernel.git/commit
net loopback: Set loopback_dev to NULL when freed
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 16 Sep 2013 23:52:41 +0000 (16:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Sep 2013 23:05:13 +0000 (19:05 -0400)
commit548e953b9f011746b18af3b2ec035a1c6c4c6bdf
tree7d323d08d7c03f1412786683ef1e8252c83e8031
parentfc78b53b727f6d8b1ac008b3b277e80e1f91508c
net loopback: Set loopback_dev to NULL when freed

It has recently turned up that we have a number of long standing bugs
in the network stack cleanup code with use of the loopback device
after it has been freed that have not turned up because in most cases
the storage allocated to the loopback device is not reused, when those
accesses happen.

Set looback_dev to NULL to trigger oopses instead of silent data corrupt
when we hit this class of bug.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c