2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-11-30 06:12:16 +00:00
Vinícius Ferrão 45aecc07cf feat(uftp): package UFTP 5.0.4 for UFTP image distribution
UFTP multicast distribution of stateless images needs the uftp sender
on the management node and the uftpd receiver in the image. RHEL and
EPEL do not ship UFTP, so xcat-dep builds it.

uftp/ holds the upstream 5.0.4 release archive, its SHA-256 in
SHA256SUMS, and a spec that patches it and builds it with the
distribution OpenSSL and build flags. The package installs the four
binaries in /usr/bin, where the upstream makefile puts them, and
enables no service. uftp/mockbuild.pl checks the archive and builds the
package with mock, like the other builders.

Sender:

- A STATUS for a section past the end of the file is rejected. It made
  the sender write past its NAK list.
- An encrypted message from a client without encryption state is
  rejected. It made the sender follow a null pointer.
- A file with more sections than the 16 bit section count holds stops
  the sender with an error. The count wrapped to 0, and the sender
  divided by it.
- The sender seeks past block 2^31, which the section count allows
  with large blocks. It retried that block without end.

Receiver:

- A FILESEG for a block that the file does not have is rejected. It
  made the receiver read and write past its NAK list.
- Each received block stays inside the disk cache. A normal transfer
  overran the cache when a short last block fell at its end.
- A last FILESEG of the wrong length is rejected. The receiver wrote
  bytes from past the disk cache into the file.
- A DONE for a section past the end of the file is rejected. It made
  the receiver read and write past its section lists.
- An ANNOUNCE with a block size that the sender does not accept is
  rejected. A block size of 0 made the receiver divide by zero.
- A name with ".." in any component is rejected. Only the first ".."
  was checked.
- An absolute name must be below a whole -D directory. With -D /dest,
  the name /dest-other/x matched.
- A path through a symbolic link is rejected. A link that the sender
  created let a later file go outside the destination directory.
- A FILEINFO with more sections than the 16 bit section count holds is
  rejected. The count wrapped to 0, and the receiver divided by it.
- The list of files that the receiver moves at the end of a group
  grows as needed. It overflowed after 10000 entries.
- Cleanup checks the path of a file again before it changes the file.
  Without -T, a FILEINFO of another group could put a symbolic link in
  the path, and cleanup then deleted a file outside the destination.
- The NAK list holds a whole section. A STATUS for a full section read
  and sent one byte past the list, which every file above 2 MiB
  reaches with 512 byte blocks.
- Cleanup leaves a file alone when another group replaced it. Without
  -T, an aborted group deleted the completed file of the other group.
- Cleanup checks the path of the unused file of a restarted group
  before it deletes that file. With -T, a symbolic link in that path
  made cleanup delete a file outside the temp directory.
- A backup with -A checks its path for a symbolic link. A link that an
  earlier backup moved into the backup directory sent a later backup
  outside it.
- A name of the destination directory itself, such as "." or
  "/dest/.", is rejected. A delete request for it emptied the
  destination directory.

Proxy:

- The client lists stay inside the packet buffer. With an RSA-2048 key
  and -b 8800, the KEYINFO key list overran it.
- An ANNOUNCE with a block size that the sender does not accept is
  rejected. A block size above the packet size made the proxy read
  past its buffers.
- The STATUS that the proxy sends for a full section carries the whole
  NAK list. It was one byte short, so the sender rejected it and never
  resent the blocks that clients behind the proxy lost.
- The NAKs of a client STATUS are read after its whole header, up to
  the end of the message. With -C tfmcc, the proxy read the TFMCC
  extension as NAKs. For a short section, it read old data from its
  buffer.

Each program carries "(xCAT build 1)" in its version string, so that
xCAT can refuse a UFTP build without these fixes.

mockbuild-all.pl runs the builder for every EL target, riscv64
included, and every EL section of packages-manifest.conf lists
uftp=5.0.4. xCAT does not require uftp, so it stays out of the required
set, like conserver-xcat.

The package is EL-only for now. There is no deb, and the uftp 4.10 that
Ubuntu ships is not supported: the sender and the receiver must both
run UFTP 5.

The archive is the SourceForge release file. Its MD5 matches the one
SourceForge publishes.
2026-10-19 20:37:40 -03:00
2013-05-29 14:58:44 +00:00
2008-10-13 15:50:23 +00:00
2011-11-08 18:33:23 +00:00
2009-07-08 18:55:52 +00:00
2020-01-06 16:34:55 -05:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2008-04-10 19:42:20 +00:00
2011-09-21 19:13:13 +00:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2022-09-26 16:20:45 +02:00
2018-11-23 15:20:55 +08:00
2018-11-23 15:20:55 +08:00
2009-04-24 20:17:23 +00:00
2016-12-12 13:44:39 -05:00
S
Description
No description provided
245 MiB
Languages
Perl 79.3%
JavaScript 6.3%
C 3.9%
Shell 3.1%
SQLPL 2%
Other 5.2%