lock order reversals with netmap

From: Rene Ladan <rene_at_freebsd.org>
Date: Thu, 01 Dec 2011 16:44:24 +0100
Hi,

on FreeBSD 10.0-CURRENT #7 r228176M: Thu Dec  1 13:56:02 CET 2011
(GENERIC + CAPABILITIES + netmap with head.diff and bge patches applied)
I get these lock order reversals when running a netmap-enabled program
(details in the attachment) with syscall (54, FreeBSD ELF64, sys_ioctl):

Dec  1 16:23:09 acer kernel: exclusive sleep mutex netmap memory
allocator lock (netmap memory allocator lock) r = 0 (0xfffffe00027d1880)
locked _at_ /usr/src/sys/dev/netmap/netmap.c:1484

Dec  1 16:23:09 acer kernel: exclusive sleep mutex bge0 (network driver)
r = 0 (0xffffff8000768010) locked _at_
/usr/src/sys/dev/netmap/if_bge_netmap.h:60

The application does not invoke the offending function (netmap_malloc())
itself.

Regards,
René
-- 
http://www.rene-ladan.nl:8080/

GPG fingerprint = ADBC ECCD EB5F A6B4 549F  600D 8C9E 647A E564 2BFC
(subkeys.pgp.net)

Received on Thu Dec 01 2011 - 15:16:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC