Skip to content

Fix dependency file corruption with parallel depmod invocation

Michal Suchanek linux-modules 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- remove superfluous whitespace, open flag, and duplicate nul termination

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3depmod: prevent module dependency files missing during depmod invocation.tools/depmod.c+0 -10 replies
2/3depmod: prevent module dependency files corruption due to parallel invocation.tools/depmod.c+7 -20 replies
3/3depmod: shut up gcc insufficinet buffer warning.tools/depmod.c+35 -160 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Fix dependency file corruption with parallel depmod invocation

The files produced by depmod may be corrupted if multiple depmod processes running in parallel try to update them. Since there is nothing stopping the user running depmod in parallel this looks like a bug in depmod.

v3:
- remove superfluous whitespace, open flag, and duplicate nul termination

v2:
- split into separate patches, add gcc warning fix

Michal Suchanek (3):
depmod: prevent module dependency files missing during depmod
invocation.
depmod: prevent module dependency files corruption due to parallel
invocation.
depmod: shut up gcc insufficinet buffer warning.

 tools/depmod.c | 61 ++++++++++++++++++++++++++++++++++----------------
 1 file changed, 42 insertions(+), 19 deletions(-)
Signature · 1 line
2.19.2