]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: fix lockup via /proc/net/ip6_flowlabel
authorJames Morris <jmorris@namei.org>
Mon, 30 Oct 2006 23:08:42 +0000 (15:08 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 30 Oct 2006 23:24:42 +0000 (15:24 -0800)
commit7ef38b7698ddc2d375fbb3c6aaf09d7857148b8c
tree35267772a114c8e450bf167076d5cef1c1e81e75
parent883e8f4458891fa0ee9e231117fdd269bf69885e
[IPV6]: fix lockup via /proc/net/ip6_flowlabel

There's a bug in the seqfile handling for /proc/net/ip6_flowlabel, where,
after finding a flowlabel, the code will loop forever not finding any
further flowlabels, first traversing the rest of the hash bucket then just
looping.

This patch fixes the problem by breaking after the hash bucket has been
traversed.

Note that this bug can cause lockups and oopses, and is trivially invoked
by an unpriveleged user.

Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_flowlabel.c