Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2005 17:12:18 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet in.c
Message-ID:  <200510161712.j9GHCI4O079962@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-10-16 17:12:18 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6_0)
    sys/netinet          in.c 
  Log:
  Merge in.c:1.89,1.90 from HEAD to RELENG_6_0:
  
    Acquire Giant conditionally in in_addmulti() and in_delmulti() based on
    whether the interface being accessed is IFF_NEEDSGIANT or not.  This
    avoids lock order reversals when calling into the interface ioctl
    handler, which could potentially lead to deadlock.
  
    The long term solution is to eliminate non-MPSAFE network drivers.
  
    Discussed with: jhb
  
    Unlock Giant symmetrically with respect to lock acquire order as that's
    generally nicer.
  
    Spotted by:     johan
  
  Approved by:    re (kensmith)
  
  Revision      Changes    Path
  1.85.2.3.2.1  +9 -0      src/sys/netinet/in.c



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