Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2024 20:37:06 +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-riYLTgRvqg@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

--- Comment #15 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Db977dd1ea5fbc2df3f1279330be4d0893=
22eb2cf

commit b977dd1ea5fbc2df3f1279330be4d089322eb2cf
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-03-29 20:35:51 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-03-29 20:35:51 +0000

    linux: make linux_netlink_p->msg_from_linux be able to fail

    The KPI for this function was misleading.  From the NetLink perspective=
 it
    looked like a function that: a) allocates new hdr, b) can fail.  Neither
    was true.  Let the function return a error code instead of returning the
    same hdr it was passed to.  In case if future Linux NetLink compatibili=
ty
    support calls for reallocating header, pass hdr as pointer to pointer.

    With KPI that returns a error, propagate domain conversion errors all t=
he
    way up to NetLink module.  This fixes panic when unknown domain is
    converted to 0xff and this invalid value is passed into NetLink
    processing.

    PR:                     274536
    Reviewed by:            melifaro
    Differential Revision:  https://reviews.freebsd.org/D44392

 sys/compat/linux/linux_netlink.c | 58 ++++++++++++++++++++++++++----------=
----
 sys/netlink/netlink_io.c         | 22 +++++++--------
 sys/netlink/netlink_linux.h      |  2 +-
 3 files changed, 48 insertions(+), 34 deletions(-)

--=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-riYLTgRvqg>