netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iproute2 (addr flush) infinite loop when unprivileged users
@ 2008-01-25 23:00 Alon Bar-Lev
  2008-01-25 23:02 ` Stephen Hemminger
  2008-01-26  0:12 ` Stephen Hemminger
  0 siblings, 2 replies; 10+ messages in thread
From: Alon Bar-Lev @ 2008-01-25 23:00 UTC (permalink / raw)
  To: shemminger, netdev

Hello,

When executing the following command using unprivileged users there is
an infinite loop...
/sbin/ip route flush dev eth1

Execution with -s produces:
*** Round 28153, deleting 2 entries ***

*** Round 28154, deleting 2 entries ***

*** Round 28155, deleting 2 entries ***

*** Round 28156, deleting 2 entries ***

*** Round 28157, deleting 2 entries ***

*** Round 28158, deleting 2 entries ***

*** Round 28159, deleting 2 entries ***

I do not fully understand the sequence, but it may be kernel fault, as
it should have returned EPERM for this request stopping the netlink
request.

Anyway... A simple solution is to store the filter.flushed and fail if
it keeps its value during loop iteration at
ip/ipaddress.c::ipaddr_list_or_flush(), but this is only a
workaround...

Please CC as I am not in netdev list.
Thanks!
Alon.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-01-26 21:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-25 23:00 iproute2 (addr flush) infinite loop when unprivileged users Alon Bar-Lev
2008-01-25 23:02 ` Stephen Hemminger
2008-01-25 23:06   ` Alon Bar-Lev
2008-01-26  0:12 ` Stephen Hemminger
2008-01-26  0:22   ` Alon Bar-Lev
2008-01-26  8:58     ` Alon Bar-Lev
2008-01-26 19:11       ` Stephen Hemminger
2008-01-26 19:14       ` Stephen Hemminger
2008-01-26 19:19       ` Stephen Hemminger
2008-01-26 21:48         ` Alon Bar-Lev

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).