Skip to content

module: Strict per-modname namespaces

Peter Zijlstra linux-kbuild linux-modules lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 15 repliesIn review
  2. v17 patches 23 repliesSuperseded

Changes in v3 from the cover letter

- switch to "module:" prefix (Masahiro)
- removed some patch noise (Masahiro)
- strstarts() and strlen() usage for prefixes (Masahiro)
- simpler ___EXPORT_SYMBOL() changes (Masahiro)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5modpost: Use for() loopscripts/mod/modpost.c+3 -51 reply
2/5module: Add module specific symbol namespace supportkernel/module/main.c scripts/mod/modpost.c+41 -35 replies
3/5module: Extend the MODULE_ namespace parsingkernel/module/main.c scripts/mod/modpost.c+68 -43 replies
4/5module: Account for the build time module name manglingkernel/module/main.c+25 -11 reply
5/5module: Provide EXPORT_SYMBOL_GPL_FOR_MODULES() helperDocumentation/core-api/symbol-namespaces.rst include/linux/export.h+32 -21 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMasahiro YamadaChristoph HellwigSean ChristophersonGreg Kroah-HartmanPetr Pavlu
SeriesA-b
1/5
2/5R-b
3/5R-b
4/5T-b R-b
5/5Requested-by Requested-by R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] module: Strict per-modname namespaces

Hi!

Implement means for exports to be available to an explicit list of named modules. By explicitly limiting the usage of certain exports, the abuse potential/risk is greatly reduced.

Changes since v2:

- switch to "module:" prefix (Masahiro)
- removed some patch noise (Masahiro)
- strstarts() and strlen() usage for prefixes (Masahiro)
- simpler ___EXPORT_SYMBOL() changes (Masahiro)

Not making using of glob_match() / fnmatch(); this would result in more complicated code for very little gain.