From: Michal Suchanek <msuchanek@suse.de>
To: linux-modules@vger.kernel.org
Cc: Lucas De Marchi <lucas.de.marchi@gmail.com>,
Jean Delvare <jdelvare@suse.de>,
Michal Suchanek <msuchanek@suse.de>
Subject: [PATCH v3 0/3] Fix dependency file corruption with parallel depmod invocation
Date: Mon, 17 Dec 2018 23:46:26 +0100 [thread overview]
Message-ID: <20181217224629.22687-1-msuchanek@suse.de> (raw)
In-Reply-To: <20181207154557.5865-1-msuchanek@suse.de>
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(-)
--
2.19.2
next prev parent reply other threads:[~2018-12-17 22:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-07 15:45 [PATCH] depmod: Prevent module dependency files corruption due to parallel invocation Michal Suchanek
2018-12-10 21:29 ` [PATCH v2 0/3] Fix dependency file corruption with parallel depmod invocation Michal Suchanek
2018-12-10 21:29 ` [PATCH v2 1/3] depmod: prevent module dependency files missing during " Michal Suchanek
2018-12-10 21:29 ` [PATCH v2 2/3] depmod: prevent module dependency files corruption due to parallel invocation Michal Suchanek
2018-12-17 18:10 ` Lucas De Marchi
2018-12-17 22:07 ` Michal Suchánek
2018-12-18 6:47 ` Yauheni Kaliuta
2018-12-18 10:26 ` Michal Suchánek
2018-12-10 21:29 ` [PATCH v2 3/3] depmod: shut up gcc insufficinet buffer warning Michal Suchanek
2018-12-17 18:19 ` Lucas De Marchi
2018-12-17 22:46 ` Michal Suchanek [this message]
2018-12-17 22:46 ` [PATCH v3 1/3] depmod: prevent module dependency files missing during depmod invocation Michal Suchanek
2018-12-17 22:46 ` [PATCH v3 2/3] depmod: prevent module dependency files corruption due to parallel invocation Michal Suchanek
2018-12-17 22:46 ` [PATCH v3 3/3] depmod: shut up gcc insufficinet buffer warning Michal Suchanek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181217224629.22687-1-msuchanek@suse.de \
--to=msuchanek@suse.de \
--cc=jdelvare@suse.de \
--cc=linux-modules@vger.kernel.org \
--cc=lucas.de.marchi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).