netdev
[Top] [All Lists]

Re: Check connect address in NETLINK

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Check connect address in NETLINK
From: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>
Date: Wed, 30 Jun 2004 16:14:20 +0400
Cc: "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20040630120828.GA31498@gondor.apana.org.au>
References: <20040628231439.GA3021@gondor.apana.org.au> <20040629082252.GA26866@ms2.inr.ac.ru> <20040629084552.GA6202@gondor.apana.org.au> <20040629111433.GA28463@ms2.inr.ac.ru> <20040629111833.GA22880@gondor.apana.org.au> <20040630112751.GA31160@gondor.apana.org.au> <20040630120045.GA7973@ms2.inr.ac.ru> <20040630120828.GA31498@gondor.apana.org.au>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
Hello!

> OK.  Can you give me a code path that allows sk_socket to be NULL
> at this point?

cpu 0:                          cpu1 (or just preempted cpu)

sk = netlink_lookup(...);
                                ... closing sk
                                netlink_release() clears sk_socket

use sk->sk_socket. Oops.

Alexey

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