From: Alexandra Winter <wintera@linux.ibm.com>
To: syzbot <syzbot+f69bfae0a4eb29976e44@syzkaller.appspotmail.com>,
agordeev@linux.ibm.com, aha310510@gmail.com,
alibuda@linux.alibaba.com, davem@davemloft.net,
dust.li@linux.alibaba.com, edumazet@google.com,
gbayer@linux.ibm.com, guwen@linux.alibaba.com, horms@kernel.org,
jaka@linux.ibm.com, julianr@linux.ibm.com, kuba@kernel.org,
linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
linux-s390@vger.kernel.org, lizhi.xu@windriver.com,
netdev@vger.kernel.org, pabeni@redhat.com, sidraya@linux.ibm.com,
syzkaller-bugs@googlegroups.com, tonylu@linux.alibaba.com,
wenjia@linux.ibm.com
Subject: Re: [syzbot] [smc?] general protection fault in smc_diag_dump_proto
Date: Wed, 17 Dec 2025 10:39:10 +0100 [thread overview]
Message-ID: <03a57f0d-2b09-47d4-b1ac-f86dc128356b@linux.ibm.com> (raw)
In-Reply-To: <6935028e.a70a0220.38f243.0041.GAE@google.com>
On 07.12.25 05:29, syzbot wrote:
> syzbot suspects this issue was fixed by commit:
>
> commit d324a2ca3f8efd57f5839aa2690554a5cbb3586f
> Author: Alexandra Winter <wintera@linux.ibm.com>
> Date: Thu Sep 18 11:04:50 2025 +0000
>
> dibs: Register smc as dibs_client
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16d64eb4580000
> start commit: dbb9a7ef3478 net: fjes: use ethtool string helpers
> git tree: net-next
> kernel config: https://syzkaller.appspot.com/x/.config?x=a9d1c42858837b59
> dashboard link: https://syzkaller.appspot.com/bug?extid=f69bfae0a4eb29976e44
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=178f0d5f980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10906b40580000
>
> If the result looks correct, please mark the issue as fixed by replying with:
>
> #syz fix: dibs: Register smc as dibs_client
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Unfortunately, I don't think
d324a2ca3f8e ("dibs: Register smc as dibs_client")
has fixed this issue.
Iiuc https://syzkaller.appspot.com/bug?extid=f69bfae0a4eb29976e44 shows an occurrence on
2025/10/17 13:18 net-next 7e0d4c111369
that code level already contains the bisected commit 7e0d4c111369.
Looking at net/smc/af_smc.c:smc_init()
I think the bisected patch has changed the timing of smc_ism_init() which may have led to the bisect result.
I think the issue may stem from the order of calls in smc_init().
Especially smc_nl_init(), proto_register(&smc_proto, 1), proto_register(&smc_proto6, 1), sock_register(&smc_sock_family_ops)
are all being called before:
INIT_HLIST_HEAD(&smc_v4_hashinfo.ht);
INIT_HLIST_HEAD(&smc_v6_hashinfo.ht);
I think this can lead to the described "KASAN: null-ptr-deref", when calling smc_diag_handler() while the module is still being initialized.
I tried to reproduce such a race by calling smc_pnet and 'modprobe -r smc_diag smc'. But I did not hit a KASAN warning with that setting.
I'll send a patch nevertheless.
prev parent reply other threads:[~2025-12-17 9:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 16:27 [syzbot] [net?] [s390?] general protection fault in smc_diag_dump_proto syzbot
2025-12-07 4:29 ` [syzbot] [smc?] " syzbot
2025-12-17 9:39 ` Alexandra Winter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=03a57f0d-2b09-47d4-b1ac-f86dc128356b@linux.ibm.com \
--to=wintera@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=aha310510@gmail.com \
--cc=alibuda@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=dust.li@linux.alibaba.com \
--cc=edumazet@google.com \
--cc=gbayer@linux.ibm.com \
--cc=guwen@linux.alibaba.com \
--cc=horms@kernel.org \
--cc=jaka@linux.ibm.com \
--cc=julianr@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=lizhi.xu@windriver.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sidraya@linux.ibm.com \
--cc=syzbot+f69bfae0a4eb29976e44@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tonylu@linux.alibaba.com \
--cc=wenjia@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox