Patrick McHardy 86f1ec3231 netfilter: nf_tables: fix userdata length overflow
The NFT_USERDATA_MAXLEN is defined to 256, however we only have a u8
to store its size. Introduce a struct nft_userdata which contains a
length field and indicate its presence using a single bit in the rule.

The length field of struct nft_userdata is also a u8, however we don't
store zero sized data, so the actual length is udata->len + 1.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2015-03-04 18:46:06 +01:00
..
2014-09-18 10:54:36 +02:00
2013-12-28 17:02:46 -05:00
2013-11-07 19:28:58 -05:00
2014-09-30 01:02:26 -04:00
2014-06-04 22:46:38 -07:00
2015-01-18 01:56:32 -05:00
2014-01-03 20:56:48 -05:00
2014-12-19 00:19:23 +01:00
2015-01-15 18:26:16 -05:00
2014-06-02 11:00:41 -07:00
2015-02-12 18:54:10 -08:00
2015-02-09 18:45:00 -08:00
2014-05-22 14:57:15 -04:00
2014-10-01 21:35:51 -04:00