Catting the SecureBoot efivar in /sys hangs
Bug #1896119 reported by
Jeff Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Medium
|
Jeff Lane | ||
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
During testing, a machine locked up appearing to hang on the secure boot mode test. Looking at the test logs, both of the things that use boot_mode_test.py have triggered this issue:
miscellanea/
miscellanea/
as this doesn't do much beyond open up a file in efivars, this is puzzling behaviour. Need to figure out what would trigger this and how to work around it.
Related branches
~bladernr/plainbox-provider-checkbox:1896119-boot_mode_test-hang
- Jonathan Cave (community): Approve
-
Diff: 24 lines (+4/-2)1 file modifiedbin/boot_mode_test.py (+4/-2)
summary: |
- secure boot test locks machine up + Catting the SecureBoot efivar in /sys hangs |
Changed in plainbox-provider-checkbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-checkbox: | |
milestone: | 0.57.0 → 0.56.0 |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Attempting to run: efi/efivars/ SecureBoot- 8be4df61- 93ca-11d2- aa0d-00e098032b 8c
cat /sys/firmware/
hangs.
hexdump barfs: efi/efivars/ SecureBoot- 8be4df61- 93ca-11d2- aa0d-00e098032b 8c efi/efivars/ SecureBoot- 8be4df61- 93ca-11d2- aa0d-00e098032b 8c: Interrupted system call
$ hexdump /sys/firmware/
hexdump: /sys/firmware/
Trying under sudo makes no difference.
stracing that cat request results in: S_IFIFO| 0600, st_size=0, ...}) = 0 efi/efivars/ SecureBoot- 8be4df61- 93ca-11d2- aa0d-00e098032b 8c", O_RDONLY) = 3 S_IFREG| 0644, st_size=5, ...}) = 0 SEQUENTIAL) = 0 PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x7fd9ca513000
fstat(1, {st_mode=
openat(AT_FDCWD, "/sys/firmware/
fstat(3, {st_mode=
fadvise64(3, 0, 0, POSIX_FADV_
mmap(NULL, 139264, PROT_READ|
read(3, 0x7fd9ca514000, 131072) = -1 EINTR (Interrupted system call)
read(3, 0x7fd9ca514000, 131072) = -1 EINTR (Interrupted system call)
read(3, 0x7fd9ca514000, 131072) = -1 EINTR (Interrupted system call)
read(3, 0x7fd9ca514000, 131072) = -1 EINTR (Interrupted system call)
With that Interrupted system call just spinning repeating over and over until I stop it.