Your message dated Wed, 21 Dec 2022 14:27:27 +0100
with message-id <[email protected]>
and subject line should be fixed by now in bullseye-backports and bookworm
has caused the Debian Bug report #848995,
regarding atftpd: Large files cause transfer failures
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
848995: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848995
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: atftpd
Version: 0.7.git20120829-1
Severity: normal
Tags: lfs

Dear Maintainer,

Attempting to transfer a binary file with a length of 47462048 bytes causes
atftpd to send an ICMP port unreachable to the client. 

The server is run out of inetd:

tftp-server$ head -1 /etc/default/atftpd
USE_INETD=true
tftp-server$ grep tftp /etc/inetd.conf
tftp            dgram   udp4    wait    nobody /usr/sbin/tcpd 
/usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --maxthread 100 
--verbose=5 /tftpboot

We have attempted to transfer a binary file from a Cisco router to atftpd
via a directly-connected network segment. A tcpdump on the segment monitoring 
the transfer shows a port unreachable sent from the server (192.168.253.21):

15:19:59.411461 IP 192.168.253.21.44863 > 192.168.253.3.53337: UDP, length 4
15:19:59.412806 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 516
15:19:59.412899 IP 192.168.253.21.44863 > 192.168.253.3.53337: UDP, length 4
15:19:59.414381 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 516
15:19:59.414624 IP 192.168.253.21.44863 > 192.168.253.3.53337: UDP, length 37
15:19:59.417361 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 4
15:19:59.417448 IP 192.168.253.21 > 192.168.253.3: ICMP 192.168.253.21 udp port 
44863 unreachable, length 40
15:20:02.414195 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 4
15:20:02.414269 IP 192.168.253.21 > 192.168.253.3: ICMP 192.168.253.21 udp port 
44863 unreachable, length 40
15:20:06.413873 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 4
15:20:06.413949 IP 192.168.253.21 > 192.168.253.3: ICMP 192.168.253.21 udp port 
44863 unreachable, length 40
15:20:11.413464 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 4
15:20:11.413537 IP 192.168.253.21 > 192.168.253.3: ICMP 192.168.253.21 udp port 
44863 unreachable, length 40
15:20:17.412970 IP 192.168.253.3.53337 > 192.168.253.21.44863: UDP, length 4
15:20:17.413037 IP 192.168.253.21 > 192.168.253.3: ICMP 192.168.253.21 udp port 
44863 unreachable, length 40

The following log entries were written to /var/log/daemon.log

Dec 21 15:18:00 tftp-server in.tftpd[16688]: connect from 192.168.253.3 
(192.168.253.3)
Dec 21 15:18:00 tftp-server atftpd[16688]: Advanced Trivial FTP server started 
(0.7)
Dec 21 15:18:00 tftp-server atftpd[16688]: Fetching from 192.168.253.3 to 
c1841-adventerprisek9-mz.151-4.M9.bin
Dec 21 15:19:59 tftp-server atftpd[16688]: tftpd_file.c: 361: error writing to 
file /tftpboot/c1841-adventerprisek9-mz.151-4.M9.bin
Dec 21 15:23:00 tftp-server atftpd[16688]: atftpd terminating after 300 seconds
Dec 21 15:23:00 tftp-server atftpd[16688]: Main thread exiting

The end result was 33553920 bytes were transfered before the transfer failed:

tftp-server$ ls -l /tftpboot/c1841-adventerprisek9-mz.151-4.M9.bin 
-rw-r--r-- 1 nobody nogroup 33553920 Dec 21 15:19 
/tftpboot/c1841-adventerprisek9-mz.151-4.M9.bin

-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:       jessie
Architecture: armv7l

Kernel: Linux 4.4.34-v7+ (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages atftpd depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  libc6                  2.19-18+deb8u6
ii  libpcre3               2:8.35-3.3+deb8u4
ii  libwrap0               7.6.q-25
ii  lsb-base               4.1+Debian13+rpi1+nmu1
ii  update-inetd           4.43

Versions of packages atftpd recommends:
ii  openbsd-inetd [inet-superserver]  0.20140418-2

Versions of packages atftpd suggests:
ii  logrotate  3.8.7-1

-- debconf information:
  atftpd/tsize: true
  atftpd/tftpd-timeout: 300
  atftpd/timeout: true
  atftpd/basedir: /tftpboot
  atftpd/port: 69
  atftpd/blksize: true
  atftpd/maxthread: 100
  atftpd/verbosity: 5 (LOG_NOTICE)
  atftpd/logtofile: false
  atftpd/retry-timeout: 5
  atftpd/ttl: 1
  atftpd/logfile: /var/log/atftpd.log
  atftpd/mcast_addr: 239.239.239.0-255
  atftpd/multicast: true
  atftpd/use_inetd: true
  atftpd/mcast_port: 1758

--- End Message ---
--- Begin Message ---
This bug should be fixed in the meantime in bullseye-backports and
bookworm according to the testsuite.  Please reopen and provide more
information if it is still an issue. 

--- End Message ---

Reply via email to