Bug#1012787: systemd: Sometimes systemd mount check fails

nobuhiro1.iwamatsu at toshiba.co.jp nobuhiro1.iwamatsu at toshiba.co.jp
Tue Jun 14 03:47:43 BST 2022


Package: systemd
Version: 241-7~deb10u8
Severity: important
Tags: patch buster

Dear maintainer,

When booting with systemd, sometimes (about once every 10,000 times) system mount check fails.
The mount is successful, but systemd's mount check fails.

```
...
May 25 19:24:33 local systemd[1]: Started Flush Journal to Persistent Storage.
-- Subject: A start job for unit systemd-journal-flush.service has finished successfully
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit systemd-journal-flush.service has finished successfully.
--
-- The job identifier is 37.
May 25 19:24:33 local systemd[1]: home.mount: Mount process finished, but there is no mount.
May 25 19:24:33 local kernel: EXT4-fs (sda3): mounted filesystem with journalled data mode. Opts: data=journal 
May 25 19:24:33 local systemd[1]: home.mount: Failed with result 'protocol'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit home.mount has entered the 'failed' state with result 'protocol'.
May 25 19:24:33 local systemd[1]: Failed to mount /home.
-- Subject: A start job for unit home.mount has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit home.mount has finished with a failure.
--
....
```

This has already been reported[0] on Upstream and some fix suggestions have been created.
I applied patches[1][2] included in upstream to 241-7~deb10u8 and tested it about 200,000 times
but the problem no longer reappears. Would you consider applying them?

Best regards,
  Nobuhiro

[0]: https://github.com/systemd/systemd/issues/10872
[1]: https://github.com/systemd/systemd/pull/13097

  fcd8e119c2 mount: simplify /proc/self/mountinfo handler
  350804867d mount: rescan /proc/self/mountinfo before processing waitid() results
  bcce581d65 swap: scan /proc/swaps before processing waitid() results

[2]: https://github.com/systemd/systemd/pull/14234
  1d086a6e59 mount: mark an existing "mounting" unit from /proc/self/mountinfo as "just_mounted"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-mount-units-fail-with-Mount-process-finished-but.patch
Type: application/octet-stream
Size: 15943 bytes
Desc: 0001-Fix-mount-units-fail-with-Mount-process-finished-but.patch
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220614/9f197b3d/attachment-0001.obj>


More information about the Pkg-systemd-maintainers mailing list