[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_D1FC92D5864A49986EC02EE50C8967EF4606@qq.com>
Date: Tue, 6 Aug 2024 21:12:45 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+ad601904231505ad6617@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [can?] WARNING: refcount bug in j1939_session_put
get ref to skb
#syz test: net-next 743ff02152bc
diff --git a/net/can/j1939/main.c b/net/can/j1939/main.c
index 7e8a20f2fc42..31ccbe9a276d 100644
--- a/net/can/j1939/main.c
+++ b/net/can/j1939/main.c
@@ -51,6 +51,7 @@ static void j1939_can_recv(struct sk_buff *iskb, void *data)
if (!skb)
return;
+ skb_get(skb);
j1939_priv_get(priv);
can_skb_set_owner(skb, iskb->sk);
Powered by blists - more mailing lists