Generate modules.builtin.alias from match ids
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest11 patches 11 repliesIn review
- v910 patches 28 repliesSuperseded
- v89 patches 4 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 5 patches | 5 replies | Superseded |
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | rockchip-mailbox: Remove unneeded MODULE_DEVICE_TABLEdrivers/ | +0 | 0 replies | |
| 2/11 | scsi/BusLogic: Always include device id tabledrivers/ | +0 | 0 replies | |
| 3/11 | stmpe-spi: Fix MODULE_DEVICE_TABLE entriesdrivers/ | +0 | 2 replies | |
| 4/11 | module.h: MODULE_DEVICE_TABLE for built-in modulesinclude/ | +29 | 1 reply | |
| 5/11 | modpost: Track module name for built-in modulesscripts/ scripts/ | +36 | 2 replies | |
| 6/11 | modpost: Add -b option for emitting built-in aliasesscripts/ scripts/ | +29 | 1 reply | |
| 7/11 | file2alias.c: Implement builtin.alias generationscripts/ | +40 | 1 reply | |
| 8/11 | build: Add modules.builtin.alias.gitignore Makefile scripts/ | +17 | 3 replies | |
| 9/11 | Documentation: Include modules.builtin.aliasDocumentation/ | +7 | 0 replies | |
| 10/11 | Documentation: Update writing_usb_driver for built-in modulesDocumentation/ | +3 | 0 replies | |
| 11/11 | Documentation: add USB authorization document to driver-apiDocumentation/ Documentation/ | +72 | 1 reply |
Reviews trailers per patch
1 of 11 patches has a Reviewed-by or Acked-by.
| Patch | Luis Chamberlain |
|---|---|
| 1/11 | |
| 2/11 | |
| 3/11 | |
| 4/11 | |
| 5/11 | |
| 6/11 | |
| 7/11 | |
| 8/11 | |
| 9/11 | R-b |
| 10/11 | |
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v10 00/11] Generate modules.builtin.alias from match ids
Generate modules.builtin.alias from match ids
This patch series (v10) generates modules.builtin.alias during modpost. The goal is for tools like USBGuard to leverage not only modules.aliases but also modules.builtin.aliases to associate devices with the modules that may be bound before deciding to authorize a device or not. This is particularly useful in cases when new devices of a particular type shouldn't be allowed part of the time like for lock screens.
Also included in this series are added documentation, style fixes and fixes for build breakages for built-in modules that relied on MODULE_DEVICE_TABLE being a no-op. Some of these were typos in device table name that do not need aliases and one ifdef-ed out the device table.
---
Generate modules.builtin.alias from match ids
=============================================
This series (v10) removes the cc:stable commit tags since the fixes only are needed going forward. It also includes documentation updates and unifies the MODULE_DEVICE_TABLE macro for both the builtin and module case.
Additionally, rather than fixing the typo-ed device table names the commits were updated to drop the broken MODULE_DEVICE_TABLE invocations, since they belong to device types that would not benefit from the intended purpose of modules.builtin.alias.
Note, cover letters were first added in v5.
RFC (broken patch): https://lore.kernel.org/lkml/CAJzde042-M4UbpNYKw0eDVg4JqYmwmPYSsmgK+kCMTqsi+-2Yw@mail.gmail.com/
v1 (missing v1 label): https://lore.kernel.org/lkml/[email protected]/
v2 (missing v2 label): https://lore.kernel.org/lkml/[email protected]/
v3: https://lore.kernel.org/lkml/[email protected]/
v4: https://lore.kernel.org/lkml/[email protected]/
v5: https://lore.kernel.org/lkml/[email protected]/
v6: https://lore.kernel.org/lkml/[email protected]/
v7: https://lore.kernel.org/lkml/[email protected]/
v8: https://lore.kernel.org/lkml/[email protected]/
v9: https://lore.kernel.org/lkml/[email protected]/
v10: This version
Patch series status
-------------------
This series should be close to ready.
Acknowledgements
----------------
Thanks to Greg Kroah-Hartman, Christophe Leroy, Luis Chamberlain and the other Linux maintainers for being patient with me as I have worked through learning the kernel workflow to get this series into a more presentable state.
Thanks to Luis Chamberlain for raising the alternative of using kmod to address the primary motivation of the patch series.
Thanks to Dmitry Torokhov and Benson Leung for feedback on the USB authorization documentation for the driver API.
Also, thanks to Intel's kernel test robot <[email protected]> for catching issues that showed up with different kernel configurations.
Allen Webb (11):
rockchip-mailbox: Remove unneeded MODULE_DEVICE_TABLE scsi/BusLogic: Always include device id table
stmpe-spi: Fix MODULE_DEVICE_TABLE entries module.h: MODULE_DEVICE_TABLE for built-in modules
modpost: Track module name for built-in modules
modpost: Add -b option for emitting built-in aliases file2alias.c: Implement builtin.alias generation
build: Add modules.builtin.alias
Documentation: Include modules.builtin.alias
Documentation: Update writing_usb_driver for built-in modules
Documentation: add USB authorization document to driver-api
.gitignore | 1 + .../driver-api/usb/authorization.rst | 71 ++++++++++++++ Documentation/driver-api/usb/index.rst | 1 + .../driver-api/usb/writing_usb_driver.rst | 3 + Documentation/kbuild/kbuild.rst | 7 ++ Makefile | 1 + drivers/mailbox/rockchip-mailbox.c | 1 - drivers/mfd/stmpe-spi.c | 1 - drivers/scsi/BusLogic.c | 2 - include/linux/module.h | 36 ++++++-- scripts/Makefile.modpost | 15 +++ scripts/mod/file2alias.c | 92 ++++++++++++++----- scripts/mod/modpost.c | 30 +++++- scripts/mod/modpost.h | 2 + 14 files changed, 229 insertions(+), 34 deletions(-) create mode 100644 Documentation/driver-api/usb/authorization.rst
Signature · 1 line
2.39.2