nft_expr_ops.dump signature not covered by kernel-module build detection — fails on RHEL9/kernel 5.14, reproduces on master, mr26.2.1.1, and mr26.1.1.10
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- c, linux
- Lĩnh vực
- build-system
Hướng nghiên cứu
The kernel-module build auto-detects API variants in kernel-module/gen-rtpengine-kmod-flags; read the existing NFT_EXPR_OPS_VALIDATE_HAS_DATA compile-test there and commit 503c4aa as the pattern to follow. The .dump mismatch surfaces in the nft_expr_ops initialisers for rtpengine_inet_ops, rtpengine_ipv4_ops and rtpengine_ipv6_ops, while eventfd_signal_mask is used in ring_buffer_insert. Done looks like a clean kernel-module make on RHEL9 5.14 that selects the 3-arg dump signature without breaking kernels that still use the 2-arg one.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
rtpengine version the issue has been seen with
mr26.2.1.1
Used distribution and its version
No response
Linux kernel version used
No response
CPU architecture issue was seen on (see uname -m)
None
Expected behaviour you didn't see
Environment: RHEL 9 family, kernel 5.14.0-70.22.1.el9_0.x86_64, matching kernel-devel headers confirmed present and correct.
Steps: git checkout → cd kernel-module && make clean && make, tried on master, mr26.2.1.1, and mr26.1.1.10.
Error 1 (all three): implicit declaration of function 'eventfd_signal_mask' in ring_buffer_insert.
Error 2 (all three): .dump = rtpengine_expr_dump — incompatible pointer type, kernel expects 3-arg (struct sk_buff *, const struct nft_expr *, bool), code provides 2-arg, for rtpengine_inet_ops, rtpengine_ipv4_ops, rtpengine_ipv6_ops.
Investigation: gen-rtpengine-kmod-flags (the build's own kernel-API auto-detection script) contains a real compile-test for nft_expr_ops.validate's signature (NFT_EXPR_OPS_VALIDATE_HAS_DATA), with a comment explaining distro kernels backport APIs without bumping LINUX_VERSION_CODE, so a compile-test is required rather than a version check. Confirmed via git show master:kernel-module/gen-rtpengine-kmod-flags | grep -i "dump|reset" — no equivalent detection exists for .dump, on master or either tag tried. Commit 503c4aa ("Fix nft_rtpengine compilation on RHEL/AlmaLinux 9.x kernel 5.14") addresses this exact symptom but doesn't appear to activate on this kernel — possibly because .dump's variant selection relies on a LINUX_VERSION_CODE check rather than a compile-test, which would fail for the same backporting reason .validate already accounts for.
Unexpected behaviour you saw
No response
Steps to reproduce the problem
No response
Additional program output to the terminal or logs illustrating the issue
Anything else?
No response
- Ngôn ngữ chính
- Perl
- Star
- 992
- Fork
- 459
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sipwise/rtpengine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
sipwise/rtpengine#2219 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
sipwise/rtpengine#2190 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
sipwise/rtpengine#2161 · 15 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sipwise/rtpengine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
virtualmin/virtualmin-gpl#1322 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
easy first-contributor first-contributors good first issue help wanted perl shell up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
fork-commit-merge/fork-commit-merge#8461 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PostgreSQL::Version rejects documented full psql version outputCó thể đã có người làm @feitiansiyan đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
IvorySQL/IvorySQL#2999 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
1.severity: security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày