HomeFreeBSD

MFC r220062, r220173:
rS220300Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

MFC r220062, r220173:

r220062:

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.

Reported by: Freddie Cash <fjwcash@gmail.com>

r220173:

Increase debug level on g_gate device destruction and add message on
device creation.

Suggested by: danger

Approved by: pjd (mentor)

Details

Provenance
trocinyAuthored on
Parents
rS220299: In g_eli_read_done() and g_eli_write_done(), for a bio with
Branches
Unknown
Tags
Unknown

Event Timeline