All of lore.kernel.org
 help / color / mirror / Atom feed
From: Teresa Remmet <t.remmet@phytec.de>
To: barebox@lists.infradead.org
Subject: Transferring files over tftp
Date: Thu, 15 Nov 2018 16:24:18 +0100	[thread overview]
Message-ID: <1542295458.2675.12.camel@phytec.de> (raw)

Hello,

I am facing tftp issues when trying to transfer files > 2GB. This ends up in a crash:

barebox@Phytec phyCORE AM335x:/ cp /mnt/tftp/2GB_plus_1M .
eth0: 100Mbps full duplex link detected
T T T T T T T T T T T T T T read: Connection timed out
unable to handle paging request at address 0x200d319a
pc : [<9fe0587a>]    lr : [<9fe058cb>]
sp : 9ffef810  ip : ffffffff  fp : 9004d4d0
r10: 00000000  r9 : 9004e410  r8 : 00000006
r7 : 00000000  r6 : 8fefeec0  r5 : a79cdbf6  r4 : 200d318e
r3 : 0000001a  r2 : 00000019  r1 : 9004f40c  r0 : 8fefeec0
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32
[<9fe0587a>] (remove_free_block+0xe/0x3e) from [<9fe058cb>] (block_remove+0x21/0x24)
[<9fe058cb>] (block_remove+0x21/0x24) from [<9fe058eb>] (block_merge_next+0x1d/0x34)
[<9fe058eb>] (block_merge_next+0x1d/0x34) from [<9fe05b73>] (tlsf_free+0x55/0x62)
[<9fe05b73>] (tlsf_free+0x55/0x62) from [<9fe408e7>] (copy_file+0x77/0x13c)
[<9fe408e7>] (copy_file+0x77/0x13c) from [<9fe33c41>] (do_cp+0x101/0x124)
[<9fe33c41>] (do_cp+0x101/0x124) from [<9fe0318d>] (execute_command+0x21/0x48)
[<9fe0318d>] (execute_command+0x21/0x48) from [<9fe07c81>] (run_list_real+0x5a9/0x608)
[<9fe07c81>] (run_list_real+0x5a9/0x608) from [<9fe075dd>] (parse_stream_outer+0x105/0x1
5c)
[<9fe075dd>] (parse_stream_outer+0x105/0x15c) from [<9fe07ea3>] (run_shell+0x33/0x60)
[<9fe07ea3>] (run_shell+0x33/0x60) from [<9fe0318d>] (execute_command+0x21/0x48)
[<9fe0318d>] (execute_command+0x21/0x48) from [<9fe07c81>] (run_list_real+0x5a9/0x608)
[<9fe07c81>] (run_list_real+0x5a9/0x608) from [<9fe0796d>] (run_list_real+0x295/0x608)

[<9fe5603d>] (unwind_backtrace+0x1/0x58) from [<9fe00cf1>] (panic+0x1d/0x34)
[<9fe00cf1>] (panic+0x1d/0x34) from [<9fe543ad>] (do_exception+0xd/0x10)
[<9fe543ad>] (do_exception+0xd/0x10) from [<9fe5440d>] (do_data_abort+0x21/0x2c)
[<9fe5440d>] (do_data_abort+0x21/0x2c) from [<9fe54134>] (do_abort_6+0x48/0x54)

Copying a file <2GB works even without timeouts.

Causing this seems to be commit:

commit e3e55fa3aa698bb92fa4362a36e102749c13c124
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Thu Aug 30 12:27:00 2018 +0200

    fs: tftp: improve file size handling
    
    Previously we used FILE_SIZE_STREAM unconditionally. Instead, fill the
    inode size with a valid filesize if we have one and only if not fall
    back to FILE_SIZE_STREAM.

Reverting the commit reveals a second issue. After 2GB the transfer breaks up silently.
Maybe some overflow? Any idea where to look at this further?

Thanks,
Teresa

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2018-11-15 15:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-15 15:24 Teresa Remmet [this message]
2018-11-16  7:32 ` Transferring files over tftp Sascha Hauer
2018-11-20 13:46   ` Teresa Remmet
2018-11-29  8:14   ` Teresa Remmet
2018-11-29 11:02     ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1542295458.2675.12.camel@phytec.de \
    --to=t.remmet@phytec.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.