opnsense-src/sys/geom/part
Justin Hibbits 08a3b42fdb Narrow a race, and fix a leak, in g_part_wither
A race in g_part_wither() can lead to I/O being performed with a freed GEOM
when the device disappears.  Close the race as best as we can for now,
following the code patterns from g_part_ctl_destroy() and g_part_ctl_undo().
This also fixes a leak, as g_wither_geom() does not wither providers, it
only orphans them, so the partition entries would never get destroyed in
g_wither_washer().

Note, this is not a complete fix, it can still race with g_part_start(), the
race has merely been narrowed.

Reviewed by:	markj
Sponsored by:	Dell EMC Isilon
2018-02-13 17:40:09 +00:00
..
g_part.c Narrow a race, and fix a leak, in g_part_wither 2018-02-13 17:40:09 +00:00
g_part.h Add GUID and alias for Apple APFS partition 2018-02-11 06:57:20 +00:00
g_part_apm.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
g_part_bsd.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
g_part_bsd64.c Remove trailing whitespace (one I just introduced and a bunch of 2017-11-21 05:42:13 +00:00
g_part_ebr.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
g_part_gpt.c Add GUID and alias for Apple APFS partition 2018-02-11 06:57:20 +00:00
g_part_if.m sys/geom: spelling fixes in comments. 2016-04-29 20:56:58 +00:00
g_part_ldm.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
g_part_mbr.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00
g_part_vtoc8.c sys/geom: adoption of SPDX licensing ID tags. 2017-11-27 15:17:37 +00:00