* DoS by cat /proc/net/ip_conntrack ?
@ 2008-03-06 13:43 Denys Fedoryshchenko
2008-03-06 13:51 ` Krzysztof Oledzki
0 siblings, 1 reply; 7+ messages in thread
From: Denys Fedoryshchenko @ 2008-03-06 13:43 UTC (permalink / raw)
To: netdev
Hi again
On loaded router
net.netfilter.nf_conntrack_count = 415633
passing about 100-150 Mbps
network cards 3xe100, 1xe1000e
i tried to issue command cat /proc/net/ip_conntrack |grep 'something'
Router went dead for about 2 minutes, even i disconnect ssh session.
Ping was looks like this:
64 bytes from dotfib (10.184.184.1): icmp_seq=15 ttl=61 time=4321 ms
64 bytes from dotfib (10.184.184.1): icmp_seq=50 ttl=61 time=398 ms
64 bytes from dotfib (10.184.184.1): icmp_seq=122 ttl=61 time=15.3 ms
64 bytes from dotfib (10.184.184.1): icmp_seq=142 ttl=61 time=4452 ms
64 bytes from dotfib (10.184.184.1): icmp_seq=180 ttl=61 time=850 ms
(system recovered)
64 bytes from dotfib (10.184.184.1): icmp_seq=182 ttl=61 time=0.681 ms
64 bytes from dotfib (10.184.184.1): icmp_seq=183 ttl=61 time=0.936 ms
64 bytes from dotfib (10.184.184.1): icmp_seq=184 ttl=61 time=2.94 ms
I dont think it is normal, and such command taking a lot of system resources
and cause whole system to hang.
Kernel 2.6.24.2
--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DoS by cat /proc/net/ip_conntrack ?
2008-03-06 13:43 DoS by cat /proc/net/ip_conntrack ? Denys Fedoryshchenko
@ 2008-03-06 13:51 ` Krzysztof Oledzki
2008-03-08 12:26 ` Jarek Poplawski
0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Oledzki @ 2008-03-06 13:51 UTC (permalink / raw)
To: Denys Fedoryshchenko; +Cc: netdev
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1303 bytes --]
On Thu, 6 Mar 2008, Denys Fedoryshchenko wrote:
> Hi again
Hi,
> On loaded router
> net.netfilter.nf_conntrack_count = 415633
> passing about 100-150 Mbps
> network cards 3xe100, 1xe1000e
>
> i tried to issue command cat /proc/net/ip_conntrack |grep 'something'
>
> Router went dead for about 2 minutes, even i disconnect ssh session.
> Ping was looks like this:
> 64 bytes from dotfib (10.184.184.1): icmp_seq=15 ttl=61 time=4321 ms
> 64 bytes from dotfib (10.184.184.1): icmp_seq=50 ttl=61 time=398 ms
> 64 bytes from dotfib (10.184.184.1): icmp_seq=122 ttl=61 time=15.3 ms
> 64 bytes from dotfib (10.184.184.1): icmp_seq=142 ttl=61 time=4452 ms
> 64 bytes from dotfib (10.184.184.1): icmp_seq=180 ttl=61 time=850 ms
> (system recovered)
> 64 bytes from dotfib (10.184.184.1): icmp_seq=182 ttl=61 time=0.681 ms
> 64 bytes from dotfib (10.184.184.1): icmp_seq=183 ttl=61 time=0.936 ms
> 64 bytes from dotfib (10.184.184.1): icmp_seq=184 ttl=61 time=2.94 ms
>
> I dont think it is normal, and such command taking a lot of system resources
> and cause whole system to hang.
>
> Kernel 2.6.24.2
The answer is quite simple here: don't do this. Instead use "conntrack -L"
as netlink is much more effective and better designed.
Best regards,
Krzysztof Olędzki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DoS by cat /proc/net/ip_conntrack ?
2008-03-06 13:51 ` Krzysztof Oledzki
@ 2008-03-08 12:26 ` Jarek Poplawski
2008-03-08 12:33 ` Jarek Poplawski
0 siblings, 1 reply; 7+ messages in thread
From: Jarek Poplawski @ 2008-03-08 12:26 UTC (permalink / raw)
To: Krzysztof Oledzki; +Cc: Denys Fedoryshchenko, netdev
Krzysztof Oledzki wrote, On 03/06/2008 02:51 PM:
>
> On Thu, 6 Mar 2008, Denys Fedoryshchenko wrote:
...
>> i tried to issue command cat /proc/net/ip_conntrack |grep 'something'
>>
>> Router went dead for about 2 minutes, even i disconnect ssh session.
...
>> I dont think it is normal, and such command taking a lot of system resources
>> and cause whole system to hang.
>>
>> Kernel 2.6.24.2
>
> The answer is quite simple here: don't do this. Instead use "conntrack -L"
> as netlink is much more effective and better designed.
I think, Denys is concerned about some other, maybe too curious users
if they can read this?
Regards,
Jarek P.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DoS by cat /proc/net/ip_conntrack ?
2008-03-08 12:26 ` Jarek Poplawski
@ 2008-03-08 12:33 ` Jarek Poplawski
2008-03-08 14:24 ` Denys Fedoryshchenko
0 siblings, 1 reply; 7+ messages in thread
From: Jarek Poplawski @ 2008-03-08 12:33 UTC (permalink / raw)
Cc: Krzysztof Oledzki, Denys Fedoryshchenko, netdev
Jarek Poplawski wrote, On 03/08/2008 01:26 PM:
...
> I think, Denys is concerned about some other, maybe too curious users
> if they can read this?
OOPS! I see it's root only...
Then only their curiosity could be dangerous here!
Sorry,
Jarek P.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DoS by cat /proc/net/ip_conntrack ?
2008-03-08 12:33 ` Jarek Poplawski
@ 2008-03-08 14:24 ` Denys Fedoryshchenko
2008-03-08 14:44 ` Jarek Poplawski
0 siblings, 1 reply; 7+ messages in thread
From: Denys Fedoryshchenko @ 2008-03-08 14:24 UTC (permalink / raw)
To: Jarek Poplawski; +Cc: Krzysztof Oledzki, netdev
For me personally, i think must be as a rule, that _READING_ must not hang
whole system by consuming all resources (router becoming completely
unreachable and blocking all traffic passing thru it). It can hang console,
current program, but not crash router.
On Sat, 08 Mar 2008 13:33:10 +0100, Jarek Poplawski wrote
> Jarek Poplawski wrote, On 03/08/2008 01:26 PM:
> ....
>
> > I think, Denys is concerned about some other, maybe too curious users
> > if they can read this?
>
> OOPS! I see it's root only...
>
> Then only their curiosity could be dangerous here!
>
> Sorry,
> Jarek P.
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DoS by cat /proc/net/ip_conntrack ?
2008-03-08 14:24 ` Denys Fedoryshchenko
@ 2008-03-08 14:44 ` Jarek Poplawski
2008-03-08 15:18 ` Patrick McHardy
0 siblings, 1 reply; 7+ messages in thread
From: Jarek Poplawski @ 2008-03-08 14:44 UTC (permalink / raw)
To: Denys Fedoryshchenko; +Cc: Krzysztof Oledzki, netdev
On Sat, Mar 08, 2008 at 04:24:34PM +0200, Denys Fedoryshchenko wrote:
> For me personally, i think must be as a rule, that _READING_ must not hang
> whole system by consuming all resources (router becoming completely
> unreachable and blocking all traffic passing thru it). It can hang console,
> current program, but not crash router.
IMHO you're right, and it's a bug. Only calling this DOS isn't probably
very right if only root can do this, but maybe I'm wrong.
Jarek P.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DoS by cat /proc/net/ip_conntrack ?
2008-03-08 14:44 ` Jarek Poplawski
@ 2008-03-08 15:18 ` Patrick McHardy
0 siblings, 0 replies; 7+ messages in thread
From: Patrick McHardy @ 2008-03-08 15:18 UTC (permalink / raw)
To: Jarek Poplawski; +Cc: Denys Fedoryshchenko, Krzysztof Oledzki, netdev
Jarek Poplawski wrote:
> On Sat, Mar 08, 2008 at 04:24:34PM +0200, Denys Fedoryshchenko wrote:
>
>> For me personally, i think must be as a rule, that _READING_ must not hang
>> whole system by consuming all resources (router becoming completely
>> unreachable and blocking all traffic passing thru it). It can hang console,
>> current program, but not crash router.
>>
>
> IMHO you're right, and it's a bug. Only calling this DOS isn't probably
> very right if only root can do this, but maybe I'm wrong.
>
Starting with current -git we don't take the conntrack
lock for /proc anymore, so it should behave better now.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-08 15:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 13:43 DoS by cat /proc/net/ip_conntrack ? Denys Fedoryshchenko
2008-03-06 13:51 ` Krzysztof Oledzki
2008-03-08 12:26 ` Jarek Poplawski
2008-03-08 12:33 ` Jarek Poplawski
2008-03-08 14:24 ` Denys Fedoryshchenko
2008-03-08 14:44 ` Jarek Poplawski
2008-03-08 15:18 ` Patrick McHardy
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).