Your message dated Sat, 01 Aug 2020 12:51:28 +0100 with message-id <43535efb498a168cf81452ca0c326f004f46adc6.camel@adam-barratt.org.uk> and subject line Closing bugs for fixes included in 10.5 point release has caused the Debian Bug report #959661, regarding buster-pu: package borgbackup/1.1.9-2+deb10u1 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 959661: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959661 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: buster-pu: package borgbackup/1.1.9-2+deb10u1
- From: Andrej Shadura <andrewsh@debian.org>
- Date: Sun, 03 May 2020 17:25:23 +0200
- Message-id: <158851952350.1561107.12728645728351666654.reportbug@nuevo>
Package: release.debian.org Severity: normal Tags: buster User: release.debian.org@packages.debian.org Usertags: pu -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, I’m proposing to upload an upstream patch fixing an index corruption in borgbackup leading to a data loss, see #953615. Please find the attached debdiff for more details. - -- Cheers, Andrej -----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEEeuS9ZL8A0js0NGiOXkCM2RzYOdIFAl6u4mIUHGFuZHJld3No QGRlYmlhbi5vcmcACgkQXkCM2RzYOdIhBQf+KwIkamu5+wYjmL3BjX6cUTZT1CjE sDRhDDOpc5yd++T/I6G8xBrH3Iyu9oiPvXl4+hef7fH7/mLPciJxAEkFxRkWkd9a VpjSKLdCzUkmBqPEDQ72U1a9vyAfLk1Q+VJuMkYGLOAWgqXDRewdlqJBx/zuGVG8 jVK86pNH3GL4Rizly2SPQrllrMsANF371iss/hgz0wUX3JvkyPGqLE4QrjCPfFAo 4d9cjwF6lP+oDYVpXqEYVotsXauNk5Xr3tW1inigFq1YBHSwlN6urspp54Di8lHC qFqyJcwfoOnVIMREKQ3AB6UFj7BXJ8czaeO8JhemjLd5Go8rZu0EK0j81Q== =icSL -----END PGP SIGNATURE-----diff --git a/debian/changelog b/debian/changelog index 8e7373a9..db6133f9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +borgbackup (1.1.9-2+deb10u1) buster; urgency=medium + + * Fix index corruption bug leading to data loss (Closes: #953615). + + -- Andrej Shadura <andrewsh@debian.org> Sun, 03 May 2020 17:20:28 +0200 + borgbackup (1.1.9-2) unstable; urgency=medium * Fix two lintian warnings: diff --git a/debian/patches/fix-bug-in-hashindex_set-on-resize-fixes-4829.patch b/debian/patches/fix-bug-in-hashindex_set-on-resize-fixes-4829.patch new file mode 100644 index 00000000..662d1b37 --- /dev/null +++ b/debian/patches/fix-bug-in-hashindex_set-on-resize-fixes-4829.patch @@ -0,0 +1,34 @@ +From 701159ac9da37d23b8079ebac8f87108c9e550da Mon Sep 17 00:00:00 2001 +From: Thomas Waldmann <tw@waldmann-edv.de> +Date: Sun, 1 Mar 2020 16:31:32 +0100 +Subject: fix bug in hashindex_set on resize, fixes #4829 + +the problem was that after a resize that was triggered by too few +empty buckets, the rebuilt new hash table had entries at different +positions than before, but the idx where to SET the entry was not +recomputed afterwards. +--- + src/borg/_hashindex.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/src/borg/_hashindex.c b/src/borg/_hashindex.c +index c7a5b0d0f..438c49906 100644 +--- a/src/borg/_hashindex.c ++++ b/src/borg/_hashindex.c +@@ -562,6 +562,16 @@ hashindex_set(HashIndex *index, const void *key, const void *value) + if(!hashindex_resize(index, index->num_buckets)) { + return 0; + } ++ /* we have just built a fresh hashtable and removed all tombstones, ++ * so we only have EMPTY or USED buckets, but no DELETED ones any more. ++ */ ++ idx = start_idx = hashindex_index(index, key); ++ while(!BUCKET_IS_EMPTY(index, idx)) { ++ idx++; ++ if (idx >= index->num_buckets){ ++ idx -= index->num_buckets; ++ } ++ } + } + } + ptr = BUCKET_ADDR(index, idx); diff --git a/debian/patches/series b/debian/patches/series index bd9e9747..3c8e4bfa 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ privacy/0001-Remove-codecov.io-and-travis-ci.org-badges.patch privacy/0002-README.rst-Replace-img-src-with-text-link.patch +fix-bug-in-hashindex_set-on-resize-fixes-4829.patch
--- End Message ---
--- Begin Message ---
- To: 931678-done@bugs.debian.org, 947351-done@bugs.debian.org, 947758-done@bugs.debian.org, 948652-done@bugs.debian.org, 953763-done@bugs.debian.org, 954020-done@bugs.debian.org, 954716-done@bugs.debian.org, 959661-done@bugs.debian.org, 959890-done@bugs.debian.org, 960020-done@bugs.debian.org, 960376-done@bugs.debian.org, 960395-done@bugs.debian.org, 960575-done@bugs.debian.org, 960600-done@bugs.debian.org, 960804-done@bugs.debian.org, 960806-done@bugs.debian.org, 960836-done@bugs.debian.org, 960885-done@bugs.debian.org, 960974-done@bugs.debian.org, 961019-done@bugs.debian.org, 961212-done@bugs.debian.org, 961275-done@bugs.debian.org, 961379-done@bugs.debian.org, 961439-done@bugs.debian.org, 961441-done@bugs.debian.org, 961514-done@bugs.debian.org, 961803-done@bugs.debian.org, 961833-done@bugs.debian.org, 961921-done@bugs.debian.org, 961936-done@bugs.debian.org, 961944-done@bugs.debian.org, 961978-done@bugs.debian.org, 962059-done@bugs.debian.org, 962067-done@bugs.debian.org, 962160-done@bugs.debian.org, 962227-done@bugs.debian.org, 962237-done@bugs.debian.org, 962255-done@bugs.debian.org, 962306-done@bugs.debian.org, 962982-done@bugs.debian.org, 963024-done@bugs.debian.org, 963267-done@bugs.debian.org, 963591-done@bugs.debian.org, 963595-done@bugs.debian.org, 963694-done@bugs.debian.org, 963796-done@bugs.debian.org, 963940-done@bugs.debian.org, 963986-done@bugs.debian.org, 964146-done@bugs.debian.org, 964158-done@bugs.debian.org, 964228-done@bugs.debian.org, 964338-done@bugs.debian.org, 964346-done@bugs.debian.org, 964350-done@bugs.debian.org, 964397-done@bugs.debian.org, 964412-done@bugs.debian.org, 964417-done@bugs.debian.org, 964422-done@bugs.debian.org, 964435-done@bugs.debian.org, 964574-done@bugs.debian.org, 964589-done@bugs.debian.org, 964712-done@bugs.debian.org, 964714-done@bugs.debian.org, 964715-done@bugs.debian.org, 964726-done@bugs.debian.org, 964740-done@bugs.debian.org, 964792-done@bugs.debian.org, 964807-done@bugs.debian.org, 964808-done@bugs.debian.org, 964860-done@bugs.debian.org, 964868-done@bugs.debian.org, 964898-done@bugs.debian.org, 964986-done@bugs.debian.org, 965116-done@bugs.debian.org, 965117-done@bugs.debian.org, 965257-done@bugs.debian.org, 965377-done@bugs.debian.org, 966151-done@bugs.debian.org, 966213-done@bugs.debian.org, 966247-done@bugs.debian.org, 966272-done@bugs.debian.org, 966310-done@bugs.debian.org
- Subject: Closing bugs for fixes included in 10.5 point release
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 01 Aug 2020 12:51:28 +0100
- Message-id: <43535efb498a168cf81452ca0c326f004f46adc6.camel@adam-barratt.org.uk>
Package: release.debian.org Version: 10.5 Hi, Each of these bugs relates to an update that was included in today's stable point release. Regards, Adam
--- End Message ---