🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12642

Re: [syzbot] [nfs?] [net?] WARNING in svc_destroy

#12642
From: syzbot
Date: Sun, 08 Nov 2026 05:52
103 lines
14311 bytes
syzbot has found a reproducer for the following issue on:

HEAD commit:    d164c7d754f0 Merge tag 'devicetree-fixes-for-7.4-1' of git..
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=13ac11a1580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=1cf189394a856f11
dashboard link: https://syzkaller.appspot.com/bug?extid=8cbdf9aa6c281a4e6bbe
compiler:       gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=1494d369580000

AI-generated root cause summary:
In fs/nfs/callback.c, nfs4_callback_up_net() first initializes an IPv4 TCP
listener transport via svc_xprt_create(..., PF_INET, ...), which links the
transport onto serv->sv_permsocks. When a subsequent call to
svc_xprt_create(..., PF_INET6, ...) fails with an error other than
-EAFNOSUPPORT, nfs4_callback_up_net() returns the error immediately without
tearing down the existing IPv4 transport. As a result, nfs_callback_up() unwinds
on error and calls xprt_svc_destroy_nullify_bc() -> svc_destroy(), which
triggers the WARN_ONCE(!list_empty(&serv->sv_permsocks)) warning because the
IPv4 transport is still attached to the service, and subsequently frees the
service while leaving the active listener with a dangling pointer.

full analysis:  https://syzkaller.appspot.com/x/ai_root_cause?x=8cbdf9aa6c281a4e6bbe

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8cbdf9aa6c281a4e6bbe@syzkaller.appspotmail.com

NFS: callback service start failed
------------[ cut here ]------------
SVC: permsocks remain for NFSv4 callback
WARNING: net/sunrpc/svc.c:532 at svc_destroy+0x299/0x330 net/sunrpc/svc.c:532, CPU#1: syz-executor154/6024
Modules linked in:
CPU: 1 UID: 0 PID: 6024 Comm: syz-executor154 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:svc_destroy+0x29d/0x330 net/sunrpc/svc.c:532
Code: 48 b8 00 00 00 00 00 fc ff df 49 8b 5d 00 48 8d 7b 18 48 89 fa 48 c1 ea 03 80 3c 02 00 75 67 48 8d 3d e7 6d 77 07 48 8b 73 18 <67> 48 0f b9 3a e9 d0 fd ff ff 48 8b 7c 24 08 e8 7f 4d 85 f7 e9 a5
RSP: 0018:ffffc9000393f860 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffffff9040bf80 RCX: 0000000000000000
RDX: 1ffffffff20817f3 RSI: ffffffff8c37ebc0 RDI: ffffffff927b0660
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888020bcc000
R13: ffff8880274a0000 R14: ffff88802c3c4000 R15: ffffffff9cd624c0
FS:  000055556ff69400(0000) GS:ffff888122575000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fdb0009fd0 CR3: 00000000377ff000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nfs_callback_up+0x511/0xad0 fs/nfs/callback.c:236
 nfs4_init_callback fs/nfs/nfs4client.c:327 [inline]
 nfs4_init_client_minor_version fs/nfs/nfs4client.c:379 [inline]
 nfs4_init_client+0x236/0x420 fs/nfs/nfs4client.c:429
 nfs_get_client+0xf38/0x1230 fs/nfs/client.c:467
 nfs4_set_client+0x3f6/0x640 fs/nfs/nfs4client.c:763
 nfs4_init_server.isra.0+0x5be/0xf80 fs/nfs/nfs4client.c:1014
 nfs4_create_server+0x185/0x2b0 fs/nfs/nfs4client.c:1063
 nfs4_try_get_tree+0x93/0x140 fs/nfs/nfs4super.c:228
 nfs_get_tree+0xa61/0x1440 fs/nfs/fs_context.c:1621
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4565 [inline]
 __se_sys_mount fs/namespace.c:4542 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4542
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd324de7f1a
Code: 48 c7 c2 d8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffca5d506e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd324de7f1a
RDX: 00007fd324e4603f RSI: 00007fd324e45ffe RDI: 00007fd324e46044
RBP: 0000000000000004 R08: 00007ffca5d50760 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd324e45ffe
R13: 0000000000001789 R14: 0000000000000801 R15: 00007ffca5d50760
 </TASK>
----------------
Code disassembly (best guess):
   0:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   7:	fc ff df
   a:	49 8b 5d 00          	mov    0x0(%r13),%rbx
   e:	48 8d 7b 18          	lea    0x18(%rbx),%rdi
  12:	48 89 fa             	mov    %rdi,%rdx
  15:	48 c1 ea 03          	shr    $0x3,%rdx
  19:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  1d:	75 67                	jne    0x86
  1f:	48 8d 3d e7 6d 77 07 	lea    0x7776de7(%rip),%rdi        # 0x7776e0d
  26:	48 8b 73 18          	mov    0x18(%rbx),%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e9 d0 fd ff ff       	jmp    0xfffffe04
  34:	48 8b 7c 24 08       	mov    0x8(%rsp),%rdi
  39:	e8 7f 4d 85 f7       	call   0xf7854dbd
  3e:	e9                   	.byte 0xe9
  3f:	a5                   	movsl  %ds:(%rsi),%es:(%rdi)


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Technical Details
Message-ID: <6af00e1c.5a668245.1aceb6.0005.GAE@google.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358594-linux-kernel-netdev=dewy.ru
References: <6aee17c4.8be4ead1.3b45e1.0199.GAE@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358594-linux-kernel-netdev=dewy.ru
From: syzbot+8cbdf9aa6c281a4e6bbe@syzkaller.appspotmail.com (syzbot)
Newsgroups: linux.kernel.netdev
Subject: Re: [syzbot] [nfs?] [net?] WARNING in svc_destroy
Date: Sat, 07 Nov 2026 21:52:28 -0800
Organization: Usenet Network
Message-ID: <6af00e1c.5a668245.1aceb6.0005.GAE@google.com>
References: <6aee17c4.8be4ead1.3b45e1.0199.GAE@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
	logging-data="76046"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cpx62VuLAeWnHtGijRQ0X/T0r0Q= sha256:lqk4LK4kkoyYqeiL6JyffUgGYbaaHBwE9D5htkhWITo=
	sha1:LjkL3odCyP/rsZjJRDrcfqVlS5c= sha256:X+fVH3N1EZnD2DcAWuW8d1SFAmDXZlyK/vFB0p0zOd0=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 356F3113515; Sun,  8 Nov 2026 08:52:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.145
X-Spam-Status: No, score=-0.145 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, FROM_LOCAL_HEX=0.331,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SORTED_RECIPS=2.474, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 4jHeuypR6zRm;
	Sun,  8 Nov 2026 08:52:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358594-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=syzkaller.appspotmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id A32641132B2; Sun,  8 Nov 2026 08:52:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 7624A3A035; Sun,  8 Nov 2026 05:52:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794117150;
	b=vU4bp4Sj7impmDR5ObigbfzLIb6bJ7fk2n/6tVC7Bmm7sM8xYVf2pbTCwb0cq/03Xw//
	 c2aVTYYvnbQhukMXyYzcJJ3Vf0HaZ5kuVoyg58Esz2krepO7PnS9BmoONDYB22sXpw2fo
	 1twtCtPPjiJQTsJ5CCK4loHQFo+spYH2OSJJo60AwX5p/IeTB6rfhFwvzRCIPcpRK5c6w
	 yY2PwtlOZIGO7VReMVhf+iw6XCs4fpoGvesDtkLn6NWfHyJDuI/QfF92PT0iHLhoAGmJ7
	 cD8VgNqQ6CW9eVaIOh4OtrN8hA45O+6aZvLT6jq9Y8MJB6YG5YxqNc/2I0qb0yN7sIg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794117150;
	h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:X-Received:Date:In-Reply-To:
	 X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID:
	 Subject:From:To:Content-Type;
	bh=QJc37cJ/S1g5YDvC+KD7J+WHe+A8KLkh38XT8Ub/b9w=;
	b=JgTZTuJe0ZTDQLvvyjistNBPwlIbHPIaICdEzi88ttSbqm76oin5vRfYMXVU8715yoVw
	 OjhFICWYdz7bQm2HmIZZQSG/lKMUxyuAJsquDQbg4sXxY1+6IpUELbFc+97k+oNIWXKgP
	 Ff6qVw2mjZ0lF4WXhcScisMPpDGyV1t+ex6QcWfelO960gCBfNTFnkgNT+1QdqxYkd4g5
	 Pvru33Aa6v61wXTG+7OH+i/0w6EI+8r263wTL02JkH8oX/gHWeZg8iDRLrv5lPn5y3y4Z
	 J+IUMfhvYhnohRO+kZSIXH6Uvj7jWlDcruL90QSpWrnE/nRRWIIAsxxjcNklOW34Jag==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=fail header.from=syzkaller.appspotmail.com;
	spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7391C606A333;
	Sun,  8 Nov 2026 05:52:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.197
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794117149;
	b=kNCLTJnwgv3CH8+TDBmVPjnJnzKrEUk1uAlHDbk3qA1jZBID4uFIH1fRvDwlLu+x55PR
	 +KzlCW6cPJzmudsaPRYzHe7cVskUe1qVZZ3BipXiOWtcpAMb1pFAvYuz9aBwOMb/sK5WK
	 fFhjQlJ4GemrF8YlpeayzhDe4kurwHVBoDwkYsb93nJhujqkjPtnl5t2RZRX9mhMu37BB
	 ETzjyaDBGcrVSptd7eJSZQUrGnfTIeSA5GQ0/rzd9+mRz3YcmXME23GcyIMXFPdNCkPFI
	 hAoikqRKemeHpPX9LpsXMzDxm8qX7AL+ZUODjiNqV8TcJSaMF4E+RF9oWL71Ke+hSLA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794117149;
	h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted:
	 X-Gm-Message-State:MIME-Version:X-Received:Date:In-Reply-To:
	 X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID:
	 Subject:From:To:Content-Type;
	bh=QJc37cJ/S1g5YDvC+KD7J+WHe+A8KLkh38XT8Ub/b9w=;
	b=hQJLRLm4bnFNET20cuq9JhA+jmlpi5G1ESYwhXtZX5QS0fyg//Ik/tG7pdFruFKeZnHX
	 yQFFjnpTQ8SohnvmV08NVCtHEALGzvuZw+E1J4rSBplm/mcrYBo8vWz3bJXYLEk/Meqyk
	 m3EPh8hqEDkD9F+T7h7uns3V+kh86e2flbkwwso6DpzjRZXE8GjGZJZpf3dSjMiQqfljA
	 4DjkmDVoVMPDvRZo7iBmP8JAuVp5XTkcvDA4mLJvbqUbVcjlPV703TbcbTyoTwnYx71D+
	 kJueLd57ZrECKn1Jw9DQjCSwyQtvx0Syp5VOtSCCURy4WSqxXnSHzfLE5LvIWuv4RhA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=fail header.from=syzkaller.appspotmail.com;
	spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com;
	arc=none smtp.remote-ip=209.85.167.197
X-Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BB68606A31D
	for <netdev@vger.kernel.org>; Sun,  8 Nov 2026 05:52:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6BB68606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com
X-Received: by mail-oi1-f197.google.com with SMTP id 5614622812f47-4b2d1eb484aso262315b6e.2
        for <netdev@vger.kernel.org>; Sat, 07 Nov 2026 21:52:29 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794117148; x=1794721948;
        h=content-type:to:from:subject:message-id:in-reply-to:date
         :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to:content-type;
        bh=QJc37cJ/S1g5YDvC+KD7J+WHe+A8KLkh38XT8Ub/b9w=;
        b=2jOYoRcpy0OBlHKcoez0ZiR1Xx0W+cj1ssQaK5QfsMcoR5Iuqz3BiN8RhAaSy3+A3Y
         5Bybf14qk6Zw/6XSWen9QzCKyQfrV5x49Kc9j59mK4TMHgiJqR147OPec3kXCUxbJB/8
         Ma6QQb8bqJ/3EEydfuNwYK2nJAJX6qlMdvKHPuCOMIlkqRuqeC3mv2Kx6Ay6orhHXYHA
         7EWNAboY5Jfn0bQykqcMjcPYyknTu1B3u8sc+cR/sT4a3mrHZNnnQmOP5z5JKEPXh843
         KeEj1bh6beJX/Urrf0LtMqNFoxWWExAsTnKSIoD9x8fyr4kZv8kuXh1sVmXXOiM0BTJu
         wbDg==
X-Forwarded-Encrypted: i=1; AKwUvBy8//ogYDJVkM3MVIgaFKtodKgOVJ9ENukKlfB3WoAgJlUXjhsnIPka3vTlTYWKQzo25HJKikw=@vger.kernel.org
X-Gm-Message-State: APuU4Z+47wOL9dmXdTAI+twcWLBPT4sCmIjLymTfNuCpvwNq33vK7AEj
	Cu6I99mDY567ryySPd3L/0heRHVdctoIL+GZiob9+dEU8Ev4B45AtiG7fMpOtW7v/I1eaUbxfM7
	muLU4Otzuny6lvqM0PKgDWmkFF293Ngrdf3lkPVXfFLPOmXIrT1H8+ZMa9Hk=
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Received: by 2002:a05:6808:c125:b0:4f6:a430:1822 with SMTP id
 5614622812f47-568141ffe0fmr509756b6e.7.1794117148467; Sat, 07 Nov 2026
 21:52:28 -0800 (PST)
X-In-Reply-To: <6aee17c4.8be4ead1.3b45e1.0199.GAE@google.com>
X-Google-Appengine-App-Id: s~syzkaller
X-Google-Appengine-App-Id-Alias: syzkaller