From nobody Fri Nov 4 18:06:29 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 4N3pTx5rCDz4hMn5 for ; Fri, 4 Nov 2022 18:06:29 +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 4N3pTx4k9yz3Wyb for ; Fri, 4 Nov 2022 18:06:29 +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 4N3pTx3mY9z1QRK for ; Fri, 4 Nov 2022 18:06:29 +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 2A4I6Tex035226 for ; Fri, 4 Nov 2022 18:06:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A4I6Tt3035225 for bugs@FreeBSD.org; Fri, 4 Nov 2022 18:06:29 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 267555] mmap of dsp device fails if sound buffer is not a multiple of page size Date: Fri, 04 Nov 2022 18:06:29 +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 Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED 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=1667585189; 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=JvvP3OVvdJF6oby/fWSCf25/ElEGmS2o1H2KvLHGlk8=; b=K/cvRpVWIalS5axfRxUD5GHEvyqQqYJrzohRetTsOUK9M7uA51MZSgGMPoX59IoGGV70iY QvS7VrOmjfHxrzQekuo9Xn7wX4AQF+Ajbr+zbo/d6OehiLOIobJ5GXRGAkLdaO/Z/RZYeT z27AkuBlBP/mXgYMLtlJikxZl+Sra390lXwXCND2dkAXCWkdvQ+zx6EcTS12uzIdw7+yA/ N5XgeGhaXSPbYPpCRnNmvbg/ybqXde7bKKbEWg+kiRV/SZSPxAWU72UQDyrzvE1mkWZRYN m4oAsrP1Q3JRioj6ofLdU/WiKdCewFtGgCBxA1c3WrTX2fStpYgqEqX1Fmz+ZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667585189; a=rsa-sha256; cv=none; b=kqm63rX3vhRDVsc0/xuaisYv2HKPylrvRlC/4WKw2DpNRoJVDIidofnQDwT6bleMGX15KG XRR75cDqVBTPig2k1S1VhW07aWHpTxiuaf+lptjqiz4P0mHVi7Ml4lCB/tozHqLP0xQZYu o5HzTyjHJB+UUXtIg2zGvYhW2+wW7TbIgoxfnwpz2JIK9d46YQdYPZ9QiuQ4+bADYTNS85 rU5iDzMvyizGOeLaGeUZXGAbe012kz9bA1eqXew+XW0OCTkA6W1R9Mn77ftgAXDsLoFvqV wmPFzPopaNe+xiwpoJt1AoZDq93mI/wigFLRZoK0o5RoRrn8tmHt+uo9Vownbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267555 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dad370f7658ba59811d02c04032ac33ef7= 87f752f commit ad370f7658ba59811d02c04032ac33ef787f752f Author: Florian Walpen AuthorDate: 2022-11-04 18:04:26 +0000 Commit: Hans Petter Selasky CommitDate: 2022-11-04 18:05:34 +0000 sound(4): Fix memory map of /dev/dsp devices when buffer size is not a multiple of PAGE_SIZE. By using sndbuf_getallocsize() instead of sndbuf_getsize() in dsp_mmap_single(). PR: 267555 MFC after: 1 week Sponsored by: NVIDIA Networking sys/dev/sound/pcm/dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=