Project

General

Profile

Actions

Bug #7095

closed

libproc file_info_t file_pname too short

Added by Robert Mustacchi over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
lib - userland libraries
Start date:
2016-06-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

While going through 7094, I found that Pgrab_idle tries to construct the full path of the object. However, it often can't construct it because the actual size of the field is limited to 64 bytes, which comes from the assumption that it always comes from a prmap_t from /proc. Instead, we should increase this to PATH_MAX so that way when we're referring to files in the file system, we'll actually be able to find them.

Actions #1

Updated by Electric Monk almost 7 years ago

  • Status changed from New to Closed

git commit b7b26e12d252c977b500719111379b6b9aeeb4e5

commit  b7b26e12d252c977b500719111379b6b9aeeb4e5
Author: Robert Mustacchi <rm@joyent.com>
Date:   2017-01-07T23:19:24.000Z

    7095 libproc file_info_t file_pname too short
    Reviewed by: Cody Mello <cody.mello@joyent.com>
    Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF