From owner-freebsd-current@FreeBSD.ORG Sat Aug 27 13:13:57 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6926B16A41F for ; Sat, 27 Aug 2005 13:13:57 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAE5543D46 for ; Sat, 27 Aug 2005 13:13:56 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 1C20D5C7D; Sat, 27 Aug 2005 15:13:55 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 79731-07; Sat, 27 Aug 2005 15:13:49 +0200 (CEST) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 7B99C5C7C; Sat, 27 Aug 2005 15:13:49 +0200 (CEST) Received: from 192.168.1.20 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Sat, 27 Aug 2005 15:13:49 +0200 (CEST) Message-ID: <49259.192.168.1.20.1125148429.squirrel@webmail.thilelli.net> Date: Sat, 27 Aug 2005 15:13:49 +0200 (CEST) From: "Julien Gabel" To: current@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Cc: bzeeb+freebsd+lor@zabbadoz.net Subject: LOR: re(4) using an enabled DEVICE_POLLING kernel. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpeg@thilelli.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 13:13:57 -0000 Hello, Trying to solve my old re(4) problem (see PR kern/80005) and seeing if polling(4) can help me in this area, i encountered this new LOR: lock order reversal 1st 0xc2412cb0 re0 (network driver) @ /usr/src/sys/dev/re/if_re.c:2098 2nd 0xc09dfae0 Giant (Giant) @ /usr/src/sys/kern/kern_poll.c:460 KDB: stack backtrace: kdb_backtrace(c0915d56,c09dfae0,c09250a6,c09250a6,c09116db) at kdb_backtrace+0x2f witness_checkorder(c09dfae0,9,c09116db,1cc,1) at witness_checkorder+0x6d0 _mtx_lock_flags(c09dfae0,0,c09116db,1cc,c2523400) at _mtx_lock_flags+0x85 ether_poll_deregister(c2523400,c2412800,0,954,c2412800) at ether_poll_deregister+0x2e re_stop(c2412800,1,c08ff33d,83f,c2527a00) at re_stop+0x65 re_init_locked(c2412800,0,c08ff33d,832,c2523400) at re_init_locked+0x4a re_init(c2412800,c06c523d,c09e73c0,8020690c,0) at re_init+0x3d ether_ioctl(c2523400,8020690c,c2735c00,c091583d,c2412800) at ether_ioctl+0x74 re_ioctl(c2523400,8020690c,c2735c00,5,0) at re_ioctl+0x207 in6_ifinit(c2523400,c2735c00,ef4f0b00,1,c2793000) at in6_ifinit+0xd1 in6_update_ifa(c2523400,ef4f0af0,0,c22cf2d4,c22cf180) at in6_update_ifa+0x538 in6_ifattach_linklocal(c2523400,0,246,c09e73c0,c09877a8) at in6_ifattach_linklocal+0x10e in6_ifattach(c2523400,0,0,0,0) at in6_ifattach+0xd5 in6_if_up(c2523400,c25258a0) at in6_if_up+0x1b if_route(c2523400,1,0,ef4f0c3c,c07145ef) at if_route+0x74 if_up(c2523400,ef4f0c1c,c0692640,c0a2e7a0,1) at if_up+0x21 ifhwioctl(80206910,c2523400,c27675e0,c2793000,2) at ifhwioctl+0x2a6 ifioctl(c2827b20,80206910,c27675e0,c2793000,1) at ifioctl+0xea soo_ioctl(c2795708,80206910,c27675e0,c22cba80,c2793000) at soo_ioctl+0x39c ioctl(c2793000,ef4f0d04,c,422,3) at ioctl+0x463 syscall(805003b,805003b,bfbf003b,4,1) at syscall+0x295 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x280cc2ff, esp = 0xbfbfe90c, ebp = 0xbfbfe958 --- # uname -a FreeBSD boboche.thilelli.net 6.0-BETA3 FreeBSD 6.0-BETA3 #1: Sat Aug 27 14:36:42 CEST 2005 root@boboche.thilelli.net:/usr/obj/usr/src/sys/BOBOCHE i386 # ident /usr/src/sys/dev/re/if_re.c /usr/src/sys/dev/re/if_re.c: $FreeBSD: src/sys/dev/re/if_re.c,v 1.46.2.3 2005/08/25 05:01:14 rwatson Exp $ # ident /usr/src/sys/kern/kern_poll.c /usr/src/sys/kern/kern_poll.c: $FreeBSD: src/sys/kern/kern_poll.c,v 1.19.2.1 2005/08/25 05:01:19 rwatson Exp $ Side note: it doesn't solve or change anything for the PR kern/80005 though. Regards, -- -jpeg.