Jump to content

transferring files >4GB not working anymore after upgrading to Kernel 6.6.31


heikow

Recommended Posts

Since I upgraded to Armbian 23.8.1 (Kernel 6.6.31) I cant copy larger files from a CIFS share to a local attached sata disk on my banana-pi.
Copy starts and gets stuck at around 4GB of transferred data ... its independant if I use rsync, cp or mv to transfer files.

What I can see in the logs directly after the transfer gets stuck:

root@nas03:~# dmesg
[ 1280.477240] ------------[ cut here ]------------
[ 1280.477276] WARNING: CPU: 1 PID: 4182 at lib/iov_iter.c:316 _copy_to_iter+0x3bd/0x3c4
[ 1280.477372] Modules linked in: cmac nls_utf8 cifs cifs_arc4 nls_ucs2_utils cifs_md4 fscache netfs zram evdev axp20x_adc lima gpu_sched drm_shmem_helper sun4i_gpadc_iio sun4i_ts sunxi_cir sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc display_connector uio_pdrv_genirq cpufreq_dt uio sunrpc ip_tables x_tables autofs4 axp20x_usb_power industrialio pinctrl_axp209 sun4i_gpadc sunxi phy_generic realtek
[ 1280.477746] CPU: 1 PID: 4182 Comm: cifsd Tainted: G         C         6.6.31-current-sunxi #1
[ 1280.477767] Hardware name: Allwinner sun7i (A20) Family
[ 1280.477789]  unwind_backtrace from show_stack+0x11/0x14
[ 1280.477824]  show_stack from dump_stack_lvl+0x2b/0x34
[ 1280.477851]  dump_stack_lvl from __warn+0xb5/0xe0
[ 1280.477877]  __warn from warn_slowpath_fmt+0xfb/0x104
[ 1280.477903]  warn_slowpath_fmt from _copy_to_iter+0x3bd/0x3c4
[ 1280.477932]  _copy_to_iter from __skb_datagram_iter+0x41/0x1cc
[ 1280.477962]  __skb_datagram_iter from skb_copy_datagram_iter+0x39/0x68
[ 1280.477988]  skb_copy_datagram_iter from tcp_recvmsg_locked+0x455/0x6a4
[ 1280.478016]  tcp_recvmsg_locked from tcp_recvmsg+0x55/0x14c
[ 1280.478035]  tcp_recvmsg from inet_recvmsg+0x31/0x9c
[ 1280.478059]  inet_recvmsg from sock_recvmsg+0x2d/0x44
[ 1280.478084]  sock_recvmsg from cifs_readv_from_socket+0xc5/0x278 [cifs]
[ 1280.478507]  cifs_readv_from_socket [cifs] from cifs_read_iter_from_socket+0x49/0x70 [cifs]
[ 1280.478880]  cifs_read_iter_from_socket [cifs] from cifs_readv_receive+0x153/0x450 [cifs]
[ 1280.479241]  cifs_readv_receive [cifs] from cifs_demultiplex_thread+0x2e1/0x6ec [cifs]
[ 1280.479655]  cifs_demultiplex_thread [cifs] from kthread+0xbf/0xd4
[ 1280.479924]  kthread from ret_from_fork+0x11/0x1c
[ 1280.479951] Exception stack(0xf129dfb0 to 0xf129dff8)
[ 1280.479968] dfa0:                                     00000000 00000000 00000000 00000000
[ 1280.479985] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1280.479999] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1280.480710] ---[ end trace 0000000000000000 ]---
[ 1280.485954] ------------[ cut here ]------------
[ 1280.485995] WARNING: CPU: 1 PID: 6177 at lib/iov_iter.c:560 iov_iter_zero+0x3c9/0x3d0
[ 1280.486335] Modules linked in: cmac nls_utf8 cifs cifs_arc4 nls_ucs2_utils cifs_md4 fscache netfs zram evdev axp20x_adc lima gpu_sched drm_shmem_helper sun4i_gpadc_iio sun4i_ts sunxi_cir sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc display_connector uio_pdrv_genirq cpufreq_dt uio sunrpc ip_tables x_tables autofs4 axp20x_usb_power industrialio pinctrl_axp209 sun4i_gpadc sunxi phy_generic realtek
[ 1280.487924] CPU: 1 PID: 6177 Comm: kworker/1:1 Tainted: G        WC         6.6.31-current-sunxi #1
[ 1280.487946] Hardware name: Allwinner sun7i (A20) Family
[ 1280.487961] Workqueue: cifsiod cifs_readahead_complete [cifs]
[ 1280.488367]  unwind_backtrace from show_stack+0x11/0x14
[ 1280.488405]  show_stack from dump_stack_lvl+0x2b/0x34
[ 1280.488432]  dump_stack_lvl from __warn+0xb5/0xe0
[ 1280.488459]  __warn from warn_slowpath_fmt+0xfb/0x104
[ 1280.488485]  warn_slowpath_fmt from iov_iter_zero+0x3c9/0x3d0
[ 1280.488515]  iov_iter_zero from cifs_readahead_complete+0x19d/0x1d0 [cifs]
[ 1280.488735]  cifs_readahead_complete [cifs] from process_one_work+0x113/0x2ac
[ 1280.488940]  process_one_work from worker_thread+0x21f/0x358
[ 1280.488972]  worker_thread from kthread+0xbf/0xd4
[ 1280.489004]  kthread from ret_from_fork+0x11/0x1c
[ 1280.489027] Exception stack(0xf0985fb0 to 0xf0985ff8)
[ 1280.489042] 5fa0:                                     00000000 00000000 00000000 00000000
[ 1280.489059] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1280.489073] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1280.489749] ---[ end trace 0000000000000000 ]---
[ 1280.494188] ------------[ cut here ]------------
[ 1280.494220] WARNING: CPU: 1 PID: 6177 at lib/iov_iter.c:560 iov_iter_zero+0x3c9/0x3d0
[ 1280.494267] Modules linked in: cmac nls_utf8 cifs cifs_arc4 nls_ucs2_utils cifs_md4 fscache netfs zram evdev axp20x_adc lima gpu_sched drm_shmem_helper sun4i_gpadc_iio sun4i_ts sunxi_cir sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc display_connector uio_pdrv_genirq cpufreq_dt uio sunrpc ip_tables x_tables autofs4 axp20x_usb_power industrialio pinctrl_axp209 sun4i_gpadc sunxi phy_generic realtek
[ 1280.495285] CPU: 1 PID: 6177 Comm: kworker/1:1 Tainted: G        WC         6.6.31-current-sunxi #1
[ 1280.495310] Hardware name: Allwinner sun7i (A20) Family
[ 1280.495323] Workqueue: cifsiod cifs_readahead_complete [cifs]
[ 1280.495744]  unwind_backtrace from show_stack+0x11/0x14
[ 1280.495788]  show_stack from dump_stack_lvl+0x2b/0x34
[ 1280.495817]  dump_stack_lvl from __warn+0xb5/0xe0
[ 1280.495846]  __warn from warn_slowpath_fmt+0xfb/0x104
[ 1280.495872]  warn_slowpath_fmt from iov_iter_zero+0x3c9/0x3d0
[ 1280.495903]  iov_iter_zero from cifs_readahead_complete+0x19d/0x1d0 [cifs]
[ 1280.496183]  cifs_readahead_complete [cifs] from process_one_work+0x113/0x2ac
[ 1280.496418]  process_one_work from worker_thread+0x21f/0x358
[ 1280.496450]  worker_thread from kthread+0xbf/0xd4
[ 1280.496481]  kthread from ret_from_fork+0x11/0x1c
[ 1280.496505] Exception stack(0xf0985fb0 to 0xf0985ff8)
[ 1280.496520] 5fa0:                                     00000000 00000000 00000000 00000000
[ 1280.496536] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1280.496550] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1280.496705] ---[ end trace 0000000000000000 ]---
[ 1280.497845] ------------[ cut here ]------------
[ 1280.497864] WARNING: CPU: 1 PID: 6177 at lib/iov_iter.c:560 iov_iter_zero+0x3c9/0x3d0
[ 1280.497903] Modules linked in: cmac nls_utf8 cifs cifs_arc4 nls_ucs2_utils cifs_md4 fscache netfs zram evdev axp20x_adc lima gpu_sched drm_shmem_helper sun4i_gpadc_iio sun4i_ts sunxi_cir sunxi_cedrus(C) v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videodev videobuf2_common mc display_connector uio_pdrv_genirq cpufreq_dt uio sunrpc ip_tables x_tables autofs4 axp20x_usb_power industrialio pinctrl_axp209 sun4i_gpadc sunxi phy_generic realtek
[ 1280.498159] CPU: 1 PID: 6177 Comm: kworker/1:1 Tainted: G        WC         6.6.31-current-sunxi #1
[ 1280.498179] Hardware name: Allwinner sun7i (A20) Family
[ 1280.498192] Workqueue: cifsiod cifs_readahead_complete [cifs]
[ 1280.498558]  unwind_backtrace from show_stack+0x11/0x14
[ 1280.498594]  show_stack from dump_stack_lvl+0x2b/0x34
[ 1280.498622]  dump_stack_lvl from __warn+0xb5/0xe0
[ 1280.498651]  __warn from warn_slowpath_fmt+0xfb/0x104
[ 1280.498678]  warn_slowpath_fmt from iov_iter_zero+0x3c9/0x3d0
[ 1280.498709]  iov_iter_zero from cifs_readahead_complete+0x19d/0x1d0 [cifs]
[ 1280.498977]  cifs_readahead_complete [cifs] from process_one_work+0x113/0x2ac
[ 1280.499227]  process_one_work from worker_thread+0x21f/0x358
[ 1280.499263]  worker_thread from kthread+0xbf/0xd4
[ 1280.499295]  kthread from ret_from_fork+0x11/0x1c
[ 1280.499320] Exception stack(0xf0985fb0 to 0xf0985ff8)
[ 1280.499335] 5fa0:                                     00000000 00000000 00000000 00000000
[ 1280.499351] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1280.499366] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1280.499498] ---[ end trace 0000000000000000 ]---
[ 1280.513191] CIFS: trying to dequeue a deleted mid
root@nas03:~#
root@nas03:~#
root@nas03:~# ps -ef | grep 6177
root      6177     2  3 17:13 ?        00:00:34 [kworker/1:1+events_freezable_power_]
root@nas03:~#
root@nas03:~# ps -ef | grep 4182
root      4182     2  8 17:10 ?        00:02:26 [cifsd]
root@nas03:~#

 

 

at this point nothing happens anymore on the copy command but system is running and I am able to login. I can see around 45% iowait then without any byte transferred any longer.
Going back to  Kernel 6.1.63 things are again working and files much larger than 4GB will work as expected.

Are there any ideas about how to solve out there or hints I could check?

Many thanks in advance for any help!!

best regards,
Heiko

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines