Bug 161280 - [zfs] Stack overflow in gptzfsboot
Summary: [zfs] Stack overflow in gptzfsboot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 14:00 UTC by Patrick Dorion
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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