Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Mar 2022 23:52:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl
Message-ID:  <bug-262671-227-xyw5txSbYB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262671-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262671

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hps@FreeBSD.org

--- Comment #5 from Ed Maste <emaste@freebsd.org> ---
We only compare against mi->dev so it shouldn't matter if it's an invalid
value:

                if (d->mixer_dev != NULL && d->mixer_dev->si_drv1 != NULL &&
                    ((mi->dev == -1 && d->mixer_dev == i_dev) ||
                    mi->dev == 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?

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262671-227-xyw5txSbYB>