Bug 2233335 - page fault power_supply_uevent usb disconnect
Summary: page fault power_supply_uevent usb disconnect
Keywords:
Status: CLOSED DUPLICATE of bug 2227221
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL: https://www.spinics.net/linux/fedora/...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-21 23:22 UTC by Martin
Modified: 2023-08-24 15:16 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-08-24 15:16:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin 2023-08-21 23:22:31 UTC
1. Please describe the problem:

Sometimes when switching USB keyboard/mouse, page fault occurs and system is unresponsive

2. What is the Version-Release number of the kernel:
 from 6.4.4 all the way to 6.5.0-0.rc6.20230818

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

It worked in 6.3.12 and below, it seems to have appeared around 6.4.x and not fixed in 6.5.0rc

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Issue is not consistent, but it occurs almost daily after frequent USB KVM switching between PCs. I have two KVM switches setup on two different sets of PCs, and they occur on all those two environments.

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Yes, I've tried 6.5.0-0.rc6 20230817 and 20230818 and they both occur with page fault.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

One USB KVM switch environment has a PC with nvidia proprietary kernel and NFS client and another PC with NFS client, and the other USB KVM switch environment has PC with stock kernel AMD graphics driver and runs NFS server, and a Windows 10 PC (Windows 10 PC has no problem).

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

The following is from PC with stock kernel AMD driver, but PC with proprietary nvidia has almost the same log:

Aug 21 15:53:38 fedora kernel: usb 1-1: USB disconnect, device number 18                            
Aug 21 15:53:38 fedora kernel: usb 1-1.3: USB disconnect, device number 19                          
Aug 21 15:53:38 fedora kernel: usb 1-1.3.1: USB disconnect, device number 21                        
Aug 21 15:53:38 fedora kernel: BUG: unable to handle page fault for address: ffffac3dd1c877e8       
Aug 21 15:53:38 fedora kernel: #PF: supervisor write access in kernel mode                          
Aug 21 15:53:38 fedora kernel: #PF: error_code(0x0002) - not-present page                           
Aug 21 15:53:38 fedora kernel: PGD 100000067 P4D 100000067 PUD 100207067 PMD 0                      
Aug 21 15:53:38 fedora kernel: Oops: 0002 [#1] PREEMPT SMP NOPTI                                    
Aug 21 15:53:38 fedora kernel: CPU: 1 PID: 32597 Comm: kworker/1:0 Not tainted 6.5.0-0.rc6.20230818git0e8860d2125f.47.fc40.x86_64 #1                                                                    
Aug 21 15:53:38 fedora kernel: Hardware name: System manufacturer System Product Name/A78M-A, BIOS 0402 12/30/2013                                                                                      
Aug 21 15:53:38 fedora kernel: Workqueue: usb_hub_wq hub_event                                      
Aug 21 15:53:38 fedora kernel: RIP: 0010:power_supply_uevent+0xee/0x1d0                             
Aug 21 15:53:38 fedora kernel: Code: 75 4e 48 8b 13 48 83 7a 28 00 74 75 45 31 ff 31 c0 eb 10 48 8b 13 41 83 c7 01 49 63 c7 48 3b 42 28 73 5e 48 8b 52 20 8b 14 82 <f0> 48 0f ab 54 24 08 48 8b 13 4c 89 f1 4c 89 e6 48 89 ef 48 8b 52                                                                      
Aug 21 15:53:38 fedora kernel: RSP: 0018:ffffac3dcd9ff748 EFLAGS: 00010293                          
Aug 21 15:53:38 fedora kernel: RAX: 0000000000000002 RBX: ffff98d29daa6000 RCX: ffff98d35bf74000    
Aug 21 15:53:38 fedora kernel: RDX: 00000000214404d2 RSI: 0000000000000000 RDI: ffff98d29daa6000    
Aug 21 15:53:38 fedora kernel: RBP: ffff98d29daa6038 R08: 0000000000000007 R09: ffff98d3cfcb0305    
Aug 21 15:53:38 fedora kernel: R10: ffffffffffffffff R11: 0000000000000000 R12: ffff98d2cfcb0000    
Aug 21 15:53:38 fedora kernel: R13: 0000000000000000 R14: ffff98d35bf74000 R15: 0000000000000002    
Aug 21 15:53:38 fedora kernel: FS:  0000000000000000(0000) GS:ffff98d457880000(0000) knlGS:0000000000000000                                                                                             
Aug 21 15:53:38 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033                    
Aug 21 15:53:38 fedora kernel: CR2: ffffac3dd1c877e8 CR3: 00000001f28f6000 CR4: 00000000000406e0    
Aug 21 15:53:38 fedora kernel: Call Trace:                                                          
Aug 21 15:53:38 fedora kernel: <TASK>                                                               
Aug 21 15:53:38 fedora kernel: ? __die+0x23/0x70                                                    
Aug 21 15:53:38 fedora kernel: ? page_fault_oops+0x171/0x4e0                                        
Aug 21 15:53:38 fedora kernel: ? exc_page_fault+0x175/0x180                                         
Aug 21 15:53:38 fedora kernel: ? asm_exc_page_fault+0x26/0x30                                       
Aug 21 15:53:38 fedora kernel: ? power_supply_uevent+0xee/0x1d0                                     
Aug 21 15:53:38 fedora kernel: ? power_supply_uevent+0x10d/0x1d0                                    
Aug 21 15:53:38 fedora kernel: dev_uevent+0x112/0x2d0                                               
Aug 21 15:53:38 fedora kernel: kobject_uevent_env+0x294/0x680                                       
Aug 21 15:53:38 fedora kernel: power_supply_unregister+0x8e/0xa0                                    
Aug 21 15:53:38 fedora kernel: release_nodes+0x40/0xb0                                              
Aug 21 15:53:38 fedora kernel: devres_release_group+0xfc/0x130                                      
Aug 21 15:53:38 fedora kernel: hid_device_remove+0x56/0xa0                                          
Aug 21 15:53:38 fedora kernel: device_release_driver_internal+0x19f/0x200                           
Aug 21 15:53:38 fedora kernel: bus_remove_device+0xc6/0x130                                         
Aug 21 15:53:38 fedora kernel: device_del+0x15c/0x3e0                                               
Aug 21 15:53:38 fedora kernel: ? __queue_work+0x1df/0x440                                           
Aug 21 15:53:38 fedora kernel: hid_destroy_device+0x4b/0x60                                         
Aug 21 15:53:38 fedora kernel: logi_dj_remove+0x9a/0x100 [hid_logitech_dj]                          
Aug 21 15:53:38 fedora kernel: hid_device_remove+0x47/0xa0                                          
Aug 21 15:53:38 fedora kernel: device_release_driver_internal+0x19f/0x200                           
Aug 21 15:53:38 fedora kernel: bus_remove_device+0xc6/0x130                                         
Aug 21 15:53:38 fedora kernel: device_del+0x15c/0x3e0                                               
Aug 21 15:53:38 fedora kernel: ? __queue_work+0x1df/0x440                                           
Aug 21 15:53:38 fedora kernel: hid_destroy_device+0x4b/0x60                                         
Aug 21 15:53:38 fedora kernel: usbhid_disconnect+0x47/0x60                                          
Aug 21 15:53:38 fedora kernel: usb_unbind_interface+0x93/0x270                                      
Aug 21 15:53:38 fedora kernel: device_release_driver_internal+0x19f/0x200                           
Aug 21 15:53:38 fedora kernel: bus_remove_device+0xc6/0x130                                         
Aug 21 15:53:38 fedora kernel: device_del+0x15c/0x3e0                                               
Aug 21 15:53:38 fedora kernel: ? kobject_put+0xa0/0x1d0                                             
Aug 21 15:53:38 fedora kernel: usb_disable_device+0xcd/0x1e0                                        
Aug 21 15:53:38 fedora kernel: usb_disconnect+0xde/0x2c0                                            
Aug 21 15:53:38 fedora kernel: usb_disconnect+0xc3/0x2c0                                            
Aug 21 15:53:38 fedora kernel: usb_disconnect+0xc3/0x2c0                                            
Aug 21 15:53:38 fedora kernel: hub_event+0xf05/0x1ce0                                               
Aug 21 15:53:38 fedora kernel: process_one_work+0x1e1/0x3f0                                         
Aug 21 15:53:38 fedora kernel: worker_thread+0x51/0x390                                             
Aug 21 15:53:38 fedora kernel: ? __pfx_worker_thread+0x10/0x10                                      
Aug 21 15:53:38 fedora kernel: kthread+0xe8/0x120                                                   
Aug 21 15:53:38 fedora kernel: ? __pfx_kthread+0x10/0x10                                            
Aug 21 15:53:38 fedora kernel: ret_from_fork+0x34/0x50                                              
Aug 21 15:53:38 fedora kernel: ? __pfx_kthread+0x10/0x10                                            
Aug 21 15:53:38 fedora kernel: ret_from_fork_asm+0x1b/0x30                                          
Aug 21 15:53:38 fedora kernel: </TASK>                                                              
Aug 21 15:53:38 fedora kernel: Modules linked in: snd_seq_dummy snd_hrtimer rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache netfs rpcrdma rdma_cm iw_cm ib_cm ib_core xt_owner xt_LOG nf_log_syslog nf_nat_tftp ip6t_REJECT nf_reject_ipv6 ip6t_rpfilter ipt_REJECT nf_reject_ipv4 xt_conntrack nft_chain_nat nf_nat nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_tftp xt_CT nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat ip_set nf_tables nfnetlink edac_mce_amd kvm_amd ccp kvm snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_hwdep snd_seq binfmt_misc snd_seq_device irqbypass eeepc_wmi asus_wmi snd_pcm ledtrig_audio sparse_keymap platform_profile pcspkr acpi_cpufreq rfkill wmi_bmof snd_timer snd k10temp i2c_piix4 soundcore nfsd auth_rpcgss nfs_acl lockd grace sunrpc loop amdgpu amdxcp iommu_v2 drm_buddy gpu_sched hid_logitech_hidpp radeon hid_logitech_dj crct10dif_pclmul crc32_pclmul drm_ttm_helper ttm nvme crc32c_intel i2c_algo_bit                                                     
Aug 21 15:53:38 fedora kernel: drm_suballoc_helper polyval_clmulni polyval_generic drm_display_helper ghash_clmulni_intel nvme_core sha512_ssse3 r8169 sp5100_tco cec nvme_common video wmi scsi_dh_rdac scsi_dh_emc scsi_dh_alua ip6_tables ip_tables dm_multipath fuse                                    
Aug 21 15:53:38 fedora kernel: CR2: ffffac3dd1c877e8                                                
Aug 21 15:53:38 fedora kernel: ---[ end trace 0000000000000000 ]---                                 
Aug 21 15:53:38 fedora kernel: RIP: 0010:power_supply_uevent+0xee/0x1d0                             
ug 21 15:53:38 fedora kernel: Code: 75 4e 48 8b 13 48 83 7a 28 00 74 75 45 31 ff 31 c0 eb 10 48 8b 13 41 83 c7 01 49 63 c7 48 3b 42 28 73 5e 48 8b 52 20 8b 14 82 <f0> 48 0f ab 54 24 08 48 8b 13 4c 89 f1 4c 89 e6 48 89 ef 48 8b 52                                                                      
Aug 21 15:53:38 fedora kernel: RSP: 0018:ffffac3dcd9ff748 EFLAGS: 00010293                          
Aug 21 15:53:38 fedora kernel: RAX: 0000000000000002 RBX: ffff98d29daa6000 RCX: ffff98d35bf74000    
Aug 21 15:53:38 fedora kernel: RDX: 00000000214404d2 RSI: 0000000000000000 RDI: ffff98d29daa6000    
Aug 21 15:53:38 fedora kernel: RBP: ffff98d29daa6038 R08: 0000000000000007 R09: ffff98d3cfcb0305    
Aug 21 15:53:38 fedora kernel: R10: ffffffffffffffff R11: 0000000000000000 R12: ffff98d2cfcb0000    
Aug 21 15:53:38 fedora kernel: R13: 0000000000000000 R14: ffff98d35bf74000 R15: 0000000000000002    
Aug 21 15:53:38 fedora kernel: FS:  0000000000000000(0000) GS:ffff98d457880000(0000) knlGS:0000000000000000                                                                                             
Aug 21 15:53:38 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033                    
Aug 21 15:53:38 fedora kernel: CR2: ffffac3dd1c877e8 CR3: 00000001f28f6000 CR4: 00000000000406e0    
Aug 21 15:53:38 fedora kernel: note: kworker/1:0[32597] exited with irqs disabled                   
Aug 21 15:53:39 fedora abrt-dump-journal-oops[863]: abrt-dump-journal-oops: Found oopses: 1         
Aug 21 15:53:39 fedora abrt-dump-journal-oops[863]: abrt-dump-journal-oops: Creating problem directories                                                                                                
Aug 21 15:53:40 fedora abrt-server[32745]: Can't find a meaningful backtrace for hashing in '.'     
Aug 21 15:53:40 fedora abrt-server[32745]: Deleting non-reportable oops '.' because DropNotReportableOopses is set to 'yes'                                                                             
Aug 21 15:53:40 fedora abrt-server[32745]: 'post-create' on '/var/spool/abrt/oops-2023-08-21-15:53:39-863-0' exited with 1                                                                              
Aug 21 15:53:40 fedora abrt-server[32745]: Deleting problem directory '/var/spool/abrt/oops-2023-08-21-15:53:39-863-0'                                                                                  
Aug 21 15:53:40 fedora abrt-server[32745]: Lock file '.lock' was locked by process 32773, but it crashed?                                                                                               
Aug 21 15:53:40 fedora abrt-dump-journal-oops[863]: Reported 1 kernel oopses to Abrt                


Reproducible: Always

Comment 1 Martin 2023-08-24 15:16:40 UTC

*** This bug has been marked as a duplicate of bug 2227221 ***


Note You need to log in before you can comment on or make changes to this bug.