No description
Find a file
NeilBrown b7de906cf9 md: avoid signed overflow in slot_store()
[ Upstream commit 3bc5729227 ]

slot_store() uses kstrtouint() to get a slot number, but stores the
result in an "int" variable (by casting a pointer).
This can result in a negative slot number if the unsigned int value is
very large.

A negative number means that the slot is empty, but setting a negative
slot number this way will not remove the device from the array.  I don't
think this is a serious problem, but it could cause confusion and it is
best to fix it.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-05 11:15:39 +02:00
arch sh: sanitize the flags on sigreturn 2023-04-05 11:15:36 +02:00
block block: bio-integrity: Copy flags when bio_integrity_payload is cloned 2023-03-11 16:31:33 +01:00
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist 2022-06-25 11:49:16 +02:00
crypto crypto: rsa-pkcs1pad - Use akcipher_request_complete 2023-03-11 16:31:37 +01:00
Documentation intel-ethernet: rename i40evf to iavf 2023-04-05 11:15:32 +02:00
drivers md: avoid signed overflow in slot_store() 2023-04-05 11:15:39 +02:00
firmware Fix built-in early-load Intel microcode alignment 2020-01-23 08:21:29 +01:00
fs ocfs2: fix data corruption after failed write 2023-04-05 11:15:38 +02:00
include HID: core: Provide new max_buffer_size attribute to over-ride the default 2023-03-22 13:27:12 +01:00
init random: handle latent entropy and command line from random_init() 2022-06-25 11:49:11 +02:00
ipc ipc/sem: Fix dangling sem_array access in semtimedop race 2022-12-08 11:18:35 +01:00
kernel sched/fair: Sanitize vruntime of entity being migrated 2023-04-05 11:15:38 +02:00
lib lib/mpi: Fix buffer overrun when SG is too long 2023-03-11 16:31:35 +01:00
LICENSES
mm migrate: hugetlb: check for hugetlb shared PMD in node migration 2023-02-22 12:47:19 +01:00
net erspan: do not use skb_mac_header() in ndo_start_xmit() 2023-04-05 11:15:34 +02:00
samples samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe() 2023-01-18 11:30:28 +01:00
scripts kbuild: generate modules.order only in directories visited by obj-y/m 2023-03-17 08:31:43 +01:00
security ima: Align ima_file_mmap() parameters with mmap_file LSM hook 2023-03-11 16:31:51 +01:00
sound ALSA: ice1712: Do not left ice->gpio_mutex locked in aureon_add_controls() 2023-03-11 16:31:52 +01:00
tools tools/iio/iio_utils:fix memory leak 2023-03-11 16:32:01 +01:00
usr initramfs: restore default compression behavior 2020-04-13 10:44:59 +02:00
virt KVM: arm64: vgic: Fix exit condition in scan_its_table() 2022-11-03 23:52:24 +09:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS intel-ethernet: rename i40evf to iavf 2023-04-05 11:15:32 +02:00
Makefile Linux 4.19.279 2023-03-22 13:27:13 +01:00
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.
See Documentation/00-INDEX for a list of what is contained in each file.

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.