Public bug reported:

cat /proc/version_signature 
Ubuntu 6.8.0-151.151-generic 6.8.12

lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.5 LTS
Release:        24.04


The below nftables ruleset can't be loaded on noble with a kernel 
6.8.0-151-generic. When booted into 6.8.0-149-generic it is possible.

It seems that interval sets combined with meta fields are the trigger
for this issue.

root@nft-test:~# cat test.nft 
table inet testnew {
        set problem_set {
                typeof ip saddr . th dport . meta l4proto
                flags interval
                elements = { 10.0.0.0/8 . 22 . tcp }
        }

        chain in {
                type filter hook input priority filter + 10;
                ip saddr . th dport . meta l4proto @problem_set counter accept
        }
}

root@nft-test:~# nft -f test.nft 
test.nft:10:23-36: Error: Could not process rule: Operation not supported
                ip saddr . th dport . meta l4proto @problem_set counter accept
                                    ^^^^^^^^^^^^^^


I suspect "netfilter: nft_byteorder: remove multi-register support" from 
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2172890 to have introduced 
this bug.

The commit message of this patch says it will affect scenarios with
interval set and follows with:

    Pablo Neira Ayuso points out that nftables before 1.1.0 can generate
    incorrect byteorder conversions, see 9fe58952c45a,
    "evaluate: skip byteorder conversion for selector smaller than 2 bytes"
    in nftables.git).  Affected rulesets fail to load with this change and
    old userspace due to 'len != size' check.


And as a matter of fact on noble we have nftables v1.0.9 

On newer ubuntu versions with newer kernels and nftables > 1.1.0 i was
NOT able to reproduce the problem.


Happy to provide more information if needed.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175626

Title:
  [noble] 6.8.0-151-generic can't load certain nftable rulesets with
  intercal sets

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2175626/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to