Re: [syzbot] [can?] WARNING: refcount bug in sk_skb_reason_drop
From: Hillf Danton
Date: Thu Oct 03 2024 - 19:35:22 EST
On Thu, 03 Oct 2024 09:14:26 -0700
> syzbot found the following issue on:
>
> HEAD commit: a430d95c5efa Merge tag 'lsm-pr-20240911' of git://git.kern..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15b9a607980000
#syz test
--- x/net/can/j1939/transport.c
+++ y/net/can/j1939/transport.c
@@ -1506,6 +1506,7 @@ static struct j1939_session *j1939_sessi
skb_queue_head_init(&session->skb_queue);
skb_queue_tail(&session->skb_queue, skb);
+ skb_get(skb);
skcb = j1939_skb_to_cb(skb);
memcpy(&session->skcb, skcb, sizeof(session->skcb));
--