Merge ~bryce/ubuntu/+source/nmap:sru-lp1908223-focal into ubuntu/+source/nmap:ubuntu/focal-devel

Proposed by Bryce Harrington
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merge reported by: Bryce Harrington
Merged at revision: 8f66656ff67b64e6925d93e22a8498b8d80ba4f5
Proposed branch: ~bryce/ubuntu/+source/nmap:sru-lp1908223-focal
Merge into: ubuntu/+source/nmap:ubuntu/focal-devel
Diff against target: 83 lines (+49/-1)
4 files modified
debian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/avoid-assertion-failure-when-unsolicited-arp-response-received.patch (+38/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Athos Ribeiro (community) Approve
Canonical Server Reporter Pending
Canonical Server Core Reviewers Pending
Canonical Server Pending
Review via email: mp+437076@code.launchpad.net

Description of the change

SRUs a patch to fix an assertion crash that none of us seem to be able to reproduce but several community members have. The reporter indicates running it in a loop several hundred times might trigger it; I haven't attempted that but might be worth a try. In any case, we're going to rely on the community to perform the testing.

The patch itself is just a couple code lines, that only stops the clock when it's running. That seems straightforward and unlikely to lead to regression. Please doublecheck that my SRU text in the bug report makes sense.

To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Although I could not reproduce the issue, the patch is short and simple, and the SRU text makes sense (in special the test plan). The package builds fine. Unfortunately, there are no dep8 tests for the package.

LGTM. Thanks, Bryce!

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: bryce, athos-ribeiro
Uploaders: bryce, athos-ribeiro
MP auto-approved

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks,

Successfully signed dsc, buildinfo, changes files
Vcs-Git: https://git.launchpad.net/~bryce/ubuntu/+source/nmap
Vcs-Git-Commit: 8f66656ff67b64e6925d93e22a8498b8d80ba4f5
Vcs-Git-Ref: refs/heads/sru-lp1908223-focal
$ dput ubuntu ../nmap_7.80+dfsg1-2ubuntu0.1_source.changes
gpg: ../nmap_7.80+dfsg1-2ubuntu0.1_source.changes: Valid signature from E603B2578FB8F0FB
gpg: ../nmap_7.80+dfsg1-2ubuntu0.1.dsc: Valid signature from E603B2578FB8F0FB
Checking signature on .changes
Checking signature on .dsc
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading nmap_7.80+dfsg1-2ubuntu0.1.dsc: done.
  Uploading nmap_7.80+dfsg1-2ubuntu0.1.debian.tar.xz: done.
  Uploading nmap_7.80+dfsg1-2ubuntu0.1_source.buildinfo: done.
  Uploading nmap_7.80+dfsg1-2ubuntu0.1_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index b5d8922..ad6aa42 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1nmap (7.80+dfsg1-2ubuntu0.1) focal; urgency=medium
2
3 * d/p/avoid-assertion-failure-when-unsolicited-arp-response-received.patch:
4 Check if a timeout clock is running before attempting to stop it.
5 (LP: #1908223)
6
7 -- Bryce Harrington <bryce@canonical.com> Mon, 30 Jan 2023 01:33:09 -0800
8
1nmap (7.80+dfsg1-2build1) focal; urgency=medium9nmap (7.80+dfsg1-2build1) focal; urgency=medium
210
3 * No-change rebuild for libgcc-s1 package name change.11 * No-change rebuild for libgcc-s1 package name change.
diff --git a/debian/control b/debian/control
index c6abfcb..cb064cf 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: nmap1Source: nmap
2Section: net2Section: net
3Priority: optional3Priority: optional
4Maintainer: Debian Security Tools <team+pkg-security@tracker.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian Security Tools <team+pkg-security@tracker.debian.org>
5Uploaders: Hilko Bengen <bengen@debian.org>,6Uploaders: Hilko Bengen <bengen@debian.org>,
6 Samuel Henrique <samueloph@debian.org>7 Samuel Henrique <samueloph@debian.org>
7Build-Depends: bison,8Build-Depends: bison,
diff --git a/debian/patches/avoid-assertion-failure-when-unsolicited-arp-response-received.patch b/debian/patches/avoid-assertion-failure-when-unsolicited-arp-response-received.patch
8new file mode 1006449new file mode 100644
index 0000000..84de270
--- /dev/null
+++ b/debian/patches/avoid-assertion-failure-when-unsolicited-arp-response-received.patch
@@ -0,0 +1,38 @@
1From 33f421fd6e68fcb8ed50071661d9704717c81b2b Mon Sep 17 00:00:00 2001
2From: dmiller <dmiller@e0a8ed71-7df4-0310-8962-fdc924857419>
3Date: Tue, 3 Dec 2019 17:04:13 +0000
4Subject: [PATCH] Avoid assertion failure when unsolicited ARP response
5 received
6
7We probably want a more explicit handling of the case where we get an
8ARP response to a request that we did not send (system's own, or another
9Nmap scan running at the same time). In any case, this ought to solve
10the crashes reported as #1797 and #1764.
11
12Origin: upstream, https://github.com/nmap/nmap/commit/33f421fd6e68fcb8ed50071661d9704717c81b2b
13Bug: https://github.com/nmap/nmap/issues/1797
14Bug: https://github.com/nmap/nmap/issues/1764
15Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nmap/+bug/1908223
16Last-Update: 2023-01-12
17---
18 scan_engine.cc | 7 ++++++-
19 1 file changed, 6 insertions(+), 1 deletion(-)
20
21diff --git a/scan_engine.cc b/scan_engine.cc
22index bd73cc8ead..7a4766da26 100644
23--- a/scan_engine.cc
24+++ b/scan_engine.cc
25@@ -1275,7 +1275,12 @@ int UltraScanInfo::removeCompletedHosts() {
26 }
27 if (timedout)
28 gstats->num_hosts_timedout++;
29- hss->target->stopTimeOutClock(&now);
30+ /* We may have received an ARP response before we sent a probe, which
31+ * would mean the timeout clock is not running. Avoid an assertion
32+ * failure here by checking first. */
33+ if (hss->target->timeOutClockRunning()) {
34+ hss->target->stopTimeOutClock(&now);
35+ }
36 }
37 }
38 return hostsRemoved;
diff --git a/debian/patches/series b/debian/patches/series
index abe4a88..d61c1e8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
20003-Link-against-lua-lpeg.patch20003-Link-against-lua-lpeg.patch
30005-ncat-manpage-self-reference.patch30005-ncat-manpage-self-reference.patch
40004-Python3-port-of-ndiff.patch40004-Python3-port-of-ndiff.patch
5avoid-assertion-failure-when-unsolicited-arp-response-received.patch

Subscribers

People subscribed via source and target branches