Skip to content

fuser: NULLptr sanity added in scan fns to avoid /proc walks (stalls NFS)

Jan Rybar requested to merge jrybar/psmisc:fuser-nullptr-sanity-scan-fns into master

Due to missing NULLptr sanity checks in scanning functions, fuser runs excessive number of stats on entire /proc several times with no potential of finding anything.
There is a case that this activity causes NFS to stall and get stuck even when scanning for users of non-existing file.

Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1509245

Edited by Jan Rybar

Merge request reports