Date: Mon, 21 Feb 2022 16:18:59 +0900
From: Shoichi Yamaguchi <yamaguchi%netbsd.org@localhost>
To: 6bone%6bone.informatik.uni-leipzig.de@localhost
Cc: current-users%netbsd.org@localhost
Subject: [Extern] Re: reproducible kernel crash with the agr interface
Hi,
This panic may be caused by adding an interface to agr(4)
after another interface is added to the agr(4) and deleted.
ifconfig agr0 create
ifconfig agr0 agrport wm1
ifp->if_hwdl of agr0 is created on adding wm1.
ifconfig agr0 -agrport wm1
ifp->if_hwdl of agr0 is not deleted on it.
ifconfig agr0 agrport bnx1
ifp->if_hwdl is created again, so the panic appears.
You may be able to use lagg(4) to avoid the panic.
% ifconfig lagg0 create
% ifconfig lagg0 laggproto lacp
% ifconfig lagg0 laggport wm1
% ifconfig lagg0 -laggport wm1
% ifconfig lagg0 laggport bnx1
-- yamaguchi