diff options
author | Son Dinh <dinhtrason@gmail.com> | 2024-04-09 16:23:31 +1000 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2024-06-16 13:52:50 +0200 |
commit | aa791a12cb2b23fb49c233e40b6e12e0e3ce6b9b (patch) | |
tree | 2e54cf9864446833ec7f6b5187838349d066dd0a /tests/shell/testcases/bitwise/dumps/0040mark_binop_8.json-nft | |
parent | b40bebbcee3602e2d849e48f3a50676bd8987204 (diff) |
dynset: avoid errouneous assert with ipv6 concat data
nft add rule ip6 table-test chain-1 update @map-X { ip6 saddr : 1000::1 . 5001 }
nft: src/netlink_linearize.c:873: netlink_gen_expr: Assertion `dreg < ctx->reg_low' failed.
Aborted (core dumped)
This is because we pass the EXPR_SET_ELEM expr to the register allocation,
which will make it reserve 1 128 bit register / 16 bytes.
This happens to be enough for most cases, but its not for ipv6 concat data.
Pass the actual key and data instead: This will reserve enough space to
hold a possible concat expression.
Also add test cases.
Signed-off-by: Son Dinh <dinhtrason@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/bitwise/dumps/0040mark_binop_8.json-nft')
0 files changed, 0 insertions, 0 deletions