NAS-139110 / 26.04 / Fix typo in SMB share ACL validation (#17920)
We were checking for presence of ae_who_str or ae_who_id rather than for
ae_who_sid. Update API description to match reality.
[flang][cuda] Emit error when a device actual argument is used in host intrinsic (#172914)
This can lead to segfault if a device variable is used in a host
intrinsic. Emit an error in semantic.
[clang-tidy] Add new check 'readability-inconsistent-ifelse-braces' (#162361)
Closes https://github.com/llvm/llvm-project/issues/162140
---------
Co-authored-by: Victor Chernyakin <chernyakin.victor.j at outlook.com>
aw_rtc: bump settime() delays
There are delay loops, checking the BUSY status bit, before writing to
the date or time registers. Each iteration contains a 1usec delay, for a
maximum of 70 iterations.
This is frequently not enough on the D1 platform, where the message is
emitted:
rtc0: could not set date, RTC busy
Bump the loop delay to 10usecs each, and the maximum number of
iterations to 150, for a maximum delay of 1.5msecs between each write of
the register.
In my testing this seems to be adequate.
The loop variable is renamed for clarity/simplicity.
[6 lines not shown]
[AArch64][PAC] Rework the expansion of AUT/AUTPAC pseudos
Refactor `AArch64AsmPrinter::emitPtrauthAuthResign` to improve
readability and fix the conditions when `emitPtrauthDiscriminator` is
allowed to clobber AddrDisc.
* do not clobber `AUTAddrDisc` when computing `AUTDiscReg` on resigning
if `AUTAddrDisc == PACAddrDisc`, as it would prevent passing raw,
64-bit value as the new discriminator
* move the code computing `ShouldCheck` and `ShouldTrap` conditions to a
separate function
testdisk: Update to 7.2
Changes:
== 7.2 ==
== General Improvements ==
- Display disk serial number when selecting source disk
- Add support for BeFS for EFI GPT and Mac partition table
== TestDisk ==
- When searching for partition, press '+' key to skip 5% of the disk.
- exfat: Better utf-8 support when iconv is missing
- APFS: Detect APFS partition
== PhotoRec & QPhotoRec ==
- Huge work to formally verify (Frama-C WP) the code using by the various
parsers
New file formats
- bbdoc
[56 lines not shown]
NAS-139108 / 26.04 / reduce memory allocation in parent process (#17918)
I've finally got to a point where I can analyze the memory allocations
(in flamegraph form) of the middleware process. I noticed a peculiar
~21MB of heap memory being allocated in the `zfs.resource_crud.py`
module.
Closer inspection showed the following import tree.
`resource_crud.py` -> `query_impl` -> `normalize_asdict_result` ->
`TNUserProp`
`TNUserProp` imports `AUDIT_DEFAULT_FILL_CRITICAL` and
`AUDIT_DEFAULT_FILL_WARNING`
Drilling down further, I found that the following 2 imports ALONE cause
the usage
```
from sqlalchemy import Table
[6 lines not shown]
On Intel CPUs writes to the x2APIC MSRs are non-serializing. This means
that writes done before sending an IPI may not be visible to other CPUs
because of out-of-order execution of the MSR write that triggers the IPI.
Add a "mfence; lfence" barrier like Linux has to prevent this unexpected
trap.
ok deraadt@, mlarkin@, mpi@