From nobody Sat Mar 19 23:52:39 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 6C9141A18A37 for ; Sat, 19 Mar 2022 23:52:40 +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 4KLd3W6svjz4nL1 for ; Sat, 19 Mar 2022 23:52:39 +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 CCCF91C9F3 for ; Sat, 19 Mar 2022 23:52:39 +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 22JNqd9F049183 for ; Sat, 19 Mar 2022 23:52:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22JNqdu5049182 for bugs@FreeBSD.org; Sat, 19 Mar 2022 23:52:39 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 23:52:39 +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: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=1647733960; 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=orlZGqyQ4MIiodG9OJS951cmDLN3Cj/dvjwDTm0YLLU=; b=h1oFq2DOsFcGahjseOeP8iK9qtOJh84kVUg+hYE8t/ff/89G7Jduxcbny+eV28hVyrFslY zLU21CbK37VQKH97cwBiW2POhmMMYqgS2OTEAwsOlMNn7gx/SWu08VxKSpqzzOtYywOjXp 9R52EMFinmBZ9fHtTVOrJmcm0hZlUznsv7wT4DtKviVcToQ1Y/zpJ4QMWmO8citbq+axCX 1siDQ+Mz2ZNHYiPMmkz8/X9OxJfFtCAzzz0JM+WvdAmdTOVd865FuqnhWNWe17Fd26KiFj bdM5tehDgv1b7ZFFN6Viapq/q7QyiiRGEA7SJo8jzYVX3Sr6znFvJast3ZP9Ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647733960; a=rsa-sha256; cv=none; b=IqcnmGN1zIzzhtxzDMKiwPXQvUFsIssrwSh9E56ewoIozEXXGscuLhar/OrxWrsz9Sgi20 U+m6shsdTQ9Di/Hr//aseBrVKFSFfVnTSPBh3GOuvz+32/hv+NczOTBP2XSOdPRxGJuFZw b9TB74UcogGKscSX2P7trQvX8PpcnOn9TVoSxTPMaFAZyACbGpcJVfOXjWHWaT35ypvV+m Rs1Yk4IMsVUGGlO+j6+xL9mTJ0HOAIXJKWsTX6HJ9Cvy6ksyes59qgrDXEljHj5i+UZXv5 erDuCBw3DAeHh1O3s5zTVPOxhGLU9OiUea25jfDkTL2NlQ3CE4MZnNU2EIyR6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262671 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hps@FreeBSD.org --- Comment #5 from Ed Maste --- We only compare against mi->dev so it shouldn't matter if it's an invalid value: if (d->mixer_dev !=3D NULL && d->mixer_dev->si_drv1 !=3D NU= LL && ((mi->dev =3D=3D -1 && d->mixer_dev =3D=3D i_dev) || mi->dev =3D=3D nmix)) { Indeed setting it to an explicit invalid value is fine, ktrace shows: 36100 a.out CALL ioctl(0x3,SNDCTL_MIXERINFO,0x820ea1188) 36100 a.out RET ioctl -1 errno 22 Invalid argument 36100 a.out CALL exit(0) What version (git hash if on main) are you using? --=20 You are receiving this mail because: You are the assignee for the bug.=