Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2016 22:29:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206579] amr(4): Multiple vulnerabilities in AMR ioctl handler
Message-ID:  <bug-206579-8-167JOoBgpT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206579-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206579-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206579

CTurt <ecturt@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
         Resolution|---                         |Not A Bug

--- Comment #3 from CTurt <ecturt@gmail.com> ---
There are similarities in other drivers, like the `mfi` code.

For Linux commands, like `MFI_LINUX_CMD_2`, `copyin` is used:

    error =3D copyin(arg, &l_ioc, sizeof(l_ioc));

But for FreeBSD commands, such as `MFIIO_QUERY_DISK`, `arg` is directly
dereferenced:

    qd =3D (struct mfi_query_disk *)arg;
    qd->present =3D 1;

Since both drivers seem to follow this same pattern, I believe the handling=
 of
`addr` is probably correct.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206579-8-167JOoBgpT>