FreeBSD/src 56fbfd1usr.sbin/lpr/lpd lpd.c lpd.8

lpd: Add timeout option

Set a 120-second receive timeout on all client connections, and add a
command-line option to change that value.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55400
DeltaFile
+20-12usr.sbin/lpr/lpd/lpd.c
+7-1usr.sbin/lpr/lpd/lpd.8
+27-132 files

FreeBSD/src 9065be0usr.sbin/lpr/lpd recvjob.c

lpd: Improve robustness

* Check for integer overflow when receiving file sizes.

* Check for buffer overflow when receiving file names, and fully
  validate the names.

* Check for integer overflow when checking for available disk space.

* Check for I/O errors when sending status codes.

* Enforce one job per connection and one control file per job (see
  code comments for additional details).

* Simplify readfile(), avoiding constructs vulnerable to integer
  overflow.

* Don't delete files we didn't create.


    [9 lines not shown]
DeltaFile
+189-102usr.sbin/lpr/lpd/recvjob.c
+189-1021 files

FreeNAS/freenas cc75cf9src/middlewared/middlewared/etc_files/proftpd tls.conf.mako, src/middlewared/middlewared/plugins/update_ utils.py

Merge branch 'master' of https://github.com/truenas/middleware into NAS-139874
DeltaFile
+294-0tests/api2/test_ftp_tls_cert_config.py
+284-0tests/sharing_protocols/ftp/test_ftp_tls_cert_ops.py
+5-0src/middlewared/middlewared/etc_files/proftpd/tls.conf.mako
+1-1src/middlewared/middlewared/plugins/update_/utils.py
+584-14 files

LLVM/project d215427llvm/lib/Target/SystemZ SystemZAsmPrinter.cpp, llvm/test/CodeGen/SystemZ zos-ada-relocations.ll

[SystemZ] Emit external aliases for indirect function descriptors in the ADA section

This is the last of the three patches aimed to support indirect symbol handling for
the SystemZ backend.

An external alias is emitted for indirect function descriptors within the ADA
section, rather than a temporary alias, while also setting all of the appropriate
symbol attributes that are needed for the HLASM streamer to emit the correct XATTR
and ALIAS instructions for the indirect symbols.

Moreover, this patch updates the `CodeGen/SystemZ/zos-ada-relocations.ll` test
as the ADA section is currently the only user of indirect symbols on z/OS.
DeltaFile
+7-4llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+5-1llvm/test/CodeGen/SystemZ/zos-ada-relocations.ll
+12-52 files

LLVM/project ac321c2llvm/include/llvm/MC MCSymbolGOFF.h MCSectionGOFF.h, llvm/lib/MC GOFFObjectWriter.cpp MCAsmInfoGOFF.cpp

[SystemZ] Emit external aliases required for indirect symbol handling support

This is the second of three patches aimed to support indirect symbol handling for
the SystemZ backend. An external name is added for both MC sections and symbols
and makes the relevant printers and writers utilize the external name when present.
Furthermore, the ALIAS HLASM instruction is emitted after every XATTR instruction.
DeltaFile
+20-15llvm/lib/MC/GOFFObjectWriter.cpp
+17-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.h
+9-0llvm/include/llvm/MC/MCSymbolGOFF.h
+8-0llvm/include/llvm/MC/MCSectionGOFF.h
+6-0llvm/lib/MC/MCAsmInfoGOFF.cpp
+4-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+64-156 files

LLVM/project ad410c6llvm/include/llvm/MC MCSymbolGOFF.h MCGOFFAttributes.h, llvm/lib/MC GOFFObjectWriter.cpp MCSymbolGOFF.cpp

[SystemZ] Add indirect reference bit XATTR REFERENCE(INDIRECT) for indirect symbol handling support

This is the first of three patches aimed to support indirect symbol handling for
the SystemZ backend. This PR introduces a `GOFF:ERAttr` to represent indirect
references, handles indirect symbols within `setSymbolAttribute()` by setting
the indirect reference bit, and also updates the HLASM streamer to emit
`XATTR REFERENCE(INDIRECT)` and various other combinations.
DeltaFile
+24-9llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+8-2llvm/include/llvm/MC/MCSymbolGOFF.h
+4-3llvm/lib/MC/GOFFObjectWriter.cpp
+3-1llvm/lib/MC/MCSymbolGOFF.cpp
+1-0llvm/include/llvm/MC/MCGOFFAttributes.h
+40-155 files

LLVM/project 143664fbolt/test merge-fdata-skip-truncated.test merge-fdata-no-lbr-mode.test, bolt/tools/merge-fdata merge-fdata.cpp

[BOLT][merge-fdata] Skip truncated lines in raw profile data (#183187)

Raw profile data file may contain lines truncated due to unexpected
app exit. This change is to have merge_fdata check number of fields
in each line of raw profile data file and ignore a line if the number
is not expected.
DeltaFile
+22-0bolt/tools/merge-fdata/merge-fdata.cpp
+20-0bolt/test/merge-fdata-skip-truncated.test
+3-3bolt/test/merge-fdata-no-lbr-mode.test
+3-3bolt/test/merge-fdata-bat-no-lbr.test
+2-2bolt/test/merge-fdata-mixed-mode.test
+2-2bolt/test/merge-fdata-mixed-bat-no-lbr.test
+52-106 files

FreeBSD/ports f625d43deskutils/podman-desktop Makefile

deskutils/podman-desktop: Bump port revision after electron40 update (1d5f6b6a85af)
DeltaFile
+1-1deskutils/podman-desktop/Makefile
+1-11 files

FreeBSD/ports 1d5f6b6devel/electron40 distinfo Makefile, devel/electron40/files patch-electron_spec_api-browser-window-spec.ts patch-chrome_common_chrome__features.cc

devel/electron40: Update to 40.6.1

Changelog: https://github.com/electron/electron/releases/tag/v40.6.1

Reported by:    GitHub (watch releases)
DeltaFile
+27-9devel/electron40/files/patch-electron_spec_api-browser-window-spec.ts
+11-11devel/electron40/distinfo
+4-4devel/electron40/files/patch-chrome_common_chrome__features.cc
+3-3devel/electron40/files/patch-chrome_common_chrome__features.h
+2-2devel/electron40/Makefile
+1-1devel/electron40/Makefile.version
+48-301 files not shown
+49-317 files

LLVM/project b75222cclang/lib/CIR/CodeGen TargetInfo.h, clang/lib/CIR/Dialect/IR CIRTypes.cpp

correct nits
DeltaFile
+3-1clang/lib/CIR/CodeGen/TargetInfo.h
+2-2clang/lib/CIR/Dialect/IR/CIRTypes.cpp
+2-2clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+7-53 files

LLVM/project d12870ellvm/lib/Target/RISCV RISCVOptWInstrs.cpp, llvm/test/CodeGen/RISCV opt-w-instrs-p-ext.mir

[RISCV] Add MERGE, MVM, and MVMN to isSignExtendedW in RISCVOptWInstrs. (#183433)

These instructions are a combination of AND/OR/XOR which return sign
extended values if all inputs are sign extended.
DeltaFile
+119-0llvm/test/CodeGen/RISCV/opt-w-instrs-p-ext.mir
+13-3llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp
+132-32 files

LLVM/project 8533889llvm/lib/Target/RISCV RISCVInstrInfoP.td RISCVISelDAGToDAG.cpp, llvm/test/CodeGen/RISCV rvp-unaligned-load-store.ll

[RISCV] Partial support for using PPAIRE.B/H to optimize unaligned load sequences. (#183423)

Patterns are based on patterns we use for Zbkb. We can't copy all
patterns because PPAIRE.B/H are a little different than PACKW/PACKH.

PACKW packs the first 16 bits of rs1 and rs2 and sign extends the upper
32 bits of rd. PACKH packs the first 8 bits of rs1 and rs2 and puts
zeros in bits 16 of rd.

PPAIRE.B copies the even bytes of rs1 to the even bytes of rd and copies
the even bytes of rs2 to the odd bytes of rd. PPAIRE.H is similar, but
copys halfwords instead of bytes. We can treat them equivalently to
PACKH/PACKW when we know that we only care about the lower halfword or
word, respectively of the result.
DeltaFile
+124-178llvm/test/CodeGen/RISCV/rvp-unaligned-load-store.ll
+27-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+6-0llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+157-1783 files

LLVM/project 5361c38llvm/lib/Target/SystemZ SystemZAsmPrinter.cpp, llvm/test/CodeGen/SystemZ zos-ada-relocations.ll

[SystemZ] Emit external aliases for indirect function descriptors in the ADA section

This is the last of the three patches aimed to support indirect symbol handling for
the SystemZ backend.

An external alias is emitted for indirect function descriptors within the ADA
section, rather than a temporary alias, while also setting all of the appropriate
symbol attributes that are needed for the HLASM streamer to emit the correct XATTR
and ALIAS instructions for the indirect symbols.

Moreover, this patch updates the `CodeGen/SystemZ/zos-ada-relocations.ll` test
as the ADA section is currently the only user of indirect symbols on z/OS.
DeltaFile
+7-4llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+5-1llvm/test/CodeGen/SystemZ/zos-ada-relocations.ll
+12-52 files

FreeBSD/ports fe3650awww/pocket-id distinfo Makefile

www/pocket-id: Update to 2.3.0

ChangeLog: https://github.com/pocket-id/pocket-id/releases/tag/v2.3.0
DeltaFile
+7-7www/pocket-id/distinfo
+1-1www/pocket-id/Makefile
+8-82 files

FreeBSD/ports 47aaf92security Makefile, security/py-unicode-show Makefile pkg-plist

security/py-unicode-show: New port: Detect and annotate suspicious Unicode characters in text or files

unicode-show is a utility that reads text input (from standard input
or files) and highlights suspicious Unicode characters, such as
those outside the safe ASCII range. This tool is useful for identifying
potentially malicious or misleading Unicode characters in source
code, logs, or user input.

WWW: https://www.kicksecure.com/wiki/Unicode-show
DeltaFile
+40-0security/py-unicode-show/Makefile
+22-0security/py-unicode-show/pkg-plist
+5-0security/py-unicode-show/pkg-descr
+3-0security/py-unicode-show/distinfo
+1-0security/Makefile
+71-05 files

LLVM/project dd9d242llvm/lib/Target/RISCV RISCVInstrInfoZb.td RISCVRegisterInfo.cpp, llvm/lib/Target/RISCV/AsmParser RISCVAsmParser.cpp

[RISCV] Treat zext.h as a separate instruction from pack(w) with Zbkb. (#183364)

The Zbb encoding for zext.h is a subset of the encoding for pack(w).

There is a statement in the ISA manual that says "For RV32, the pack
instruction with rs2=x0 is the zext.h instruction. Hence, for RV32, any
extension that contains the pack instruction also contains the zext.h
instruction"

This patch makes the zext.h instruction mnemonic canonical when only
Zbkb is enabled. -Mno-aliases will not disable the printing of zext.h. I
believe this matches binutils.

I've taught the assembler to remap PACK/PACKW to ZEXT_H to make printing
parsed assembly match the disassembler output.
DeltaFile
+6-19llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
+20-0llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+11-0llvm/test/MC/RISCV/rv64zcb-zbkb-valid.s
+11-0llvm/test/MC/RISCV/rv32zcb-zbkb-valid.s
+2-9llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+5-2llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
+55-301 files not shown
+57-337 files

LLVM/project 8d3ab19llvm/include/llvm/MC MCSymbolGOFF.h MCSectionGOFF.h, llvm/lib/MC GOFFObjectWriter.cpp MCAsmInfoGOFF.cpp

[SystemZ] Emit external aliases required for indirect symbol handling support

This is the second of three patches aimed to support indirect symbol handling for
the SystemZ backend. An external name is added for both MC sections and symbols
and makes the relevant printers and writers utilize the external name when present.
Furthermore, the ALIAS HLASM instruction is emitted after every XATTR instruction.
DeltaFile
+19-15llvm/lib/MC/GOFFObjectWriter.cpp
+17-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.h
+9-0llvm/include/llvm/MC/MCSymbolGOFF.h
+8-0llvm/include/llvm/MC/MCSectionGOFF.h
+6-0llvm/lib/MC/MCAsmInfoGOFF.cpp
+4-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+63-156 files

FreeBSD/src 122de34etc/mtree BSD.usr.dist BSD.debug.dist, share/examples Makefile

build: Move all of lp under LPR option

* Tag related directories with package=lp

* Make the examples/printing directory conditional on MK_LPR

* Make the hosts.lpd(5) manual page conditional on MK_LPR

MFC after:      3 days

(cherry picked from commit d4f6cb75424950ee776833ebc6b57855c094a610)
DeltaFile
+18-0tools/build/mk/OptionalObsoleteFiles.inc
+3-3etc/mtree/BSD.usr.dist
+2-2etc/mtree/BSD.debug.dist
+3-1share/examples/Makefile
+1-1share/man/man5/Makefile
+27-75 files

FreeBSD/src 9b75d6eusr.sbin/lpr/chkprintcap chkprintcap.8, usr.sbin/lpr/lp lp.1

lpr: Add deprecation notice

These programs require elevated privileges to work and have not seen
regular maintenance in decades.  Unless someone steps up and overhauls
them, we will have to remove them before 16.0.  Better-maintained
alternatives are available in ports (print/cups, sysutils/LPRng).

MFC after:      3 days

(cherry picked from commit d57dee7ab66f60537b557cb602be194e3eed253d)
DeltaFile
+3-0usr.sbin/lpr/chkprintcap/chkprintcap.8
+3-0usr.sbin/lpr/lp/lp.1
+3-0usr.sbin/lpr/lpc/lpc.8
+3-0usr.sbin/lpr/lpd/lpd.8
+3-0usr.sbin/lpr/lpq/lpq.1
+3-0usr.sbin/lpr/lpr/lpr.1
+18-04 files not shown
+30-010 files

FreeBSD/src 783cec7lib/libfetch common.c

libfetch: Gracefully skip unsupported protocols

If socket() fails because the address family or protocol is unsupported,
just continue with the next address.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55407

(cherry picked from commit b5d570e711da1dad303312bebaf1bd2fb720f0dc)
DeltaFile
+5-1lib/libfetch/common.c
+5-11 files

FreeBSD/src c0ec072lib/libfetch common.c

libfetch: Fail hard if interrupted while connecting

This fixes an issue where the first address that DNS returns is blocked
by a packet filter, so we hang for a while, then the user hits Ctrl-C,
interrupting connect(2), whereupon we move on to the next address, get
a connection, request the file, and return to fetch(1), which sees that
SIGINT was caught and bails.

Note that we make no attempt to enforce fetchTimeout in the connection
phase, and never have.  It's feasible, but non-trivial, so we'll leave
it as an exercise for future us.

PR:             293312
MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55406

(cherry picked from commit afbdcd402bb439bd3d487baaad63b68e95929265)
DeltaFile
+7-1lib/libfetch/common.c
+7-11 files

FreeBSD/src cee22aclib/libfetch common.c

libfetch: Clean up fetch_info usage

* Provide a wrapper for the common if (verbose) fetch_info(...) idiom.

* Replace remaining instances of fprintf(stderr, ...) with fetch_info().

* Fix a few style nits.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55405

(cherry picked from commit 1b7c4d29fdfc975facdc43f6da50947cf3bb8e4a)
DeltaFile
+34-54lib/libfetch/common.c
+34-541 files

FreeBSD/src c550d07usr.bin/m4 eval.c misc.c, usr.bin/m4/tests eval.m4 regress.eval.out

m4: Fix eval output width

According to POSIX, the optional third argument is the minimum number
of digits to print regardless of sign.  We interpreted it as the minimum
width of the output including the sign.  Additionally, the variable used
to hold this value was confusingly named “maxdigits”.

PR:             293214
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55311

(cherry picked from commit 507c611aeac7ca9aed12353b1044bb21ab00afae)
DeltaFile
+4-4usr.bin/m4/eval.c
+0-2usr.bin/m4/misc.c
+2-0usr.bin/m4/tests/eval.m4
+2-0usr.bin/m4/tests/regress.eval.out
+8-64 files

FreeBSD/src 31f3640lib/libfetch common.c

libfetch: Gracefully skip unsupported protocols

If socket() fails because the address family or protocol is unsupported,
just continue with the next address.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55407

(cherry picked from commit b5d570e711da1dad303312bebaf1bd2fb720f0dc)
DeltaFile
+5-1lib/libfetch/common.c
+5-11 files

FreeBSD/src cca6f5elib/libfetch common.c

libfetch: Fail hard if interrupted while connecting

This fixes an issue where the first address that DNS returns is blocked
by a packet filter, so we hang for a while, then the user hits Ctrl-C,
interrupting connect(2), whereupon we move on to the next address, get
a connection, request the file, and return to fetch(1), which sees that
SIGINT was caught and bails.

Note that we make no attempt to enforce fetchTimeout in the connection
phase, and never have.  It's feasible, but non-trivial, so we'll leave
it as an exercise for future us.

PR:             293312
MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55406

(cherry picked from commit afbdcd402bb439bd3d487baaad63b68e95929265)
DeltaFile
+7-1lib/libfetch/common.c
+7-11 files

FreeBSD/src 5c80cdblib/libfetch common.c

libfetch: Clean up fetch_info usage

* Provide a wrapper for the common if (verbose) fetch_info(...) idiom.

* Replace remaining instances of fprintf(stderr, ...) with fetch_info().

* Fix a few style nits.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55405

(cherry picked from commit 1b7c4d29fdfc975facdc43f6da50947cf3bb8e4a)
DeltaFile
+34-54lib/libfetch/common.c
+34-541 files

FreeBSD/src 15717ddusr.bin/m4 eval.c misc.c, usr.bin/m4/tests eval.m4 regress.eval.out

m4: Fix eval output width

According to POSIX, the optional third argument is the minimum number
of digits to print regardless of sign.  We interpreted it as the minimum
width of the output including the sign.  Additionally, the variable used
to hold this value was confusingly named “maxdigits”.

PR:             293214
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55311

(cherry picked from commit 507c611aeac7ca9aed12353b1044bb21ab00afae)
DeltaFile
+4-4usr.bin/m4/eval.c
+2-0usr.bin/m4/tests/eval.m4
+2-0usr.bin/m4/tests/regress.eval.out
+0-2usr.bin/m4/misc.c
+8-64 files

FreeBSD/src 4587768lib/libfetch common.c

libfetch: Clean up fetch_info usage

* Provide a wrapper for the common if (verbose) fetch_info(...) idiom.

* Replace remaining instances of fprintf(stderr, ...) with fetch_info().

* Fix a few style nits.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55405

(cherry picked from commit 1b7c4d29fdfc975facdc43f6da50947cf3bb8e4a)
DeltaFile
+34-54lib/libfetch/common.c
+34-541 files

FreeBSD/src d58ab2ausr.bin/diff diffreg_new.c

diff: Drop unnecessary casts, fix none algo

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55349

(cherry picked from commit d5404462f691230423dc8cc543c6fdc44f34ec31)
DeltaFile
+7-6usr.bin/diff/diffreg_new.c
+7-61 files

FreeBSD/src 3b879f7lib/libfetch common.c

libfetch: Fail hard if interrupted while connecting

This fixes an issue where the first address that DNS returns is blocked
by a packet filter, so we hang for a while, then the user hits Ctrl-C,
interrupting connect(2), whereupon we move on to the next address, get
a connection, request the file, and return to fetch(1), which sees that
SIGINT was caught and bails.

Note that we make no attempt to enforce fetchTimeout in the connection
phase, and never have.  It's feasible, but non-trivial, so we'll leave
it as an exercise for future us.

PR:             293312
MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55406

(cherry picked from commit afbdcd402bb439bd3d487baaad63b68e95929265)
DeltaFile
+7-1lib/libfetch/common.c
+7-11 files