[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-10 Thread Launchpad Bug Tracker
This bug was fixed in the package sbsigntool - 0.9.2-2ubuntu1~18.04.2

---
sbsigntool (0.9.2-2ubuntu1~18.04.2) bionic; urgency=medium

  * Enable signing riscv64 EFI binaries (LP: #1964510)

 -- Heinrich Schuchardt   Thu, 10 Mar
2022 20:41:04 +0100

** Changed in: sbsigntool (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-10 Thread Launchpad Bug Tracker
This bug was fixed in the package sbsigntool - 0.9.2-2ubuntu1.1

---
sbsigntool (0.9.2-2ubuntu1.1) focal; urgency=medium

  * Enable signing riscv64 EFI binaries (LP: #1964510)

 -- Heinrich Schuchardt   Thu, 10 Mar
2022 20:41:04 +0100

** Changed in: sbsigntool (Ubuntu Focal)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-05 Thread Dimitri John Ledkov
root@ethical-catfish:~# dpkg-query -W sbsigntool
sbsigntool  0.9.2-2ubuntu1~18.04.2

root@ethical-catfish:~# sbverify --cert db.crt test-arm64.efi.signed 
warning: data remaining[5112 vs 6104]: gaps between PE/COFF sections?
Signature verification OK

root@ethical-catfish:~# sbverify --cert db.crt test-riscv64.efi.signed 
warning: data remaining[5112 vs 6128]: gaps between PE/COFF sections?
Signature verification OK

root@ethical-catfish:~# faketime 'Thu May  5 13:35:03 CEST' sbsign --key 
./db.key --cert ./db.crt test-arm64.efi
warning: data remaining[3584 vs 4576]: gaps between PE/COFF sections?
Signing Unsigned original image

root@ethical-catfish:~# faketime 'Thu May  5 13:35:03 CEST' sbsign --key 
./db.key --cert ./db.crt test-riscv64.efi
warning: data remaining[3584 vs 4600]: gaps between PE/COFF sections?
Signing Unsigned original image

The signatures produced are identical to those made with impish tooling.

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-05 Thread Dimitri John Ledkov
# dpkg-query -W sbsigntool
sbsigntool  0.9.2-2ubuntu1.1

# sbverify --cert ./db.crt test-arm64.efi.signed   
warning: data remaining[5112 vs 6104]: gaps between PE/COFF sections?
Signature verification OK

# sbverify --cert ./db.crt test-riscv64.efi.signed 
warning: data remaining[5112 vs 6128]: gaps between PE/COFF sections?
Signature verification OK


# faketime 'Thu May  5 13:35:03 CEST' sbsign --key db.key --cert db.crt 
./test-arm64.efi
warning: data remaining[3584 vs 4576]: gaps between PE/COFF sections?
Signing Unsigned original image

# faketime 'Thu May  5 13:35:03 CEST' sbsign --key db.key --cert db.crt 
./test-riscv64.efi
warning: data remaining[3584 vs 4600]: gaps between PE/COFF sections?
Signing Unsigned original image


Signing is successful and produces identical output, matching impish results.

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-03 Thread Steve Langasek
Hello Heinrich, or anyone else affected,

Accepted sbsigntool into focal-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/sbsigntool/0.9.2-2ubuntu1.1 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-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. 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: sbsigntool (Ubuntu Bionic)
   Status: Incomplete => In Progress

** Changed in: sbsigntool (Ubuntu Focal)
   Status: Confirmed => Fix Committed

** Tags added: verification-needed verification-needed-focal

** Changed in: sbsigntool (Ubuntu Bionic)
   Status: In Progress => Fix Committed

** Tags added: verification-needed-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-03 Thread Heinrich Schuchardt
** Attachment added: "test-riscv64.efi"
   
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+attachment/5586224/+files/test-riscv64.efi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-03 Thread Heinrich Schuchardt
I just added an arm64 and a riscv64 EFI binary for testing. These are
just the helloworld.efi files produced by building U-Boot for qemu-
riscv64_defconfig and qemu_arm64_defconfig.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-03 Thread Heinrich Schuchardt
** Attachment added: "test-arm64.efi"
   
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+attachment/5586223/+files/test-arm64.efi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-02 Thread Steve Langasek
Note that the version number in the focal diff is wrong; focal already
has 0.9.2-2ubuntu1, so needs to have a version number that sorts later
than this such as 0.9.2-2ubuntu1.1.
https://wiki.ubuntu.com/SecurityTeam/UpdatePreparation#Update_the_packaging
provides recommendations for the version schema to use for SRUs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-05-02 Thread Steve Langasek
Please include in the test case a pointer to a specific riscv64 EFI
binary that should be used for testing.

** Changed in: sbsigntool (Ubuntu Bionic)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-03-11 Thread Heinrich Schuchardt
** Patch added: "sbsigntool_0.9.2-2ubuntu1~20.04.1.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+attachment/5567907/+files/sbsigntool_0.9.2-2ubuntu1~20.04.1.debdiff

** Changed in: sbsigntool (Ubuntu Bionic)
   Status: Triaged => Confirmed

** Changed in: sbsigntool (Ubuntu Focal)
   Status: Triaged => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-03-10 Thread Colin Watson
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964519 has
the corresponding debdiff for focal; I've consolidated these into a
single bug with two open tasks.
(https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1938438 added
the support to impish.)

** Also affects: sbsigntool (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: sbsigntool (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: sbsigntool (Ubuntu Bionic)
   Status: New => Triaged

** Changed in: sbsigntool (Ubuntu Bionic)
   Importance: Undecided => High

** Changed in: sbsigntool (Ubuntu Focal)
   Status: New => Triaged

** Changed in: sbsigntool (Ubuntu Focal)
   Importance: Undecided => High

** Changed in: sbsigntool (Ubuntu)
   Status: Confirmed => Fix Released

** Description changed:

  [Impact]
  
  The Ubuntu signing box is running Ubuntu Bionic. The riscv64
  architecture is expanding. We expect development boards using EDK II to
  appear in 2022. We should be able to support secure boot then.
  
  A patch for enabling this has been accepted upstream:
  
  
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/commit/?h=next=25af2eb5e39b5d54703d4489182a6b9d0af58b76
  
  [Test Plan]
  
  * Signatures produced by sbsign in bionic, must be verifiable with
  sbverify from jammy.
  
  * Test instructions:
-   - create as new certificate RSA2048) for signing EFI binaries
- openssl req -x509 -sha256 -newkey rsa:2048 -subj /CN=TEST_$*/ \
- -keyout db.key -out db.crt -nodes -days 3650
-   - sign amd64, arm64 and riscv64 EFI binaries with Bionic's sbsign
- sbsign --key db.key --cert db.crt test.efi
-   - check the signature with Jammy's sbverify
-   - check the signature with Bionics's sbverify
+   - create as new certificate RSA2048) for signing EFI binaries
+ openssl req -x509 -sha256 -newkey rsa:2048 -subj /CN=TEST_$*/ \
+ -keyout db.key -out db.crt -nodes -days 3650
+   - sign amd64, arm64 and riscv64 EFI binaries with Bionic's sbsign
+ sbsign --key db.key --cert db.crt test.efi
+   - check the signature with Jammy's sbverify
+   - check the signature with Bionics's sbverify
  
  * Testing should be executed before landing the update.
  
  [Where problems could occur]
  
  * The upstream patch is trivial and should have no effect on any non-
  riscv64 architecture. It only changes the architecture test that is made
  before signing.
  
  * With the test procedure above we ensure that we still can sign on the
  same architectures as before.
  
  [Other Info]
  
- * A separate SRU should be done for Focal so that we don't loose
- functionality in case of an upgraded from Bionic to Focal.
+ * The Focal task is so that we don't loose functionality in case of an
+ upgrade from Bionic to Focal.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1964510] Re: [SRU] enable signing riscv64 binaries in bionic

2022-03-10 Thread Heinrich Schuchardt
To verify use:

sbverify --cert db.crt test.efi.signed


** Patch added: "sbsigntool-0.9.2-2ubuntu1~18.04.2.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+attachment/5567798/+files/sbsigntool-0.9.2-2ubuntu1~18.04.2.debdiff

** Changed in: sbsigntool (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1964510

Title:
  [SRU] enable signing riscv64 binaries in bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1964510/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs