freebsd-dev/sys/geom
Mikolaj Golub baf63f65ae In g_gate_create() there is a window between when g_gate_softc is
registered in g_gate_units array and when its sc_provider field is
filled. If during this period g_gate_units is accessed by another
thread that is checking for provider name collision the crash is
possible.

Fix this by adding sc_name field to struct g_gate_softc. In
g_gate_create() when g_gate_softc is created but sc_provider is still
not sc_name points to provider name stored in the local array.

Approved by:	pjd (mentor)
Reported by:	Freddie Cash <fjwcash@gmail.com>
MFC after:	1 week
2011-03-27 19:56:55 +00:00
..
bde Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
cache Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
concat Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
eli Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
gate In g_gate_create() there is a window between when g_gate_softc is 2011-03-27 19:56:55 +00:00
journal Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
label Some linux distros put mount point into the ext2fs labels, such as '/', or 2011-03-08 17:00:31 +00:00
linux_lvm Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
mirror Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
mountver Make sure not to pass NULL to g_orphan_provider(). 2010-06-05 08:00:52 +00:00
multipath Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
nop Sector size can not be greater than MAXPHYS. 2011-01-12 12:26:10 +00:00
part Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
raid MFgraid/head: 2011-03-24 21:31:32 +00:00
raid3 Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
sched Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
shsec Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
stripe Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
uzip Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
vinum - Check flag with the bitwise operator, not the logical operator. 2010-10-01 06:12:13 +00:00
virstor Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
zero In g_zero_destroy_geom(), return 0 instead of EBUSY in the success case. 2010-05-10 19:08:53 +00:00
geom_aes.c
geom_bsd_enc.c
geom_bsd.c Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
geom_ccd.c
geom_ctl.c Finish r210923, 210926. Mark some devices as eternal. 2011-01-04 10:59:38 +00:00
geom_ctl.h
geom_dev.c MFgraid/head r217827: 2011-03-24 08:37:48 +00:00
geom_disk.c MFgraid/head r218212, r218257: 2011-03-24 19:23:42 +00:00
geom_disk.h Add the disk ident and a human-meaningful description (here, the disk model 2011-02-26 14:58:54 +00:00
geom_dump.c Escape characters unsafe for XML output in GEOM class, instance and 2010-03-20 16:16:13 +00:00
geom_event.c Use g_eventlock to protect against losing wakeups in the g_event process 2010-11-22 16:47:53 +00:00
geom_fox.c Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
geom_int.h
geom_io.c Correct bioq_disksort so that bioq_insert_tail() offers barrier semantic. 2010-09-02 19:40:28 +00:00
geom_kern.c Use g_eventlock to protect against losing wakeups in the g_event process 2010-11-22 16:47:53 +00:00
geom_mbr_enc.c
geom_mbr.c Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
geom_pc98_enc.c
geom_pc98.c Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
geom_redboot.c - Give geom_redboot taste of flash/spi. Now there is another provider 2010-02-03 01:12:19 +00:00
geom_slice.c Change the way in which zero stripesize is handled. Instead of reporting 2010-01-06 13:14:37 +00:00
geom_slice.h
geom_subr.c Fix deadlock between GEOM class unloading and withering. Withering can't 2010-05-05 18:53:24 +00:00
geom_sunlabel_enc.c
geom_sunlabel.c Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
geom_vfs.c Fix typos - remove duplicate "the". 2011-02-21 09:01:34 +00:00
geom_vfs.h
geom_vol_ffs.c Add some FEATURE macros for various GEOM classes. 2011-02-25 10:24:35 +00:00
geom.h MFgraid/head r218212, r218257: 2011-03-24 19:23:42 +00:00
notes