From nobody Sun Mar 20 09:37:09 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 DA54F1A12269 for ; Sun, 20 Mar 2022 09:37:09 +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 4KLt1x4QCgz3NR5 for ; Sun, 20 Mar 2022 09:37:09 +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 742E624C9D for ; Sun, 20 Mar 2022 09:37:09 +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 22K9b9bk049774 for ; Sun, 20 Mar 2022 09:37:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22K9b9cp049773 for bugs@FreeBSD.org; Sun, 20 Mar 2022 09:37:09 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: Sun, 20 Mar 2022 09:37:09 +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: 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: 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=1647769029; 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=V+7+1riryyzOd1t2HRNMdrgJXW+BJHCAJZ5xxG52q8o=; b=UY4lI2lkz4Tln4zmOcApJY5LG23AHX5qU/T5Jce0uc0Ka3+42x0dobnEQ8yZegXirwywfv ldfQ7t7XPtEtsMab3RZKG/W7IU78Os5f+nfsHA7Ixxs17dWaN8U7gk211dBgKrGuIx7ckl ccw1w0bcFkV6UPOgQurCXCk4cTKI1H3i8QisEohv1qLZZqVlXWXV4G08N/DICTEa5rMi2l kKLbnFLAgBUDYvy1hCEslzlnsttRZEmATwC6iQU+hMnwnpiJFm9YXeSHy2shkuqLrU+UxX uDfvfkPqiLd2M7HKRqdiVhks6F9s0/7A28xAiQ+iDPLKE8mb/UvzXook00ptow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647769029; a=rsa-sha256; cv=none; b=DcQROwy7A0HYzgvRvcCaoC8IxZamEOo1zUU8aszHSEDqsHXmjyEwCIwroEnZ+ZkpXMalCe TCDVD6vV9fqjNu3WS8h34xL9h/7I62n446Da++gufHVN5LEJanRKG52EqC40boiUagAUk3 pud9M0h17SNCPu3/+X3jG6GWr0Mr6EzLr5USiblq1zEwHMleFBw9JtkaXCr4ANQcfaRrlj IdjIqXn5yhl1gKs84Td1M9tTrD/rKWV9lOs8lHWynzPPBQNxpKOo3xni02nH1GhwRRcpOC hNhFkj/Gn8tT/U46K9b9nYcTG9mehT5y7vMn+hWcbt9+h9xeVVstL0U7blQG0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262671 --- Comment #7 from Aleksander Slomka --- OK, I think I know what's going on. So It looks like in my case `devclass_get_maxunit` is returning a bigger value than the actual number of devices. That's why on the 4th iteration of the `for` loop `devclass_get_so= ftc` returns `NULL` (I do not have a mixer device with the unit number 4) `mixer -a` returns this: pcm0:mixer: on hdaa0 (play/rec) (default) ... pcm1:mixer: on hdaa0 (play/rec) ... pcm2:mixer: on hdaa0 (play) ... pcm3:mixer: on hdaa1 (play) ... The highest unit number here is 3, but when I checked in kgdb `devclass_get_maxunit(pcm_devclass)` returns the value `5`. --=20 You are receiving this mail because: You are the assignee for the bug.=