Bug 1778558
Summary: | nftables segfaults at _gmpz_cmp function | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | suresh kumar <surkumar> |
Component: | nftables | Assignee: | Phil Sutter <psutter> |
Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-daemons |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 8.1 | CC: | mleitner, todoleza |
Target Milestone: | rc | ||
Target Release: | 8.1 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-01-17 16:10:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1774742 |
Description
suresh kumar
2019-12-02 03:04:37 UTC
The bad pointers are added after the call to function: interval_map_decompose(set->init); Call path: --> cache_init_objects(ctx, cmd) ---> netlink_list_setelems ---> netlink_list_setelems -->interval_map_decompose(set->init); Hi Suresh, Thanks for detailed analysis. The above testcase works for me with nftables-0.9.3-4.el8.x86_64, could you please verify? Does customer require z-stream backport? Thanks, Phil Hmm. I am not sure why I couldn't reproduce it in RHEL-8.2, but backporting the following commit to nftables-0.9.0-14.el8 fixes the problem for me: commit 5d57fa3e99bb9f2044e236d4ddb7d874cfefe1dd Author: Phil Sutter <phil> Date: Thu Jan 9 13:34:20 2020 +0100 monitor: Do not decompose non-anonymous sets They have been decomposed already, trying to do that again causes a segfault. This is a similar fix as in commit 8ecb885589591 ("src: restore --echo with anonymous sets"). Signed-off-by: Phil Sutter <phil> Acked-by: Pablo Neira Ayuso <pablo> Required follow-up: commit ddbacd70d061eb1b6808f501969809bfb5d03001 Author: Phil Sutter <phil> Date: Mon Jan 13 14:53:24 2020 +0100 monitor: Fix output for ranges in anonymous sets Previous fix for named interval sets was simply wrong: Instead of limiting decomposing to anonymous interval sets, it effectively disabled it entirely. Since code needs to check for both interval and anonymous bits separately, introduce set_is_interval() helper to keep the code readable. Also extend test case to assert ranges in anonymous sets are correctly printed by echo or monitor modes. Without this fix, range boundaries are printed as individual set elements. Fixes: 5d57fa3e99bb9 ("monitor: Do not decompose non-anonymous sets") Signed-off-by: Phil Sutter <phil> Reviewed-by: Pablo Neira Ayuso <pablo> Closing this ticket as a duplicate of bug 1774742 on who's behalf the same patches are backported into RHEL8.2.y. In order to adhere to z-stream process I will use the latter ticket to request z-stream backport to cover the case here. *** This bug has been marked as a duplicate of bug 1774742 *** |