[PATCH elfutils 0/2] fix two /proc/pid/maps inode parsing issues

Yonghong Song yhs@fb.com
Fri Jan 25 21:20:00 GMT 2019

The inode number in /proc/pid/maps has type "unsigned long".
The current parsing in libdwfl/linux-proc-maps.c and
tests/backtrace-data.c is not correct and it triggered
the following four test failures in one x64 box.
   FAIL: dwfl-bug-fd-leak 
   FAIL: run-backtrace-data.sh
   FAIL: run-backtrace-dwarf.sh
   FAIL: vdsosyms

The offending map entry
  7f269223d000-7f269226b000 r-xp 00000000 00:50 10224326387095067468       /home/...
has an inode number beyond the valid range of type "long".

This patch set fixed the problem in libdwfl and tests respectively.

Yonghong Song (2):
  [libdwfl] parse inode in /proc/pid/maps correctly
  [tests] parse inode in /proc/pid/maps correctly in

 libdwfl/linux-proc-maps.c | 2 +-
 tests/backtrace-data.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


More information about the Elfutils-devel mailing list