Re: [syzbot] [smc?] general protection fault in __smc_diag_dump (4)

1 view
Skip to first unread message

Wang Liang

unread,
Oct 17, 2025, 2:25:23 AM (4 days ago) Oct 17
to syzbot+f775be...@syzkaller.appspotmail.com, linux-...@vger.kernel.org, net...@vger.kernel.org, linux...@vger.kernel.org, syzkall...@googlegroups.com
diff --git a/net/smc/smc_inet.c b/net/smc/smc_inet.c
index a944e7dcb8b9..a94084b4a498 100644
--- a/net/smc/smc_inet.c
+++ b/net/smc/smc_inet.c
@@ -56,7 +56,6 @@ static struct inet_protosw smc_inet_protosw = {
.protocol = IPPROTO_SMC,
.prot = &smc_inet_prot,
.ops = &smc_inet_stream_ops,
- .flags = INET_PROTOSW_ICSK,
};

#if IS_ENABLED(CONFIG_IPV6)
@@ -104,27 +103,15 @@ static struct inet_protosw smc_inet6_protosw = {
.protocol = IPPROTO_SMC,
.prot = &smc_inet6_prot,
.ops = &smc_inet6_stream_ops,
- .flags = INET_PROTOSW_ICSK,
};
#endif /* CONFIG_IPV6 */

-static unsigned int smc_sync_mss(struct sock *sk, u32 pmtu)
-{
- /* No need pass it through to clcsock, mss can always be set by
- * sock_create_kern or smc_setsockopt.
- */
- return 0;
-}
-
static int smc_inet_init_sock(struct sock *sk)
{
struct net *net = sock_net(sk);

/* init common smc sock */
smc_sk_init(net, sk, IPPROTO_SMC);
-
- inet_csk(sk)->icsk_sync_mss = smc_sync_mss;
-
/* create clcsock */
return smc_create_clcsk(net, sk, sk->sk_family);
}
--
2.34.1

Wang Liang

unread,
Oct 17, 2025, 2:27:46 AM (4 days ago) Oct 17
to syzbot+f775be...@syzkaller.appspotmail.com, linux-...@vger.kernel.org, net...@vger.kernel.org, linux...@vger.kernel.org, syzkall...@googlegroups.com
#syz test

syzbot

unread,
Oct 17, 2025, 3:22:06 AM (4 days ago) Oct 17
to linux-...@vger.kernel.org, linux...@vger.kernel.org, net...@vger.kernel.org, syzkall...@googlegroups.com, wangl...@huawei.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+f775be...@syzkaller.appspotmail.com
Tested-by: syzbot+f775be...@syzkaller.appspotmail.com

Tested on:

commit: 98ac9cc4 Merge tag 'f2fs-fix-6.18-rc2' of git://git.ke..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=10084de2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f81efe6184ed80d7
dashboard link: https://syzkaller.appspot.com/bug?extid=f775be4458668f7d220e
compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=115ba734580000

Note: testing is done by a robot and is best-effort only.

Wang Liang

unread,
Oct 17, 2025, 3:40:18 AM (3 days ago) Oct 17
to syzbot+f775be...@syzkaller.appspotmail.com, linux-...@vger.kernel.org, net...@vger.kernel.org, linux...@vger.kernel.org, syzkall...@googlegroups.com

Sorry, this is an incorrect email, please ignore it.
Reply all
Reply to author
Forward
0 new messages