In the source code, ksym_mod.c, we have

----
 ksyms = fopen(KSYMS, "r");

 if ( ksyms == NULL )
 {
  if ( errno == ENOENT )
   Syslog(LOG_INFO, "No module symbols loaded - "
          "kernel modules not enabled.\n");
  else
   Syslog(LOG_ERR, "Error loading kernel symbols " \
          "- %s\n", strerror(errno));
  fclose(ksyms);
  return(0);
 }
----

On OpenVZ, /proc/kallsyms (=KSYMS) does not exist. So ksyms == NULL.
Then we fclose a NULL file descriptor? => Segfault.

The trivial patch:
http://launchpadlibrarian.net/37613199/dont-fclose-null.patch



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to