netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] nftables: fix big endian bugs
@ 2014-04-12  9:09 Patrick McHardy
  2014-04-12  9:09 ` [PATCH 1/2] expression: fix constant expression allocation on big endian Patrick McHardy
  2014-04-12  9:09 ` [PATCH 2/2] gmputil: use MSF/LSF in import/export functions dependant on host byte order Patrick McHardy
  0 siblings, 2 replies; 3+ messages in thread
From: Patrick McHardy @ 2014-04-12  9:09 UTC (permalink / raw)
  To: pablo; +Cc: arturo.borrero.glez, netfilter-devel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-12  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-12  9:09 [PATCH 0/2] nftables: fix big endian bugs Patrick McHardy
2014-04-12  9:09 ` [PATCH 1/2] expression: fix constant expression allocation on big endian Patrick McHardy
2014-04-12  9:09 ` [PATCH 2/2] gmputil: use MSF/LSF in import/export functions dependant on host byte order Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).