[opensuse-support] zypper ps suddenly shows entries like /memfd:unknown-usage:/usr/lib64/libQt5Qml.so.5
Since shortly "zypper ps" shows entries starting with /memfd: These entries are also present when using lsof on certain processes. It looks like this type has been introduced recently and zypper does not ignore these entries. I also see an entry /usr/sbin/haveged (deleted) for process haveged, which disappears after a restart of haveged. Howver /memfd: remains after killing the process and restarting it. Bug report? -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
20.12.2018 14:23, Freek de Kruijf пишет:
Since shortly "zypper ps" shows entries starting with /memfd: These entries are also present when using lsof on certain processes. It looks like this type has been introduced recently and zypper does not ignore these entries.
zypper does not ignore anything. It simply displays deleted files that are still opened. memfd is relatively new Linux IPC mechanism that passes anonymous memory region between processes. These regions are referenced using file descriptors, so they look like deleted files for all practical purposes. It is not the first time zypper is fooled by applications intentionally keeping reference to deleted files. There is no way to distinguish between files deleted as result of package update or due to any other activity.
I also see an entry /usr/sbin/haveged (deleted) for process haveged, which disappears after a restart of haveged. Howver /memfd: remains after killing the process and restarting it.
Of course it remains (or better re-appears), memfd is created by process as part of its normal activity.
Bug report?
And what fix do you suggest? I am not entirely thrilled by zypper ignoring specific file names and memfd looks just like a regular file otherwise. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Thu, 20 Dec 2018 20:51:56 +0300 Andrei Borzenkov <arvidjaar@gmail.com> wrote:
And what fix do you suggest? I am not entirely thrilled by zypper ignoring specific file names and memfd looks just like a regular file otherwise.
Just for interest, is there no other way of distinguishing memfd? It seems to me that linux would benefit from a uniform mechanism that allowed it to determine metadata about the underlying properties of any file-like object, such as object/filesystem-type. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
20.12.2018 14:23, Freek de Kruijf пишет:
Since shortly "zypper ps" shows entries starting with /memfd: These entries are also present when using lsof on certain processes. It looks like this type has been introduced recently and zypper does not ignore these entries. I also see an entry /usr/sbin/haveged (deleted) for process haveged, which disappears after a restart of haveged. Howver /memfd: remains after killing the process and restarting it.
Bug report?
I cannot reproduce it on Leap 15 with actual patches. I do have several processes using memfd but "zypper ps" does not list them. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Andrei Borzenkov wrote:
I cannot reproduce it on Leap 15 with actual patches. I do have several processes using memfd but "zypper ps" does not list them.
Same here, TW 20181213: Tons of memfd in DEL state with lsof, but nothing shown by 'zypper ps' -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Op vrijdag 21 december 2018 12:16:08 CET schreef Peter Suetterlin:
Andrei Borzenkov wrote:
I cannot reproduce it on Leap 15 with actual patches. I do have several processes using memfd but "zypper ps" does not list them.
Same here, TW 20181213: Tons of memfd in DEL state with lsof, but nothing shown by 'zypper ps'
On TW 20181219 I have this: # zypper ps De volgende actieve processen gebruiken verwijderde bestanden: PID | PPID | UID | Gebruiker | Opdracht | Service | Bestanden -----+------+------+-----------+-------------------+--------- +----------------------------------------------- 364 | 1 | 0 | root | haveged (deleted) | haveged | /usr/lib64/ libhavege.so.1.1.0 | | | | | | /usr/sbin/ haveged (deleted) | | | | | | /lib64/ ld-2.27.so | | | | | | /lib64/ libc-2.27.so 2863 | 2850 | 1000 | freek | kwin_x11 | | /memfd:unknown- usage:/usr/lib64/libQt5Qml.so.5 | | | | | | / memfd:JSGCHeap:/usr/lib64/libQt5Qml.so.5 | | | | | | / memfd:JSVMStack:/usr/lib64/libQt5Qml.so.5 2869 | 1 | 1000 | freek | krunner | | / memfd:JSVMStack:/usr/lib64/libQt5Qml.so.5 | | | | | | / memfd:JSGCHeap:/usr/lib64/libQt5Qml.so.5 | | | | | | / memfd:JITCode:/usr/lib64/libQt5Qml.so.5 | | | | | | /memfd:unknown- usage:/usr/lib64/libQt5Qml.so.5 2872 | 1 | 1000 | freek | plasmashell | | / memfd:JSVMStack:/usr/lib64/libQt5Qml.so.5 | | | | | | / memfd:JSGCHeap:/usr/lib64/libQt5Qml.so.5 | | | | | | /memfd:unknown- usage:/usr/lib64/libQt5Qml.so.5 | | | | | | / memfd:JITCode:/usr/lib64/libQt5Qml.so.5 Upgraded my laptop to the same TW version, where zypper ps shows the same for these three processes. Note it is always /usr/lib64/libQt5Qml.so.5. I tried to reinstall the package at no avail. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (4)
-
Andrei Borzenkov
-
Dave Howorth
-
Freek de Kruijf
-
Peter Suetterlin