Bug 2166177
| Summary: | nmap much slower after bz1596834 got fixed in libpcap [rhel7] | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Christian Horn <chorn> | |
| Component: | nmap | Assignee: | Martin Osvald 🛹 <mosvald> | |
| Status: | CLOSED WONTFIX | QA Contact: | František Hrdina <fhrdina> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.9 | CC: | fhrdina, gdelross | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | --- | Flags: | mruprich:
needinfo?
(gdelross) |
|
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2166178 (view as bug list) | Environment: | ||
| Last Closed: | 2023-09-20 07:30:21 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: | 2166178 | |||
| Bug Blocks: | ||||
|
Description
Christian Horn
2023-02-01 04:50:36 UTC
Right, things seem different here on rhel8. Recompiling with HAVE_TPACKET3
does not restore the desired behaviour:
### pristine/unmodified libpcap
[root@rhel8u7a ~]# rpm -q libpcap
libpcap-1.9.1-5.el8.x86_64
[root@rhel8u7a ~]# while :; do time nmap -n -r -p 1-65535 127.0.0.1 >/dev/null; done
real 0m6.179s
user 0m1.037s
sys 0m0.527s
real 0m6.156s
user 0m0.990s
sys 0m0.558s
### Installing custom compiled libpcap
[root@rhel8u7a ~]# rpm -e --nodeps libpcap
[root@rhel8u7a ~]# rpm -i /root/rpmbuild/RPMS/x86_64/libpcap-1.9.1-5.el8_HAVE_TPACKET3.x86_64.rpm
[root@rhel8u7a ~]# while :; do time nmap -n -r -p 1-65535 127.0.0.1 >/dev/null; done
real 0m6.084s
user 0m0.967s
sys 0m0.513s
real 0m6.182s
user 0m1.024s
sys 0m0.532s
[root@rhel8u7a ~]# diff /root/rpmbuild/SPECS/libpcap.spec.org /root/rpmbuild/SPECS/libpcap.spec
4c4
< Release: 5%{?dist}
---
> Release: 5%{?dist}_HAVE_TPACKET3
60c60
< export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
---
> export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DHAVE_TPACKET3"
[root@rhel8u7a ~]#
On rhel8, this issue was found due to 2 commits missing from nmap: https://github.com/nmap/nmap/commit/e48361523b18596c023f565053e56d934fff70bd https://github.com/nmap/nmap/commit/7e644b391ea16f74dd57f5865be545d514de540d (details: https://bugzilla.redhat.com/show_bug.cgi?id=2166178#c7 ) Changing component to nmap, assuming this also applies here. At the moment, it looks like we did not get reports for this issue with high enough criticality to warrant z-stream fixes, so this one might stay unfixed in the rhel7 stream. Given the current stage of RHEL7 and the higher possibility of introducing regression, I am closing this as WONTFIX. |