Re: [PATCH] input: fix input_open_file() accessing out-of-bound buffers

From
David Herrmann <hidden>
Date
2012-09-13 16:18:19
Reply to
David Herrmann, 2012-09-13
Hi Dmitry

On Thu, Sep 13, 2012 at 6:17 PM, David Herrmann
[off-list ref] wrote:
The "input_table" array is very small and we cannot be sure that the file
the user opens has a minor-ID below 256 (8 << 5). Hence, simply check that
the minor isn't out-of-bounds. If it is, return -ENODEV.

Signed-off-by: David Herrmann <redacted>
Cc: <stable@kernel.org>
This should be "Cc: [off-list ref]". Sorry for the typo.

Thanks
David
Thread (4 messages) 4 messages, 2 authors, last reply 2012-09-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help