Go to file
Alexey Dobriyan 697ba0b6ec block: fix integer overflow in BLKSECDISCARD
I independently rediscovered

	commit 22d24a544b
	block: fix overflow in blk_ioctl_discard()

but for secure erase.

Same problem:

	uint64_t r[2] = {512, 18446744073709551104ULL};
	ioctl(fd, BLKSECDISCARD, r);

will enter near infinite loop inside blkdev_issue_secure_erase():

	a.out: attempt to access beyond end of device
	loop0: rw=5, sector=3399043073, nr_sectors = 1024 limit=2048
	bio_check_eod: 3286214 callbacks suppressed

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Link: https://lore.kernel.org/r/9e64057f-650a-46d1-b9f7-34af391536ef@p183
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-09-04 08:01:30 -06:00
Documentation
LICENSES
arch
block block: fix integer overflow in BLKSECDISCARD 2024-09-04 08:01:30 -06:00
certs
crypto
drivers nbd: fix race between timeout and normal completion 2024-08-30 14:46:59 -06:00
fs block: rework bio splitting 2024-08-29 04:32:32 -06:00
include block: constify the lim argument to queue_limits_max_zone_append_sectors 2024-08-29 04:32:32 -06:00
init
io_uring
ipc
kernel
lib
mm
net
rust
samples
scripts Kbuild fixes for v6.11 2024-07-28 14:02:48 -07:00
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: move the BFQ io scheduler to orphan state 2024-09-03 11:22:27 -06:00
Makefile Linux 6.11-rc1 2024-07-28 14:19:55 -07:00
README

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 reStructuredText 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.