New: freeze while write on external usb 3.0 hard disk
https://bugzilla.kernel.org/show_bug.cgi?id=204095
Bug ID: 204095
Summary: freeze while write on external usb 3.0 hard disk
Product: File System
Version: 2.5
Kernel Version: 5.2.0
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: ext4
Assignee: [email protected]
Reporter: [email protected]
Regression: NoUpdating the kernel from version 5.1.6 to version 5.2.0, I found the following bug:
lug 08 14:05:04 SOLE kernel: xhci_hcd 0000:03:00.0: swiotlb buffer is full (sz:
270336 bytes), total 32768 (slots), used 277 (slots)
lug 08 14:05:04 SOLE kernel: xhci_hcd 0000:03:00.0: overflow 0x0000000730f81000+270336 of DMA mask ffffffff bus mask 0
lug 08 14:05:04 SOLE kernel: WARNING: CPU: 5 PID: 678 at kernel/dma/direct.c:43 report_addr+0x33/0x60
lug 08 14:05:04 SOLE kernel: Modules linked in: battery rfcomm bnep mei_hdcp pktcdvd binfmt_misc snd_hda_codec_hdmi b43 dib7000p x86_pkg_temp_thermal intel_powerclamp mac80211 dvb_usb_dib0700 coretemp dib7000m dib0090 btusb btrtl dib0070 btbcm dib3000mc btintel dvb_usb eeepc_wmi dibx000_common asus_wmi wmi_bmof bluetooth cfg80211 input_leds ssb mmc_core pcmcia snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_hda_codec mei_me snd_hda_core mei snd_hwdep ie31200_edac pcc_cpufreq snd_seq snd_seq_device sky2 skge tun hso option usb_wwan usbserial af_packet joydev yenta_socket pcmcia_rsrc pcmcia_core snd_aloop snd_pcm snd_timer snd soundcore sbs sbshc ac serio_raw evdev ata_piix ata_generic e1000 uhci_hcd mptspi mptscsih mptbase parport_pc ppdev lp parport ip_tables x_tables ipv6 crc_ccitt algif_skcipher af_alg usbhid linear nbd loop uas usb_storage ghash_clmulni_intel nouveau i2c_algo_bit ttm drm_kms_helper ahci libahci bcma psmouse r8169 xhci_pci ehci_pci realtek libata drm e1000e
lug 08 14:05:04 SOLE kernel: ehci_hcd xhci_hcd mxm_wmi thermal aesni_intel fan wmi video button
lug 08 14:05:04 SOLE kernel: CPU: 5 PID: 678 Comm: usb-storage Not tainted 5.2.0-custom #1
lug 08 14:05:04 SOLE kernel: Hardware name: System manufacturer System Product Name/P8Z77-V DELUXE, BIOS 0703 02/14/2012
lug 08 14:05:04 SOLE kernel: RIP: 0010:report_addr+0x33/0x60
lug 08 14:05:04 SOLE kernel: Code: 48 8b 87 28 02 00 00 48 89 34 24 48 85 c0 74 2d 4c 8b 00 b8 fe ff ff ff 49 39 c0 76 14 80 3d 0b 16 23 02 00 0f 84 a9 0b 00 00 <0f> 0b 48 83 c4 08 c3 48 83 bf 38 02 00 00 00 74 ef eb e0 80 3d ec lug 08 14:05:04 SOLE kernel: RSP: 0018:ffffc90008627bd0 EFLAGS: 00010246 lug 08 14:05:04 SOLE kernel: RAX: 0000000000000000 RBX: ffff8887eab08430 RCX:
0000000000000000
lug 08 14:05:04 SOLE kernel: RDX: 0000000000000007 RSI: ffffffff8120a6a4 RDI:
0000000000000000
lug 08 14:05:04 SOLE kernel: RBP: 000000000000000c R08: 0000000000000001 R09:
0000000000000000
lug 08 14:05:04 SOLE kernel: R10: 0000000000000000 R11: 00000000000060a8 R12:
0000000000000011
lug 08 14:05:04 SOLE kernel: R13: 0000160000000000 R14: ffff8887eab082b0 R15:ffff8887fa5530b0
lug 08 14:05:04 SOLE kernel: FS: 0000000000000000(0000) GS:ffff8887feb40000(0000) knlGS:0000000000000000
lug 08 14:05:04 SOLE kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 lug 08 14:05:04 SOLE kernel: CR2: 000055c3e9c86378 CR3: 000000000320a003 CR4:00000000001606e0
lug 08 14:05:04 SOLE kernel: Call Trace:
lug 08 14:05:04 SOLE kernel: dma_direct_map_sg+0x163/0x190 lug 08 14:05:04 SOLE kernel: usb_hcd_map_urb_for_dma+0x33f/0x590 lug 08 14:05:04 SOLE kernel: usb_hcd_submit_urb+0x9b/0xc80 lug 08 14:05:04 SOLE kernel: ? __kmalloc+0x189/0x220 lug 08 14:05:04 SOLE kernel: ? usb_alloc_urb+0x23/0x70 lug 08 14:05:04 SOLE kernel: usb_sg_wait+0x82/0x160 lug 08 14:05:04 SOLE kernel: usb_stor_bulk_transfer_sglist.part.3+0x5b/0x100 [usb_storage] lug 08 14:05:04 SOLE kernel: usb_stor_Bulk_transport+0x192/0x420 [usb_storage] lug 08 14:05:04 SOLE kernel: ? preempt_count_sub.constprop.17+0xbe/0xc0 lug 08 14:05:04 SOLE kernel: usb_stor_invoke_transport+0x3a/0x530 [usb_storage] lug 08 14:05:04 SOLE kernel: ? preempt_count_sub+0x98/0xe0 lug 08 14:05:04 SOLE kernel: usb_stor_control_thread+0x205/0x4a0 [usb_storage] lug 08 14:05:04 SOLE kernel: ? usb_stor_disconnect+0xb0/0xb0 [usb_storage] lug 08 14:05:04 SOLE kernel: kthread+0x157/0x170 lug 08 14:05:04 SOLE kernel: ? kthread_park+0x80/0x80 lug 08 14:05:04 SOLE kernel: ret_from_fork+0x3a/0x50
lug 08 14:05:04 SOLE kernel: ---[ end trace 29f12689feaddfde ]---
next messages:
lug 08 14:05:04 SOLE kernel: xhci_hcd 0000:03:00.0: swiotlb buffer is full (sz:
270336 bytes), total 32768 (slots), used 277 (slots)
lug 08 14:05:04 SOLE kernel: xhci_hcd 0000:03:00.0: swiotlb buffer is full (sz:
270336 bytes), total 32768 (slots), used 277 (slots)
lug 08 14:05:04 SOLE kernel: xhci_hcd 0000:03:00.0: swiotlb buffer is full (sz:
270336 bytes), total 32768 (slots), used 277 (slots)
...
lug 08 14:05:09 SOLE kernel: swiotlb_tbl_map_single: 72389 callbacks suppressed
...
Details:
- connect external usb 3.0 hard disk
- mount ext4 partition
- write some data
- after some freeze copy with bash / cp
note: previous kernel versions work correctly
Thanks,
Antonio
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204095] freeze while write on external usb 3.0 hard disk
https://bugzilla.kernel.org/show_bug.cgi?id=204095
--- Comment #1 from anthony ([email protected]) --- previous kernel ok: 5.1.16
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204095] freeze while write on external usb 3.0 hard disk
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204095
anthony ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|ext4 |USB
Product|File System |DriversSignature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204095] freeze while write on external usb 3.0 hard disk
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204095
anthony ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version|5.2.0 |5.2
--- Comment #2 from anthony ([email protected]) --- also the 5.1.17 version seems ok
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204095] freeze while write on external usb 3.0 hard disk
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204095
John Yost ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from John Yost ([email protected]) ---
Just a me-to. I'm having the same issue. Works fine in all previous kernels problem started in 5.2.0 and persists in 5.2.1
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204095] freeze while write on external usb 3.0 hard disk
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204095
--- Comment #4 from John Yost ([email protected]) --- This info may help the person trying to solve the issus
Jul 12 11:16:12 NVMe kernel: [ 123.758841] xhci_hcd 0000:07:00.0: swiotlb buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots) Jul 12 11:16:12 NVMe kernel: [ 123.758845] xhci_hcd 0000:07:00.0: overflow 0x00000007c67ab000+348160 of DMA mask ffffffff bus mask 0 Jul 12 11:16:12 NVMe kernel: [ 123.758856] WARNING: CPU: 0 PID: 924 at kernel/dma/direct.c:43 report_addr+0x2f/0x90 Jul 12 11:16:12 NVMe kernel: [ 123.758857] Modules linked in: ipv6 xt_limit
xt_pkttype ipt_REJECT nf_reject_ipv4 xt_tcpudp nf_log_ipv4 nf_log_common xt_LOG xt_conntrack iptable_mangle iptable_nat iptable_filter nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_tables x_tables cfg80211 rfkill hid_generic usbhid hid fuse uas usb_storage snd_hda_codec_hdmi coretemp intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek kvm_intel snd_hda_codec_generic ledtrig_audio kvm irqbypass i2c_dev mxm_wmi crct10dif_pclmul crc32_pclmul i915 crc32c_intel cec rc_core drm_kms_helper ghash_clmulni_intel snd_hda_intel drm snd_hda_codec intel_cstate snd_hda_core intel_gtt snd_hwdep intel_rapl_perf snd_pcm snd_timer evdev agpgart i2c_algo_bit serio_raw fb_sys_fops snd syscopyarea sysfillrect tg3 sysimgblt i2c_i801 xhci_pci soundcore mei_me xhci_hcd lpc_ich i2c_core ehci_pci libphy mei ehci_hcd ie31200_edac hwmon wmi video pcc_cpufreq intel_smartconnect button loop
Jul 12 11:16:12 NVMe kernel: [ 123.758903] CPU: 0 PID: 924 Comm: usb-storage Not tainted 5.2.0 #3 Jul 12 11:16:12 NVMe kernel: [ 123.758904] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z77 Extreme4, BIOS P2.90 07/11/2013 Jul 12 11:16:12 NVMe kernel: [ 123.758907] RIP: 0010:report_addr+0x2f/0x90 Jul 12 11:16:12 NVMe kernel: [ 123.758909] Code: 48 83 ec 08 48 8b 87 28 02 00 00 48 89 34 24 48 85 c0 74 29 4c 8b 00 b8 fe ff ff ff 49 39 c0 76 10 80 3d 43 cf a7 01 00 74 31 <0f> 0b 48 83 c4 08 c3 48 83 bf 38 02 00 00 00 75 e6 eb ed 80 3d 28 Jul 12 11:16:12 NVMe kernel: [ 123.758911] RSP: 0018:ffffa46203ef7bc8 EFLAGS: 00010282 Jul 12 11:16:12 NVMe kernel: [ 123.758912] RAX: 0000000000000000 RBX: ffff90f1fb5b30b0 RCX: 0000000000000006 Jul 12 11:16:12 NVMe kernel: [ 123.758913] RDX: 0000000000000000 RSI: 0000000000000082 RDI: ffff90f1ff4164c0 Jul 12 11:16:12 NVMe kernel: [ 123.758914] RBP: 0000000000055000 R08: 000000000001279c R09: 0000000000000384 Jul 12 11:16:12 NVMe kernel: [ 123.758915] R10: 0000000000000000 R11: 0000000000000384 R12: ffff90f1fb5b30b0 Jul 12 11:16:12 NVMe kernel: [ 123.758916] R13: 0000000000000001 R14: 0000000000000000 R15: ffff90f1f13102b0 Jul 12 11:16:12 NVMe kernel: [ 123.758918] FS: 0000000000000000(0000) GS:ffff90f1ff400000(0000) knlGS:0000000000000000 Jul 12 11:16:12 NVMe kernel: [ 123.758919] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jul 12 11:16:12 NVMe kernel: [ 123.758921] CR2: 000000000189b000 CR3: 0000000320a0a005 CR4: 00000000001606f0 Jul 12 11:16:12 NVMe kernel: [ 123.758921] Call Trace: Jul 12 11:16:12 NVMe kernel: [ 123.758927] dma_direct_map_page+0xd9/0xf0 Jul 12 11:16:12 NVMe kernel: [ 123.758930] dma_direct_map_sg+0x64/0xb0 Jul 12 11:16:12 NVMe kernel: [ 123.758934] usb_hcd_map_urb_for_dma+0x3d1/0x540 Jul 12 11:16:12 NVMe kernel: [ 123.758937] usb_hcd_submit_urb+0x84/0xa00 Jul 12 11:16:12 NVMe kernel: [ 123.758941] ? schedule_timeout+0x1dc/0x2f0 Jul 12 11:16:12 NVMe kernel: [ 123.758943] ? usb_hcd_submit_urb+0xa9/0xa00 Jul 12 11:16:12 NVMe kernel: [ 123.758946] ? __switch_to_asm+0x40/0x70 Jul 12 11:16:12 NVMe kernel: [ 123.758948] ? _cond_resched+0x16/0x40 Jul 12 11:16:12 NVMe kernel: [ 123.758951] ? __kmalloc+0x5d/0x200 Jul 12 11:16:12 NVMe kernel: [ 123.758954] ? usb_alloc_urb+0x24/0x60 Jul 12 11:16:12 NVMe kernel: [ 123.758956] usb_sg_wait+0x64/0x110 Jul 12 11:16:12 NVMe kernel: [ 123.758963] usb_stor_bulk_transfer_sglist.part.4+0x69/0xc0 [usb_storage] Jul 12 11:16:12 NVMe kernel: [ 123.758967] usb_stor_bulk_srb+0x68/0x80 [usb_storage] Jul 12 11:16:12 NVMe kernel: [ 123.758971] usb_stor_Bulk_transport+0x184/0x3e0 [usb_storage] Jul 12 11:16:12 NVMe kernel: [ 123.758973] ? schedule+0x33/0x90 Jul 12 11:16:12 NVMe kernel: [ 123.758976] usb_stor_invoke_transport+0x3a/0x4e0 [usb_storage] Jul 12 11:16:12 NVMe kernel: [ 123.758979] ? wait_for_completion_interruptible+0xaf/0x170 Jul 12 11:16:12 NVMe kernel: [ 123.758983] ? wake_up_q+0x80/0x80 Jul 12 11:16:12 NVMe kernel: [ 123.758986] usb_stor_control_thread+0x165/0x270 [usb_storage] Jul 12 11:16:12 NVMe kernel: [ 123.758990] ? fill_inquiry_response+0x20/0x20 [usb_storage] Jul 12 11:16:12 NVMe kernel: [ 123.758993] kthread+0xf8/0x130 Jul 12 11:16:12 NVMe kernel: [ 123.758996] ? kthread_destroy_worker+0x40/0x40 Jul 12 11:16:12 NVMe kernel: [ 123.758999] ret_from_fork+0x35/0x40 Jul 12 11:16:12 NVMe kernel: [ 123.759001] ---[ end trace 10d0ae5c82ba2fb9 ]--- Jul 12 11:16:12 NVMe kernel: [ 123.759072] xhci_hcd 0000:07:00.0: swiotlb buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots) Jul 12 11:16:12 NVMe kernel: [ 123.759141] xhci_hcd 0000:07:00.0: swiotlb buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots) Jul 12 11:16:12 NVMe kernel: [ 123.759210] xhci_hcd 0000:07:00.0: swiotlb buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots) Jul 12 11:16:12 NVMe kernel: [ 123.759278] xhci_hcd 0000:07:00.0: swiotlb buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots) Jul 12 11:16:12 NVMe kernel: [ 123.759363] xhci_hcd 0000:07:00.0: swiotlb buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots) Jul 12 11:16:12 NVMe kernel: [ 123.759433] xhci_hcd 0000:07:00.0: swiotlb
buffer is full (sz: 348160 bytes), total 32768 (slots), used 1 (slots)
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204095] freeze while write on external usb 3.0 hard disk
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=204095
Theodore Tso ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] Assignee|[email protected] |[email protected] |g |
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.