[X86] Fix spill folding of zero-extending mask moves (#240833)
`KMOVBkk`, `KMOVDkk` and, with BWI, `KMOVWkk` zero the mask bits above
their width, but `X86InstrInfo::isCopyInstrImpl` reports them as copies.
Since 4d42e8b5 (D150388), spill folding then replaces such a move with a
spill of its source, so the zero extension is lost (#240463).
Spill folding is correct for real copies, so this patch stops treating
these moves as copies: `KMOVBkk`, `KMOVDkk` and their `_EVEX` forms are
no longer marked `isMoveReg`, and `isCopyInstrImpl` excludes `KMOVWkk`
when BWI is available. Without BWI, `KMOVWkk` moves the whole mask
register and stays a copy.
Fixes #240463
Assisted-by: Claude Opus 5.5
[Clang] Fix qualifiers of ext vector components accessed via `->`
For `p->x` where `p` points to an `ext_vector_type` vector, Sema takes the
qualifiers from the type of `p`, which is the pointer itself, instead of the
vector it points to. As a result, `p->x = 1` is accepted even if `p` points to a
`const` vector, while `(*p).x = 1` is rejected. An address space on the vector
is lost in the same way.
This PR takes the qualifiers from the vector for both `.` and `->`. A swizzle
that repeats a component, e.g. `v.xx`, is a computed value, so it doesn't get
any qualifiers.
This PR was assisted by AI but I reviewed all the changes.
Capture UVM_ET_ISNOFAULT(ufi->entry) under the lock to close a race
OK kettenis, miod
Reported-by: syzbot+9a6f37b22c12d89b6ade at syzkaller.appspotmail.com
Merge tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl
Pull sysctl fix from Joel Granados:
"Fix sysctl jiffy / milliseconds conversion:
- Writing a previously read value "X" shall keep the same "X" value
- Remove truncation that was causing incorrect saturation of valid
timeouts"
* tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
sysctl: Do jiffy / ms conversion in ulong space
nvmm: Merge one #ifdef with NetBSD in ASM code handling
Since commit 9bd9bca17d53c0f7d7bcd6cd3e029bb77ccb13a6 the ASM code has
become more OS-independent, so <machine/asm.h> is no longer needed in
both OSes.
Since commit b94dd9242808203c854242a803f484ff25f76e32 DragonFly migrated
to use the new "assym.h" as NetBSD, so this #ifdef can be merged for
both OSes.
qrcp: update to 0.12.0
* Move the website to its own repository
* feat(cli): add qrcp doctor to diagnose network problems
* fix(doctor): don't warn about --bind to a second address of an
interface
* fix(server): don't hang when stopping during a transfer
* fix(server): fix panics in the request handlers
[flang][OpenMP] Evaluate composite DISTRIBUTE clauses outside PARALLEL
In composite DISTRIBUTE PARALLEL DO [SIMD], omp.distribute is nested
inside omp.parallel, and the DISTRIBUTE clauses were evaluated after
omp.parallel was created. A DECLARE VARIANT call in the DIST_SCHEDULE
chunk-size expression therefore matched construct={parallel}, although
DISTRIBUTE encloses PARALLEL in the source, and every thread evaluated
the expression.
Evaluate the DISTRIBUTE clauses before creating omp.parallel, as for the
explicit nesting, and destroy their temporaries once, after omp.parallel.
Fixes #244760
Assisted-by: GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
Merge tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
Pull Landlock fixes from Mickaël Salaün:
- prevent composed rulesets from denying link and rename operations
that each ruleset allows separately;
- close capability-mediation gaps for low-address mappings, inheritable
capabilities, the admin memory reserve, and PR_SET_SECUREBITS, so LSM
capability denials apply consistently;
- distinguish namespace creation from entry in denial records and
expose the checked capability context to BPF tracepoint consumers, so
they can interpret denials correctly.
* tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
landlock: Add missing EINVAL case in the doc for landlock_add_rule
clang-format: Fix formatting of guard()
landlock: Document namespace denial operations
[16 lines not shown]
misc/kimi-code: Update to 2.7.2
Adds Amazon Bedrock as a model provider, SSH hosts for projects, an
HTTP interface for automation and a server mode that does not open a
browser, a view of running foreground agents and a follow-up setting
that steers a message into the running turn.
Fixes Vertex AI authentication with Google ADC, resuming a session
opened in another client and conversation history disappearing during
trimming.
Changes:
https://github.com/MoonshotAI/kimi-code/releases
Sponsored by: Netzkommune GmbH
[CodeGenPrepare][X86] Add tests for sinking GEPs (#242745)
Pre-commit tests for sinking the GEPs computing the address of a
gather/scatter into its block.
This is a preparation for the PR that addresses FIXME in CodegenPrepare.
(https://github.com/llvm/llvm-project/pull/242746)
[clang-tidy] Fix SARIF test missing '--' (#244927)
[clang-tidy] Fix SARIF test missing '--'
export-SARIF-diagnostics-macro-thread-flows.cpp was missing a "--" that
caused this test to fail.
Co-authored-by: Jones, Matthew (DI SW SIM FRWK PLAT SIMFW HPC) <jones.matthew at siemens.com>
[CMake] Update regex to match typed arguments (#244963)
The regex used to match arguments in the cross-compiling case didn't
account for types and would fail to match.
[CMake] Fix variable name shadowing (#244962)
The append_passthrough_options macro has an argument named type, but it
also reads the property into the variable of the same name. Because
CMake macros perform textual substitution of the ${type} argument before
dereferencing the ${type} variable, passthrough options are emitted as
-DCMAKE_CXX_FLAGS:RUNTIMES=... instead of -DCMAKE_CXX_FLAGS:STRING=...
Attributor: Don't report a change when no functions are internalized
internalizeFunctions returned true for an empty set, so this reported
a change for every module and invalidated all function analyses even
when it did nothing.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>