Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2019 18:58:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 242784] arp: segfault on service netif restart
Message-ID:  <bug-242784-7501-VLXj4C0W3K@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242784-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242784-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=3D242784

--- Comment #6 from corvid@openmailbox.org ---
It gets into print_entry(), and there=E2=80=99s a loop with careless errors
in the loop condition:

        for (p =3D ifnameindex; p && ifnameindex->if_index &&
            ifnameindex->if_name; p++) {
                if (p->if_index =3D=3D sdl->sdl_index) {
                        xo_emit(" on {:interface/%s}", p->if_name);
                        break;
                }
        }

sdl->sdl_index is 3, and the list of interfaces has indices
1, 2, 4, 0, some big randomish number, etc. So p just keeps running
along until it happens to detect a 3 or segfault.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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