Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#12106 closed defect (fixed)

initramfs sometimes inflated, sometimes not

Reported by: dsd Owned by: wmb@…
Priority: low Milestone: Not Triaged
Component: ofw - open firmware Version: not specified
Keywords: Cc:
Blocked By: Blocking:
Deployments affected: Action Needed: no action
Verified: no


I'm simulating the secure boot path with:

false to require-signatures?
" \boot"   pn-buf place
" int:" load-from-list drop

I have found a difference between signed boot and unsigned boot and I'm not sure if its intentional, regarding decompression of the ramdisk.

In the unsigned path, $load-ramdisk calls boot-read, which calls (boot-read) and then ?inflate-loaded

In the secure path, bundle-present? calls (boot-read) directly and doesn't seem to inflate the ramdisk anywhere.

This can be seen by debugging linux-place-ramdisk and comparing the input parameters passed to that word. In the unsecure path, the len parameter is much bigger than the size of the on-disk ramdisk, whereas in the secure path the length matches the on-disk filesize exactly.

I haven't checked if the kernel handling path is more consistent.

XO-1.75, Q4D21.

Change History (4)

comment:1 Changed 5 years ago by wmb@…

Have you tried

ok patch boot-read (boot-read) bundle-present?

to see if secure boot works with auto-inflation?

Offhand I don't know (and if I once knew, no long remember) whether there is a reason for (boot-read) vs. boot-read in this path.

comment:2 Changed 4 years ago by wmb@…

  • Action Needed changed from never set to add to release

The suggested change in the previous comment does not work because the contents of the data portion of the bundle need to be inflated, not the bundle itself.

Fixed by svn 3366.

comment:3 Changed 4 years ago by wmb@…

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 4 years ago by Quozl

  • Action Needed changed from add to release to no action

Is in Q4D25.

Note: See TracTickets for help on using tickets.