SVNews r329225

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-02-13 17:40:09 - r329225 by jhibbits (Justin Hibbits)

Complete list of files affected by revision r329225:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/geom/part/g_part.c  

Commit message:

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

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


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 14 ms, 1 file printed. Current time is 2018-05-23 05:15:43. All times are in UTC/GMT.