ntop / PF_RING

High-speed packet processing framework
http://www.ntop.org
GNU Lesser General Public License v2.1
2.71k stars 349 forks source link

Cannot build PF_RING stable on Oracle Linux kernel 5.14.0-503.15.1 #969

Open michael-clarke opened 3 days ago

michael-clarke commented 3 days ago

I had PF_RING running fine on kernel 5.14.0-362 in Oracle Linux Server 9.5

$ uname -r
5.14.0-362.18.1.el9_3.x86_64
[user@OL8CAPTURE ~]$ lsmod | grep pf
pf_ring               282624  0

However I updated the kernel to kernel-5.14.0-503.15.1.el9_5.x86_64 and am not able to build, with the following error.

$ make
make -C /lib/modules/5.14.0-503.15.1.el9_5.x86_64/build M=/home/user/PF_RING/kernel EXTRA_CFLAGS='-I/home/user/PF_RING/kernel -DGIT_REV="\"8.8.0-stable:90c0d2896c7f22f9116e6010b96d9615c64393c7\"" -no-pie -fno-pie -Wno-implicit-fallthrough' modules
make[1]: Entering directory '/usr/src/kernels/5.14.0-503.15.1.el9_5.x86_64'
  CC [M]  /home/user/PF_RING/kernel/pf_ring.o
/home/user/PF_RING/kernel/pf_ring.c: In function ‘do_memory_mmap’:
/home/user/PF_RING/kernel/pf_ring.c:5788:17: error: assignment of read-only member ‘vm_flags’
 5788 |   vma->vm_flags |= flags;
      |                 ^~
make[2]: *** [scripts/Makefile.build:249: /home/user/PF_RING/kernel/pf_ring.o] Error 1
make[1]: *** [Makefile:1944: /home/user/PF_RING/kernel] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-503.15.1.el9_5.x86_64'
make: *** [Makefile:67: all] Error 2

I've rolled back to previous kernel for now, but any thoughts? Thanks

cardigliano commented 3 days ago

Did you pull latest dev code?

michael-clarke commented 3 days ago

Thanks for responding so quick. I was using 8.8.0-stable and did not try the latest dev branch. Will try that once the server is powered up again....which may be a few weeks.

cardigliano commented 3 days ago

Latest RH9 kernel is not supported in the stable at the moment. The pf_ring kernel module needs to be patched, same for the zc drivers (https://github.com/ntop/PF_RING/issues/970)