su(1): Fix kerberized path with MKPAM=no MKKERBEROS=yes.
Fixes:
$ su riastradh
riastradh at EXAMPLE.COM's Password:
su: chown 0x7e3294e318a0: No such file or directory
After using the target user's password to get credentials (that is, a
ticket-granting ticket) into an in-memory cache and verifying the
credentials are valid, don't copy them into _another_ in-memory cache
and then chown it -- that makes no sense and doesn't work. Instead,
copy them into a _file_ cache.
This was broken in 2012 with a build fix that apparently nobody has
ever tested since:
https://mail-index.netbsd.org/source-changes/2012/04/12/msg033638.html
PR bin/61091: MKPAM=no kerberized su(1) is busted
rtwn: fix the build without RTWN_DEBUG
RTWN_DPRINTF() compiles to nothing without RTWN_DEBUG, which leaves four
of the IQK result copies in r92f_iq_calib() set but never read. Kernels
with "device rtwn" in their config, LINT among them, then fail with
-Werror,-Wunused-but-set-variable. The module build does not hit this
because its generated opt_rtwn.h always defines RTWN_DEBUG.
Print the result array directly and drop the four locals.
Fixes: 1f0e186e1832 ("rtwn: added support for Realtek RTL8192FU...")
Sponsored by: Rubicon Communications, LLC ("Netgate")
Restructure virt68k clocks to be more or less the same way that clock
handling is structures in hb68k, with a few tweaks:
- Keep the "delay clock" that virt68k requires to implement delay().
- Add the notion of "clock priority"; higher-priority clocks get chosen
for duty before lower-priority clocks.
shader-slang: update to 2026.23
- Establish AST builder scope in Linkage::specializeType
- Diagnose generic entry points specialized with an interface type
- Fix hang in reverse-mode CFG normalization of existential
temporaries
- Build Windows aarch64 CMake option jobs on native ARM64
- Keep existential bindings when the parser checks a generic base
- CI: do not require the SM80 jobs in check-ci
- Split slang-test coverage between the nogpu, T4 and SM80 CI tiers
- Fail basic-type joins when neither type is better
- Specialize descriptor-heap fetch arguments into callees
- Support HLSL declarations as if and while conditions
- Run more tests on more targets with targets=3Dall
- Call suppressDebugDialogs in render-test-tool innerMain
- Add test for multidimensional array declaration ordering
- Overhaul integer constant folding in the front-end
- CUDA: forward entry-point uniform aggregates by address
- Fix SPIR-V crash when a function uses a texture chosen at run time
[19 lines not shown]
devel/sgb: Update to version 2021-02-02
This adds one file (word_giant.ch), increases a buffer in gb_gates.w,
and brings two editorial fixes to documentation.
On the way switch the download site from ftp to https.
[X86][APX] Fold loads into NDD CMOVs that are converted to branches (#245602)
Without prefer-ndd-mem, ISel folds only RIP-relative loads into NDD
CMOVs, so select(c, load, x) becomes MOVrm + CMOVrr_ND instead of
CMOVrm. The force-mem-operand conversion in X86CmovConversion no longer
sees the load, and the CMOV is kept where non-APX code gets a branch.
Fold any load into an NDD CMOV when X86CmovConversion converts memory
operand CMOVs to branches, so the existing CMOVrm conversion applies.
Where it keeps such a CMOV (e.g. an unpredictable select), unfold the
non-RIP-relative load again.
X86::foldNDDCmovLoads() holds the condition, so ISel and
X86CmovConversion agree on when a load is folded and unfolded.
-x86-cmov-converter-ndd-load=false disables the fold.
Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
amd64: Avoid redundant CR0 writes on switches to kernel threads
fpu_activate_sw() sets CR0.TS whenever it switches to a kernel thread,
or to a thread inside fpu_kern_enter(). The bit is clear only while a
thread owns the FPU, and at a context switch the only possible owner is
the old thread. When fpcurthread is NULL the bit is already set and
the write to CR0, which is serializing, changes nothing. That is the
common case for switches between kernel threads, such as the idle
thread and interrupt threads on a router.
Write CR0 only when fpcurthread was set, as cpu_switch() did before
the eager FPU switch became the default in d1a07e31e5cc, and assert
that TS is set otherwise.
Reviewed by: kib
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D62206
[lld][MachO] Stream FunctionStartsSection from laid-out code sections
Currently, `FunctionStartsSection::finalizeContents()` scans every
`ObjFile`'s full symbol table, resolves `defined->getVA()` for each live
code symbol, sorts all addresses with `llvm::sort`, and encodes ULEB128
deltas through `raw_svector_ostream`.
By the time `FunctionStartsSection::finalizeContents()` runs, output
segments, their sections, and each `ConcatOutputSection`'s inputs are
already laid out in ascending virtual address order, and each input
section's `symbols` list is kept sorted by offset. This PR walks those
laid-out code sections directly and streams ULEB128 deltas straight into
`contents` via `llvm::appendLEB128`. If a malformed input produces an
out-of-order symbol address, it reports an `error()` and skips the
symbol.
To avoid calling `isCodeSection()` on every subsection, we add a
`SectionView` wrapper so `isCodeSection()` can accept either a `Section`
or an `InputSection`, and cache its result across consecutive inputs
[10 lines not shown]