Skip to content

module: Show the last unloaded module's taint flag(s)

Aaron Tomlin linux-modules lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v12 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3module: Modify module_flags() to accept show_state argumentkernel/module/internal.h kernel/module/main.c kernel/module/procfs.c+9 -60 replies
2/3module: Use strscpy() for last_unloaded_modulekernel/module/main.c+1 -10 replies
3/3module: Show the last unloaded module's taint flag(s)kernel/module/main.c+11 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] module: Show the last unloaded module's taint flag(s)

Hi Luis, Christophe,

In addition to the previous iteration, since this particular series does indeed modify last_unloaded_module, I decided to use strscpy() as a replacement for the now deprecated strlcpy().

Changes since v1 [1][2]:

- Replaced the deprecated strlcpy() for strscpy()
- Replaced last_unloaded_module[] with an anonymous structure i.e. last_unloaded_module.name and last_unloaded_module.taints
- Ensured we modify last_unloaded_module.taints only when required

[1]: https://lore.kernel.org/lkml/[email protected]/
[2]: https://lore.kernel.org/lkml/[email protected]/

Aaron Tomlin (3):
module: Modify module_flags() to accept show_state argument
module: Use strscpy() for last_unloaded_module
module: Show the last unloaded module's taint flag(s)

 kernel/module/internal.h |  2 +-
 kernel/module/main.c     | 27 ++++++++++++++++++---------
 kernel/module/procfs.c   |  2 +-
 3 files changed, 20 insertions(+), 11 deletions(-)
Signature · 1 line
2.34.3