netfilter: xt_recent: fix stack overread in compat code
authorJan Engelhardt <jengelh@medozas.de>
Fri, 24 Apr 2009 15:05:21 +0000 (17:05 +0200)
committerPatrick McHardy <kaber@trash.net>
Fri, 24 Apr 2009 15:05:21 +0000 (17:05 +0200)
commit37e55cf0ceb8803256bf69a3e45bd668bf90b76f
tree9e6315efab07d0c70be0a4e7a5d27f6a554ea238
parent71951b64a5a87c09eb6fde59ce51aaab2fdaeab2
netfilter: xt_recent: fix stack overread in compat code

Related-to: commit 325fb5b4d26038cba665dd0d8ee09555321061f0

The compat path suffers from a similar problem. It only uses a __be32
when all of the recent code uses, and expects, an nf_inet_addr
everywhere. As a result, addresses stored by xt_recents were
filled with whatever other stuff was on the stack following the be32.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
With a minor compile fix from Roman.

Reported-and-tested-by: Roman Hoog Antink <rha@open.ch>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_recent.c