[Bug dynamic-link/28061] New: A failing dlmopen called by an auditor crashed

adhemerval.zanella at linaro dot org sourceware-bugzilla@sourceware.org
Wed Jul 7 13:13:55 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=28061

            Bug ID: 28061
           Summary: A failing dlmopen called by an auditor crashed
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: adhemerval.zanella at linaro dot org
  Target Milestone: ---

$ cat main.c 
int main (int argc, char *argv[])
{
  return 0;
}
$ cat auditor.c 
#define _GNU_SOURCE
#include <link.h>
#include <dlfcn.h>

unsigned int
la_version (unsigned int v)
{
  return LAV_CURRENT;
}

void la_activity (uintptr_t* cookie, unsigned int flag)
{
  dlmopen(LM_ID_BASE, "/nonexistent.so", RTLD_NOW);
}
$ gcc -Wall main.c -o main
$ gcc -shared -fpic auditor.c -o libauditor.so -ldl
$ LD_AUDIT=./libauditor.so ./main 
Segmentation fault (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list