[Bug 2091425] Re: iptables-netflow-dkms FTBS in Noble with linux-6.11-hwe kernel

Massimiliano Pellizzer 2091425 at bugs.launchpad.net
Mon Dec 16 06:55:50 UTC 2024


** Description changed:

  [ Impact ]
  
  iptables-netflow-dkms does not compile from source in Noble with kernel
  6.11:
  
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c: At top level:
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1807:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1807 |                 .proc_handler   = &hsize_procctl,
-       |                                   ^
+  1807 |                 .proc_handler   = &hsize_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1807:35: note: (near initialization for ‘netflow_sysctl_table[3].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1813:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1813 |                 .proc_handler   = &sndbuf_procctl,
-       |                                   ^
+  1813 |                 .proc_handler   = &sndbuf_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1813:35: note: (near initialization for ‘netflow_sysctl_table[4].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1820:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1820 |                 .proc_handler   = &destination_procctl,
-       |                                   ^
+  1820 |                 .proc_handler   = &destination_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1820:35: note: (near initialization for ‘netflow_sysctl_table[5].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1842:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1842 |                 .proc_handler   = &flush_procctl,
-       |                                   ^
+  1842 |                 .proc_handler   = &flush_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1842:35: note: (near initialization for ‘netflow_sysctl_table[7].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1848:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1848 |                 .proc_handler   = &protocol_procctl,
-       |                                   ^
+  1848 |                 .proc_handler   = &protocol_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1848:35: note: (near initialization for ‘netflow_sysctl_table[8].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1870:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1870 |                 .proc_handler   = &promisc_procctl,
-       |                                   ^
+  1870 |                 .proc_handler   = &promisc_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1870:35: note: (near initialization for ‘netflow_sysctl_table[11].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1879:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1879 |                 .proc_handler   = &sampler_procctl,
-       |                                   ^
+  1879 |                 .proc_handler   = &sampler_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1879:35: note: (near initialization for ‘netflow_sysctl_table[12].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1897:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1897 |                 .proc_handler   = &snmp_procctl,
-       |                                   ^
+  1897 |                 .proc_handler   = &snmp_procctl,
+       |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1897:35: note: (near initialization for ‘netflow_sysctl_table[14].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1905:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
-  1905 |                 .proc_handler   = &natevents_procctl,
-       |                                   ^
+  1905 |                 .proc_handler   = &natevents_procctl,
+       |                                   ^
  
  [ Test case ]
  
  Install the latest linux-6.11 kernel on Noble:
  
  $ sudo add-apt-repository ppa:canonical-kernel-team/ppa
  $ sudo apt update
  $ sudo apt install linux-image-6.11.0-12-generic \
-                    linux-modules-6.11.0-12-generic \
-                    linux-modules-extra-6.11.0-12-generic \
-                    linux-headers-6.11.0-12-generic
+                    linux-modules-6.11.0-12-generic \
+                    linux-modules-extra-6.11.0-12-generic \
+                    linux-headers-6.11.0-12-generic
  
  Install iptables-netflow-dkms:
  
  $ sudo apt install iptables-netflow-dkms
  
  Load the module:
  
  $ sudo modprobe ipt_NETFLOW
+ 
+ The same procedure should be repeated on linux-6.8 to test for possible
+ regressions.
  
  [ Fix ]
  
  Patch the code to properly support the new linux 6.11 ABI.
  
  [ Regression potential]
  
  We may experience networking-related regressions in systems that are
  using the iptables-netflow-dkms module and that are using a kernel >=
  6.11.

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

Title:
  iptables-netflow-dkms FTBS in Noble with linux-6.11-hwe kernel

Status in iptables-netflow package in Ubuntu:
  In Progress
Status in iptables-netflow source package in Noble:
  In Progress

Bug description:
  [ Impact ]

  iptables-netflow-dkms does not compile from source in Noble with
  kernel 6.11:

  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c: At top level:
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1807:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1807 |                 .proc_handler   = &hsize_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1807:35: note: (near initialization for ‘netflow_sysctl_table[3].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1813:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1813 |                 .proc_handler   = &sndbuf_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1813:35: note: (near initialization for ‘netflow_sysctl_table[4].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1820:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1820 |                 .proc_handler   = &destination_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1820:35: note: (near initialization for ‘netflow_sysctl_table[5].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1842:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1842 |                 .proc_handler   = &flush_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1842:35: note: (near initialization for ‘netflow_sysctl_table[7].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1848:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1848 |                 .proc_handler   = &protocol_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1848:35: note: (near initialization for ‘netflow_sysctl_table[8].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1870:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1870 |                 .proc_handler   = &promisc_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1870:35: note: (near initialization for ‘netflow_sysctl_table[11].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1879:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1879 |                 .proc_handler   = &sampler_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1879:35: note: (near initialization for ‘netflow_sysctl_table[12].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1897:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1897 |                 .proc_handler   = &snmp_procctl,
        |                                   ^
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1897:35: note: (near initialization for ‘netflow_sysctl_table[14].proc_handler’)
  /var/lib/dkms/ipt-netflow/2.6/build/ipt_NETFLOW.c:1905:35: error: initialization of ‘int (*)(const struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(const struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} from incompatible pointer type ‘int (*)(struct ctl_table *, int,  void *, size_t *, loff_t *)’ {aka ‘int (*)(struct ctl_table *, int,  void *, long unsigned int *, long long int *)’} [-Werror=incompatible-pointer-types]
   1905 |                 .proc_handler   = &natevents_procctl,
        |                                   ^

  [ Test case ]

  Install the latest linux-6.11 kernel on Noble:

  $ sudo add-apt-repository ppa:canonical-kernel-team/ppa
  $ sudo apt update
  $ sudo apt install linux-image-6.11.0-12-generic \
                     linux-modules-6.11.0-12-generic \
                     linux-modules-extra-6.11.0-12-generic \
                     linux-headers-6.11.0-12-generic

  Install iptables-netflow-dkms:

  $ sudo apt install iptables-netflow-dkms

  Load the module:

  $ sudo modprobe ipt_NETFLOW

  The same procedure should be repeated on linux-6.8 to test for
  possible regressions.

  [ Fix ]

  Patch the code to properly support the new linux 6.11 ABI.

  [ Regression potential]

  We may experience networking-related regressions in systems that are
  using the iptables-netflow-dkms module and that are using a kernel >=
  6.11.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iptables-netflow/+bug/2091425/+subscriptions




More information about the Ubuntu-sponsors mailing list