From: Eric W. Biederman <hidden> Date: 2007-01-24 20:10:09
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
---
net/decnet/dn_dev.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2007-01-24 22:45:37
From: ebiederm@xmission.com (Eric W. Biederman)
Date: Wed, 24 Jan 2007 13:09:40 -0700
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
I don't think this one is correct.
During failure cleanup you also have to invoke the neighbour parms
->down() operation if present, else you leave multicast entries on the
ethernet device for example.
From: David Miller <davem@davemloft.net> Date: 2007-01-24 22:50:17
From: David Miller <davem@davemloft.net>
Date: Wed, 24 Jan 2007 14:45:11 -0800 (PST)
From: ebiederm@xmission.com (Eric W. Biederman)
Date: Wed, 24 Jan 2007 13:09:40 -0700
quoted
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
I don't think this one is correct.
During failure cleanup you also have to invoke the neighbour parms
->down() operation if present, else you leave multicast entries on the
ethernet device for example.
BTW, it occurs to me that a good way to handle this might be to
try and do the neigh_parms_alloc() before running the ->up()
method.
From: Eric W. Biederman <hidden> Date: 2007-01-25 04:56:30
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
---
net/decnet/dn_dev.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
From: Steven Whitehouse <hidden> Date: 2007-01-25 12:33:57
Hi,
On Wed, Jan 24, 2007 at 09:55:45PM -0700, Eric W. Biederman wrote:
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
Acked-by: Steven Whitehouse <redacted>
Also you should cc Patrick as he is now the maintainer,
Steve.
From: David Miller <davem@davemloft.net> Date: 2007-01-25 23:52:26
From: Steven Whitehouse <redacted>
Date: Thu, 25 Jan 2007 11:43:18 +0000
Hi,
On Wed, Jan 24, 2007 at 09:55:45PM -0700, Eric W. Biederman wrote:
quoted
While enhancing the neighbour code to handle multiple network
namespaces I noticed that decnet is assuming neigh_parms_alloc
will allways succeed, which is clearly wrong. So handle the
failure.
Signed-off-by: Eric W. Biederman <redacted>
Acked-by: Steven Whitehouse <redacted>
Applied, thanks everyone.
Also you should cc Patrick as he is now the maintainer,