llvm: Don't install /usr/bin/{gcov,objdump} twice
Commit c4f08d46c7f7 moved the symlinks for the LLVM binutils from LLVM
itself to the toolchain (usr.bin/clang/toolchain), but did not remove
the links for /usr/bin/gcov and /usr/bin/objdump from the llvm version,
meaning we installed them twice, once in the clang package and once in
the toolchain package.
Remove the links from the llvm version and move the MLINKs to toolchain,
which is where the other MLINKs dwell.
While here, fix toolchain to use the correct build option for llvm-cov,
MK_LLVM_COV.
Fixes: c4f08d46c7f7 ("llvm-*: Move all LLVM_BINUTILS symlinks to toolchain package")
Reported by: jrm
Reviewed by: jrm, dim, emaste
Sponsored by: https://www.patreon.com/bsdivy
Differential Revision: https://reviews.freebsd.org/D56788
Fix listdir contents for child datasets
This commit fixes directory listing such that it includes
child filesystems by using the recently-added
include_mountpoints keyword argument for iter_filesystem_contents.
[CodeExtractor] Reset stale FuncRetVal in findInputsOutputs (#195484)
HotColdSplitting calls findInputsOutputs once for cost analysis before
extractCodeRegion runs normalizeCFGForExtraction. The first call may set
FuncRetVal to a single-output value which severSplitPHINodesOfEntry then
moves back into the parent function. The second findInputsOutputs call
correctly finds zero outputs but leaves FuncRetVal pointing at the
parent's instruction, so the cold function emits a `ret` referencing a
value in another function and fails verification.
Reset FuncRetVal at the start of the selection block so each call
recomputes it from the current CFG.
rdar://176075761
Fix listdir contents for child datasets
This commit fixes directory listing such that it includes
child filesystems by using the recently-added
include_mountpoints keyword argument for iter_filesystem_contents.
[SimplifyLibCalls] Avoid implicit truncation for char (#195647)
Explicitly cast char to unsigned char to avoid implicit truncation
if the char type is signed.
Fixes https://github.com/llvm/llvm-project/issues/194487.
18068 libc: initializer-string truncates NUL terminator
Reviewed by: Gordon Ross <gordon.w.ross at gmail.com>
Approved by: Dan McDonald <danmcd at edgecast.io>
Add zvol block cloning test
zvol block cloning depends on custom TrueNAS kernel patches that add
blkdev_copy_offload() to the block layer. The ZFS code path is gated
behind HAVE_BLKDEV_COPY_OFFLOAD and compiles out on stock kernels, and
there is no existing automated coverage of this path.
The test creates two zvols, issues copy_file_range, and asserts via zdb
that exactly 64 L0 blocks share identical DVAs between src and dst.
Identical DVAs prove the destination references the source's blocks
rather than holding an independent copy.
[llubi] Check undefined bits when !noundef is set (#195642)
Address one of the todos in
https://github.com/llvm/llvm-project/pull/195339. Currently it just
checks the loaded value after applying poison-generating metadata. This
patch also takes uninitialized bits in the memory into account.
[PAC][lld] Properly handle `.relr.auth.dyn` -> `.rela.dyn` movement
Address the following issues reported in #171475:
1. Proper adjustment of `__rela_iplt_end` address if a move from
`.relr.auth.dyn` to `.rela.dyn` took place
2. Set `__rela_iplt_start` properly if prior to such movement from
`.relr.auth.dyn`, the `.rela.dyn` was empty
3. Allocate enough space for both RELA* and AARCH64_AUTH_RELR* tags in
the `.dynamic` section in case we end up with both `.relr.auth.dyn`
and `.rela.dyn`. If one of the sections becomes empty - just pad the
`.dynamic` section with null tags in the end.
Remove the upper bound on nkmempages for virt68k, else the kmem arena
gets easily starved on VMs with large memory configs (which is sort of
the whole point of virt68k).
ffmpeg8 ffplay8: updated to 8.1.1
8.1.1:
avcodec/aac/aacdec_usac_mps212: fix attach_lsb() OOB after huff_decode
avcodec/dfpwmdec: Check nb_samples
avcodec/alsdec: do not set nbits invalidly
swscale/swscale_unscaled: adjust last line copy
swscale/swscale: Check srcSliceY and srcSliceH
avformat/avidec: check LIST size in avi_load_index()
avformat/avidec: validate INFO list size before parsing
avformat/matroskadec: Check audio.sub_packet_h * audio.frame_size
libavformat/xwma: fix overflow in seek position
avformat/pcm: Use 64bit for byte_rate
avcodec/adpcm: signed integer overflow in ADPCM_N64
avcodec/hevc/ps: validate rep_format dimensions in multi-layer SPS
avfilter/vf_kerndeint: Check for minimum height
avcodec/ralf: Add the missing return statement after the error log
avfilter/vf_codecview: Clamp block to the visible frame region
avcodec/zmbv: reject XOR data that overruns the decompression buffer
[66 lines not shown]