Bug 213491

Summary: gpt{,zfs}boot after r305353 crash in GELIBoot
Product: Base System Reporter: Allan Jude <allanjude>
Component: binAssignee: Warner Losh <imp>
Status: Closed FIXED    
Severity: Affects Many People CC: bsdimp, dc, emaste, grahamperrin, jhb, ppumkin, spam+bugs.freebsd.org
Priority: --- Keywords: regression
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
screenshot of btx crash none

Description Allan Jude freebsd_committer freebsd_triage 2016-10-15 00:05:09 UTC
Created attachment 175769 [details]
screenshot of btx crash

Since the LF_FLAGS change in r305353 both gptboot (ufs) and gptzfsboot crash when trying to read from encrypted disks.

The struct enc_xform_aes_xts is invalid, and contains invalid function pointers that are called

Reverting the linker flag changes resolves the problem.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2016-10-15 19:40:49 UTC
Over to committer of r305353.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2016-10-18 19:29:03 UTC
Thanks Allan. 

Reading this alongside <https://gitter.im/trueos/Lobby?at=57e1a8f8aabc89857fbb9ff7>

> clean installation to an old Ergo Vista 621

and <https://gitter.im/trueos/Lobby?at=580661062189c68f42fa9787>
Comment 3 Piotr 2016-10-20 14:45:33 UTC
I have the same problem. 
Fresh install of TrueOS on Latitutde E7220.

I get the error BTX Halted. I don't know how to fix it apart from reinstalling without GELI enabled.

http://i.imgur.com/fqcEpZu.jpg
Comment 4 dc 2016-11-15 20:05:12 UTC
I am able to reproduce this with GELI enabled. When disabling GELI, the issue no longer exists.
Comment 5 Allan Jude freebsd_committer freebsd_triage 2016-11-15 20:10:31 UTC
(In reply to dc from comment #4)
What revision are you testing?

This should have been fixed by: r307954 https://svnweb.freebsd.org/base?view=revision&revision=307954