rge: Make the TX watchdog reset the chip
If the cable is pulled, and re-inserted, the driver does not
re-establish any connections, inet nor inet6. rge_init_locked() returns
too early when IFF_DRV_RUNNING is set, so the watchdog's reset doesn't
help, only a full ifconfig rge0 down/up is sufficient.
Clearing the flag & calling rge_init_locked() addresses this, but it
takes around 5 seconds to completely recover.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D62221
rge(4): Implement RTL8125 UDP hardware workaround
Directly quoting Kevin Lo <kevlo at openbsd.org>
"The RTL8125/RTL8125B parses short udp frames for ptp messages.
If a frame shorter than 175 bytes reads port 319 or 320 where the chip
expects the udp destination port and fewer than 47 bytes of udp data follow,
the transmitter stops for good."
Separately, the hw doesn't checksum frames shorter than 60 bytes
properly.
We get around both by padding and computing the checksums for these frames.
Both OpenBSD and Linux have implemented a similar workaround [1][2].
[1] https://marc.info/?l=openbsd-tech&m=179358733449818&w=2
[2] https://github.com/torvalds/linux/commit/8d520b4de3edca4f4fb242b5ddc659b6a9b9e65e
Signed-off-by: Aaron Espinoza <acesp25 at freebsd.org>
[3 lines not shown]
[MC] Make MCParsedAsmOperand const in validateOperandClass (#245077)
This is the final commit in this rather large stack of changes to avoid
mutation of parsed operands inside `validateTargetOperandClass`. Make
the argument const so that it is guaranteed by the compiler that we
can't do in-place mutation inside the validate function.
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/245077
[LoongArch][MC] Use CoerceFromRegClass for FPR64 operands (#241448)
`FPR32` and `FPR64` registers share assembly names, so we can set
`CoerceFromRegClass = FPR32` to have tablegen emit the coercion
automatically to stop mutating operands in `validateTargetOperandClass`.
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/241448
[VE][MC] Avoid mutating operands in validateTargetOperandClass (#245075)
Use CoerceFromRegClass for I32, F32, F128, and VM512, and a custom
RenderMethod for MISC (needed since it also accepts immediate register
numbers).
This removes the manual register conversion tables and all operand
mutation from validateTargetOperandClass.
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/245075
[VE] Use canonical assembly names as primary register AsmName. NFCI (#245074)
Use "s*" and "vm*" directly as the primary AsmName for SW/SF/Q and VMP
registers, which allows droping the VE::AsmName RegAltNameIndex.
Only the ABI register aliases on SX8..SX16 remain in AltNames, and
VEInstPrinter::printRegName can print directly via getRegisterName(Reg).
This does not change assembly output, MIR, inline assembly, or valid VE
assembly parsing, and prepares for using CoerceFromRegClass in the VE
assembler (which was not possible before due to the different AsmName).
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/245074
[cir-offload-merge] Switch to OptTable (#246762)
Parse the command line with OptTable instead of cl::opt, as part of
removing cl::opt from clang/. Help output uses the OptTable format, and
LLVM's global options (e.g. -debug-only, --version) are no longer
accepted.
LLM-aided
18778 loader: vdev_raidz_combrec() returns 0 on failure.
Reviewed by: Hans Rosenfeld <rosenfeld at grumpf.hope-2000.org
Approved by: Robert Mustacchi <rm at fingolfin.org>
NAS-145430 / 28.0.0-BETA.1 / Fix HA audit tests flakiness (by themylogin) (#20334)
`test_audit_config_updates` now restores
`quota_fill_warning`/`quota_fill_critical` to the defaults (75/95) at
the end and asserts the restore, matching how it already restores
`quota` and `reservation`.
`test_audit_config_remote_node` reads the live dataset with
`call('audit.get_audit_dataset')` instead of using stale `init_audit`
snapshot.
Original PR: https://github.com/truenas/middleware/pull/20314
Co-authored-by: themylogin <themylogin at gmail.com>
[analyzer][NFC] Use llvm::any_of in small checker loops (#246866)
Replace hand-written early-return loops with `llvm::any_of` in
StackAddrEscapeChecker, NullabilityChecker, LLVMConventionsChecker,
MIGChecker and BasicObjCFoundationChecks. Iteration order and
short-circuiting are unchanged.
In `alreadyExecutedAtLeastOneLoopIteration` this also removes a loop
variable that shadowed the function parameter.
Assisted-by: Claude Code
NAS-145245 / 28.0.0-BETA.1 / Auto-start containers on pool import (by themylogin) (#20331)
Autostart containers are started when encrypted containers are unlocked.
It's logical to do the same when the pool is imported.
Original PR: https://github.com/truenas/middleware/pull/20326
Co-authored-by: themylogin <themylogin at gmail.com>
[GlobalISel] Simplify demanded bits through G_ADD and G_SUB (#246056)
Only the low bits of an add or sub result depend on the low bits of its
operands, so `simplifyDemandedBitsImpl` can now look through G_ADD and
G_SUB, like SelectionDAG's `SimplifyDemandedBits`. This removes masks
that only clear bits nobody uses.
For an i16 rotate on AArch64:
```
before:
mov x8, xzr
sub x8, x8, w1, uxth
after:
neg x8, x1
```
[Coroutines] Remove write-only member variables (NFC) (#247086)
LowererBase::ResumeFnType: The last reader was removed on November 26,
2023 in commit f42eb15c39405a8ae26d7f4f2fe7b29337ed6799. This patch
also removes its initializer.
RetconLoweringStorage::ReturnBlock: Added on August 14, 2019 in commit
94010b2b7f47de78f4d0ec9be7eb8414747dfd39 without any readers. This
patch also removes its assignments.
AsyncLoweringStorage::Context: Added on October 21, 2020 in commit
ea5989b43adb4a7d169852af398e382216907998 without any readers. This
patch also removes its assignment.
Assisted-by: Antigravity
[MLIR][Vector] Fold an add into vector.contract only for the add kind (#243112)
The canonicalization `CanonicalizeContractAdd` rewrites `add(contract(a,
b, 0), x)` into `contract(a, b, x)`. It did not check the combining kind
of the contract. So for a `maxnumf` contract, `max(0, max(a * b)) + x`
became `max(x, max(a * b))`, which is a different value.
This patch folds only into contracts with the `add` kind, checked with
`ContractionOp::isAddKind()`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[PowerPC] Fix cfence ordering when anti-deps are broken (#246431)
Add hasSideEffects = 1 to CTRL_DEP so it stays ordered before the isync
in the cfence expansion instead of relying on the anti-dependency on
CR7.
[RISCV] Add diagnostics for AnyReg and AnyRegC operands (#246954)
Add targeted diagnostics to `AnyRegOperand` and `AnyRegCOperand`, which
are used by the `.insn` format directives. Invalid operands now report
whether a register or an RVC-compatible register is expected.
This change was assisted by AI.
[MLIR][Vector] Replace only the accumulator when folding an add into vector.contract (#243139)
Folding an add into `vector.contract` can also replace a zero input.
`CanonicalizeContractAdd` rewrites `add(contract(a, b, 0), x)` into
`contract(a, b, x)`. It cloned the contract with a mapping from the zero
value to `x`, and that mapping also replaces any input that uses the
same zero value. So `add(contract(0, b, 0), x)` became `contract(x, b,
x)`, which is `x * b + x` instead of `x`.
This patch clones the contract without a mapping, then replaces only its
accumulator.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
devel/ruby-redmine60: update to 6.0.12
Redmine 6.0.12 (2026-11-01)
Security Fixes
All three versions (7.0.3, 6.1.6, and 6.0.12) include:
* Defect #44657: ReDoS in wiki macro argument parsing
* Defect #44682: Reflected XSS in attachments#edit_all (unvalidated
back_url)
* Defect #44683: validate_back_url accepts URLs that browsers resolve to
another host
Versions 7.0.3 and 6.1.6 also include:
* 8 Defect #44625: OAuth token scope is ignored in
Project.allowed_to_condition
* Defect #44644: OAuth token scopes are bypassed when creating projects
[40 lines not shown]