snapd mountinfo parser doesn't handle the special "\040(deleted)" suffix
Bug #1830024 reported by
Zygmunt Krynicki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
In Progress
|
Low
|
Arseniy Aharonov |
Bug Description
The kernel can include a special in one of the strings returned in /proc/pid/
I realised this by reviewing a patch https:/
We don't currently expect to see such mount points during normal operation but then again, we should handle it explicitly.
Changed in snapd: | |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snapd: | |
assignee: | Zygmunt Krynicki (zyga) → nobody |
Changed in snapd: | |
status: | Triaged → In Progress |
To post a comment you must log in.
I've succeeded to reproduce the behaviour described by this ticket. One shall perform the following steps to reproduce it: mountinfo
```
# unshare -m
# echo foo > foo; touch bar baz quux
# mount -B foo bar
# mount -B bar baz
# grep foo /proc/self/
56 38 8:7 /tmp/foo /tmp/bar ...
57 38 8:7 /tmp/foo /tmp/baz ...
# rm foo mountinfo
# grep foo /proc/self/
56 38 8:7 /tmp/foo//deleted /tmp/bar ...
57 38 8:7 /tmp/foo//deleted /tmp/baz ...
```