1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Petr Pavlu a6323bd4e6
module: Prevent silent truncation of module name in delete_module(2)
Passing a module name longer than MODULE_NAME_LEN to the delete_module
syscall results in its silent truncation. This really isn't much of
a problem in practice, but it could theoretically lead to the removal of an
incorrect module. It is more sensible to return ENAMETOOLONG or ENOENT in
such a case.

Update the syscall to return ENOENT, as documented in the delete_module(2)
man page to mean "No module by that name exists." This is appropriate
because a module with a name longer than MODULE_NAME_LEN cannot be loaded
in the first place.

Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Link: https://lore.kernel.org/r/20250630143535.267745-2-petr.pavlu@suse.com
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
2025-07-31 13:57:21 +02:00
2025-07-30 19:26:49 -07:00
2025-07-29 12:15:39 -07:00
2025-07-28 17:58:52 -07:00
2025-07-30 19:26:49 -07:00
2025-07-30 19:26:49 -07:00
2025-07-30 09:58:50 -07:00
2025-07-29 18:58:22 -07:00
2025-07-28 16:30:12 -07:00
2025-07-28 13:43:25 -07:00
2025-07-30 11:32:38 -07:00
2025-07-30 09:58:50 -07:00
2025-07-30 19:26:49 -07:00
2025-07-30 19:26:49 -07:00
2025-07-30 16:04:10 -07:00
2025-07-29 20:28:38 -07:00
2025-07-30 17:14:01 -07:00
2025-05-06 16:39:25 +10:00
2025-07-19 19:26:16 -07:00
2025-02-19 14:53:27 -07:00
2025-07-30 19:26:49 -07:00
2025-07-28 17:16:12 -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 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.
Languages
C 97.1%
Assembly 1%
Shell 0.6%
Rust 0.4%
Python 0.4%
Other 0.3%