[PATCH 0/2] nftables: fix big endian bugs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following two patches fix the remaining big endian bugs in nftables
I could find during my testing.

Patch 1 addresses the problem that a constant expression is allocated with
data from a variable that is larger than the data size. On big endian we
can't simply use &var but need to calculate the address of the data
dependant on the size of the variable and the size of the data we want.

Patch 2 fixes the GMP import/export functions for BYTEORDER_HOST_ENDIAN
to use the proper word order dependant on the host endianess. This is needed
because we always use a word size of 1 and the word order basically
determines the byte order.

With these patches in place, everything appears to work fine. A single
fix for the kernel is also needed, this will be sent seperately.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux