[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-02-12 Thread Launchpad Bug Tracker
This bug was fixed in the package iptables - 1.8.7-1ubuntu5.2

---
iptables (1.8.7-1ubuntu5.2) jammy; urgency=medium

  * Apply upstream patch to fix a double free of
unrecognized base-chains. (LP: #2049318)

 -- Sudip Mukherjee   Tue, 16 Jan 2024
21:14:30 +

** Changed in: iptables (Ubuntu Jammy)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Fix Released

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-02-09 Thread Sudip Mukherjee
I have now tested the second more complicated test as mentioned in the
test plan and can confirm that the test has passed. The previous error
is not seen any more.

For reference, I am attaching my terminal log.
Package tested:

$ apt-cache policy iptables
iptables:
  Installed: 1.8.7-1ubuntu5.2
  Candidate: 1.8.7-1ubuntu5.2
  Version table:
 *** 1.8.7-1ubuntu5.2 500
500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 
Packages
100 /var/lib/dpkg/status
 1.8.7-1ubuntu5.1 500
500 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
Packages
 1.8.7-1ubuntu5 500
500 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 Packages



** Attachment added: "terminal.log"
   
https://bugs.launchpad.net/ubuntu/+source/iptables/+bug/2049318/+attachment/5745470/+files/terminal.log

** Tags removed: verification-needed verification-needed-jammy
** Tags added: verification-done verification-done-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Fix Committed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-31 Thread Robie Basak
Thank you for preparing the SRU and for testing!

The Test Plan agreed in the bug description included two cases but it
looks like you only did the first one? Given that a different SRU team
member did the review and agreed the fully stated plan, I don't feel
that I'm in a position to then release based on only half of it. Please
could you complete the other part?

** Tags removed: verification-done verification-done-jammy
** Tags added: verification-needed verification-needed-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Fix Committed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-26 Thread Sudip Mukherjee
I can confirm iptables from jammy-proposed have fixed the bug for me.

Tests done as mentioned in testplan:
1. create nft rule:
sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-24 Thread Sudip Mukherjee
I have triggered autopkgtest for ganeti/3.0.2-1ubuntu1 on armhf and
amd64 with trigger as "migration-reference/0" and that also fails. So,
the failure reported by ubuntu-sru-bot should not be considered as a
regression.

https://autopkgtest.ubuntu.com/packages/ganeti/jammy/amd64
https://autopkgtest.ubuntu.com/packages/ganeti/jammy/armhf

Logs are at: https://autopkgtest.ubuntu.com/results/autopkgtest-
jammy/jammy/amd64/g/ganeti/20240124_103826_df4ea@/log.gz and
https://autopkgtest.ubuntu.com/results/autopkgtest-
jammy/jammy/armhf/g/ganeti/20240124_111352_9fe6d@/log.gz

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Fix Committed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-19 Thread Steve Langasek
Hello Jo, or anyone else affected,

Accepted iptables into jammy-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/iptables/1.8.7-1ubuntu5.2 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: iptables (Ubuntu Jammy)
   Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Fix Committed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-17 Thread Graham Inggs
I sponsored the upload of iptables 1.8.7-1ubuntu5.2, now waiting for approval 
in the Jammy queue.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  In Progress

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-17 Thread Graham Inggs
** Changed in: iptables (Ubuntu Jammy)
 Assignee: (unassigned) => Graham Inggs (ginggs)

** Changed in: iptables (Ubuntu Jammy)
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  In Progress

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  1. Simple test plan based on upstream test case:

  sudo nft -f - < rules.txt

  * Convert the rule to nftables ruleset
    - sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
    - sudo nft list ruleset

  * Also confirm that iptables can list the old rule
    - sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-16 Thread Sudip Mukherjee
Modified debdiff attached which is now cherry-picked from upstream and
dep3 headers added.

Also added a simple test plan based on the upstream testcase.


** Description changed:

  [ Impact ]
  
  iptables is unable to list the iptables rules or save the iptables rules
  if a nftables ruleset is defined which iptables does not recognize.
  
  [ Test Plan ]
  
+ 1. Simple test plan based on upstream test case:
+ 
+ sudo nft -f - < rules.txt
+   - sudo iptables-save > rules.txt
  
  * Convert the rule to nftables ruleset
-   - sudo iptables-nft-restore < rules.txt
+   - sudo iptables-nft-restore < rules.txt
  
  * List the nftables ruleset
-   - sudo nft list ruleset
+   - sudo nft list ruleset
  
  * Also confirm that iptables can list the old rule
-   - sudo iptables -L
+   - sudo iptables -L
  
  * Now add another nftables rule (this rule is taken from upstream test
  case)
  
  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-16 Thread Paride Legovini
Hi and thanks for working at this SRU. I have some comments on the
debdiff:

- Please specify the patch Author in the DEP-3 headers. See [1] for more
info on the header format.

- The patch description should not be "apply upstream patch", because
the patch is just the patch, it contains no information on where/how
it's applied. It is fine (actually: good) to use the original commit
message as the patch description. A multi-line description is OK, again
see [1].

- I see you dropped a tests which was present in the original patch. If
the test works fine on Jammy, let's keep it. If the test doesn't work on
Jammy, please explain why in the patch Description header.

- Please call the patch file something like 0002-nft-cache-avoid-double-
free-of-unrecognized-base-chains.patch to follow the naming style used
by other patches.

If the added upstream test (0004extra-base_0) allows the easy
verification that this fix works, it would be nice to have that in the
SRU test plan.

[1] https://dep-team.pages.debian.net/deps/dep3/

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Confirmed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  * Add an iptables rule.
- sudo iptables -A OUTPUT -p tcp --dport   -j REJECT

  * save the rules in a file
- sudo iptables-save > rules.txt

  * Convert the rule to nftables ruleset
- sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
- sudo nft list ruleset

  * Also confirm that iptables can list the old rule
- sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-16 Thread Sudip Mukherjee
Yes, but Standard Support for Lunar is going to end in 9 days and I
don't think there is enough time to fix it in Lunar now as it has to go
via sponsors queue and then to SRU queue and then it need to be in
lunar-proposed for atleast 7 days before it can reach lunar-updates.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Confirmed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  * Add an iptables rule.
- sudo iptables -A OUTPUT -p tcp --dport   -j REJECT

  * save the rules in a file
- sudo iptables-save > rules.txt

  * Convert the rule to nftables ruleset
- sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
- sudo nft list ruleset

  * Also confirm that iptables can list the old rule
- sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-15 Thread Jo Rhett
According to the versions listed for the package, Lunar would have the
same bug. I don't run Lunar so have no personal investment, just FYI.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Confirmed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  * Add an iptables rule.
- sudo iptables -A OUTPUT -p tcp --dport   -j REJECT

  * save the rules in a file
- sudo iptables-save > rules.txt

  * Convert the rule to nftables ruleset
- sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
- sudo nft list ruleset

  * Also confirm that iptables can list the old rule
- sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f - 

[Touch-packages] [Bug 2049318] Re: [SRU] free(): double free detected in tcache 2

2024-01-15 Thread Sudip Mukherjee
debdiff for Jammy attached.


** Summary changed:

- free(): double free detected in tcache 2
+ [SRU] free(): double free detected in tcache 2

** Description changed:

+ [ Impact ]
+ 
+ iptables is unable to list the iptables rules or save the iptables rules
+ if a nftables ruleset is defined which iptables does not recognize.
+ 
+ [ Test Plan ]
+ 
+ * Add an iptables rule.
+   - sudo iptables -A OUTPUT -p tcp --dport   -j REJECT
+ 
+ * save the rules in a file
+   - sudo iptables-save > rules.txt
+ 
+ * Convert the rule to nftables ruleset
+   - sudo iptables-nft-restore < rules.txt
+ 
+ * List the nftables ruleset
+   - sudo nft list ruleset
+ 
+ * Also confirm that iptables can list the old rule
+   - sudo iptables -L
+ 
+ * Now add another nftables rule (this rule is taken from upstream test
+ case)
+ 
+ sudo nft -f -  Confirmed

** Changed in: iptables (Ubuntu Jammy)
 Assignee: Sudip Mukherjee (sudipmuk) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iptables in Ubuntu.
https://bugs.launchpad.net/bugs/2049318

Title:
  [SRU] free(): double free detected in tcache 2

Status in iptables package in Ubuntu:
  Fix Released
Status in iptables source package in Jammy:
  Confirmed

Bug description:
  [ Impact ]

  iptables is unable to list the iptables rules or save the iptables
  rules if a nftables ruleset is defined which iptables does not
  recognize.

  [ Test Plan ]

  * Add an iptables rule.
- sudo iptables -A OUTPUT -p tcp --dport   -j REJECT

  * save the rules in a file
- sudo iptables-save > rules.txt

  * Convert the rule to nftables ruleset
- sudo iptables-nft-restore < rules.txt

  * List the nftables ruleset
- sudo nft list ruleset

  * Also confirm that iptables can list the old rule
- sudo iptables -L

  * Now add another nftables rule (this rule is taken from upstream test
  case)

  sudo nft -f -