Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Apr 2011 18:56:16 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/geom/gate g_gate.c g_gate.h
Message-ID:  <201104031856.p33IuZZ1053339@repoman.freebsd.org>

index | next in thread | raw e-mail

trociny     2011-04-03 18:56:16 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/geom/gate        g_gate.c g_gate.h 
  Log:
  SVN rev 220300 on 2011-04-03 18:56:16Z by trociny
  
  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)
  
  Revision   Changes    Path
  1.26.10.5  +7 -2      src/sys/geom/gate/g_gate.c
  1.10.10.3  +1 -1      src/sys/geom/gate/g_gate.h


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104031856.p33IuZZ1053339>