All of lore.kernel.org
 help / color / mirror / Atom feed
* Wildcards / large ranges in concatenations
@ 2021-02-17  3:09 Frank Myhr
  2021-02-17  6:50 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Myhr @ 2021-02-17  3:09 UTC (permalink / raw)
  To: netfilter

Hi,

A couple of weeks ago I played around a bit with using ranges in 
concatenations, a very cool feature added in nftables 0.9.4. Somehow I 
wound up with set with nonsensical keys, and not long after a kernel 
oops. I suppose this was very likely my own fault and/or due to very 
limited memory inside a virtual machine. I ended up going with a 
different ruleset config.

But I have a couple lingering questions about using ranges in 
concatenations:

1) Would it be possible to specify a wildcard (* or similar) for one of 
the constituent values? I had a vmap (if I remember correctly) using 
concatenated keys like ifname . ifname . inet_service . inet_service. 
For one element I didn't care about one of the inet_service values, and 
since '*' didn't seem to work, specified a range of all possible values 
0-65535. The oops happened not long after this.

2) Are concatenations of large (or wildcard) ranges inefficient (in 
execution speed and/or memory use), even if they work? I started to 
suspect this might be the case, and so changed my ruleset design.

Thanks,
Frank

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

* Re: Wildcards / large ranges in concatenations
  2021-02-17  3:09 Wildcards / large ranges in concatenations Frank Myhr
@ 2021-02-17  6:50 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2021-02-17  6:50 UTC (permalink / raw)
  To: Frank Myhr; +Cc: netfilter

Frank Myhr <fmyhr@fhmtech.com> wrote:
> A couple of weeks ago I played around a bit with using ranges in
> concatenations, a very cool feature added in nftables 0.9.4. Somehow I wound
> up with set with nonsensical keys, and not long after a kernel oops.

The kernel must not oops.  Please share a reproducer so this can be
fixed.  Thanks.

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

end of thread, other threads:[~2021-02-17  6:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17  3:09 Wildcards / large ranges in concatenations Frank Myhr
2021-02-17  6:50 ` Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.