Bug#864341: systemd-sysctl: failed to apply sysctl config at bootup

Michael Biebl biebl at debian.org
Thu Jul 13 12:52:55 BST 2017


Am 13.07.2017 um 13:32 schrieb Arturo Borrero Gonzalez:
> On 13 July 2017 at 13:19, Michael Biebl <biebl at debian.org> wrote:
>>
>> systemd-modules-load uses libkmod/kmod_module_probe_insert_module() to
>> load the modules:
>> https://github.com/systemd/systemd/blob/master/src/modules-load/modules-load.c
>>
>>
>> I.e. it's not doing something fancy here and uses the same functionality
>> as modprobe/insmod does.
> 
> That code uses kmod_module_probe_insert_module(mod, probe_flags, NULL,
> NULL, NULL, NULL) [0],
> and nothe the NULL argument, because in the libkmod source [1] I just
> found that:
> 
> [...]
> * If @run_install is NULL, this function will fork and exec by calling
> [...]
> 
> So the code is forking, and thus the race condition may happen here.

Well, it uses system() to execute the command which is supposed to only
return once the forked command has finished. So I don't see the race
condition. Can you elaborate?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170713/a161e49d/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list