From nobody Fri Mar 29 20:37:06 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V5sdv4D3Gz5Fgbx for ; Fri, 29 Mar 2024 20:37:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V5sdv06Z5z4F9Z for ; Fri, 29 Mar 2024 20:37:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711744627; a=rsa-sha256; cv=none; b=l8BBK9E2+ZhZQinhN5SX9l7ttQCz7ujuyvrlxobZuuBJh6g6Z/JZkHABfgNCTheKasllXu 0GelRqNvYVXeGtobu0zADfrZiLg/0sNGr/Akntmg6Aii7MzU74wIU3deButEMkIf9WWZV4 8/TuNT7FQIxW7cPa06UUg4i7npOObQUgzAeCNKm4U4B8diKTwnIiaOtX4xN1Iw61f70U/e ILygn0dkGdKL/CyRMzHTp5fU5DiTGpNdrUXOQGdlFbIA2t0cq+lFzc1HVHrjzxpGRgf+yF zI3Ccoa7W0+vuy/mZf8p2F57qFKr33cY90Lmi++pK3j5UZKMq++9W1rl/HiniQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711744627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q9VOR+E8GvMzbXl7wd3rDgzqFp/XDVXpbPWJvHZqhqs=; b=PFDQOiGVxe6cgziQgLZ0/iaCPRnHb78g+oKAF09VeVzi/0g1xM8MxHs8uPKLnmL142b3BQ bvwScnhjXp1b72Fu5Wi1o0OnRGFuh8Wce95LVwYr6GtO6Hv3R3nHqj2N1S141KaBxSG5JQ wNdmo2JTxhrixDznso3URzIlsG12wdhwvikECSMPiPCfPAoYCQe/AilOoYJPZsBxmrqYC4 Q2TFf+4zAJDZucmtlHxPb2UJY+UFAHYC6eMa+wYqCo7vvxyOMMKXK+Wl7A4T8H9fO5LtGj PI05PCitulswBiRIDwz+wqO5XCE9+8Ahe3iO6TlD910Kwfp75ZsJyBKS1oRvcA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V5sdt6ntlzQZR for ; Fri, 29 Mar 2024 20:37:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42TKb6pa012560 for ; Fri, 29 Mar 2024 20:37:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42TKb6T1012558 for bugs@FreeBSD.org; Fri, 29 Mar 2024 20:37:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274536] panic: rt_tables_get_rnh_ptr: fam out of bounds (255 < 45) Date: Fri, 29 Mar 2024 20:37:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 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 AuthorDate: 2024-03-29 20:35:51 +0000 Commit: Gleb Smirnoff 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.=