Bug 41182

Summary: X server does not check module version when reloading modules
Product: xorg Reporter: Michal Suchanek <hramrach>
Component: Server/DDX/Xorg/dlloaderAssignee: Adam Jackson <ajax>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.6 (2010.12)   
Hardware: Other   
OS: All   
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:
Attachments:
Description Flags
patch - check module version on every module load none

Description Michal Suchanek 2011-09-25 05:10:07 UTC
Created attachment 51585 [details] [review]
patch - check module version on every module load

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.
Comment 1 Jeremy Huddleston Sequoia 2011-10-06 12:24:38 UTC
Please send your patch to xorg-devel for review.
Comment 2 Michal Suchanek 2011-11-17 08:51:55 UTC
An alternative patch that prevents the reload was checked in.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.