Project

General

Profile

Bug #12274

/proc/<PID>/fdinfo can miss pathname information

Added by Andy Fiddaman 16 days ago. Updated 16 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

The size of path information in /proc/<PID>/fdinfo files is limited to MAXPATHLEN. A global zone's path to a file in a non-global zone can exceed this and when that happens the pathname information is missing from the fdinfo data.

History

#1

Updated by Andy Fiddaman 16 days ago

bloody# pwdx 6148
6148:   /zones/pkgsrc/root/tmp/andy/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
bloody# pfiles 6148
6148:   tail -f dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
  Current rlimit: 65536 file descriptors
   0: S_IFCHR mode:0620 dev:554,0 ino:3731445831 uid:100 gid:7 rdev:172,2
      O_RDWR|O_NOCTTY|O_LARGEFILE
      /dev/pts/2
      offset:57376
   1: S_IFCHR mode:0620 dev:554,0 ino:3731445831 uid:100 gid:7 rdev:172,2
      O_RDWR|O_NOCTTY|O_LARGEFILE
      /dev/pts/2
      offset:57376
   2: S_IFCHR mode:0620 dev:554,0 ino:3731445831 uid:100 gid:7 rdev:172,2
      O_RDWR|O_NOCTTY|O_LARGEFILE
      /dev/pts/2
      offset:57376
   3: S_IFREG mode:0644 dev:559,8 ino:3843219500 uid:0 gid:0 size:0
      O_RDONLY|O_LARGEFILE
      offset:0
   4: S_IFPORT mode:0000 dev:565,0 uid:0 gid:0 size:0

Also available in: Atom PDF