Public bug reported:

[ Impact ]

The patch to CVE-2024-27397 introduces a compile-time warning in both
Bionic and Xenial GA kernels:

In file included from /build/bionic/include/linux/kernel.h:13:0,
                 from /build/bionic/include/linux/list.h:9,
                 from /build/bionic/include/linux/module.h:9,
                 from /build/bionic/net/bridge/netfilter/nf_tables_bridge.c:13:
/build/bionic/include/net/netfilter/nf_tables.h: In function 
'__nft_set_elem_expired':
/build/bionic/include/linux/typecheck.h:12:18: warning: comparison of distinct 
pointer types lacks a cast
  (void)(&__dummy == &__dummy2); \
                  ^
/build/bionic/include/linux/jiffies.h:139:3: note: in expansion of macro 
'typecheck'
   typecheck(__u64, b) && \
   ^~~~~~~~~
/build/bionic/include/net/netfilter/nf_tables.h:627:9: note: in expansion of 
macro 'time_after_eq64'
         time_after_eq64(tstamp, *nft_set_ext_expiration(ext));

The warning can be solved by backporting 8e1102d5a1596d from mainline.

[ Test Plan ]

To reproduce the warning it is possible to compile Xenial and Bionic GA
kernels.

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Massimiliano Pellizzer (mpellizzer)
         Status: Confirmed

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

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

** Also affects: linux (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Xenial)
   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/2090990

Title:
  Compile warning in Xenial and Bionic GA kernels

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to