Bug 161280

Summary: [zfs] Stack overflow in gptzfsboot
Product: Base System Reporter: Patrick Dorion <dorionpatrick>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 8.2-RELEASE   
Hardware: Any   
OS: Any   

Description Patrick Dorion 2011-10-04 14:00:20 UTC
An unhandled exception causes a stack overflow in gptzfsboot and possibly in its parent and siblings.

Fix: 

- Unreference the file.
How-To-Repeat: - Add 'loader_conf_files="/boot/device.hints /boot/loader.conf' to /boot/loader.conf;
- Restart the machine.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-10-10 06:04:39 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Andriy Gapon freebsd_committer freebsd_triage 2011-10-10 08:38:10 UTC
I believe that the problem happens in (zfs)loader, not (gpt)(zfs)boot code.

You shot your foot by adding /boot/loader.conf to loader_conf_files, which
caused a recursion in parsing of loader.conf.

-- 
Andriy Gapon
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:49 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped