Linux kernel source tree
Find a file
Jan Kara fde2497d2b fat: fix uninitialized field in nostale filehandles
When fat_encode_fh_nostale() encodes file handle without a parent it
stores only first 10 bytes of the file handle. However the length of the
file handle must be a multiple of 4 so the file handle is actually 12
bytes long and the last two bytes remain uninitialized. This is not
great at we potentially leak uninitialized information with the handle
to userspace. Properly initialize the full handle length.

Link: https://lkml.kernel.org/r/20240205122626.13701-1-jack@suse.cz
Reported-by: syzbot+3ce5dea5b1539ff36769@syzkaller.appspotmail.com
Fixes: ea3983ace6 ("fat: restructure export_operations")
Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Amir Goldstein <amir73il@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-02-22 15:38:55 -08:00
arch riscv: Kconfig: remove version dependency from CONFIG_CLANG_SUPPORTS_DYNAMIC_FTRACE 2024-02-22 15:38:54 -08:00
block
certs
crypto
Documentation panic: add option to dump blocked tasks in panic_print 2024-02-22 15:38:55 -08:00
drivers
fs fat: fix uninitialized field in nostale filehandles 2024-02-22 15:38:55 -08:00
include init: remove obsolete arch_call_rest_init() wrapper 2024-02-22 15:38:55 -08:00
init init: remove obsolete arch_call_rest_init() wrapper 2024-02-22 15:38:55 -08:00
io_uring
ipc
kernel panic: add option to dump blocked tasks in panic_print 2024-02-22 15:38:55 -08:00
lib lib/Kconfig.debug: update Clang version check in CONFIG_KCOV 2024-02-22 15:38:54 -08:00
LICENSES
mm
net
rust
samples
scripts const_structs.checkpatch: add bus_type 2024-02-22 15:38:55 -08:00
security fortify: drop Clang version check for 12.0.1 or newer 2024-02-22 15:38:54 -08:00
sound
tools init: remove obsolete arch_call_rest_init() wrapper 2024-02-22 15:38:55 -08:00
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

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.