Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. Re: gdb (Grover Lines)
2. Re: "Maintaining your installation" question (Colin Percival)
3. Re: New preview patch for ipfw to pfil_hooks conversion
(Luigi Rizzo)
4. Re: gdb (Dag-Erling Sm?rgrav)
5. Re: New preview patch for ipfw to pfil_hooks conversion
(Dag-Erling Sm?rgrav)
6. Re: gdb (Grover Lines)
7. Re: New preview patch for ipfw to pfil_hooks conversion
(Maxim Konovalov)
8. Re: New preview patch for ipfw to pfil_hooks conversion
(Maxim Konovalov)
9. Re: > panic: APIC: Previous IPI is stupcmka (Kris Kennaway)
10. Re: New preview patch for ipfw to pfil_hooks conversion
(Dag-Erling Sm?rgrav)
11. Re: New preview patch for ipfw to pfil_hooks conversion
(Luigi Rizzo)
12. Re: New preview patch for ipfw to pfil_hooks conversion
(Maxim Konovalov)
13. Re: New preview patch for ipfw to pfil_hooks conversion
(Dag-Erling Sm?rgrav)
14. Re: gdb (Dag-Erling Sm?rgrav)
15. Re: gdb (Maxime Henrion)
16. Re: gdb (Dag-Erling Sm?rgrav)
17. Weird rtc interrupt rate (Jeremie Le Hen)
18. Re: gdb (Maxime Henrion)
19. Re: New preview patch for ipfw to pfil_hooks conversion
(Andre Oppermann)
20. Re: New preview patch for ipfw to pfil_hooks conversion
(Andre Oppermann)
21. Re: New preview patch for ipfw to pfil_hooks conversion
(Andre Oppermann)
22. Re: New preview patch for ipfw to pfil_hooks conversion
(Andre Oppermann)
23. Re: New preview patch for ipfw to pfil_hooks conversion
(Ian FREISLICH)
----------------------------------------------------------------------
Message: 1
Date: Tue, 22 Jun 2004 01:35:11 -0700
From: "Grover Lines" <grover@ceribus.net>
Subject: Re: gdb
To: <freebsd-current@freebsd.org>
Message-ID: <20040622083510.DA39443D4C@mx1.FreeBSD.org>
Content-Type: text/plain; charset="US-ASCII"
Ok well I got gdb6 installed, but just realized the program im trying to
follow (cvsup) is compiled with m3. I'm not a programmer but am willing to
follow directions to figure out how I can trace this process so I can find
out why I'm getting continuous errors.
This thread explains.
http://lists.freebsd.org/pipermail/freebsd-current/2004-June/029645.html
--
Grover Lines
------------------------------
Message: 2
Date: Tue, 22 Jun 2004 09:45:05 +0100
From: Colin Percival <colin.percival@wadham.ox.ac.uk>
Subject: Re: "Maintaining your installation" question
To: Stephan van Beerschoten <stephanb@whacky.net>
Cc: current@freebsd.org
Message-ID: <6.1.0.6.1.20040622092924.03c89538@popserver.sfu.ca>
Content-Type: text/plain; charset="us-ascii"
At 09:23 22/06/2004, Stephan van Beerschoten wrote:
>Is there a 'best practice' for getting rid of leftover 'old stuff': libs
>binaries and files as well as (just for example) any updated perl or any
>old doc files?
It's not an ideal solution, but at least for releases
fetch -o - http://update.daemonology.net/${VERSION}/md5all | cut -f 1 -d '$' |
uniq
will give you a list of all the files which belong in the base system.
Combine that with the output of `pkg_info -aqL`, and you'll have a
fairly complete list of what belongs on the system.
Colin Percival
------------------------------
Message: 3
Date: Tue, 22 Jun 2004 02:06:20 -0700
From: Luigi Rizzo <rizzo@icir.org>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-net@freebsd.org
Message-ID: <20040622020620.A16578@xorpc.icir.org>
Content-Type: text/plain; charset=us-ascii
On Tue, Jun 22, 2004 at 12:15:21PM +0400, Maxim Konovalov wrote:
..
> > Consider this a FYI. It is very much a WIP at the moment. I want
> > to get this into the tree in before 5.3 code freeze.
>
> In fact, our real world tests shown the current -CURRENT comparing to
> RELENG_5_2 is in a very bad shape. Is it really worth to commit that
> mostly cleanup code before say 6-CURRENT with a chance to
of course it is! i also do not follow the reasoning -- given that it is
cleaning up code, it is only welcome at any stage except perhaps
in code freeze.
plus, is the 'bad shape' related at all to what andre posted ?
cheers
luigi
------------------------------
Message: 4
Date: Tue, 22 Jun 2004 11:16:32 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: gdb
To: "Grover Lines" <grover@ceribus.net>
Cc: freebsd-current@freebsd.org
Message-ID: <xzpacywkl5b.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
"Grover Lines" <grover@ceribus.net> writes:
> Ok well I got gdb6 installed, but just realized the program im trying to
> follow (cvsup) is compiled with m3. I'm not a programmer but am willing to
> follow directions to figure out how I can trace this process so I can find
> out why I'm getting continuous errors.
GDB won't do you much good. The most likely cause of your problem is
a buggy firewall or router somewhere upstream, or possibly a problem
on the server. The first step would be to try a different server; the
second would be to follow the advice you've already been given about
socket buffer debugging.
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 5
Date: Tue, 22 Jun 2004 11:23:47 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-net@freebsd.org
Message-ID: <xzp659kkkt8.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
Maxim Konovalov <maxim@macomnet.ru> writes:
> In fact, our real world tests shown the current -CURRENT comparing to
> RELENG_5_2 is in a very bad shape.
You'll have to substantiate that. All *my* real world tests show that
-CURRENT is a lot more stable and functional than RELENG_5_2.
> Is it really worth to commit that
> mostly cleanup code before say 6-CURRENT with a chance to
> destabilizate -CURRENT a bit more?
It is not simply cleanup, it is very important and long-expected
cleanup. Delaying it until after the branch will only make matters
worse, by accelerating code drift between HEAD and 5-STABLE.
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 6
Date: Tue, 22 Jun 2004 02:26:04 -0700
From: "Grover Lines" <grover@ceribus.net>
Subject: Re: gdb
To: <freebsd-current@freebsd.org>
Message-ID: <20040622092607.3661643D54@mx1.FreeBSD.org>
Content-Type: text/plain; charset="iso-8859-1"
I've got the SOCKBUF_DEBUG and all the other generic debugging options
compiled in and freshly rebuilt world/kernel. So what do I do now? Wait for
an error? I've tried different servers. I have another box that works behind
the same router and it has no problems. I've tried cvsupping atleast 5 times
since rebuild and haven�t got any debugging output, and cvsup fails every
time.
--
Grover Lines
> -----Original Message-----
> From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-
> current@freebsd.org] On Behalf Of Dag-Erling Sm�rgrav
> Sent: Tuesday, June 22, 2004 2:17 AM
> To: Grover Lines
> Cc: freebsd-current@freebsd.org
> Subject: Re: gdb
>
> "Grover Lines" <grover@ceribus.net> writes:
> > Ok well I got gdb6 installed, but just realized the program im trying to
> > follow (cvsup) is compiled with m3. I'm not a programmer but am willing
> to
> > follow directions to figure out how I can trace this process so I can
> find
> > out why I'm getting continuous errors.
>
> GDB won't do you much good. The most likely cause of your problem is
> a buggy firewall or router somewhere upstream, or possibly a problem
> on the server. The first step would be to try a different server; the
> second would be to follow the advice you've already been given about
> socket buffer debugging.
--
Grover Lines
------------------------------
Message: 7
Date: Tue, 22 Jun 2004 13:29:52 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Dag-Erling Sm?rgrav<des@des.no>
Cc: freebsd-net@freebsd.org
Message-ID: <20040622132451.K6489@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 22 Jun 2004, 11:23+0200, Dag-Erling Sm?rgrav wrote:
> Maxim Konovalov <maxim@macomnet.ru> writes:
> > In fact, our real world tests shown the current -CURRENT comparing to
> > RELENG_5_2 is in a very bad shape.
>
> You'll have to substantiate that. All *my* real world tests show that
> -CURRENT is a lot more stable and functional than RELENG_5_2.
Yesterday -CURRENT leaks kernel memory very quickly and panics after
10 - 15 mins up. Machine is 2x3GHz Xeon, 4GB RAM, ~5000 httpd/ftpd
tcp sessions, 300-400Mbps output, ~50TB output in a day. The same
config (kernel, sysctl's, loader tunables, hardware) works well with
RELENG_5_2.
--
Maxim Konovalov
------------------------------
Message: 8
Date: Tue, 22 Jun 2004 13:35:18 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Luigi Rizzo <rizzo@icir.org>
Cc: freebsd-net@freebsd.org
Message-ID: <20040622133000.T6489@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 22 Jun 2004, 02:06-0700, Luigi Rizzo wrote:
> On Tue, Jun 22, 2004 at 12:15:21PM +0400, Maxim Konovalov wrote:
> ...
> > > Consider this a FYI. It is very much a WIP at the moment. I want
> > > to get this into the tree in before 5.3 code freeze.
> >
> > In fact, our real world tests shown the current -CURRENT comparing to
> > RELENG_5_2 is in a very bad shape. Is it really worth to commit that
> > mostly cleanup code before say 6-CURRENT with a chance to
>
> of course it is! i also do not follow the reasoning -- given that it is
> cleaning up code, it is only welcome at any stage except perhaps
> in code freeze.
My concern is bugs. Especially in cleanup code, especially in
ip_pcbopt and ip_reass.
> plus, is the 'bad shape' related at all to what andre posted ?
'bad shape' is related to 5-CURRENT we are trying to make -STABLE.
--
Maxim Konovalov
------------------------------
Message: 9
Date: Tue, 22 Jun 2004 02:43:38 -0700
From: Kris Kennaway <kris@obsecurity.org>
Subject: Re: > panic: APIC: Previous IPI is stupcmka
To: Kris Kennaway <kris@obsecurity.org>
Cc: current@FreeBSD.org
Message-ID: <20040622094338.GA12675@xor.obsecurity.org>
Content-Type: text/plain; charset="us-ascii"
On Mon, Jun 21, 2004 at 09:41:42PM -0700, Kris Kennaway wrote:
> > panic: APIC: Previous IPI is stupcmka
> > u_clpauziydf i=x :0 ;s p
> > cnD efbourg g5e0r0(0"0p0a0n0i
> > ")
>
> I updated this smp machine -current tonight, played with mutex
> profiling a bit, and it died after an hour or so of package building
> load. It hung here.
This happened again under similar circumstances (running a cvs update
with some network stuff going on). Similar interleaved panic message:
_anic: APIC: Previous IPI is stpumcakp
nlcapzuyifdi x=: 0s;p u
i Dfeobru g5g0e0r0(0"0p0a0n
c")
Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040622/
c05bf143/attachment-0001.bin
------------------------------
Message: 10
Date: Tue, 22 Jun 2004 11:49:18 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-net@freebsd.org
Message-ID: <xzpacyvx6qp.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
Maxim Konovalov <maxim@macomnet.ru> writes:
> Yesterday -CURRENT leaks kernel memory very quickly and panics after
> 10 - 15 mins up.
Nope. That bug was introduced on June 9th, almost two weeks ago, and
it was fixed less than twelve hours later. I have several machines
already running yesterday's -CURRENT, and none of them show signs of
any kind of leak.
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 11
Date: Tue, 22 Jun 2004 02:50:54 -0700
From: Luigi Rizzo <rizzo@icir.org>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Andre Oppermann <andre@freebsd.org>
Cc: freebsd-net@freebsd.org
Message-ID: <20040622025054.B18617@xorpc.icir.org>
Content-Type: text/plain; charset=us-ascii
On Mon, Jun 21, 2004 at 11:36:21PM +0200, Andre Oppermann wrote:
> Here is the next preview patch for the ipfw to pfil_hooks conversion:
>
> http://www.nrg4u.com/freebsd/ipfw-pfilhooks-and-more-20040621.diff
>
> This patch significantly cleans up ip_input.c and ip_output.c.
>
assorted comments:
- understood that this is WIP, but as someone else suggested it would
be a lot better to split the patch in logical chunks and apply them
one at a time. Especially because they seem to have different importance,
e.g. (as far as i can tell):
+ ipfw pfil stuff
i surely consider this extremely useful and welcome, but would
prefer to put the hooks in ip_fw2.c instead of using a
separate file -- both to keep ipfw stuff confined, and to
use stricter compiler checks (e.g. define stuff static as
much as possible, avoid exporting internal APIs, etc.)
The only motivation against it would be if we plan to
backport this stuff to 4.x where we still have the option
of using ipfw1.
+ ip_reass replacement
+ ip options processing
on this particular one i am a bit unsure -- what is the point
for just moving stuff to a separate file instead of leaving
it where it is (ip_input/ip_output) so that many functions
that are only used there can be declared static as they are now ?
I'd rather just apply bugfixes.
generally, i have become a big fan of very strict compiler checks -- lately
they have saved me a huge amount of time in identifying dead code,
inconsistent interfaces and other bugs, so when in doubt between two
alternatives i tend to privilege the one that gives more chances to
the compiler to check things.
> o ipfw forward is not yet implemented again (comes next)
> o ipfw layer2 is not yet implemented again (comes next)
of course it is fundamental to preserve the entire existing
functionality before the commit
cheers
luigi
------------------------------
Message: 12
Date: Tue, 22 Jun 2004 14:01:02 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Dag-Erling Sm?rgrav<des@des.no>
Cc: freebsd-net@freebsd.org
Message-ID: <20040622140022.C6641@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Tue, 22 Jun 2004, 11:49+0200, Dag-Erling Sm?rgrav wrote:
> Maxim Konovalov <maxim@macomnet.ru> writes:
> > Yesterday -CURRENT leaks kernel memory very quickly and panics after
> > 10 - 15 mins up.
>
> Nope. That bug was introduced on June 9th, almost two weeks ago, and
Nope :-)
$ ident /usr/src-5-current/sys/kern/uipc_syscalls.c
/usr/src-5-current/sys/kern/uipc_syscalls.c:
$FreeBSD: src/sys/kern/uipc_syscalls.c,v 1.194 2004/06/19 03:23:14 rwatso
n Exp $
We have a fixed version.
--
Maxim Konovalov
------------------------------
Message: 13
Date: Tue, 22 Jun 2004 12:19:57 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-net@freebsd.org
Message-ID: <xzp659jx5bm.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
Maxim Konovalov <maxim@macomnet.ru> writes:
> $ ident /usr/src-5-current/sys/kern/uipc_syscalls.c
Wrong file - but this is pointless, anyway. You are generalizing from
a single data point. I can show you a room full of servers that can't
run 5.2.1 due to bugs in the ACPI support code and in two different
RAID controller drivers (aac and twe). They all run -CURRENT just
fine.
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 14
Date: Tue, 22 Jun 2004 12:32:18 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: gdb
To: "Grover Lines" <grover@ceribus.net>
Cc: freebsd-current@freebsd.org
Message-ID: <xzp1xk7x4r1.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
"Grover Lines" <grover@ceribus.net> writes:
> I've got the SOCKBUF_DEBUG and all the other generic debugging options
> compiled in and freshly rebuilt world/kernel. So what do I do now? Wait for
> an error? I've tried different servers. I have another box that works behind
> the same router and it has no problems. I've tried cvsupping atleast 5 times
> since rebuild and haven.t got any debugging output, and cvsup fails every
> time.
have you tried using tcpdump to monitor the connection to the cvsup server?
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 15
Date: Tue, 22 Jun 2004 12:49:24 +0200
From: Maxime Henrion <mux@freebsd.org>
Subject: Re: gdb
To: Dag-Erling Sm?rgrav <des@des.no>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622104924.GR9228@elvis.mu.org>
Content-Type: text/plain; charset=us-ascii
Dag-Erling Sm?rgrav wrote:
> "Grover Lines" <grover@ceribus.net> writes:
> > I've got the SOCKBUF_DEBUG and all the other generic debugging options
> > compiled in and freshly rebuilt world/kernel. So what do I do now? Wait fo
r
> > an error? I've tried different servers. I have another box that works behi
nd
> > the same router and it has no problems. I've tried cvsupping atleast 5 tim
es
> > since rebuild and haven.t got any debugging output, and cvsup fails every
> > time.
>
> have you tried using tcpdump to monitor the connection to the cvsup server?
Given how the CVSup protocol works, monitoring with tcpdump is uneasy if
you don't know the protocol. First, zlib compression needs to be disabled
and then you need to realize there are several TCP streams multiplexed on
a single TCP connection.
If Grover can get a tcpdump trace, I'll be happy to take a look at it though.
Cheers,
Maxime
------------------------------
Message: 16
Date: Tue, 22 Jun 2004 13:06:16 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: gdb
To: Maxime Henrion <mux@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <xzpwu1zvolz.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1
Maxime Henrion <mux@freebsd.org> writes:
> Given how the CVSup protocol works, monitoring with tcpdump is uneasy if
> you don't know the protocol.
tcpdump will still show which side closed the connection.
DES
--
Dag-Erling Sm�rgrav - des@des.no
------------------------------
Message: 17
Date: Tue, 22 Jun 2004 13:09:21 +0200
From: Jeremie Le Hen <jeremie.le-hen@epita.fr>
Subject: Weird rtc interrupt rate
To: freebsd-current@freebsd.org
Cc: freebsd-mobile@freebsd.org
Message-ID: <20040622110921.GA9281@rocco.epita.fr>
Content-Type: text/plain; charset=us-ascii
Hi,
I have a Dell Latitude CPx laptop running FreeBSD 5.2-CURRENT. I have
been using FreeBSD on this laptop for a long time, and the problem I'm
going to describe also happened while it was running 4.6-STABLE.
Sometimes, when wathing at my processes using top(1), all CPU states
are 0.00. Since ps(1) shows the same behaviour, this is not a bug in
top(1). But when this problem happens (this seems to be completly
random), vmstat(8) shows a weird interrupt rate for rtc :
# z6po:root# vmstat -i | sed -n '1p; /rtc/p;'
# interrupt total rate
# irq8: rtc 7584528 115
or, two hours later, while the computer was 100% idle :
# z6po:tataz$ vmstat -i | sed -n '1p; /rtc/p;'
# interrupt total rate
# irq8: rtc 7584528 101
AFAIK, rtc interrupts rate should be something like 127 or 128. What
could make the rate being so unstable ?
(I'm not a kernel nor hardware guru, so I may have forget to give
revelant informations. Please ask me if you want more informations.)
Regards,
--
Jeremie LE HEN aka TtZ/TataZ jeremie.le-hen@epita.fr
ttz@epita.fr
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
------------------------------
Message: 18
Date: Tue, 22 Jun 2004 13:12:18 +0200
From: Maxime Henrion <mux@freebsd.org>
Subject: Re: gdb
To: Dag-Erling Sm?rgrav <des@des.no>
Cc: freebsd-current@freebsd.org
Message-ID: <20040622111218.GS9228@elvis.mu.org>
Content-Type: text/plain; charset=us-ascii
Dag-Erling Sm?rgrav wrote:
> Maxime Henrion <mux@freebsd.org> writes:
> > Given how the CVSup protocol works, monitoring with tcpdump is uneasy if
> > you don't know the protocol.
>
> tcpdump will still show which side closed the connection.
We already know it's the server which is closing the connection from his
error message.
Maxime
------------------------------
Message: 19
Date: Tue, 22 Jun 2004 13:38:59 +0200
From: Andre Oppermann <andre@freebsd.org>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-net@freebsd.org
Message-ID: <40D81A53.FD490D89@freebsd.org>
Content-Type: text/plain; charset=us-ascii
Maxim Konovalov wrote:
>
> Hi Andre,
>
> On Mon, 21 Jun 2004, 23:36+0200, Andre Oppermann wrote:
>
> > Here is the next preview patch for the ipfw to pfil_hooks conversion:
> >
> > http://www.nrg4u.com/freebsd/ipfw-pfilhooks-and-more-20040621.diff
> >
> > This patch significantly cleans up ip_input.c and ip_output.c.
>
> Is it possible to split that ~100KB patch in a logic chunks? One for
> phil_hook, one for ip_pcbopt, one for ip_reass etc. Much easier to
> review and commit them later.
Of course it will be split up. I haven't done this because this is
only a preview patch of work in progress.
> > Consider this a FYI. It is very much a WIP at the moment. I want
> > to get this into the tree in before 5.3 code freeze.
>
> In fact, our real world tests shown the current -CURRENT comparing to
> RELENG_5_2 is in a very bad shape. Is it really worth to commit that
> mostly cleanup code before say 6-CURRENT with a chance to
> destabilizate -CURRENT a bit more?
This will not destabilize -CURRENT anymore. Any errors in the code
are seen immediatly.
--
Andre
------------------------------
Message: 20
Date: Tue, 22 Jun 2004 13:41:35 +0200
From: Andre Oppermann <andre@freebsd.org>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Ian FREISLICH <if@hetzner.co.za>
Cc: freebsd-net@freebsd.org
Message-ID: <40D81AEF.20579AAC@freebsd.org>
Content-Type: text/plain; charset=us-ascii
Ian FREISLICH wrote:
>
> Andre Oppermann wrote:
> > Here is the next preview patch for the ipfw to pfil_hooks conversion:
> >
> > http://www.nrg4u.com/freebsd/ipfw-pfilhooks-and-more-20040621.diff
> >
> > This patch significantly cleans up ip_input.c and ip_output.c.
>
> That would be a very a nice thing, but it looks like this breaks
> the patch that I submitted (kern/64240) which fixes the acknowledged
> problem with 'ipfw tee' accepting packets instead of copying them
> to the divert port and then processing the packet according to the
> rest of the rule set.
Hmmm... I'll have a look at kern/64240. I guess while I'm rewriting
this stuff anyway I can fix this too in one go.
> There have been about 5 PRs (most with patches) in the past years
> which all claim to fix this problem indicating that here is a need
> for a fix. We rely on the fix in kern/64240 to collect traffic
> accounting information for billing and statistical purposes. There
> hasn't been much interest from the committers in having a look at
> this even though the work has already been done.
Could you give me all PR numbers? That'll make it easier for me
get the code in.
> Now that you're actively working on that part of the source, would
> it be possible to take a look? I would also be happy to create a
> new patch to fix this problem against ipfw with pfilhooks if that's
> what it's going to take to get a fix committed.
It's ok, I don't need new patches against the converted pfil_hooks
code.
--
Andre
------------------------------
Message: 21
Date: Tue, 22 Jun 2004 13:45:40 +0200
From: Andre Oppermann <andre@freebsd.org>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: Luigi Rizzo <rizzo@icir.org>
Message-ID: <40D81BE4.B82F01A3@freebsd.org>
Content-Type: text/plain; charset=us-ascii
Maxim Konovalov wrote:
>
> On Tue, 22 Jun 2004, 02:06-0700, Luigi Rizzo wrote:
>
> > On Tue, Jun 22, 2004 at 12:15:21PM +0400, Maxim Konovalov wrote:
> > ...
> > > > Consider this a FYI. It is very much a WIP at the moment. I want
> > > > to get this into the tree in before 5.3 code freeze.
> > >
> > > In fact, our real world tests shown the current -CURRENT comparing to
> > > RELENG_5_2 is in a very bad shape. Is it really worth to commit that
> > > mostly cleanup code before say 6-CURRENT with a chance to
> >
> > of course it is! i also do not follow the reasoning -- given that it is
> > cleaning up code, it is only welcome at any stage except perhaps
> > in code freeze.
>
> My concern is bugs. Especially in cleanup code, especially in
> ip_pcbopt and ip_reass.
I do not modify ip_pcbopt in any way. All the IP Options stuff is simply
a 1:1 code move to get them all in one single place.
For ip_reass() I've taken a very conservative approach and just moved
the external code into the function itself. In terms of coding style
it looks a bit ugly but is a pure 1:1 adaption of the existing code.
Thus I'm sure that I haven't changed the behaviour of the ip reassembly
code in any way (except one). I agree that a rewrite of ip_reass() is
a very delicate thing because of possible bugs, but that is not what I
have done.
--
Andre
------------------------------
Message: 22
Date: Tue, 22 Jun 2004 13:48:53 +0200
From: Andre Oppermann <andre@freebsd.org>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Angelo Turetta <aturetta@commit.it>
Cc: freebsd-net@freebsd.org
Message-ID: <40D81CA5.599AA4DB@freebsd.org>
Content-Type: text/plain; charset=us-ascii
Angelo Turetta wrote:
>
> ----- Original Message -----
> From: "Andre Oppermann" <andre@freebsd.org>
> Sent: Monday, June 21, 2004 11:36 PM
>
> > This patch significantly cleans up ip_input.c and ip_output.c.
> >
> > The following is included in this patch:
> >
> > o Remove all ipfw related cruft from ip_input() and ip_output()
> > o New ip_fw_pfil.c file which contains all ipfw/pfil_hooks logic
>
> IIRC, I had once a problem with a mixed setup where I used IPFILTER NAT &
> IPFW DUMMYNET. Basically, there was an asymmetry in the order the two
> filters were called, because the code in ip_input.c called IPFILTER before
> entering the IPFW code, and ip_output.c did the same, while it should have
> called first IPFW then IPFILTER. (beware, it might have been the opposite
> WRT what was first in which function, I don't remember exactly).
The new code fixes this. With ipfw using pfil_hooks the ordering will
be preserved for input and output (reversed).
> Does your new code take this ordering issue into account? I suppose it would
> be nice to be able to control the order filters are processed: I may like
> IPFW to be 'wrapping' IPFILTER (that is, called before it during input, and
> after it during output), while others might prefer the opposite. And anyway,
> am I right the filter list should be traversed in opposite directions during
> input versus output (maybe it's already so).
When you load the packet filters as kld's you can specify the order of
processing yourself. For compiled in it depends which initialization
function is called first.
--
Andre
------------------------------
Message: 23
Date: Tue, 22 Jun 2004 13:53:57 +0200
From: Ian FREISLICH <if@hetzner.co.za>
Subject: Re: New preview patch for ipfw to pfil_hooks conversion
To: Andre Oppermann <andre@freebsd.org>
Cc: freebsd-net@freebsd.org
Message-ID: <E1Bcjqf-000ERQ-00@hetzner.co.za>
Andre Oppermann wrote:
> > There have been about 5 PRs (most with patches) in the past years
> > which all claim to fix this problem indicating that here is a need
> > for a fix. We rely on the fix in kern/64240 to collect traffic
> > accounting information for billing and statistical purposes. There
> > hasn't been much interest from the committers in having a look at
> > this even though the work has already been done.
>
> Could you give me all PR numbers? That'll make it easier for me
> get the code in.
They all do basically the same thing in varying ways. I think that
all except for kern/64240 are against -STABLE. Here's what I can
find quickly. There may be more lurking.
kern/64240
kern/61259
kern/60377
kern/49959
> > Now that you're actively working on that part of the source, would
> > it be possible to take a look? I would also be happy to create a
> > new patch to fix this problem against ipfw with pfilhooks if that's
> > what it's going to take to get a fix committed.
>
> It's ok, I don't need new patches against the converted pfil_hooks
> code.
Cool, thanks.
Ian
--
Ian Freislich
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 66, Issue 6
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[31m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m