On Sat, Mar 20, 2021 at 10:23:12AM -0700, Andy Lutomirski wrote: > > https://github.com/systemd/systemd/blob/main/src/basic/process-util.c#L354 > > src/basic/process-util.c:is_kernel_thread() > > Eww. > > Could we fix it differently and more permanently by modifying the proc > code to display the values systemd expects? Yes, do_task_stat needs a mapping from kernel flags to UABI flags. And we should already discard everything we think we can from the UABI now, and only add the ones back that are required to not break userspace.