From nobody Mon Aug 08 16:54:04 2022 X-Original-To: virtualization@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 4M1j310NB0z4YW6r for ; Mon, 8 Aug 2022 16:54:05 +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 4M1j306TkGz3NDX for ; Mon, 8 Aug 2022 16:54:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4M1j305VLDzyxx for ; Mon, 8 Aug 2022 16:54:04 +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 278Gs43B094024 for ; Mon, 8 Aug 2022 16:54:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 278Gs4lL094023 for virtualization@FreeBSD.org; Mon, 8 Aug 2022 16:54:04 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: virtualization@FreeBSD.org Subject: [Bug 265385] lib9p's l9p_puqids() can write beyond the end of qids[] Date: Mon, 08 Aug 2022 16:54:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@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: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659977644; 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=ijc+yviEDnOdOjXgKlQ2oHSI5zuFP/LJh4OWjXz30gE=; b=RjTo5fRe97CWV85/ICEMyJDc0sJKGTht0s+FTCvV0jdahIaBTiyEKZD49cBq2WjbH8A9Uv iVstJm8TX3/1Q7p0DjpIoLLKQ1YS7uVu38j4gR5GpxwewZLOtUxFecmFul9h1WAZoqV9x7 XcZLplvCjyKzVB0gdrIZHehDb80g+6b7VfQsxFiftzYg9ku7y16qRZAYogP2f26liAOmX/ 1/4A5HvI1V5NeU0AgOsmwiJAy9K43tqUK1+hZuJU4n1SeX2DTB83SnKzq5DZc1FesxQV8H teV/y5TBg/EBMfHp/VDdaHI4MLZljACHymtYnhDNwWkYmeUePg2zJ5LlCQJVGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659977644; a=rsa-sha256; cv=none; b=GcfCiO1OzvK9iY2ekhHq1KOmPyrZYkQfURu89MyiQGB1h+HT36pFWUo9woJRKdjyoufyY/ zpnndAAWeBJTb+zcRCBUxnlpcMm9SVWTVKB5aHlM5ul/IDsHggBzArzYJBb6t0pv89Muiy iN7ozpAMKNE35YypBxnogD2k+qfe3mCBXcF7QLNubL5ta/0ca8xl9MRfnoshGgIxJZV7ck OfpdJeyFri22+azSTO56Sbo61IhunPLu4vU0vi2jSqpROW2xNEPU7WYA6sqNz/Eh5B+FWW Nvfu9/Ri3f/SaRVFGpoClGmQ5fujTIPIDwMSJQcpWyO34SwxdAcDinXOXYjN6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265385 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D2dd83b3f0507fc7bc64b908fb88f285a3= b9663c8 commit 2dd83b3f0507fc7bc64b908fb88f285a3b9663c8 Author: Konrad Sewi=C5=82=C5=82o-Jopek AuthorDate: 2022-08-08 16:25:48 +0000 Commit: Mark Johnston CommitDate: 2022-08-08 16:50:43 +0000 lib9p: Remove potential buffer overwrite in l9p_puqids() Structure l9p_f_wralk reserves at most L9P_MAX_WELEM entries and that number actually set the maximum we can safely use. PR: 265385 Reviewed by: markj MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D35907 contrib/lib9p/pack.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=