From: Matt Mackall <mpm@selenic.com>
To: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: "David S. Miller" <davem@davemloft.net>,
Andrew Morton <akpm@osdl.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] remove netpoll receive code
Date: Mon, 22 Oct 2007 11:54:23 -0500 [thread overview]
Message-ID: <20071022165423.GG17536@waste.org> (raw)
In-Reply-To: <20071017132131.1992bedd@freepuppy.rosehill>
[annoyed as ever about never being cc:ed on this stuff]
On Wed, Oct 17, 2007 at 01:21:31PM -0700, Stephen Hemminger wrote:
> 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.
> 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.
> 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.
> 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.
--
Mathematics is the supreme nostalgia of our time.
prev parent reply other threads:[~2007-10-22 16:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 20:21 [RFC] remove netpoll receive code Stephen Hemminger
2007-10-17 20:41 ` Andrew Morton
2007-10-18 3:52 ` Jason Wessel
2007-10-18 6:28 ` David Miller
2007-10-18 7:02 ` Andrew Morton
2007-10-18 15:25 ` Stephen Hemminger
2007-10-22 16:54 ` Matt Mackall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071022165423.GG17536@waste.org \
--to=mpm@selenic.com \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).