[Bug 272666] FreeBSD arm64 Azure panic in add_route
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Aug 2023 16:25:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272666
--- 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 printfs
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 = rnd->rnd_nhop;
rc->rc_nh_weight = 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_type
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 == type)
rs->func(rnh, rc, rs->arg);
--
You are receiving this mail because:
You are on the CC list for the bug.