Re: [EXT] Re: Output from `tee' is not showing up in system journal consistently on some systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 28, 2021 at 3:18 PM Michael Biebl <mbiebl@xxxxxxxxx> wrote:
>
> Might be another instance of
> https://github.com/systemd/systemd/issues/2913
>
> You can verify by checking your whole journal, not just "-u tee_test.service".

That's it!!! Damn, the userspace workarounds are a little nasty...

On the original bug report [1], Lennart wrote:

> This is a race. We get the client PID with SCM_CREDENTIALS and then try to read _CMDLINE/_COMM/_EXEC and the cgroupd ata from /proc quickly but at that time the process might already have died.
>
> To fix this properly we need SCM_COMM or so, to get the process cmdline/comm/exe, and SCM_CGROUPS to get the cgroup data in a race free fashion. Until this is added to the kernel this will continue to be racy. These items are listed on the plumbers wishlist, because we need this from the kernel folks.
> ...
> The right fix is to get cgroup metadata sent along in the message. There where even kernel patches to add that, but the submitter dropped the ball unfortunately.

Does anyone happen to have a link to the patches?

[1] https://bugs.freedesktop.org/show_bug.cgi?id=50184

(also posted the above response to the github issue)




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux