mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
Add /sys/module/*/import_ns to expose imported namespaces for currently loaded modules. The file contains one namespace per line and only exists for modules that import at least one namespace. Previously, the only way for userspace to inspect the symbol namespaces a module imports is to locate the .ko on disk and invoke modinfo(8) to decompress/parse the metadata. The kernel validated namespaces at load time, but it was otherwise discarded. Exposing this data via sysfs provides a runtime mechanism to verify which namespaces are being used by modules. For example, this allows userspace to audit driver API access in Android GKI, which uses symbol namespaces to restrict vendor drivers from using specific kernel interfaces (e.g., direct filesystem access). Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com> [Sami: Updated the commit message to explain motivation.] Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
85 lines
2.8 KiB
Plaintext
85 lines
2.8 KiB
Plaintext
What: /sys/module/pch_phub/drivers/.../pch_mac
|
|
Date: August 2010
|
|
KernelVersion: 2.6.35
|
|
Contact: masa-korg@dsn.okisemi.com
|
|
Description: Write/read GbE MAC address.
|
|
|
|
What: /sys/module/pch_phub/drivers/.../pch_firmware
|
|
Date: August 2010
|
|
KernelVersion: 2.6.35
|
|
Contact: masa-korg@dsn.okisemi.com
|
|
Description: Write/read Option ROM data.
|
|
|
|
|
|
What: /sys/module/ehci_hcd/drivers/.../uframe_periodic_max
|
|
Date: July 2011
|
|
KernelVersion: 3.1
|
|
Contact: Kirill Smelkov <kirr@mns.spb.ru>
|
|
Description: Maximum time allowed for periodic transfers per microframe (μs)
|
|
|
|
Note:
|
|
USB 2.0 sets maximum allowed time for periodic transfers per
|
|
microframe to be 80%, that is 100 microseconds out of 125
|
|
microseconds (full microframe).
|
|
|
|
However there are cases, when 80% max isochronous bandwidth is
|
|
too limiting. For example two video streams could require 110
|
|
microseconds of isochronous bandwidth per microframe to work
|
|
together.
|
|
|
|
Through this setting it is possible to raise the limit so that
|
|
the host controller would allow allocating more than 100
|
|
microseconds of periodic bandwidth per microframe.
|
|
|
|
Beware, non-standard modes are usually not thoroughly tested by
|
|
hardware designers, and the hardware can malfunction when this
|
|
setting differ from default 100.
|
|
|
|
What: /sys/module/*/{coresize,initsize}
|
|
Date: Jan 2012
|
|
KernelVersion: 3.3
|
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
|
Description: Module size in bytes.
|
|
|
|
What: /sys/module/*/initstate
|
|
Date: Nov 2006
|
|
KernelVersion: 2.6.19
|
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
|
Description: Show the initialization state(live, coming, going) of
|
|
the module.
|
|
|
|
What: /sys/module/*/import_ns
|
|
Date: January 2026
|
|
KernelVersion: 7.1
|
|
Contact: linux-modules@vger.kernel.org
|
|
Description: List of symbol namespaces imported by this module via
|
|
MODULE_IMPORT_NS(). Each namespace appears on a separate line.
|
|
This file only exists for modules that import at least one
|
|
namespace.
|
|
|
|
What: /sys/module/*/taint
|
|
Date: Jan 2012
|
|
KernelVersion: 3.3
|
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
|
Description: Module taint flags:
|
|
== =====================
|
|
P proprietary module
|
|
O out-of-tree module
|
|
F force-loaded module
|
|
C staging driver module
|
|
E unsigned module
|
|
K livepatch module
|
|
N in-kernel test module
|
|
== =====================
|
|
|
|
What: /sys/module/grant_table/parameters/free_per_iteration
|
|
Date: July 2023
|
|
KernelVersion: 6.5 but backported to all supported stable branches
|
|
Contact: Xen developer discussion <xen-devel@lists.xenproject.org>
|
|
Description: Read and write number of grant entries to attempt to free per iteration.
|
|
|
|
Note: Future versions of Xen and Linux may provide a better
|
|
interface for controlling the rate of deferred grant reclaim
|
|
or may not need it at all.
|
|
Users: Qubes OS (https://www.qubes-os.org)
|