Re: lor in in.c and if_ural.c

From: Robert Watson (rwatson_at_FreeBSD.org)
Date: 09/22/05

  • Next message: Yar Tikhiy: "Re: "ifconfig -vlandev" syntax"
    Date: Thu, 22 Sep 2005 12:04:35 +0100 (BST)
    To: John Baldwin <jhb@FreeBSD.org>
    
    

    On Wed, 21 Sep 2005, John Baldwin wrote:

    > On Monday 19 September 2005 05:08 pm, Bjoern A. Zeeb wrote:
    >> On Mon, 19 Sep 2005, Erik Winge wrote:
    >>> I got this lock order reversal on 7.0-CURRENT today:
    >>>
    >>> lock order reversal: (Giant after non-sleepable)
    >>> 1st 0xc06aaea0 in_multi_mtx (in_multi_mtx) @
    >>> /usr/src/sys/netinet/in.c:964 2nd 0xc065dee0 Giant (Giant) @
    >>> /usr/src/sys/dev/usb/if_ural.c:1401
    >>
    >> for the archives: I added this with LOR ID 162. See
    >> http://sources.zabbadoz.net/freebsd/lor.html#162
    >
    > This LOR is going to happen with every non-MPSAFE network driver for
    > now.

    Actually, this one is a little different -- the one you're thinking of is
    the Giant acquisition in in.c, but this is in fact Giant acquisition in
    the device driver itself, in its ioctl routine. Device drivers Should Not
    Do That, but likely do because otherwise they fail Giant assertions. We
    should fix those callers to acquire Giant, or fix all device drivers (or
    both?).

    Robert N M Watson
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Yar Tikhiy: "Re: "ifconfig -vlandev" syntax"

    Relevant Pages

    • [GIT PULL] IEEE1394 fix
      ... to receive the following fix, or simply apply from this mail. ... driver was statically linked, i.e. not built as loadable module. ... The cause is commit ... -/* Register before most other device drivers. ...
      (Linux-Kernel)
    • Linux 2.6.9-rc2
      ... ALSA update, and tons of small fixes pretty much ... work on trying to fix up the drivers as we go along, but they can be a bit ... Update unlink testing code in the usbtest driver ...
      (Linux-Kernel)
    • Linux 2.6.5-rc1
      ... Merging from Andrew, but also i2c updates, ALSA CVS merge, netconsole, ... prism54 driver merge, sata updates, carmel driver, pcmcia and nfs client ... fix missing include in include/asm-ia64/sn/router.h ... Fix CONFIG_DEBUG build on x86-64 & small cleanup ...
      (Linux-Kernel)
    • Linux 2.6.11-rc1
      ... small char/generic_serial.c cleanup ... lockd: fix two struct definitions ... serial driver for TI USB 3410/5052 chips ... Split ACPI boot table parsing ...
      (Linux-Kernel)
    • Linux 2.6.9-rc1
      ... cpufreq, agp, sata, network drivers - you name it. ... o cciss /proc dependency fix ... bus driver for multiple PowerPCs ... o USB: Make removable-LUN support a non-test option in the ...
      (Linux-Kernel)