Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 16:37:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206581] bxe_ioctl_nvram handler is faulty
Message-ID:  <bug-206581-8-N0rAHxgWyl@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206581-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206581-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=3D206581

--- Comment #1 from CTurt <ecturt@gmail.com> ---
Sorry, forgot about the check:

    if (len > sizeof(struct bxe_nvram_data)) {

So, the example I suggested wouldn't work.

But the lack of `copyin` being checked, is still valid. And there probably
should be some bound checks anyway.

--=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-206581-8-N0rAHxgWyl>