Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2024 18:10:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274536] panic: rt_tables_get_rnh_ptr: fam out of bounds (255 < 45)
Message-ID:  <bug-274536-227-gOC7DF2jry@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274536-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274536-227@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=3D274536

Gleb Smirnoff <glebius@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dchagin@FreeBSD.org

--- Comment #7 from Gleb Smirnoff <glebius@FreeBSD.org> ---
Adding Dmitry and Alexander here.  TLDR version for them:

  An application (Firefox) sends NETLINK_ROUTE message with AF_PACKET
  in it.  linux_to_bsd_domain() fails to find an analog in FreeBSD,
  and returns 0xffffffff.  Later that truncates down to 0xff and=20
  rt_tables_get_rnh_ptr() panics.

How should we fix that? At what level should we report EOPNOTSUPP (or
maybe other) error? My guess that should live in NetLink, cause it
is NetLink that doesn't check return value of linux_to_bsd_domain().
The latter honestly reports "I don't know".

--=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-274536-227-gOC7DF2jry>