Bug 592785

Summary: usb kvm switch sometimes kernel oops dev_get_drvdata
Product: [Fedora] Fedora Reporter: Trevor Cordes <trevor>
Component: kernelAssignee: Stanislaw Gruszka <sgruszka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: anton, dougsland, gansalmon, itamar, jonathan, kernel-maint, sgruszka
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32.19-163.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-23 22:02:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
more detailed dmesg output
none
The fix (2 commits) none

Description Trevor Cordes 2010-05-16 22:02:10 UTC
Description of problem:
I have a USB/DVI KVM switch and I switch between the F12 box and an XP box sometimes hundreds of times an hour.  Once in a blue moon F12 oops's and goes wonky.  No rhyme or reason to it.  Sometimes I'll switch 1000+ times without issue.  XP box never seems to have a problem.

May 16 15:36:22 pog kernel: BUG: unable to handle kernel NULL pointer dereference at 00000020
May 16 15:36:22 pog kernel: IP: [<c0660028>] dev_get_drvdata+0xc/0x1c
May 16 15:36:22 pog kernel: *pdpt = 000000001719c001 *pde = 00000000c6f04067
May 16 15:36:22 pog kernel: Oops: 0000 [#1] SMP

attaching more output


Version-Release number of selected component (if applicable):
kernel-PAE-2.6.32.11-99.fc12.i686

How reproducible:
difficult, seemingly random and at extremely long intervals

Steps to Reproduce:
1. switch computers on KVM switch often
2.
3.
  
Actual results:
oops, can't gain control of mouse/keyboard after that, remote logins start freezing

Expected results:
system runs fine, kb/mse work fine

Additional info:
tainted with nvidia binary driver from rpm-fusion, sorry

Comment 1 Trevor Cordes 2010-05-16 22:02:49 UTC
Created attachment 414421 [details]
more detailed dmesg output

Comment 2 Pete Zaitcev 2010-06-06 00:08:28 UTC
Created attachment 421519 [details]
The fix (2 commits)

Comment 3 Stanislaw Gruszka 2010-06-07 19:16:59 UTC
Trevor,

Are you able to test above fix, or should I prepare test kernel for you?

Comment 4 Trevor Cordes 2010-07-27 20:07:40 UTC
Hi, I haven't done a kernel compile in a few years.  I stick to the stock Fedora ones mostly now.  I'm on F12 currently.

I could run a test kernel you provide if it won't mess up my F12 system.  Of course, if security errata is issued I'd be forced to go back to stock ones.

This bug is so obscure (only hit me once) it may be a difficult one to test for: hard to tell if it's fixed or just not hitting the pathological case.

But I will help out however I can.  Thanks!

Comment 5 Stanislaw Gruszka 2010-07-28 08:51:58 UTC
I looked at patch and oops messages again, I'm pretty sure patch fix the problem. I will post patch to fedora-kernel mailing list, it should be included soon in F-12 kernel. F-13 will switch to 2.6.34 kernel, so problem will be fixed there as well.

Comment 6 Chuck Ebbert 2010-08-06 04:45:14 UTC
Patch went in 2.6.32.17-157

Comment 7 Fedora Update System 2010-08-18 10:50:19 UTC
kernel-2.6.32.19-162.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/kernel-2.6.32.19-162.fc12

Comment 8 Fedora Update System 2010-08-18 20:45:52 UTC
kernel-2.6.32.19-163.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/kernel-2.6.32.19-163.fc12

Comment 9 Fedora Update System 2010-08-20 02:00:03 UTC
kernel-2.6.32.19-163.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kernel'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/kernel-2.6.32.19-163.fc12

Comment 10 Trevor Cordes 2010-08-20 08:16:50 UTC
Thanks, I'll try it out and report back if the oops happens again.  However, like I said before, this bug is very very rare so no recurrence in a reasonable timeframe doesn't necessarily mean it's fixed.

Comment 11 Stanislaw Gruszka 2010-08-20 10:54:17 UTC
Sure, just reopen bug if you see the problem again, but I believe you will not see it because is fixed :-)

Comment 12 Fedora Update System 2010-08-23 22:01:50 UTC
kernel-2.6.32.19-163.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.