https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274536

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

URL:
https://cgit.FreeBSD.org/src/commit/?id=b977dd1ea5fbc2df3f1279330be4d089322eb2cf

commit b977dd1ea5fbc2df3f1279330be4d089322eb2cf
Author:     Gleb Smirnoff <gleb...@freebsd.org>
AuthorDate: 2024-03-29 20:35:51 +0000
Commit:     Gleb Smirnoff <gleb...@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 compatibility
    support calls for reallocating header, pass hdr as pointer to pointer.

    With KPI that returns a error, propagate domain conversion errors all the
    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(-)

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

Reply via email to