Re: [syzbot] [net?] general protection fault in put_page (4)
From: Hillf Danton
Date: Wed Dec 18 2024 - 06:41:43 EST
On Tue, Dec 17, 2024 at 6:03 PM
> syzbot found the following issue on:
>
> HEAD commit: 78d4f34e2115 Linux 6.13-rc3
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f502df980000
#syz test
--- x/net/core/skbuff.c
+++ y/net/core/skbuff.c
@@ -1105,7 +1105,9 @@ static void skb_release_data(struct sk_b
int i;
if (!skb_data_unref(skb, shinfo))
- goto exit;
+ return;
+ if (test_and_set_bit(7, &shinfo->flags))
+ return;
if (skb_zcopy(skb)) {
bool skip_unref = shinfo->flags & SKBFL_MANAGED_FRAG_REFS;
--