Skip to content
Snippets Groups Projects
user avatar
Arnd Bergmann authored
My final cleanup patch for sys_compat_ioctl() introduced a regression on
the FIONREAD ioctl command, which is used for both regular and special
files, but only works on regular files after my patch, as I had missed
the warning that Al Viro put into a comment right above it.

Change it back so it can work on any file again by moving the implementation
to do_vfs_ioctl() instead.

Fixes: 77b90401 ("compat_ioctl: simplify the implementation")
Reported-and-tested-by: default avatarChristian Zigotzky <chzigotzky@xenosoft.de>
Reported-and-tested-by: default avataryouling257 <youling257@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
0a061743
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.