| Summary: | Update request: kmod: fix wrong module search order | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Anssi Hannula <anssi.hannula> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | arnaud, sysadmin-bugs, tmb |
| Version: | 4 | Keywords: | validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA3TOO has_procedure mga4-64-ok mga4-32-ok mga3-64-ok mga3-32-ok | ||
| Source RPM: | kmod | CVE: | |
| Status comment: | |||
|
Description
Anssi Hannula
2014-03-30 19:55:51 CEST
Anssi Hannula
2014-03-30 19:56:53 CEST
Whiteboard:
(none) =>
MGA3TOO has_procedure Hi, For Mageia 4 x86_64 : before testing : ================ # modinfo nvidia-current filename: /lib/modules/3.12.13-desktop-2.mga4/dkms-binary/drivers/char/drm/nvidia-current.ko.xz For testing : ============= 1-install kmod-15-2.2.mga4.x86_64 2-reboot # modinfo nvidia-current filename: /lib/modules/3.12.13-desktop-2.mga4/dkms-binary/drivers/char/drm/nvidia-current.ko.xz I don't see your correct output. CC:
(none) =>
inster.css (In reply to Arnaud Vacquier from comment #1) > I don't see your correct output. Thanks, please try again with a new version I just submitted. Advisory and testing procedure remains the same. Uploaded to mga3+mga4 core/updates_testing: Source packages: kmod-12-2.3.mga3 kmod-15-2.3.mga4 Binary packages: kmod-12-2.3.mga3 lib(64)kmod2-12-2.3.mga3 lib(64)kmod-devel-12-2.3.mga3 kmod-15-2.3.mga4 lib(64)kmod2-15-2.3.mga4 lib(64)kmod-devel-15-2.3.mga4 Hi, For install : ============= To satisfy dependencies, the following package(s) also need to be installed: - lib64kmod2-15-2.3.mga4.x86_64 ======= =(yes)= ======= Command, after install & reboot : ========= # modinfo nvidia-current filename: /lib/modules/3.12.13-desktop-2.mga4/dkms-binary/drivers/char/drm/nvidia-current.ko.xz Please run the following command: # dkms status many x) # dkms status virtualbox, 4.3.6-1.mga4, 3.12.8-desktop-2.mga4, x86_64: installed broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.6-desktop-1.mga4, x86_64: installed broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.8-desktop-2.mga4, x86_64: installed broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.6-desktop-2.mga4, x86_64: installed broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: installed nvidia-current, 331.49-1.mga4.nonfree, 3.12.8-desktop-2.mga4, x86_64: installed broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.6-desktop-1.mga4, x86_64: installed-binary from 3.12.6-desktop-1.mga4 virtualbox, 4.3.6-1.mga4, 3.12.8-desktop-2.mga4, x86_64: installed-binary from 3.12.8-desktop-2.mga4 broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.8-desktop-2.mga4, x86_64: installed-binary from 3.12.8-desktop-2.mga4 broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.6-desktop-2.mga4, x86_64: installed-binary from 3.12.6-desktop-2.mga4 virtualbox, 4.3.6-1.mga4, 3.12.13-desktop-2.mga4, x86_64: installed-binary from 3.12.13-desktop-2.mga4 broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: installed-binary from 3.12.13-desktop-2.mga4 nvidia-current, 331.49-1.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: installed-binary from 3.12.13-desktop-2.mga4 current kernel : # uname -r 3.12.13-desktop-2.mga4 Thanks, my procedure was incomplete. Updated below: Testing information: =============== 1. Install both "dkms-nvidia-current" and a "nvidia-current-kernel-CURRENTKERNELVERSION" packages, and make sure the installation succeeds. You also need the kernel-devel-CURRENTKERNELVERSION package installed beforehand. You can determine CURRENTKERNELVERSION by running "uname -r". 2. Check the output of: # dkms status -m nvidia-current -k $(uname -r) If you get two lines, one with "installed" and one with "installed-binary", continue directly to step 4. 3. Run, replacing MODULEVER with the the module version from the above command, e.g. "331.49-1.mga4.nonfree": # dkms build -m nvidia-current -v MODULEVER # dkms install -m nvidia-current -v MODULEVER --force There should be no errors from these, and the command from step 2 should now report two lines. 4. Check the first line of output of "modinfo nvidia-current" command. WRONG output: filename: /lib/modules/X/dkms-binary/Y CORRECT output: filename: /lib/modules/X/dkms/Y Note that even the old kmod package may have CORRECT output, there is a 50% chance of reproducing the issue and running the command repeatedly will not change the result. =============== 1.there is not kernel-devel... http://mageia.madb.org/package/list/t_search/kernel/application/0/arch/x86_64/page/2 2.dkms status -m nvidia-current -k $(uname -r) Shows nothing but : ==== # dkms status -m nvidia-current nvidia-current, 331.49-1.mga4.nonfree, 3.12.8-desktop-2.mga4, x86_64: installed nvidia-current, 331.49-1.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: installed-binary from 3.12.13-desktop-2.mga4 == So i think it is good ? and : == # dkms status -k $(uname -r) broadcom-wl, 6.30.223.141-2.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: installed 3. i don't do 4. # modinfo nvidia-current filename: /lib/modules/3.12.13-desktop-2.mga4/dkms-binary/drivers/char/drm/nvidia-current.ko.xz (In reply to Arnaud Vacquier from comment #8) > 1.there is not kernel-devel... > http://mageia.madb.org/package/list/t_search/kernel/application/0/arch/ > x86_64/page/2 Sorry, I mean e.g. kernel-desktop-devel-3.12.13-2.mga4, if you have 3.12.13-desktop-2.mga4. > 2.dkms status -m nvidia-current -k $(uname -r) > Shows nothing Do you have "nvidia-current-kernel-3.12.13-desktop-2.mga4" installed as instructed in step 1? > but : > ==== > # dkms status -m nvidia-current > nvidia-current, 331.49-1.mga4.nonfree, 3.12.8-desktop-2.mga4, x86_64: > installed > nvidia-current, 331.49-1.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: > installed-binary from 3.12.13-desktop-2.mga4 > == > So i think it is good ? It is not. Argh, seems my procedure was again wrong, the DKMS commandline is weird... let me try once again :) Testing information: =============== 1. Install both "dkms-nvidia-current" and a "nvidia-current-kernel-CURRENTKERNELVERSION" packages, and make sure the installation succeeds. You also need the kernel-desktop-devel-X.Y.Z package installed beforehand according to the installed kernel version. You can determine CURRENTKERNELVERSION by running "uname -r". 2. Check the output of: # dkms status -m nvidia-current | grep $(uname -r) If you get two lines, one with "installed" and one with "installed-binary", continue directly to step 4. 3. Run, replacing MODULEVER with the the module version from the above command, e.g. "331.49-1.mga4.nonfree": # dkms build -m nvidia-current -v MODULEVER # dkms install -m nvidia-current -v MODULEVER --force There should be no errors from these, and the command from step 2 should now report two lines. 4. Check the first line of output of "modinfo nvidia-current" command. WRONG output: filename: /lib/modules/X/dkms-binary/Y CORRECT output: filename: /lib/modules/X/dkms/Y Note that even the old kmod package may have CORRECT output, there is a 50% chance of reproducing the issue and running the command repeatedly will not change the result. =============== 1. kernel-desktop-devel-3.12.13-2.mga4 is installed (with kernel-desktop-devel-latest)
=======================================================
2. # dkms status -m nvidia-current | grep $(uname -r)
nvidia-current, 331.49-1.mga4.nonfree, 3.12.13-desktop-2.mga4, x86_64: installed-binary from 3.12.13-desktop-2.mga4
So step 3...
=======================================================
3.1 dkms build -m nvidia-current -v 331.49-1.mga4.nonfree
Preparing kernel 3.12.13-desktop-2.mga4 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.....
using /proc/config.gz
make oldconfig....
make prepare....
Building module:
cleaning build area....
make KERNELRELEASE=3.12.13-desktop-2.mga4 SYSSRC=/lib/modules/3.12.13-desktop-2.mga4/build module; make SYSSRC=/lib/modules/3.12.13-desktop-2.mga4/build -C uvm module KBUILD_EXTMOD=/var/lib/dkms/nvidia-current/331.49-1.mga4.nonfree/build/uvm..........
cleaning build area....
cleaning kernel tree (make mrproper)....
DKMS: build Completed.
=======================================================
3.2 #dkms install -m nvidia-current -v 331.49-1.mga4.nonfree --force
nvidia-current.ko.xz:
- Installation
- Installing to /lib/modules/3.12.13-desktop-2.mga4/dkms/drivers/char/drm/
nvidia-uvm.ko.xz:
- Installation
- Installing to /lib/modules/3.12.13-desktop-2.mga4/dkms/drivers/char/drm/
depmod.....
DKMS: install Completed.
=======================================================
4.# modinfo nvidia-current
filename: /lib/modules/3.12.13-desktop-2.mga4/dkms/drivers/char/drm/nvidia-current.ko.xz
=======================================================
now it is correct
Adding OK from Arnaud's test. Are you able to test i586 also Arnaud? Whiteboard:
MGA3TOO has_procedure =>
MGA3TOO has_procedure mga3-64-ok
claire robinson
2014-04-28 17:44:33 CEST
Whiteboard:
MGA3TOO has_procedure mga3-64-ok =>
MGA3TOO has_procedure mga4-64-ok Hi Claire, No sorry i haven't 32bits system. I'll test this later today on both mga3 and mga4 CC:
(none) =>
tmb tested on mga3 32bit and 64bit tested on mga4 32bit and 64bit advisory uploaded validating Keywords:
(none) =>
validated_update Update pushed: http://advisories.mageia.org/MGAA-2014-0112.html Status:
ASSIGNED =>
RESOLVED |