PATCH Check module version each time it is loaded
peter.hutterer at who-t.net
Sun Oct 9 20:38:12 PDT 2011
On Fri, Oct 07, 2011 at 02:58:35PM +0200, Michal Suchanek wrote:
> The X server "duplicates" modules by loading them again from the disk.
> Since this "duplication" happens on every input device hotplug, possibly weeks
> after the X server has been started a different module might have been
> installed by that time (eg. due to upgrading distribution packages) the X
> server should check the module every time it is loaded to prevent weird issues
> due to modules compiled for different ABI.
> I compiled an X server with the patch and it worked but I have no idea how to
> test the error paths.
fwiw, last time I tried this (about a year or so ago), the problem was
dlopen(). even if you replace the file, dlopen() will simply re-load the
original file. Not sure if this has been fixed yet but that's what you need
to check first (would be simple to verify with a test program)
More information about the xorg-devel