Skip to content

module: Fix minor problems related to MODULE_NAME_LEN

Petr Pavlu linux-modules lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5module: Prevent silent truncation of module name in delete_module(2)kernel/module/main.c+6 -41 reply
2/5module: Remove unnecessary +1 from last_unloaded_module::name sizekernel/module/main.c+1 -11 reply
3/5module: Restore the moduleparam prefix length checkinclude/linux/moduleparam.h+2 -33 replies
4/5tracing: Replace MAX_PARAM_PREFIX_LEN with MODULE_NAME_LENkernel/trace/trace.c+1 -12 replies
5/5module: Rename MAX_PARAM_PREFIX_LEN to __MODULE_NAME_LENinclude/linux/module.h include/linux/moduleparam.h+9 -51 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDaniel GomezSteven Rostedt (Google)
1/5R-b
2/5R-b
3/5R-b
4/5R-b A-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] module: Fix minor problems related to MODULE_NAME_LEN

Fix a few minor problems related to MODULE_NAME_LEN and MAX_PARAM_PREFIX_LEN, and clean up their usage.

Petr Pavlu (5):
module: Prevent silent truncation of module name in delete_module(2)
module: Remove unnecessary +1 from last_unloaded_module::name size
module: Restore the moduleparam prefix length check
tracing: Replace MAX_PARAM_PREFIX_LEN with MODULE_NAME_LEN
module: Rename MAX_PARAM_PREFIX_LEN to __MODULE_NAME_LEN

 include/linux/module.h      |  2 +-
 include/linux/moduleparam.h | 15 +++++++++------
 kernel/module/main.c        | 12 +++++++-----
 kernel/trace/trace.c        |  2 +-
 4 files changed, 18 insertions(+), 13 deletions(-)

base-commit: d0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af

Signature · 1 line
2.49.0