[Top] [All Lists]

Re: Check connect address in NETLINK

To: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>
Subject: Re: Check connect address in NETLINK
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Jun 2004 22:40:50 +1000
Cc: "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20040630121420.GA8183@xxxxxxxxxxxxx>
References: <20040628231439.GA3021@xxxxxxxxxxxxxxxxxxx> <20040629082252.GA26866@xxxxxxxxxxxxx> <20040629084552.GA6202@xxxxxxxxxxxxxxxxxxx> <20040629111433.GA28463@xxxxxxxxxxxxx> <20040629111833.GA22880@xxxxxxxxxxxxxxxxxxx> <20040630112751.GA31160@xxxxxxxxxxxxxxxxxxx> <20040630120045.GA7973@xxxxxxxxxxxxx> <20040630120828.GA31498@xxxxxxxxxxxxxxxxxxx> <20040630121420.GA8183@xxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040523i
On Wed, Jun 30, 2004 at 04:14:20PM +0400, Alexey Kuznetsov wrote:
> cpu 0:                                cpu1 (or just preempted cpu)
> sk = netlink_lookup(...);
>                               ... closing sk
>                               netlink_release() clears sk_socket
> use sk->sk_socket. Oops.

Thanks for the example.

Here is a version that uses sk_state instead.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page:
PGP Key:

Attachment: p
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>