[Debian Bug#218837] limit match not working on sparc64

Harald Welte laforge@netfilter.org
Fri, 7 Nov 2003 01:03:24 +0100

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 06, 2003 at 11:00:56AM -0500, Laurence J. Lane wrote:
> I received a bug report [0] regarding the limit match not working
> on sparc64 with kernel 2.4.22. It references an earlier report [1]
> of the problem on this list. Harald Welete commented on it [2] and
> asked for additional information, but there is no clear resolution.
> Anyone?

this is most likely never going to get fixed.   the problem is that the
limit match does an ugly hack: it stores a pointer in it's struct
matchinfo.  That pointer is 64bits in the kernel, but userspace is
32bits, and thus the compilar only allocates 32bit for the pointer in
the structure: boom.

The structure was commented by the original author with:
        /* Ugly, ugly fucker. */


- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.3 (GNU/Linux)