Re: Kernel panic with pf

From: Gilbert Cao (hika_at_bsdmon.com)
Date: 10/24/04

  • Next message: Max Laier: "Re: Kernel panic with pf"
    Date: Sun, 24 Oct 2004 21:14:06 +0200
    To: Max Laier <max@love2party.net>
    
    

    On Sun, Oct 24, 2004 at 06:48:28PM +0200, Max Laier wrote:
    >
    > Hmmm ... that's bad. Can you please test the attached patch. It is a wild
    > guess as I am currently not able to test. Please tell me if it helps.
    >
    > --
    > /"\ Best regards, | mlaier@freebsd.org
    > \ / Max Laier | ICQ #67774661
    > X http://pf4freebsd.love2party.net/ | mlaier@EFnet
    > / \ ASCII Ribbon Campaign | Against HTML Mail and News

    > Index: pf.c
    > ===================================================================
    > RCS file: /usr/store/mlaier/fcvs/src/sys/contrib/pf/net/pf.c,v
    > retrieving revision 1.18.2.2
    > diff -u -r1.18.2.2 pf.c
    > --- pf.c 3 Oct 2004 17:04:39 -0000 1.18.2.2
    > +++ pf.c 24 Oct 2004 16:45:33 -0000
    > @@ -2506,6 +2506,11 @@
    > }
    > #ifdef __FreeBSD__
    > INP_LOCK(inp);
    > + if ((inp->inp_socket == NULL) || (inp->inp_socket->so_cred == NULL)) {
    > + INP_UNLOCK(inp);
    > + INP_INFO_RUNLOCK(pi);
    > + return (0);
    > + }
    > *uid = inp->inp_socket->so_cred->cr_uid;
    > *gid = inp->inp_socket->so_cred->cr_groups[0];
    > INP_UNLOCK(inp);

      Thanks.
    That works, no panic.

    Should I also test with debug.mpsafenet=0, or is it useless ?

    Gilbert Cao.

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Max Laier: "Re: Kernel panic with pf"

    Relevant Pages

    • Re: 2.6.6-mm1
      ... > I reverted this patch too, but it works without problems here. ... Hmmm... ... Do you use ACPI? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kernel panic with pf
      ... On Sunday 24 October 2004 18:02, Gilbert Cao wrote: ... Hmmm ... ... Can you please test the attached patch. ... It is a wild ...
      (freebsd-net)
    • Re: ISS Apache Advisory Response
      ... > day quiet period to provide an opportunity to create a patch or work ... > If an exploit for the vulnerability appears in the wild, ... > In the case of this advisory, ISS X-Force provided an Apache patch and did ... > specific vulnerability described by X-Force, ...
      (Bugtraq)
    • Re: [lucas.de.marchi@gmail.com: Bug when changing cpus_allowed of RT tasks?]
      ... Ingo asked me to take a look at the problem you are reporting. ...  Is this a bug you are seeing in the ... wild, or was this found by code-inspection? ... Until further evidence is presented, I have to respectfully NAK the patch, as I do not think its doing the right thing ...
      (Linux-Kernel)
    • Re: [PATCH] ftrace: dont increment @pos in g_start()
      ... Yeah, this should work, and cleaner than my version. ... the patch is cleaner in diffstat but the resulted code ... Hmmm, if you prefer to smaller target size, I don't care. ... My gcc version is: ...
      (Linux-Kernel)