From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f70.google.com (mail-oo1-f70.google.com [209.85.161.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2CF23BED1E for ; Thu, 23 Apr 2026 08:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776932591; cv=none; b=SpxagXJ+yD3oK9HjPADNjv6NuS2QfFmtPG5NUHzKyHOr9iVcGVbTgLVCCnY4l8u3pbHEYuhdwamcO+hPu9ZykZ42oQWmqTdlxLMjEJZ7Lw4vqesCfMJW5nbrUWZb1E8Gt7AiuRokZ0HLoUP9dCHxq6hfYg+CObifMMLTeC24V/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776932591; c=relaxed/simple; bh=OuVhWkYoFR1uSY9kX6h2w077HPz8GUpg7bFRP75AdkM=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=Gl3bFXqmXtC9JSoCWLtARMhepdD4TIYPl+3FgJZ/gCR4GSrUCsBLr9f6tt9BPXZiL6jFYBysTsHRj217LkhUai6/8s65sYslErnhHQxHnLasSBE1ZJB0otTlnvK22F3TkAAyK7lbRA65SitvPLIQrJ7wL+aqt4FgT6hT/mk2GR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.161.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oo1-f70.google.com with SMTP id 006d021491bc7-6949f514496so2014151eaf.1 for ; Thu, 23 Apr 2026 01:23:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776932589; x=1777537389; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w247/q97QzvcC14agKy5HCk9YHvwopdZ1ppEdRTa+cw=; b=QGyOpwJgfI2mIIGxU7Y40olSIv/cal+XxMQfTWabfIZSHBhtIltY6bLGk6x5llSmcR kklY0Uqo99U0lda3iEFmxlI9cPZxAxT+Q9udfh7RnW7Gnk0Xops8YN1sfbsKmW+qHFSb CkOAJglQc+ZQyxaQRef+UpHbOnjm8pSrGWpELDRtYd5Yqquq4pgaJ2LF1DShKy0wy1sM 89Pa2QbLbhFzWm/cFeln0KINNG5HsWKaIJgWkmkmSDl8kxHURFtFoXreTaEUDRLfrmqT z1koSSJ3dcgAZYZjKxE4JD4CZ47AfAswYGCTZlPdvnUKcZOLfm5jZ87KrCITChB08TJ7 OU3A== X-Forwarded-Encrypted: i=1; AFNElJ9D/kUIJ6mv6YmZjmbHwz8M7QW3d4OaIE1pXKPvwskNJM2m5FKZS8g/QCiU1dlew/Wpy9oIT0BUKpci35M=@vger.kernel.org X-Gm-Message-State: AOJu0YwP1pC4SajdREzgC7JyBPKuOkHuGOQ6ijMfya6qsg2yM/Fd8wCq QmhWXVIeXXMRmo7N3p+UeeT3dEdak7pE199nTUIJ8keWD5bEXdH4EuTidXn8MYrWC9ds/7SXWZy uQS5kUvsb8iduDMPH3+JSIkDGN1w8PO6PkbdbBiQZ4yfrCH2GFxrV1dPGhPI= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:1ca5:b0:694:914a:ebe1 with SMTP id 006d021491bc7-694914af143mr7662434eaf.47.1776932588922; Thu, 23 Apr 2026 01:23:08 -0700 (PDT) Date: Thu, 23 Apr 2026 01:23:08 -0700 In-Reply-To: <20260423082233.514056-1-25181214217@stu.xidian.edu.cn> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69e9d6ec.a00a0220.9259.0025.GAE@google.com> Subject: Re: [PATCH v2] ipv6: fix memory leak in __ip6_make_skb() when queue is empty From: syzbot To: 25181214217@stu.xidian.edu.cn Cc: 25181214217@stu.xidian.edu.cn, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, horms@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, sd@queasysnail.net, willemdebruijn.kernel@gmail.com Content-Type: text/plain; charset="UTF-8" > During fuzzing with failslab enabled, a memory leak was observed in the > IPv6 UDP send path. > > The root cause resides in __ip6_make_skb(). In extremely rare cases > (such as fault injection or specific empty payload conditions), > __ip6_append_data() may succeed but leave the socket's write queue > empty. > > When __ip6_make_skb() is subsequently called, __skb_dequeue(queue) > returns NULL. The previous logic handled this by executing a 'goto out;', > which completely bypassed the call to ip6_cork_release(cork). > > Since the 'cork' structure actively holds a reference to the routing > entry (dst_entry) and potentially other allocated options, skipping > the release cleanly leaks these resources. > > Fix this by introducing an 'out_cork_release' label and jumping to it > when skb is NULL, ensuring the cork state is always properly cleaned up. > The now-unused 'out' label is also removed to prevent compiler warnings. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Reported-by: syzbot+e5d6936b9f4545fd88ab@syzkaller.appspotmail.com > Signed-off-by: Mingyu Wang <25181214217@stu.xidian.edu.cn> > --- > net/ipv6/ip6_output.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c > index 7e92909ab5be..82210dd5eb96 100644 > --- a/net/ipv6/ip6_output.c > +++ b/net/ipv6/ip6_output.c > @@ -1934,7 +1934,7 @@ struct sk_buff *__ip6_make_skb(struct sock *sk, > > skb = __skb_dequeue(queue); > if (!skb) > - goto out; > + goto out_cork_release; > tail_skb = &(skb_shinfo(skb)->frag_list); > > /* move skb->data to ip header from ext header */ > @@ -1998,8 +1998,8 @@ struct sk_buff *__ip6_make_skb(struct sock *sk, > ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTMSGS); > } > > +out_cork_release: > ip6_cork_release(cork); > -out: > return skb; > } > > -- > 2.34.1 > I see the command but can't find the corresponding bug. The email is sent to syzbot+HASH@syzkaller.appspotmail.com address but the HASH does not correspond to any known bug. Please double check the address.