Peilin Ye 25a097f520 HID: hiddev: Fix slab-out-of-bounds write in hiddev_ioctl_usage()
`uref->usage_index` is not always being properly checked, causing
hiddev_ioctl_usage() to go out of bounds under some cases. Fix it.

Reported-by: syzbot+34ee1b45d88571c2fa8b@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?id=f2aebe90b8c56806b050a20b36f51ed6acabe802
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2020-08-17 12:21:09 +02:00
2020-08-09 14:10:26 -07:00
2020-08-06 16:50:07 -07:00
2020-08-09 14:10:26 -07:00
2020-08-09 13:58:04 -07:00
2020-08-09 13:58:04 -07:00
2020-08-07 18:29:15 -07:00
2020-08-09 14:10:26 -07:00
2020-08-09 14:10:26 -07:00
2020-08-09 14:10:26 -07:00
2020-08-09 13:58:04 -07:00
2020-08-09 14:10:26 -07:00
2020-08-09 14:10:26 -07:00
2020-08-06 14:27:31 -07:00
2020-08-07 18:29:15 -07:00
2020-08-06 12:59:31 -07:00
2020-08-07 18:48:15 -07:00
2020-08-09 14:10:26 -07:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Linux kernel source tree
Readme 3.3 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%