Re: Algoritmic Complexity Attacks and 2.4.20 the dcache code

From: David S. Miller (davem@redhat.com)
Date: Sat May 31 2003 - 01:25:30 EST


From: Scott A Crosby <scrosby@xxxxxxxxxxx>
Date: 30 May 2003 10:05:51 -0500

On Fri, 30 May 2003 02:00:40 -0700 (PDT), "David S. Miller" <davem@xxxxxxxxxx> writes:

> Indeed, I'd missed this. GCC will emit the constant multiply
> expansion unless the multiply cost is set VERY low.

It may still be a win. This does a bit under a dozen instructions per
byte. However, jenkin's does many bytes at a time.

It turns out to not be the case at all. There is too much work
involved in the main loop just maintaining the 3-word + curbyte
state.

It needs to be optimized a bit.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/