DifferentiationInterface+ForwardDiff unable to diff ldiv! (any other options to solve linear system w/o allocations and differentiate?)

What version of LinearSolve? Recent versions of LinearSolve actually use a DualLinearCache if A or b contain Dual numbers. Actually that’s probably not relevant, since you’re passing the linsolve directly.