lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 17 May 2018 10:42:02 +0300
From:   Alexey Dobriyan <adobriyan@...il.com>
To:     lennart@...ttering.net
Cc:     tj@...nel.org, torvalds@...ux-foundation.org, carlos@...ha.com,
        luto@...capital.net, akpm@...ux-foundation.org,
        linux-kernel@...r.kernel.org
Subject: Re: [RFC] better visibility into kworkers

> The kernel APIs for all this aren't really good
> though, and I always was reluctant to check for PF_KTHREAD, as that
> flag is neither documented for userspace, nor available in any
> userspace-accessible headers. However, I wanted to tighten this a bit,
> and hence we now define the flag in our own code, as it appeared to me
> otherwise there was no chance to ever make this fully robust.

PF_KTHREAD was introduced in 2.6.27 and its value appears to be stable
since then. I think it should be retroactively declared part of ABI
otherwise people will continue to rediscover that all other means do not
work.

Empty /proc/*/exe is second best option for systemd and it's only one
system call.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ