Re: panic: mutex Giant not owned at src/sys/security/mac/mac_net.c:355

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

  • Next message: Simon L. Nielsen: "Re: panic: mutex Giant not owned at src/sys/security/mac/mac_net.c:355"
    Date: Thu, 22 Apr 2004 17:19:32 -0400 (EDT)
    To: "Simon L. Nielsen" <simon@FreeBSD.org>
    
    

    On Thu, 22 Apr 2004, Simon L. Nielsen wrote:

    > I have a reproduceable panic when I have MAC enabled in my kernel and I
    > try to run tcpdump on the interface I have logged in on via ssh (I'm not
    > really sure why it only happens in this case and in other cases). I run
    > "tcpdump -n -i sis0" and the panic as shown below. I do not have any
    > MAC policies loaded.
    >
    > The problem is (if I understand the code correctly) that MAC calls
    > BPFD_LOCK_ASSERT, which rwatson added NET_ASSERT_GIANT to, but since the
    > sis interrupt handler is marked INTR_MPSAFE then GIANT isn't aquired
    > before bpf_mtap (and therefor mac_check_bpfdesc_receive) is called.
    >
    > I'm not really sure what the correct fix is, but if bpf is locked, is
    > GIANT really required for it?

    Are you running a main line kernel with debug.mpsafenet turned on?

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Senior Research Scientist, McAfee Research

    >
    > panic: mutex Giant not owned at /data/nanobsd/src/sys/security/mac/mac_net.c:355
    > at line 729 in file /data/nanobsd/src/sys/kern/kern_mutex.c
    > Debugger("panic")
    > Stopped at Debugger+0x45: xchgl %ebx,in_Debugger.0
    > db> trace
    > Debugger(c063705f) at Debugger+0x45
    > __panic(c06363ea,2d9,c063655f,c063669a,c0646fff) at __panic+0xc7
    > _mtx_assert(c0689720,1,c0646fff,163) at _mtx_assert+0xc2
    > mac_check_bpfdesc_receive(c1995c00,c1750c00) at mac_check_bpfdesc_receive+0x40
    > bpf_mtap(c17536c0,c0adfa00) at bpf_mtap+0xa6
    > sis_start(c1750c00) at sis_start+0x1a7
    > sis_tick(c1750c00) at sis_tick+0x70
    > softclock(0) at softclock+0x176
    > ithread_loop(c0ac2500,c80c2d48,c0ac2500,c04c2e80,0) at ithread_loop+0x11c
    > fork_exit(c04c2e80,c0ac2500,c80c2d48) at fork_exit+0xa8
    > fork_trampoline() at fork_trampoline+0x8
    > --- trap 0x1, eip = 0, esp = 0xc80c2d7c, ebp = 0 ---
    >
    > --
    > Simon L. Nielsen
    > FreeBSD Documentation Team
    >

    _______________________________________________
    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: Simon L. Nielsen: "Re: panic: mutex Giant not owned at src/sys/security/mac/mac_net.c:355"

    Relevant Pages

    • Primer entries
      ... Before he can show it off to his "big Bro" Kamina, the city is attacked by a giant Gunman and is forced to learn to be a pilot to save his life. ... They meet other folk along the way, enemies and allies, as Simon is told to aim his drill for the heavens, and not to believe in himself, but in Kamina who believes in him. ... Each episode brings Simon one step closer to the man he's destined to be. ... Each episode is capped off with a "Lucky Channel" special with a new-to-the-industry teenager and a veteran-of-the-industry child, which has it's own subplot, and that's capped off with a karaoke room credit sequence that's totally divergent from the plot whatsoever for the first half of the series and a music video credit sequence featuring Minori Shirasu for the second half of the series. ...
      (rec.arts.anime.misc)
    • Re: sshd stops accepting connections
      ... Simon L. Nielsen wrote: ... > Today I suddenly couldn't log in via ssh to a server I upgraded to ... > telnetthe following just happend: ...
      (freebsd-stable)
    • Re: DCDIAG detects error
      ... Simon posted a question ... > I did not reboot the server after correcting the address. ... DNS allow on any interface in any position. ...
      (microsoft.public.win2000.dns)
    • Re: Disk full, no ssh access??
      ... On Fri, 22 Apr 2005, Simon wrote: ... > Would a simple restart enable me to ssh in and dump some files out? ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • Re: How to compare two object?
      ... "Simon Watson" wrote: ... >> IUnKnown is already created with object name spInspectUnk. ... you must queryinterface the interface pointers you hold ... >>> the IUnknown interface and then compare these two IUnknown pointers to ...
      (microsoft.public.vc.language)