Skip to contentSkip to conversation

remove netpoll receive code

RFC Stephen Hemminger 5 participants 7 messages Oct 17, 2007 – Oct 22, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The netpoll receive code is:
1. Not used by any in-tree features, it is used by kgdb-over-ether.
2. A nice hook for people doing nasty things like private binary network stacks or rootkits.
3. Unsecured by any of the normal firewalling code.

Hopefully all distro's are smart enough to turn it off in their default config *nudge, nudge*. Doubly true for any distribution that claims to be secure or enterprise ready.

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

Signature · 1 line
Stephen Hemminger <[email protected]>
#1 lore raw
Quoted 11 lines · On Wed, 17 Oct 2007 13:21:31 -0700 Stephen Hemminger…

The netpoll receive code is:
1. Not used by any in-tree features, it is used by kgdb-over-ether.
2. A nice hook for people doing nasty things like private binary network stacks or rootkits.
3. Unsecured by any of the normal firewalling code.

Hopefully all distro's are smart enough to turn it off in their default config *nudge, nudge*. Doubly true for any distribution that claims to be secure or enterprise ready.

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

umm, let's cc the kgdb maintainer.

#2 lore raw
In reply to Stephen Hemminger

Kgdb has been submitted for inclusion in the mainline kernel at this point, along with an additional change to the netpoll rx path.

If it is the case that this needs to be implemented in another manner, that is ok but please do let me know what the plans are for the API so that the kgdboe code can be adapted.

Thanks,
Jason.

Quoted 12 lines · Stephen Hemminger

The netpoll receive code is:
1. Not used by any in-tree features, it is used by kgdb-over-ether.
2. A nice hook for people doing nasty things like private binary network stacks or rootkits.
3. Unsecured by any of the normal firewalling code.

Hopefully all distro's are smart enough to turn it off in their default config *nudge, nudge*. Doubly true for any distribution that claims to be secure or enterprise ready.

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

maintainer
#3 lore raw
In reply to Stephen Hemminger

From: Stephen Hemminger <[email protected]>
Date: Wed, 17 Oct 2007 13:21:31 -0700

Quoted 3 lines

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

I would like to kill the RX side handling of netpoll too, but I don't think that's reasonable as kgdb is actively being pushed for 2.6.25 inclusion.

Andrew is likely to add it to his -mm tree soon and therefore kgdb will need to work properly now.

The RX netpoll thing has a long precedence, it's been in the tree for a long time, so we are in some ways stuck with it until we have a complete replacement facility. That means we can't yank it out first and implement the replacement later.

#4 lore raw
Quoted 7 lines · On Wed, 17 Oct 2007 23:28:38 -0700 (PDT) David Miller <[email protected]>…

From: Stephen Hemminger <[email protected]>
Date: Wed, 17 Oct 2007 13:21:31 -0700

Quoted 3 lines

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

Quoted 6 lines

I would like to kill the RX side handling of netpoll too, but I don't think that's reasonable as kgdb is actively being pushed for 2.6.25 inclusion.

Andrew is likely to add it to his -mm tree soon and therefore kgdb will need to work properly now.

git-kgdb.patch has been in there for ages - maybe a year. Although I disabled it a week or so ago due to the sheer number of rejects. Will bring it back when things settle down a bit.

Quoted 4 lines

The RX netpoll thing has a long precedence, it's been in the tree for a long time, so we are in some ways stuck with it until we have a complete replacement facility. That means we can't yank it out first and implement the replacement later.

#5 lore raw
Quoted 13 lines · On Thu, 18 Oct 2007 00:02:44 -0700 Andrew Morton <[email protected]>…
Quoted 11 lines · On Wed, 17 Oct 2007 23:28:38 -0700 (PDT) David Miller <[email protected]>…

From: Stephen Hemminger <[email protected]>
Date: Wed, 17 Oct 2007 13:21:31 -0700

Quoted 3 lines

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

I would like to kill the RX side handling of netpoll too, but I don't think that's reasonable as kgdb is actively being pushed for 2.6.25 inclusion.

Quoted 11 lines
Quoted 2 lines

Andrew is likely to add it to his -mm tree soon and therefore kgdb will need to work properly now.

git-kgdb.patch has been in there for ages - maybe a year. Although I disabled it a week or so ago due to the sheer number of rejects. Will bring it back when things settle down a bit.

Quoted 4 lines

The RX netpoll thing has a long precedence, it's been in the tree for a long time, so we are in some ways stuck with it until we have a complete replacement facility. That means we can't yank it out first and implement the replacement later.

How about I work on a better/alternative receive path for kgdb that can be applied after kgdb is included. Kgdb could actually be useful for me :-)

Signature · 1 line
Stephen Hemminger <[email protected]>
#6 lore raw
In reply to Stephen Hemminger

[annoyed as ever about never being cc:ed on this stuff]

Quoted 2 lines · Stephen Hemminger

The netpoll receive code is:
1. Not used by any in-tree features, it is used by kgdb-over-ether.

And various crashdump over network tools.

Quoted 1 line

2. A nice hook for people doing nasty things like private binary network stacks or rootkits.

It's a completely useless hook for a binary network stack. It only supports UDP and only point to point. And it will have crap performance. It's much less useful here than, say, TUN/TAP.

It doesn't buy anything for a rootkit either, which will continue to trivially hide servers in userspace as they already do.

This point is completely FUD.

Quoted 1 line

3. Unsecured by any of the normal firewalling code.

This is correct. It also applies to the TX side of things. The point, of course, is to bypass as much of the stack as possible so that when the kernel crashes, we're more likely to actually get our netpoll data.

Quoted 3 lines

I propose that we take out all the whole netpoll rx path. If/when kgdb gets submitted a better and alternative receive path can be added.

Let's hear about this better alternative first, shall we? I for one am a little skeptical of its existence. Going through a larger fraction of the network stack, running softirqs, etc., are all big (potentially fatal) steps backward from the point of view of a debugger.

Signature · 1 line
Mathematics is the supreme nostalgia of our time.