[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <7d97ca5d.5dbd.167b012ce43.Coremail.15667082669@163.com>
Date: Sat, 15 Dec 2018 12:14:41 +0800 (CST)
From: tenys <15667082669@....com>
To: netdev@...r.kernel.org
Subject: BUG at /net/ipx/af_ipx.c
it looks like a pointer stored without holding a reference
for the source code in kernel version v4.14.88, and the fuction is : ipxitf_insert_socket
static void ipxitf_insert_socket(struct ipx_interface *intrfc, struct sock *sk)
{ ipxitf_hold(intrfc);
spin_lock_bh(&intrfc->if_sklist_lock);
ipx_sk(sk)->intrfc = intrfc;
sk_add_node(sk, &intrfc->if_sklist);
spin_unlock_bh(&intrfc->if_sklist_lock);
ipxitf_put(intrfc);
}
it assigned the pointer `intrfc` to `sk->intrfc`, but didn't hold a reference for this pointer.
it looks like a bug.....if not ,could you please explain the meaning of it?
thanks a lot!
Powered by blists - more mailing lists