Public bug reported:

After using my Logitech G920 whilst playing a game, or even having
Oversteer[0] open, if I disconnect the wheel whilst one of the processes
are still running, this will cause a kernel trace in dmesg: "kernfs: can
not remove 'range', no directory" and then the machine will not shutdown
unless forced using REISUO (or a hard power-off).

Relevant portion of dmesg output:

```
[18110.989873] usb 1-1: USB disconnect, device number 7
[18116.364998] hid 0003:046D:C262.0\x8a\x9e: Unloading HID++ force feedback.
[18116.365014] ------------[ cut here ]------------
[18116.365015] kernfs: can not remove 'range', no directory
[18116.365020] WARNING: CPU: 7 PID: 22533 at fs/kernfs/dir.c:1508 
kernfs_remove_by_name_ns+0x8a/0xa0
[18116.365024] Modules linked in: option usb_wwan usbserial hid_logitech_hidpp 
veth nf_conntrack_netlink xt_nat xfrm_user xfrm_algo xt_addrtype vboxnetadp(OE) 
vboxnetflt(OE) vboxdrv(OE) vhost_vsock vmw_vsock_virtio_transport_common vhost 
vhost_iotlb vsock snd_seq_dummy snd_hrtimer xt_CHECKSUM xt_MASQUERADE 
xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat 
iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 
nf_tables nfnetlink ip6table_filter ip6_tables iptable_filter bpfilter bridge 
stp llc overlay binfmt_misc nls_iso8859_1 xfs intel_rapl_msr mei_hdcp 
snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio 
snd_usb_audio intel_rapl_common snd_hda_intel intel_tcc_cooling 
x86_pkg_temp_thermal snd_intel_dspcfg intel_powerclamp snd_intel_sdw_acpi 
snd_hda_codec snd_usbmidi_lib kvm_intel snd_hda_core snd_hwdep snd_seq_midi kvm 
snd_seq_midi_event uvcvideo rapl snd_rawmidi intel_cstate videobuf2_vmalloc 
snd_seq
[18116.365059]  videobuf2_memops videobuf2_v4l2 snd_pcm input_leds joydev 
videobuf2_common snd_seq_device intel_wmi_thunderbolt snd_timer efi_pstore snd 
ee1004 mxm_wmi soundcore mei_me intel_pch_thermal mei mac_hid acpi_pad 
nvidia_uvm(POE) sch_fq_codel tcp_bbr v4l2loopback(OE) videodev mc cuse coretemp 
ipmi_devintf ipmi_msghandler msr nfsd parport_pc ppdev auth_rpcgss nfs_acl lp 
lockd grace parport sunrpc ip_tables x_tables autofs4 btrfs blake2b_generic 
zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor 
async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid 
hid nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) drm_kms_helper syscopyarea 
sysfillrect sysimgblt fb_sys_fops crct10dif_pclmul cec crc32_pclmul rc_core 
ghash_clmulni_intel aesni_intel crypto_simd cryptd i2c_i801 e1000e xhci_pci drm 
nvme xhci_pci_renesas i2c_smbus ahci nvme_core libahci wmi video
[18116.365098] CPU: 7 PID: 22533 Comm: threaded-ml Tainted: P           OE     
5.14.0-1033-oem #36-Ubuntu
[18116.365100] Hardware name: Gigabyte Technology Co., Ltd. Z170X-Ultra 
Gaming/Z170X-Ultra Gaming-CF, BIOS F4 06/24/2016
[18116.365101] RIP: 0010:kernfs_remove_by_name_ns+0x8a/0xa0
[18116.365103] Code: 00 31 c0 41 5c 41 5d 41 5e 5d c3 48 c7 c7 20 3d 41 95 e8 
29 be 82 00 b8 fe ff ff ff eb e5 48 c7 c7 d0 3d fe 94 e8 f1 52 7c 00 <0f> 0b b8 
fe ff ff ff eb d0 66 66 2e 0f 1f 84 00 00 00 00 00 66 90
[18116.365104] RSP: 0018:ffffa97491893aa0 EFLAGS: 00010286
[18116.365106] RAX: 0000000000000000 RBX: ffff9ac0a96ab100 RCX: 0000000000000027
[18116.365107] RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: ffff9ac1865a0988
[18116.365108] RBP: ffffa97491893ab8 R08: ffff9ac1865a0980 R09: ffffa97491893878
[18116.365108] R10: 0000000000000001 R11: 0000000000000001 R12: ffff9abe5300f8d0
[18116.365109] R13: ffffffffc385ecbd R14: ffff9abf18d1ea20 R15: 0000000000000000
[18116.365110] FS:  0000000000000000(0000) GS:ffff9ac186580000(0000) 
knlGS:0000000000000000
[18116.365111] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[18116.365112] CR2: 0000563f2813f130 CR3: 0000000240210002 CR4: 00000000003706e0
[18116.365113] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[18116.365113] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[18116.365114] Call Trace:
[18116.365115]  <TASK>
[18116.365117]  sysfs_remove_file_ns+0x15/0x20
[18116.365119]  device_remove_file+0x15/0x20
[18116.365122]  hidpp_ff_destroy+0x3b/0x52 [hid_logitech_hidpp]
[18116.365125]  input_ff_destroy+0x33/0x60
[18116.365127]  input_dev_release+0x1e/0x60
[18116.365130]  device_release+0x3b/0xa0
[18116.365131]  kobject_release+0x48/0x150
[18116.365133]  kobject_put+0x49/0x60
[18116.365134]  put_device+0x13/0x20
[18116.365136]  evdev_free+0x27/0x40
[18116.365137]  device_release+0x3b/0xa0
[18116.365139]  kobject_release+0x48/0x150
[18116.365140]  kobject_put+0x49/0x60
[18116.365141]  cdev_default_release+0x1c/0x20
[18116.365143]  kobject_release+0x48/0x150
[18116.365144]  kobject_put+0x49/0x60
[18116.365145]  cdev_put.part.0+0x14/0x20
[18116.365146]  cdev_put+0x13/0x20
[18116.365147]  __fput+0x23c/0x250
[18116.365149]  ____fput+0xe/0x10
[18116.365151]  task_work_run+0x70/0xb0
[18116.365153]  do_exit+0x36c/0xae0
[18116.365155]  ? __cond_resched+0x19/0x30
[18116.365157]  ? mutex_lock+0x13/0x40
[18116.365159]  do_group_exit+0x43/0xb0
[18116.365160]  get_signal+0x157/0x8c0
[18116.365162]  arch_do_signal_or_restart+0xf3/0x290
[18116.365165]  exit_to_user_mode_prepare+0x13b/0x1d0
[18116.365166]  syscall_exit_to_user_mode+0x27/0x50
[18116.365169]  do_syscall_64+0x48/0xc0
[18116.365171]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[18116.365173] RIP: 0033:0x7f35d3b5a9cf
[18116.365174] Code: Unable to access opcode bytes at RIP 0x7f35d3b5a9a5.
[18116.365174] RSP: 002b:00007f35b3ffec40 EFLAGS: 00000293 ORIG_RAX: 
0000000000000007
[18116.365176] RAX: fffffffffffffdfc RBX: 0000000001dae9a0 RCX: 00007f35d3b5a9cf
[18116.365177] RDX: 00000000ffffffff RSI: 0000000000000003 RDI: 00007f35ac007170
[18116.365177] RBP: 0000000001daeaa0 R08: 0000000000000000 R09: 00000000ffffffff
[18116.365178] R10: 0000000000000fd0 R11: 0000000000000293 R12: 00007f35ac007170
[18116.365179] R13: 0000000000000003 R14: 00000000ffffffff R15: 00007f35b3ffefc0
[18116.365180]  </TASK>
[18116.365181] ---[ end trace 66956ad63f9c8e75 ]---

```

[0] - https://github.com/berarma/oversteer

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.14.0-1033-oem 5.14.0-1033.36
ProcVersionSignature: Ubuntu 5.14.0-1033.36-oem 5.14.21
Uname: Linux 5.14.0-1033-oem x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.23
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: GNOME
Date: Mon May  2 21:49:17 2022
InstallationDate: Installed on 2017-05-24 (1804 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: linux-signed-oem-5.14
UpgradeStatus: Upgraded to focal on 2020-06-28 (673 days ago)

** Affects: linux-signed-oem-5.14 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal kernel kernel-bug kernfs logitech sysfs usb

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1971200

Title:
  Machine refuses to shutdown after wheel unplugged

Status in linux-signed-oem-5.14 package in Ubuntu:
  New

Bug description:
  After using my Logitech G920 whilst playing a game, or even having
  Oversteer[0] open, if I disconnect the wheel whilst one of the
  processes are still running, this will cause a kernel trace in dmesg:
  "kernfs: can not remove 'range', no directory" and then the machine
  will not shutdown unless forced using REISUO (or a hard power-off).

  Relevant portion of dmesg output:

  ```
  [18110.989873] usb 1-1: USB disconnect, device number 7
  [18116.364998] hid 0003:046D:C262.0\x8a\x9e: Unloading HID++ force feedback.
  [18116.365014] ------------[ cut here ]------------
  [18116.365015] kernfs: can not remove 'range', no directory
  [18116.365020] WARNING: CPU: 7 PID: 22533 at fs/kernfs/dir.c:1508 
kernfs_remove_by_name_ns+0x8a/0xa0
  [18116.365024] Modules linked in: option usb_wwan usbserial 
hid_logitech_hidpp veth nf_conntrack_netlink xt_nat xfrm_user xfrm_algo 
xt_addrtype vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) vhost_vsock 
vmw_vsock_virtio_transport_common vhost vhost_iotlb vsock snd_seq_dummy 
snd_hrtimer xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 
xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle iptable_nat nf_nat 
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink ip6table_filter 
ip6_tables iptable_filter bpfilter bridge stp llc overlay binfmt_misc 
nls_iso8859_1 xfs intel_rapl_msr mei_hdcp snd_hda_codec_realtek 
snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_usb_audio 
intel_rapl_common snd_hda_intel intel_tcc_cooling x86_pkg_temp_thermal 
snd_intel_dspcfg intel_powerclamp snd_intel_sdw_acpi snd_hda_codec 
snd_usbmidi_lib kvm_intel snd_hda_core snd_hwdep snd_seq_midi kvm 
snd_seq_midi_event uvcvideo rapl snd_rawmidi intel_cstate videobuf2_vmalloc 
snd_seq
  [18116.365059]  videobuf2_memops videobuf2_v4l2 snd_pcm input_leds joydev 
videobuf2_common snd_seq_device intel_wmi_thunderbolt snd_timer efi_pstore snd 
ee1004 mxm_wmi soundcore mei_me intel_pch_thermal mei mac_hid acpi_pad 
nvidia_uvm(POE) sch_fq_codel tcp_bbr v4l2loopback(OE) videodev mc cuse coretemp 
ipmi_devintf ipmi_msghandler msr nfsd parport_pc ppdev auth_rpcgss nfs_acl lp 
lockd grace parport sunrpc ip_tables x_tables autofs4 btrfs blake2b_generic 
zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor 
async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid 
hid nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) drm_kms_helper syscopyarea 
sysfillrect sysimgblt fb_sys_fops crct10dif_pclmul cec crc32_pclmul rc_core 
ghash_clmulni_intel aesni_intel crypto_simd cryptd i2c_i801 e1000e xhci_pci drm 
nvme xhci_pci_renesas i2c_smbus ahci nvme_core libahci wmi video
  [18116.365098] CPU: 7 PID: 22533 Comm: threaded-ml Tainted: P           OE    
 5.14.0-1033-oem #36-Ubuntu
  [18116.365100] Hardware name: Gigabyte Technology Co., Ltd. Z170X-Ultra 
Gaming/Z170X-Ultra Gaming-CF, BIOS F4 06/24/2016
  [18116.365101] RIP: 0010:kernfs_remove_by_name_ns+0x8a/0xa0
  [18116.365103] Code: 00 31 c0 41 5c 41 5d 41 5e 5d c3 48 c7 c7 20 3d 41 95 e8 
29 be 82 00 b8 fe ff ff ff eb e5 48 c7 c7 d0 3d fe 94 e8 f1 52 7c 00 <0f> 0b b8 
fe ff ff ff eb d0 66 66 2e 0f 1f 84 00 00 00 00 00 66 90
  [18116.365104] RSP: 0018:ffffa97491893aa0 EFLAGS: 00010286
  [18116.365106] RAX: 0000000000000000 RBX: ffff9ac0a96ab100 RCX: 
0000000000000027
  [18116.365107] RDX: 0000000000000027 RSI: 00000000ffffdfff RDI: 
ffff9ac1865a0988
  [18116.365108] RBP: ffffa97491893ab8 R08: ffff9ac1865a0980 R09: 
ffffa97491893878
  [18116.365108] R10: 0000000000000001 R11: 0000000000000001 R12: 
ffff9abe5300f8d0
  [18116.365109] R13: ffffffffc385ecbd R14: ffff9abf18d1ea20 R15: 
0000000000000000
  [18116.365110] FS:  0000000000000000(0000) GS:ffff9ac186580000(0000) 
knlGS:0000000000000000
  [18116.365111] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [18116.365112] CR2: 0000563f2813f130 CR3: 0000000240210002 CR4: 
00000000003706e0
  [18116.365113] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
  [18116.365113] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 
0000000000000400
  [18116.365114] Call Trace:
  [18116.365115]  <TASK>
  [18116.365117]  sysfs_remove_file_ns+0x15/0x20
  [18116.365119]  device_remove_file+0x15/0x20
  [18116.365122]  hidpp_ff_destroy+0x3b/0x52 [hid_logitech_hidpp]
  [18116.365125]  input_ff_destroy+0x33/0x60
  [18116.365127]  input_dev_release+0x1e/0x60
  [18116.365130]  device_release+0x3b/0xa0
  [18116.365131]  kobject_release+0x48/0x150
  [18116.365133]  kobject_put+0x49/0x60
  [18116.365134]  put_device+0x13/0x20
  [18116.365136]  evdev_free+0x27/0x40
  [18116.365137]  device_release+0x3b/0xa0
  [18116.365139]  kobject_release+0x48/0x150
  [18116.365140]  kobject_put+0x49/0x60
  [18116.365141]  cdev_default_release+0x1c/0x20
  [18116.365143]  kobject_release+0x48/0x150
  [18116.365144]  kobject_put+0x49/0x60
  [18116.365145]  cdev_put.part.0+0x14/0x20
  [18116.365146]  cdev_put+0x13/0x20
  [18116.365147]  __fput+0x23c/0x250
  [18116.365149]  ____fput+0xe/0x10
  [18116.365151]  task_work_run+0x70/0xb0
  [18116.365153]  do_exit+0x36c/0xae0
  [18116.365155]  ? __cond_resched+0x19/0x30
  [18116.365157]  ? mutex_lock+0x13/0x40
  [18116.365159]  do_group_exit+0x43/0xb0
  [18116.365160]  get_signal+0x157/0x8c0
  [18116.365162]  arch_do_signal_or_restart+0xf3/0x290
  [18116.365165]  exit_to_user_mode_prepare+0x13b/0x1d0
  [18116.365166]  syscall_exit_to_user_mode+0x27/0x50
  [18116.365169]  do_syscall_64+0x48/0xc0
  [18116.365171]  entry_SYSCALL_64_after_hwframe+0x44/0xae
  [18116.365173] RIP: 0033:0x7f35d3b5a9cf
  [18116.365174] Code: Unable to access opcode bytes at RIP 0x7f35d3b5a9a5.
  [18116.365174] RSP: 002b:00007f35b3ffec40 EFLAGS: 00000293 ORIG_RAX: 
0000000000000007
  [18116.365176] RAX: fffffffffffffdfc RBX: 0000000001dae9a0 RCX: 
00007f35d3b5a9cf
  [18116.365177] RDX: 00000000ffffffff RSI: 0000000000000003 RDI: 
00007f35ac007170
  [18116.365177] RBP: 0000000001daeaa0 R08: 0000000000000000 R09: 
00000000ffffffff
  [18116.365178] R10: 0000000000000fd0 R11: 0000000000000293 R12: 
00007f35ac007170
  [18116.365179] R13: 0000000000000003 R14: 00000000ffffffff R15: 
00007f35b3ffefc0
  [18116.365180]  </TASK>
  [18116.365181] ---[ end trace 66956ad63f9c8e75 ]---

  ```

  [0] - https://github.com/berarma/oversteer

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.14.0-1033-oem 5.14.0-1033.36
  ProcVersionSignature: Ubuntu 5.14.0-1033.36-oem 5.14.21
  Uname: Linux 5.14.0-1033-oem x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.23
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME
  Date: Mon May  2 21:49:17 2022
  InstallationDate: Installed on 2017-05-24 (1804 days ago)
  InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
  SourcePackage: linux-signed-oem-5.14
  UpgradeStatus: Upgraded to focal on 2020-06-28 (673 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-oem-5.14/+bug/1971200/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to