From nobody Sat Mar 19 16:36:25 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 5EA8E1A13482 for ; Sat, 19 Mar 2022 16:36:26 +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 4KLRNB0D33z3tLZ for ; Sat, 19 Mar 2022 16:36:26 +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 D90BB16BFD for ; Sat, 19 Mar 2022 16:36:25 +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 22JGaPIP018337 for ; Sat, 19 Mar 2022 16:36:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22JGaP9R018336 for bugs@FreeBSD.org; Sat, 19 Mar 2022 16:36:25 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 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl Date: Sat, 19 Mar 2022 16:36:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: alex@alexslomka.xyz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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=1647707786; 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; bh=gWnpjnRI/pXiLnolxhVl4dbL1NOaBwHe37Ec/J1Hvyk=; b=JsGr9g9SbVW/iRtKNUjtMdmvfsH3jHRW6x/evjcmSW53iuUTu8p7ncaWZa4WuH9bMflWem 5dxfUiHhGgFtL8naVd5vuE70SQjU4PE3/cVUdmlgFHft5ZHJK+E1iu64r10xn2FdqcbLvC +JeBjClX7rvBICrZXqA2ruoZjS5Mah4dGiAtwxtpexuUSHgzL+6sUhPkdqrEPyDDtn2X1g HkvUXcOFLBseqVJLkFo586VAGfJ9Kg73+/lutTvi2t6AHJozZCm4uPp5rSR0F/3j5hOFKC oW4KYJgGl78i42sQmbGJqtrU+CpuheLNcP7YVu2Dt6Ua+IHn2PfHrScENM+Z0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647707786; a=rsa-sha256; cv=none; b=tr7y1Y7jcsY+nD32LaxqebDYOA8GIE0SPn2wMs48JuR4MA9003HGqAB1xQp0TxVFPfM160 BdVMcdWudwCAPTNeGYrcEvrcO7wiGl8tWQv3H7h/BgTP45jCzwfR7Av1piL5+Qq5BZLl1E 2eCMm7JfmuhaxjKbk4XN8VFW3/l71HI1VaNzyiYW/h45lrjYi0iqsInuos67kaH1JEDZRe wFAhtA663pEnYvnzKavQw9CdAGpNQKI19cMJbRNXP395w1MXf2a7BUqP6Z+2dipuyb/sBF QA356XwW11KoK+0ErY772FVURzHF1R2eiFZ7/07HqrcxWz1QCyfF9nK3lQVcnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262671 Bug ID: 262671 Summary: Kernel panics after a invalid SNDCTL_MIXERINFO ioctl Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: alex@alexslomka.xyz Created attachment 232581 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232581&action= =3Dedit A patch that should fix brought up issue. If you call the `SNDCTL_MIXERINFO` ioctl with a `oss_mixerinfo` structure w= hich has a uninitialized `dev` field, a kernel panic is triggered. I know that in this case the `dev` field is expected to be set, but I still think that the kernel should not panic if a malicious/bad program forgets to set it. --=20 You are receiving this mail because: You are the assignee for the bug.=