Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2023 16:25:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 272666] FreeBSD arm64 Azure panic in add_route
Message-ID:  <bug-272666-7501-yHM1a41DIp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272666-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272666-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272666

--- Comment #7 from schakrabarti@microsoft.com <schakrabarti@microsoft.com>=
 ---
I have added two debug printfs in add route and post that we are not hitting
the panic during reboot.
I guess some race condition is happening, which is why the delay from print=
fs
is mitigating the panic.
I have tried 10 reboots with this, and no issue.


diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c
index 9c9b148eba19..aaf404d565a1 100644
--- a/sys/net/route/route_ctl.c
+++ b/sys/net/route/route_ctl.c
@@ -1237,6 +1237,7 @@ add_route(struct rib_head *rnh, struct rtentry *rt,
                rc->rc_nh_new =3D rnd->rnd_nhop;
                rc->rc_nh_weight =3D rnd->rnd_weight;

+               printf("add_route called before rib_notify\n");
                rib_notify(rnh, RIB_NOTIFY_IMMEDIATE, rc);
                return (0);
        }
diff --git a/sys/net/route/route_subscription.c
b/sys/net/route/route_subscription.c
index 510b5117df1b..4a9cc0c5f800 100644
--- a/sys/net/route/route_subscription.c
+++ b/sys/net/route/route_subscription.c
@@ -58,7 +58,7 @@ rib_notify(struct rib_head *rnh, enum rib_subscription_ty=
pe
type,
     struct rib_cmd_info *rc)
{
        struct rib_subscription *rs;
-
+       printf("rnh is %s",rnh? "not null": "null");
        CK_STAILQ_FOREACH(rs, &rnh->rnh_subscribers, next) {
                if (rs->type =3D=3D type)
                        rs->func(rnh, rc, rs->arg);

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272666-7501-yHM1a41DIp>