PPTP conntrack with CONFIG_NETFILTER_DEBUG is broken (was: newnat and patch-o-matic)
Hi all,
As I've already reported, there is a problem with the PPTP conntrack module of pom. It can't be built with the option CONFIG_NETFILTER_DEBUG. And I still receive questions about the first thread I started on this problem but without pointing the cause. I hope that everyone is now aware of this issue.
Regards,
Cédric
Quoted 4 lines · Cédric Rivard
Hi all,
As I've already reported, there is a problem with the PPTP conntrack module of pom. It can't be built with the option
CONFIG_NETFILTER_DEBUG. And I still receive questions about the first thread I started on this problem but without pointing the cause. I hope that everyone is now aware of this issue.
This issue came to my attention in the end of August, I produced a patch and I never heard from that person again. The patch is quite ugly but it does solve this specific problem. I was waiting for some more input from other developers before submitting it to cvs but now I've given up on that and I've submitted it. patch-o-matic in cvs now works with debugging enabled.
or you can apply this patch on your kernel after patching with the patch-o-matic you are currently using:
http://www.netfilter.org/~gandalf/patches/ip_conntrack_proto_gre.c-lockfix
Signature · 4 lines
/Martin Never argue with an idiot. They drag you down to their level, then beat you with experience.
PPTP conntrack w/out DEBUG is broken ???
i run into one problem with PPTP conntrack:
run it with debug on: works
run it w/out debug on: does not.
i also turned on the patch below and configure the CONFIG_NETFILTER_DEBUG:
compile ip_conntrack_pptp with debug on: all ok
compile ip_conntrack_pptp w/out debug: does not even print the ASSERT readlock statements from CONFIG_NETFILTER_DEBUG, PPTP connection is not established.
this debug issue was tracked down to a single printk statement in ip_conntrack_pptp.c: line 244,245:
DEBUGP("%s, CID=%X, PCID=%X\n", strMName[msg]
ntohs(*cid), ntohs(*pcid));
i run this on a 2.4.17 mips little endian, single proc, latest pptp ALG files from netfilter, newnat13.
how this can be ?
thanks for any input,
marian
Quoted 20 lines · Martin Josefsson
Quoted 7 lines · Cédric Rivard
Hi all,
As I've already reported, there is a problem with the PPTP conntrack module of pom. It can't be built with the option
CONFIG_NETFILTER_DEBUG. And I still receive questions about the first thread I started on this problem but without pointing the cause. I hope that everyone is now aware of this issue.This issue came to my attention in the end of August, I produced a patch and I never heard from that person again. The patch is quite ugly but it does solve this specific problem. I was waiting for some more input from other developers before submitting it to cvs but now I've given up on that and I've submitted it. patch-o-matic in cvs now works with debugging enabled.
or you can apply this patch on your kernel after patching with the patch-o-matic you are currently using:
http://www.netfilter.org/~gandalf/patches/ip_conntrack_proto_gre.c-lockfix
PPTP conntrack w/out DEBUG is broken ???
Quoted 47 lines
i run into one problem with PPTP conntrack:
run it with debug on: works
run it w/out debug on: does not.i also turned on the patch below and configure the
CONFIG_NETFILTER_DEBUG:
compileip_conntrack_pptpwith debug on: all ok
compileip_conntrack_pptpw/out debug: does not even print the ASSERT readlock statements fromCONFIG_NETFILTER_DEBUG, PPTP connection is not established.this debug issue was tracked down to a single printk statement in
ip_conntrack_pptp.c: line 244,245:DEBUGP("%s, CID=%X, PCID=%X\n", strMName[msg]
ntohs(*cid), ntohs(*pcid));i run this on a 2.4.17 mips little endian, single proc, latest pptp ALG files from netfilter, newnat13.
how this can be ?
thanks for any input,
marianQuoted 21 lines · Martin Josefsson
Quoted 7 lines · Cédric Rivard
Hi all,
As I've already reported, there is a problem with the PPTP conntrack module of pom. It can't be built with the option
CONFIG_NETFILTER_DEBUG. And I still receive questions about the first thread I started on this problem but without pointing the cause. I hope that everyone is now aware of this issue.This issue came to my attention in the end of August, I produced a patch and I never heard from that person again. The patch is quite ugly but it does solve this specific problem. I was waiting for some more input from other developers before submitting it to cvs but now I've given up on that and I've submitted it. patch-o-matic in cvs now works with debugging enabled.
or you can apply this patch on your kernel after patching with the patch-o-matic you are currently using:
http://www.netfilter.org/~gandalf/patches/ip_conntrack_proto_gre.c-lockfi
x
Re: PPTP conntrack w/out DEBUG is broken ???
In reply to Marian StagarescuQuoted 4 lines · Marian Stagarescu
i run into one problem with PPTP conntrack:
run it with debug on: works
run it w/out debug on: does not.
what do you call 'debug' ? Does this mean the DEBUG #defines in the respective sourcecode .c files, or are you talking about CONFIG_NETFILTER_DEBUG?
Quoted 6 lines
this debug issue was tracked down to a single printk statement in
ip_conntrack_pptp.c: line 244,245:DEBUGP("%s, CID=%X, PCID=%X\n", strMName[msg]
ntohs(*cid), ntohs(*pcid));
What happens? Does the kernel oops at this statement?
Quoted 2 lines
thanks for any input,
marian
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ "If this were a dictatorship, it'd be a heck of a lot easier, just so long as I'm the dictator." -- George W. Bush Dec 18, 2000
Re: PPTP conntrack w/out DEBUG is broken ???
Quoted 8 lines · Harald Welte
Quoted 4 lines · Marian Stagarescu
i run into one problem with PPTP conntrack:
run it with debug on: works
run it w/out debug on: does not.what do you call 'debug' ? Does this mean the DEBUG #defines in the respective sourcecode .c files
yes. ip_conntrack_pptp.c, ip_nat_pptp.c, ip_conntrack_proto_gre.c, ip_nat_proto_gre.c are compiled with DEBUGP defined.
Quoted 2 lines
or are you talking about
CONFIG_NETFILTER_DEBUG?
i have this turned on as well
Quoted 7 lines
Quoted 5 lines
this debug issue was tracked down to a single printk statement in
ip_conntrack_pptp.c: line 244,245:DEBUGP("%s, CID=%X, PCID=%X\n", strMName[msg]
ntohs(*cid), ntohs(*pcid));What happens? Does the kernel oops at this statement?
no opps but the PPTP session is not established.
I'll come back with a detailed debug log.
Quoted 2 lines
Quoted 2 lines
thanks for any input,
marian