Page MenuHomePhabricator

When matching process titles, don't attempt a match if we're out of "argv" parts
ClosedPublic

Authored by epriestley on Jun 25 2019, 10:21 PM.
Tags
None
Referenced Files
F19074523: D20620.id49194.diff
Dec 1 2025, 5:28 AM
F19051735: D20620.id49194.diff
Nov 28 2025, 1:41 AM
F19036208: D20620.id49193.diff
Nov 25 2025, 7:09 PM
F18904137: D20620.diff
Nov 8 2025, 7:53 AM
F18875932: D20620.diff
Nov 5 2025, 8:19 PM
F18873641: D20620.diff
Nov 5 2025, 10:44 AM
F18793743: D20620.diff
Oct 16 2025, 10:02 PM
F18761545: D20620.id.diff
Oct 6 2025, 3:03 PM
Subscribers
None

Details

Summary

Ref T13321. In general, if we try to match against "array('x', 'y')" and there's an "array('x')" process, we may run out of arguments before matching the whole pattern.

On Ubuntu, there are a bunch of system processes which look like [khugepaged] in ps. These have no /proc/123/cmdline, so we end up with an empty "argv", which is causing us to hit the bug. Just let this be for now, we don't currently care about these processes.

Test Plan

Ran bin/phd status on Ubuntu.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable