From nobody Wed Aug 31 15:15:40 2022 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 4MHnms0spJz4bfL0 for ; Wed, 31 Aug 2022 15:15:41 +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 4MHnmr6xmNz3svf for ; Wed, 31 Aug 2022 15:15:40 +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 4MHnmr619vz19DG for ; Wed, 31 Aug 2022 15:15:40 +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 27VFFeCd017016 for ; Wed, 31 Aug 2022 15:15:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27VFFe8K017015 for bugs@FreeBSD.org; Wed, 31 Aug 2022 15:15:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266115] bad use of user pointer in cam_ioctl() CTL_PORT_REQ Date: Wed, 31 Aug 2022 15:15:40 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rtm@lcs.mit.edu X-Bugzilla-Status: New 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661958941; 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=PVzMXfZbGQO01CXK+LpKsTsrT9sE4YWSCW92mnpYIic=; b=sGx5yoZDHupUDB3r63U3XgJs8UVoOwKk8AjLYVgVbue6ciRZ4ufQ3/CB1o6I9B6F6oYzdB G4z0VuuXyv0i71bUL1feX1x76TIfGVHUwAbLW0lCrGnb4sWNlWb9QSJDQb0FeSepDLPrE3 gxe3cEPGdtUfe2UgCDs1ZQUGWrFLZO8VzZ+3FsumOjqWSL7e57V1zlBiIpTGv1hn5xsswn rOYPL8powpvC/VkRzmzhS9xe+vtfQpv1rG8iwBAkHKkRF5xkHgumyCSLTp7AFMTQs8JLX4 KZfRSwo4/ormru0RPiH4m3r8w1sBpMMZzHC6Lqs3Va6b9JUMgXEzVcPX3nWIXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661958941; a=rsa-sha256; cv=none; b=dVthFziS/Ce+EE5PNEjHTyATcgb6zrcBIBn/Bar9VT5RHeohrD15YZlB6VkvtzqA83iKuA hSD3x+e63hXxBoXF27ClHwBQjFi1xa2rc3tZvxeQOAz9P3FalSztRzPBlWeAznBuOnCSZX M6O8xdZ1c3FzFI14muhrF8g0xGkXdDpjRFipLYZNyTGp2yurcEctB1WLMUB3/gg/kLmZPE Y4dXlc1Hlqu1pOFH4K13KyV5NpH3kSW0nPdx0sVZq0NFLvDRaKVcWkRE69YVL5cuB1s2W1 +WV4zNtXaEIo4BWTN3IOrh6KYjqCJ3cyNwIQUgLZQtE1Okj6n6eL+3Bc2eB9gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266115 --- Comment #1 from Robert Morris --- Similarly, for a CTL_LUN_REQ ioctl, if the user program sets backend[] to "block", lun_req->result_nvl to e.g. 0x8000000000000000, and lun_req->result to NULL, backend->ioctl() (which is ctl_be_block_ioctl()) won't modify reslt_nvl, but ctl_ioctl() will call nvlist_destroy(lun_req->result_nvl), causing a crash. --=20 You are receiving this mail because: You are the assignee for the bug.=