Bug 2180863 - [abrt] scsi_proc_hostdir_rm: WARNING: CPU: 2 PID: 28 at fs/proc/generic.c:718 remove_proc_entry+0x195/0x1b0
Summary: [abrt] scsi_proc_hostdir_rm: WARNING: CPU: 2 PID: 28 at fs/proc/generic.c:718...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e2e9de5deecf4e45ca4306a21e5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-22 12:46 UTC by Phil Hale
Modified: 2023-04-05 14:14 UTC (History)
18 users (show)

Fixed In Version: kernel-6.2.8-200.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-28 02:05:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dmesg (96.80 KB, text/plain)
2023-03-22 12:46 UTC, Phil Hale
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Linux Kernel 217215 0 P1 RESOLVED Oops removing usb drive 2023-03-24 08:14:54 UTC

Description Phil Hale 2023-03-22 12:46:37 UTC
Description of problem:
Upgraded system and rebooted.  Update included new Kernel 6.2.7-200 package.  Issue reported on reboot to new kernel.

Additional info:
reporter:       libreport-2.17.4
WARNING: CPU: 2 PID: 28 at fs/proc/generic.c:718 remove_proc_entry+0x195/0x1b0
Modules linked in: amdgpu iommu_v2 gpu_sched i915 radeon crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni drm_ttm_helper uas polyval_generic drm_buddy ttm usb_storage ghash_clmulni_intel nvme sha512_ssse3 drm_display_helper e1000e nvme_core nvme_common cec video wmi pinctrl_sunrisepoint scsi_dh_rdac scsi_dh_emc scsi_dh_alua ip6_tables ip_tables dm_multipath fuse
CPU: 2 PID: 28 Comm: kworker/2:0 Not tainted 6.2.7-200.fc37.x86_64 #1
Hardware name: Dell Inc. OptiPlex 7050/0XHGV1, BIOS 1.24.0 12/22/2022
Workqueue: usb_hub_wq hub_event
RIP: 0010:remove_proc_entry+0x195/0x1b0
Code: c7 70 82 89 8d 48 85 c0 48 8d 90 78 ff ff ff 48 0f 45 c2 48 8b 53 78 4c 8b 80 a0 00 00 00 48 8b 92 a0 00 00 00 e8 3b 8e c1 ff <0f> 0b e9 41 ff ff ff e8 9f 85 a6 00 66 66 2e 0f 1f 84 00 00 00 00
RSP: 0000:ffffb225c019bb50 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffa01dcab71240 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff8d8c1316 RDI: 00000000ffffffff
RBP: ffffa01dcab712c0 R08: 0000000000000000 R09: ffffb225c019b9e0
R10: 0000000000000003 R11: ffffffff8e1447c8 R12: ffffa01dc0f27cc0
R13: ffffa01dcac05568 R14: 0000000000000000 R15: ffffa01dcb623430
FS:  0000000000000000(0000) GS:ffffa024edc80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4aaafc0000 CR3: 00000001012c6005 CR4: 00000000003706e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 scsi_proc_hostdir_rm+0x75/0xc0
 scsi_host_dev_release+0x36/0xe0
 device_release+0x30/0x90
 kobject_put+0x87/0x1d0
 usb_unbind_interface+0x8c/0x270
 ? up_write+0x32/0x60
 device_release_driver_internal+0x1b2/0x230
 bus_remove_device+0xd8/0x150
 device_del+0x18b/0x410
 ? kobject_put+0x9c/0x1d0
 usb_disable_device+0xb7/0x1d0
 usb_disconnect+0xdf/0x2d0
 hub_event+0xa9b/0x1cd0
 ? __schedule+0x3d4/0x13c0
 process_one_work+0x1c5/0x3c0
 worker_thread+0x4d/0x380
 ? __pfx_worker_thread+0x10/0x10
 kthread+0xe6/0x110
 ? __pfx_kthread+0x10/0x10
 ret_from_fork+0x29/0x50
 </TASK>

Potential duplicate: bug 2180640

Comment 1 Phil Hale 2023-03-22 12:46:41 UTC
Created attachment 1952750 [details]
File: dmesg

Comment 2 Charlie 2023-03-23 12:53:35 UTC
Description of problem:
THe error appeared on startup. A pop when gnome launched.

Version-Release number of selected component:
kernel-core-6.2.7-200.fc37

Additional info:
reporter:       libreport-2.17.4
cmdline:        BOOT_IMAGE=(hd2,gpt2)/vmlinuz-6.2.7-200.fc37.x86_64 root=UUID=9ca8c6ea-31bf-4c66-8f79-5f9a14c40000 ro rootflags=subvol=root rhgb quiet
crash_function: scsi_proc_hostdir_rm
kernel:         6.2.7-200.fc37.x86_64
runlevel:       N 5
type:           Kerneloops

Truncated backtrace:
WARNING: CPU: 4 PID: 27879 at fs/proc/generic.c:718 remove_proc_entry+0x195/0x1b0
Modules linked in: xfs tls uinput rfcomm snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink qrtr bnep binfmt_misc vfat fat iwlmvm mac80211 snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_hda_codec_hdmi snd_hda_intel snd_sof_utils snd_intel_dspcfg snd_intel_sdw_acpi snd_soc_core snd_usb_audio libarc4 snd_hda_codec intel_rapl_msr btusb intel_rapl_common uvcvideo btrtl edac_mce_amd snd_compress snd_hda_core btbcm ac97_bus snd_pcm_dmaengine snd_pci_ps videobuf2_vmalloc kvm_amd videobuf2_memops btintel videobuf2_v4l2 snd_usbmidi_lib btmtk videobuf2_common iwlwifi snd_rpl_pci_acp6x kvm snd_hwdep snd_rawmidi snd_pci_acp6x bluetooth snd_seq snd_seq_device snd_pcm videodev irqbypass cfg80211 mc snd_pci_acp5x rapl
 joydev snd_timer snd_rn_pci_acp3x pcspkr k10temp snd_acp_config snd_soc_acpi snd ses enclosure i2c_amd_mp2_pci soundcore i2c_piix4 snd_pci_acp3x scsi_transport_sas rfkill acpi_cpufreq loop zram amdgpu hid_logitech_hidpp drm_ttm_helper crct10dif_pclmul ttm crc32_pclmul crc32c_intel polyval_clmulni iommu_v2 uas polyval_generic drm_buddy ghash_clmulni_intel usb_storage ucsi_acpi gpu_sched nvme serio_raw r8169 typec_ucsi sha512_ssse3 hid_logitech_dj ccp drm_display_helper nvme_core sp5100_tco video typec cec nvme_common wmi ip6_tables ip_tables fuse
CPU: 4 PID: 27879 Comm: kworker/4:1 Not tainted 6.2.7-200.fc37.x86_64 #1
Hardware name: AZW SER/SER, BIOS FP55A304 03/22/2022
Workqueue: usb_hub_wq hub_event
RIP: 0010:remove_proc_entry+0x195/0x1b0
Code: c7 70 82 89 ba 48 85 c0 48 8d 90 78 ff ff ff 48 0f 45 c2 48 8b 53 78 4c 8b 80 a0 00 00 00 48 8b 92 a0 00 00 00 e8 3b 8e c1 ff <0f> 0b e9 41 ff ff ff e8 9f 85 a6 00 66 66 2e 0f 1f 84 00 00 00 00
RSP: 0018:ffffbe40cef33b50 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff9bb7cc0b53c0 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffffba8c1316 RDI: 00000000ffffffff
RBP: ffff9bb7cc0b5440 R08: 0000000000000000 R09: ffffbe40cef339e0
R10: 0000000000000003 R11: ffffffffbb1447c8 R12: ffff9bb7c0cad240
R13: ffff9bb96be8a960 R14: 0000000000000000 R15: ffff9bb7fcad0030
FS:  0000000000000000(0000) GS:ffff9bba50d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056456338c988 CR3: 000000012e8ba000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 scsi_proc_hostdir_rm+0x75/0xc0
 scsi_host_dev_release+0x36/0xe0
 device_release+0x33/0x90
 kobject_put+0x8a/0x1d0
 usb_unbind_interface+0x8f/0x270
 ? up_write+0x32/0x60
 device_release_driver_internal+0x1b2/0x230
 bus_remove_device+0xd8/0x150
 device_del+0x18b/0x410
 ? kobject_put+0x9c/0x1d0
 usb_disable_device+0xb7/0x1d0
 usb_disconnect+0xdf/0x2d0
 hub_event+0xa9b/0x1cd0
 ? __schedule+0x3d4/0x13c0
 process_one_work+0x1c8/0x3c0
 worker_thread+0x4d/0x380
 ? _raw_spin_lock_irqsave+0x23/0x50
 ? __pfx_worker_thread+0x10/0x10
 kthread+0xe9/0x110
 ? __pfx_kthread+0x10/0x10
 ret_from_fork+0x2c/0x50
 </TASK>

Comment 3 Dominik 'Rathann' Mierzejewski 2023-03-24 08:11:27 UTC
Description of problem:
Connected and turned on a USB printer (HP LJ Pro M1132 MFP) which has a USB storage with Windows drivers. It gets recognized by usb-storage and then usb_modeswitch switches it to standard USB printer mode. This triggers the WARNING.

Version-Release number of selected component:
kernel-core-6.2.7-200.fc37

Additional info:
reporter:       libreport-2.17.4
cmdline:        BOOT_IMAGE=(hd0,gpt4)/vmlinuz-6.2.7-200.fc37.x86_64 root=/dev/mapper/rootvg-root ro rd.luks.uuid=luks-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rd.lvm.lv=rootvg/root rhgb quiet
crash_function: scsi_proc_hostdir_rm
kernel:         6.2.7-200.fc37.x86_64
runlevel:       N 5
type:           Kerneloops

Truncated backtrace:
WARNING: CPU: 0 PID: 278 at fs/proc/generic.c:718 remove_proc_entry+0x195/0x1b0
Modules linked in: snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set rfkill nf_tables nfnetlink f71882fg sunrpc vfat fat intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp at24 kvm_intel mei_hdcp mei_pxp kvm iTCO_wdt intel_pmc_bxt iTCO_vendor_support snd_hda_codec_realtek irqbypass snd_hda_codec_generic rapl snd_hda_codec_hdmi ledtrig_audio intel_cstate intel_uncore uvcvideo snd_hda_intel i2c_i801 snd_intel_dspcfg videobuf2_vmalloc mxm_wmi snd_intel_sdw_acpi i2c_smbus snd_usb_audio snd_hda_codec lpc_ich snd_usbmidi_lib videobuf2_memops videobuf2_v4l2 snd_hda_core snd_rawmidi videobuf2_common snd_hwdep videodev snd_seq snd_seq_device mei_me joydev snd_pcm mc mei snd_timer snd soundcore fuse loop zram dm_crypt r8152 mii hid_logitech_hidpp amdgpu
 i915 hid_jabra hid_logitech_dj crct10dif_pclmul crc32_pclmul crc32c_intel drm_ttm_helper polyval_clmulni polyval_generic ttm iommu_v2 drm_buddy gpu_sched ghash_clmulni_intel sha512_ssse3 uas e1000e usb_storage drm_display_helper cec video wmi i2c_dev
CPU: 0 PID: 278 Comm: kworker/0:3 Not tainted 6.2.7-200.fc37.x86_64 #1
Hardware name: MSI MS-7751/Z77A-GD65 (MS-7751), BIOS V10.11 10/09/2013
Workqueue: usb_hub_wq hub_event
RIP: 0010:remove_proc_entry+0x195/0x1b0
Code: c7 70 82 89 b3 48 85 c0 48 8d 90 78 ff ff ff 48 0f 45 c2 48 8b 53 78 4c 8b 80 a0 00 00 00 48 8b 92 a0 00 00 00 e8 3b 8e c1 ff <0f> 0b e9 41 ff ff ff e8 9f 85 a6 00 66 66 2e 0f 1f 84 00 00 00 00
RSP: 0018:ffffb51341847b50 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffa0c948cb3c00 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffffb38c1316 RDI: 00000000ffffffff
RBP: ffffa0c948cb3c80 R08: 0000000000000000 R09: ffffb513418479e0
R10: 0000000000000003 R11: ffffffffb41447c8 R12: ffffa0c940a19d80
R13: ffffa0c944f5f490 R14: 0000000000000000 R15: ffffa0c9442ccc30
FS:  0000000000000000(0000) GS:ffffa0cc5f600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2dae7cd750 CR3: 000000028a010006 CR4: 00000000001706f0
Call Trace:
 <TASK>
 scsi_proc_hostdir_rm+0x75/0xc0
 scsi_host_dev_release+0x36/0xe0
 device_release+0x33/0x90
 kobject_put+0x8a/0x1d0
 usb_unbind_interface+0x8f/0x270
 ? up_write+0x32/0x60
 device_release_driver_internal+0x1b2/0x230
 bus_remove_device+0xd8/0x150
 device_del+0x18b/0x410
 ? kobject_put+0x9c/0x1d0
 usb_disable_device+0xb7/0x1d0
 usb_disconnect+0xdf/0x2d0
 hub_event+0xa9b/0x1cd0
 ? __schedule+0x3d4/0x13c0
 ? queue_delayed_work_on+0x39/0x50
 ? _raw_spin_unlock_irq+0x1b/0x40
 ? disk_check_events+0x8c/0x100
 process_one_work+0x1c8/0x3c0
 worker_thread+0x4d/0x380
 ? _raw_spin_lock_irqsave+0x23/0x50
 ? __pfx_worker_thread+0x10/0x10
 kthread+0xe9/0x110
 ? __pfx_kthread+0x10/0x10
 ret_from_fork+0x2c/0x50
 </TASK>

Comment 4 Dominik 'Rathann' Mierzejewski 2023-03-24 08:14:54 UTC
This is looks related and could possibly be fixed by commit be03df3d4bfe ("scsi: core: Fix a procfs host directory removal regression").

Comment 5 Fedora Update System 2023-03-24 10:08:36 UTC
FEDORA-2023-fe2930213e has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-fe2930213e

Comment 6 Dominik 'Rathann' Mierzejewski 2023-03-24 10:09:24 UTC
And indeed it's fixed in 6.2.8-200.fc37.

Comment 7 Fedora Update System 2023-03-28 02:05:10 UTC
FEDORA-2023-fe2930213e has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Sandro 2023-04-05 14:14:42 UTC
Description of problem:
I removed a USB pen drive from the system at the time. I had it ejected in Nemo before physically removing it.

Version-Release number of selected component:
kernel-core-6.2.7-200.fc37

Additional info:
reporter:       libreport-2.17.4
cmdline:        BOOT_IMAGE=(hd0,msdos1)/vmlinuz-6.2.7-200.fc37.x86_64 root=/dev/mapper/system-root ro vconsole.font=latarcyrheb-sun16 rd.lvm.lv=system/root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
crash_function: scsi_proc_hostdir_rm
kernel:         6.2.7-200.fc37.x86_64
runlevel:       N 5
type:           Kerneloops

Truncated backtrace:
WARNING: CPU: 1 PID: 1223435 at fs/proc/generic.c:718 remove_proc_entry+0x195/0x1b0
Modules linked in: vfat fat snd_usb_audio snd_usbmidi_lib snd_rawmidi mc snd_seq_dummy snd_hrtimer rpcrdma rdma_cm iw_cm ib_cm ib_core tls nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_tftp nf_conntrack_tftp nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security ip_set nfnetlink rfkill ebtable_filter ebtables ip6table_filter iptable_filter qrtr it87 hwmon_vid binfmt_misc intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp mei_hdcp coretemp mei_pxp iTCO_wdt intel_pmc_bxt snd_hda_codec_realtek gpio_ich iTCO_vendor_support kvm_intel snd_hda_codec_generic raid1 ledtrig_audio kvm raid456 snd_hda_codec_hdmi irqbypass async_raid6_recov async_memcpy mxm_wmi async_pq rapl async_xor
 async_tx intel_cstate snd_hda_intel i2c_i801 intel_uncore snd_intel_dspcfg pcspkr snd_intel_sdw_acpi i2c_smbus snd_hda_codec snd_hda_core lpc_ich snd_hwdep snd_seq snd_seq_device usblp snd_pcm snd_timer mei_me snd mei soundcore nfsd auth_rpcgss nfs_acl lockd grace sunrpc loop zram amdgpu i915 crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni uas polyval_generic ghash_clmulni_intel usb_storage sha512_ssse3 drm_ttm_helper serio_raw iommu_v2 r8169 ttm e1000e gpu_sched video drm_buddy drm_display_helper wmi cec scsi_dh_rdac scsi_dh_emc scsi_dh_alua ip6_tables ip_tables dm_multipath analog gameport joydev fuse
CPU: 1 PID: 1223435 Comm: kworker/1:1 Not tainted 6.2.7-200.fc37.x86_64 #1
Hardware name: Gigabyte Technology Co., Ltd. Z68X-UD3H-B3/Z68X-UD3H-B3, BIOS F12 03/20/2012
Workqueue: usb_hub_wq hub_event
RIP: 0010:remove_proc_entry+0x195/0x1b0
Code: c7 70 82 89 a8 48 85 c0 48 8d 90 78 ff ff ff 48 0f 45 c2 48 8b 53 78 4c 8b 80 a0 00 00 00 48 8b 92 a0 00 00 00 e8 3b 8e c1 ff <0f> 0b e9 41 ff ff ff e8 9f 85 a6 00 66 66 2e 0f 1f 84 00 00 00 00
RSP: 0018:ffffb5cf0dc0fb50 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8a3b0e21af00 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffffa88c1316 RDI: 00000000ffffffff
RBP: ffff8a3b0e21af80 R08: 0000000000000000 R09: ffffb5cf0dc0f9e0
R10: 0000000000000003 R11: ffffffffa91447c8 R12: ffff8a3b00ea16c0
R13: ffff8a3d188a1fd8 R14: 0000000000000000 R15: ffff8a3b36a05c30
FS:  0000000000000000(0000) GS:ffff8a3e2fa40000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e1dcc23010 CR3: 000000011c010006 CR4: 00000000000606e0
Call Trace:
 <TASK>
 scsi_proc_hostdir_rm+0x75/0xc0
 scsi_host_dev_release+0x36/0xe0
 device_release+0x33/0x90
 kobject_put+0x8a/0x1d0
 usb_unbind_interface+0x8f/0x270
 ? up_write+0x32/0x60
 device_release_driver_internal+0x1b2/0x230
 bus_remove_device+0xd8/0x150
 device_del+0x18b/0x410
 ? kobject_put+0x9c/0x1d0
 usb_disable_device+0xb7/0x1d0
 usb_disconnect+0xdf/0x2d0
 ? __mutex_unlock_slowpath.constprop.0+0x83/0x100
 hub_event+0xa9b/0x1cd0
 ? __schedule+0x3d4/0x13c0
 ? add_timer_on+0xf2/0x160
 process_one_work+0x1c8/0x3c0
 worker_thread+0x4d/0x380
 ? _raw_spin_lock_irqsave+0x23/0x50
 ? __pfx_worker_thread+0x10/0x10
 kthread+0xe9/0x110
 ? __pfx_kthread+0x10/0x10
 ret_from_fork+0x2c/0x50
 </TASK>


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